/* Про100 высший балл — статический лендинг
   Цвета и типографика сохранены из текущего сайта */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --content-wide: 1200px;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --brand-blue: #2563eb;
  --brand-gold: #f59e0b;
  --brand-gold-h: #d97706;
  --brand-navy: #0f172a;
  --brand-navy-m: #1e3a8a;

  --font-display: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --color-bg: #0f172a;
  --color-bg-alt: #111827;
  --color-surface: #1e293b;
  --color-surface-2: #253247;
  --color-border: #2d3f5a;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;

  --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  --lead-bg: linear-gradient(135deg, #4c1d95 0%, #1e3a8a 100%);
  --footer-bg: #070d1a;
  --nav-bg: rgba(15, 23, 42, 0.96);
  --topbar-bg: #070d1a;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7em 1.6em;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--brand-gold);
  color: #0f172a;
  border-color: var(--brand-gold);
}

.btn-gold:hover {
  background: var(--brand-gold-h);
  border-color: var(--brand-gold-h);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.btn-lg {
  padding: 0.85em 2em;
  font-size: var(--text-base);
}

.btn-full {
  width: 100%;
}

.btn-pricing {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  margin-top: auto;
}

.btn-pricing:hover {
  background: var(--brand-gold);
  color: #0f172a;
  border-color: var(--brand-gold);
}

/* Topbar + header */
.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-2);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
  gap: var(--space-2);
  flex-wrap: wrap;
}

.topbar-phone,
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-xs);
  font-weight: 600;
}

.topbar-phone:hover,
.topbar-link:hover {
  color: var(--brand-gold);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.topbar-badge {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  padding: 2px var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
  padding-block: var(--space-3);
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text);
}

.nav-logo-sub {
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(var(--space-3), 1.5vw, var(--space-6));
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a.is-active {
  color: var(--brand-gold);
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 1px;
  background: var(--brand-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-gold);
  padding: var(--space-2) var(--space-5);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.08);
  max-width: 36ch;
  line-height: 1.35;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--brand-gold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 22ch;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
}

.hero-bullets li {
  display: flex;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
}

.bullet-check {
  color: var(--brand-blue);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  width: 100%;
  max-width: 700px;
  margin-top: var(--space-4);
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--brand-gold);
}

.stat-desc {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
}

/* Cards grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

.surface-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition);
}

.surface-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.45);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-3);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: none;
}

.directions-section,
.subjects-section,
.process-section,
.diagnostics-section {
  background: var(--color-bg);
}

.subjects-section,
.teachers-section,
.contacts-section {
  background: var(--color-bg-alt);
}

.direction-card,
.subject-card,
.benefit-card,
.diag-card {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.direction-card .card-title {
  order: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  color: var(--brand-gold);
  margin-bottom: var(--space-4);
  line-height: 1.25;
}

.direction-card .card-icon {
  order: 1;
  margin-bottom: var(--space-4);
  font-size: 2.1rem;
}

.direction-card .card-desc {
  order: 2;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.subjects-grid {
  grid-template-columns: repeat(3, 1fr);
}

.subjects-note {
  text-align: center;
  margin-top: var(--space-8);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Founder */
.founder-section {
  background: var(--color-bg-alt);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}

.founder-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 5px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-blue));
  box-shadow: var(--shadow-lg);
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius-xl) - 3px);
  background: var(--color-surface);
}

.founder-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.founder-role {
  color: var(--brand-gold);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.founder-list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.founder-list li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.founder-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-gold);
  font-weight: 700;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.process-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  height: 100%;
}

.process-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.process-head .card-title {
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.process-num {
  position: static;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-inline: auto;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-h));
  color: #0f172a;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.process-card .card-desc {
  margin: 0;
  width: 100%;
  text-align: center;
}

/* Pricing */
.pricing-section {
  background: var(--color-bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  align-items: stretch;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  display: grid;
  grid-template-rows: 1.75rem minmax(3.2em, auto) auto 1fr auto;
  gap: var(--space-4);
  position: relative;
  align-content: stretch;
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.18), var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25), var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-display);
  padding: 4px var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Пустая первая строка сетки: место под бейдж, чтобы все карточки стартовали одинаково */
.pricing-card::before {
  content: '';
  display: block;
}

.pricing-name,
.pricing-price {
  text-align: center;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 3.2em;
}

.pricing-price {
  color: var(--color-text-muted);
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25em;
  min-height: 2.4em;
}

.pricing-price strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--brand-gold);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  align-self: stretch;
}

.pricing-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Teachers carousel */
.teachers-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
}

.teachers-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.teachers-track {
  display: flex;
  gap: var(--space-5);
  will-change: transform;
}

.teachers-track.is-animating {
  transition: transform 0.4s ease;
}

.teachers-track .teacher-card {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
}

.teachers-nav {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--brand-gold);
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition),
    color var(--transition), transform var(--transition);
}

.teachers-nav:hover {
  border-color: var(--brand-gold);
  background: rgba(245, 158, 11, 0.1);
}

.teachers-nav:active {
  transform: scale(0.96);
}

.teacher-card {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition);
}

@media (max-width: 560px) {
  .teachers-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }

  .teachers-viewport {
    flex: 1 1 100%;
    order: 1;
  }

  .teachers-nav {
    order: 2;
  }
}

.teacher-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.teacher-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-navy-m), var(--color-primary));
  position: relative;
  flex-shrink: 0;
  border: 2px solid rgba(245, 158, 11, 0.35);
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* P7-AV28 */
  object-position: center 28%;
}

.teacher-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
}

.teacher-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
}

.teacher-subjects {
  font-size: var(--text-xs);
  color: var(--brand-gold);
  font-weight: 600;
}

.teacher-bio {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Reviews */
.testimonials-section {
  background: var(--color-bg);
}

.reviews-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
}

.reviews-track {
  align-items: stretch;
}

.reviews-track .review-story {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
  min-height: 280px;
  height: auto;
  align-self: stretch;
}

@media (max-width: 560px) {
  .reviews-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }

  .reviews-viewport {
    flex: 1 1 100%;
    order: 1;
  }

  .reviews-carousel .teachers-nav {
    order: 2;
  }
}

.review-story {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.review-result {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
}

.review-quote {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  flex: 1;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author {
  font-weight: 700;
  font-size: var(--text-sm);
}

.review-place {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.review-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}

.review-more {
  color: var(--brand-gold);
  font-size: var(--text-sm);
  font-weight: 700;
}

.review-more:hover {
  text-decoration: underline;
}

/* Diagnostics explain */
.diag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.diag-card {
  text-align: center;
  align-items: center;
}

.diag-card .card-title {
  text-align: center;
  width: 100%;
}

.diag-card .card-desc {
  text-align: center;
}

.diag-card .card-icon {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-h));
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

/* Lead forms */
.lead-section {
  background: var(--lead-bg);
  position: relative;
  overflow: hidden;
}

.lead-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.lead-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: start;
}

.lead-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
}

.lead-subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
}

.urgency-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  font-weight: 600;
}

.lead-form-wrap {
  min-width: 0;
  container-type: inline-size;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.lead-form[hidden] {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  border: 0;
}

.form-group label,
.form-group legend {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.form-group legend {
  margin-bottom: var(--space-2);
}

.form-group .req {
  color: var(--brand-gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: #fff;
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
}

.form-group textarea {
  resize: vertical;
  min-height: 88px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f59e0b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group select option {
  background: #1e293b;
  color: #e2e8f0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  background-color: rgba(255, 255, 255, 0.13);
}

.form-group .is-invalid {
  border-color: #f87171;
}

.form-error {
  min-height: 0;
  font-size: var(--text-xs);
  color: #fca5a5;
}

.form-error:empty {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Длинные варианты формата должны читаться целиком. */
.form-row--selects {
  grid-template-columns: 1fr;
}

/* Ширина карточки важнее ширины экрана в двухколоночном блоке. */
@container (max-width: 420px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 280px) {
  .form-group select {
    padding-left: var(--space-2);
    padding-right: var(--space-5);
    background-position: right var(--space-2) center;
  }
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.form-group .chip,
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition);
}

.chip:hover {
  border-color: rgba(245, 158, 11, 0.6);
}

/* Сам input скрыт визуально, но остаётся доступным для клавиатуры и скринридеров */
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.chip:has(input:checked) {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--brand-gold);
  color: #fff;
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--brand-gold);
  cursor: pointer;
}

.form-consent a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover {
  color: var(--brand-gold);
}

.lead-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.form-status[hidden] {
  display: none;
}

.form-status a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-privacy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.form-success:focus {
  outline: none;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #4ade80;
  color: #4ade80;
  font-size: 1.75rem;
  font-weight: 800;
}

.form-success-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
}

.form-hint {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-xs);
}

.form-group input[type="date"] { color-scheme: dark; }
.form-privacy--alt { margin-top: var(--space-4); }
.form-privacy a { color: #fff; text-decoration: underline; }
.form-consent .req { color: var(--brand-gold); }

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  max-width: 720px;
  margin-inline: auto;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.contact-icon {
  font-size: 2rem;
}

.contact-type {
  font-family: var(--font-display);
  font-weight: 700;
}

.contact-value {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-value:hover {
  color: var(--brand-gold);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding-top: clamp(var(--space-12), 5vw, var(--space-20));
  padding-bottom: var(--space-6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-logo-text {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.footer-logo-sub {
  font-weight: 500;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav a:hover {
  color: var(--brand-gold);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: var(--space-2);
  max-width: 8.5rem; /* ~3 иконки в ряд → дальше перенос */
  justify-self: start;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}

.footer-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-social-icon {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

.footer-social-icon--max {
  border-radius: 0.35rem;
}

/* IG / FB / WA: только если IP не РФ (в т.ч. VPN с выходом за рубеж) */
.social-geo-intl[hidden] {
  display: none !important;
}

html.geo-intl .social-geo-intl:not([data-social-disabled]) {
  display: inline-flex;
}

html.geo-intl .social-geo-intl:not([data-social-disabled])[hidden] {
  display: inline-flex !important;
}

.social-geo-intl[data-social-disabled] {
  display: none !important;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.footer-legal {
  display: inline-block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  padding-top: var(--space-4);
  text-align: center;
}

.footer-privacy-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-privacy-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Lightbox / modals */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay[hidden] {
  display: none !important;
}

.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.4rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap {
  max-width: min(1100px, 96vw);
  width: 100%;
}

.lightbox-img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.privacy-modal-content,
.review-modal-content {
  background: var(--color-surface);
  color: var(--color-text);
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.privacy-modal-content h2,
.review-modal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin: var(--space-6) 0 var(--space-3);
}

.privacy-modal-content h2:first-child,
.review-modal-content h2:first-child {
  margin-top: 0;
}

.review-modal-meta {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.privacy-modal-content p,
.privacy-modal-content li,
.review-modal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.privacy-modal-content ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .directions-grid,
  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .founder-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .founder-list li {
    text-align: left;
  }
  .founder-photo-wrap {
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-1);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: var(--space-3) var(--space-4);
  }

  .nav-links a.is-active::after {
    display: none;
  }

  .nav-links a.is-active {
    background: rgba(245, 158, 11, 0.12);
    border-radius: var(--radius-md);
  }

  .nav-actions .btn-gold {
    display: none;
  }

  .site-header {
    position: relative;
  }

  .nav-inner {
    position: relative;
  }

  .lead-inner,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .topbar-badge {
    display: none;
  }
}

/* Проверка формы на PHP-хостинге. */
.form-captcha-challenge { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.form-captcha-challenge img { width: 240px; max-width: 100%; height: auto; border-radius: 8px; }
.form-captcha input { text-transform: uppercase; letter-spacing: .2em; }
