/* ==========================================================================
   JQ Models — landing page styles
   Rebuild of jq.figma.site: dark theme, grotesque display headings with
   pink/purple gradient accents, Didot serif stat numbers, lucide icons.
   ========================================================================== */

/* ---------- Design tokens ------------------------------------------------ */
:root {
  /* Backgrounds */
  --bg-0: #000000;
  --bg-1: #101828; /* gray-900 — alternating section tint */
  --bg-glow-purple: rgba(147, 51, 234, 0.25);
  --bg-glow-pink: rgba(219, 39, 119, 0.16);

  /* Text */
  --text: #ffffff;
  --text-soft: #d1d5db;   /* gray-300 */
  --text-muted: #9ca3af;  /* gray-400 */
  --text-faint: #6b7280;  /* gray-500 */

  /* Accents (Tailwind palette, as used by the original) */
  --purple-400: #c084fc;
  --pink-400: #f472b6;
  --purple-500: #a855f7;
  --pink-500: #ec4899;
  --purple-600: #9333ea;
  --pink-600: #db2777;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --green-500: #22c55e;
  --emerald-500: #10b981;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --rose-500: #f43f5e;
  --indigo-500: #6366f1;

  --gradient-primary: linear-gradient(to right, var(--purple-600), var(--pink-600));
  --gradient-text: linear-gradient(to right, var(--purple-400), var(--pink-400));
  --gradient-text-rev: linear-gradient(to right, var(--pink-400), var(--purple-400));
  --gradient-text-soft: linear-gradient(to right, #ffffff, #e9d5ff 50%, #ffffff);

  /* Surfaces */
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bg-strong: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-strong: rgba(255, 255, 255, 0.18);
  --header-bg: rgba(0, 0, 0, 0.7);

  /* Shape */
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1280px;
  --gutter: 24px;

  /* Fonts — headings match the original's stack: its ReformaGrotesk face
     fails to load there too, so Arial is what actually renders. */
  --font-display: 'ReformaGrotesk', Arial, 'Helvetica Neue', sans-serif;
  --font-body: 'Mulish', Arial, sans-serif;
  --font-serif: 'Didot', 'Playfair Display', Georgia, serif;
}

/* ---------- Reset ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(34px, 4.2vw, 60px);
  text-align: center;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 24px;
}

p {
  margin: 0 0 16px;
}

/* Gradient text helpers (background-clip like the original) */
.grad,
.grad-rev,
.grad-soft {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.grad { background-image: var(--gradient-text); }
.grad-rev { background-image: var(--gradient-text-rev); }
.grad-soft { background-image: var(--gradient-text-soft); }

/* Inline lucide icons */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Gradient icon tiles (advantages, success stats, video labels) */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  flex: none;
}

.icon-tile .icon {
  width: 28px;
  height: 28px;
}

.icon-tile--purple-pink { background: linear-gradient(to right, var(--purple-500), var(--pink-500)); }
.icon-tile--blue-cyan { background: linear-gradient(to right, var(--blue-500), var(--cyan-500)); }
.icon-tile--orange-red { background: linear-gradient(to right, var(--orange-500), var(--red-500)); }
.icon-tile--green-emerald { background: linear-gradient(to right, var(--green-500), var(--emerald-500)); }
.icon-tile--pink-rose { background: linear-gradient(to right, var(--pink-500), var(--rose-500)); }
.icon-tile--purple-indigo { background: linear-gradient(to right, var(--purple-500), var(--indigo-500)); }
.icon-tile--cyan-blue { background: linear-gradient(to right, var(--cyan-500), var(--blue-500)); }
.icon-tile--amber-orange { background: linear-gradient(to right, #f59e0b, var(--orange-500)); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--purple-600);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
  padding: 96px 0;
}

/* Alternating section tint like the original (black ↔ dark navy) */
.section-tint {
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
}

.kicker {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-400);
  margin: 0 0 16px;
}

/* Pill badge used instead of a plain kicker in some sections */
.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: #d8b4fe;
  font-size: 14px;
  font-weight: 600;
}

.kicker-pill .icon {
  width: 16px;
  height: 16px;
}

.kicker-pill-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
}

section > .container > h2 {
  margin-bottom: 16px;
}

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 500;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 14px 36px rgba(219, 39, 119, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  flex: none;
  display: inline-flex;
}

.logo-img {
  height: 44px;
  width: auto;
  /* the JQ mark asset is black-on-transparent; the site header is dark */
  filter: invert(1);
}

.site-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-list a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.nav-list a:hover {
  color: var(--purple-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

.header-phone .icon {
  width: 18px;
  height: 18px;
  color: var(--purple-400);
}

.header-cta {
  padding: 12px 24px;
  font-size: 14px;
  border-width: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text);
}

.nav-toggle .icon {
  width: 26px;
  height: 26px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: 140px 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, #000 100%);
}

.hero-inner {
  text-align: center;
  max-width: 980px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 40px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(88, 28, 135, 0.45);
  border: 1px solid rgba(192, 132, 252, 0.35);
  backdrop-filter: blur(6px);
  color: #e9d5ff;
  font-size: 14px;
}

.hero-badge .icon {
  width: 20px;
  height: 20px;
  color: var(--purple-400);
}

.hero-title {
  font-size: clamp(40px, 6.7vw, 96px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.5;
  color: var(--text-soft);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* ---------- Stat grids (shared) --------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.stat .icon {
  width: 32px;
  height: 32px;
  color: var(--purple-400);
  margin: 0 auto 12px;
  display: block;
}

.stat-value {
  display: block;
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}

/* Didot serif variant with gradient (program + advantages banners) */
.stat-value--serif {
  font-family: var(--font-serif);
  font-weight: 700;
  background-image: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- About section --------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #000;
  aspect-ratio: 592 / 600;
}

.about-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-media-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.about-copy .kicker {
  text-align: left;
}

.about-copy h2 {
  text-align: left;
  font-size: clamp(36px, 4.2vw, 60px);
  margin-bottom: 24px;
}

.about-copy .about-lead {
  font-size: 17px;
  color: var(--text-soft);
}

.about-copy .about-mission {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-strong);
  background: var(--card-bg-strong);
}

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: var(--purple-400);
  margin-bottom: 16px;
}

.about-icon .icon {
  width: 22px;
  height: 22px;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Offices ---------------------------------------------------------- */
.offices {
  padding-top: 32px;
}

.offices h2 {
  font-size: 36px;
}

.offices .section-intro {
  margin-bottom: 44px;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.office-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.office-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-strong);
}

.office-photo-wrap {
  position: relative;
}

.office-photo {
  width: 100%;
  height: 256px;
  object-fit: cover;
}

.office-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.office-badge--msk { background: linear-gradient(to right, var(--pink-500), var(--purple-500)); }
.office-badge--spb { background: linear-gradient(to right, var(--blue-500), var(--cyan-500)); }

.office-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 22px 24px 24px;
}

.office-body .icon {
  width: 20px;
  height: 20px;
  color: var(--purple-400);
  margin-top: 3px;
}

.office-name {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  font-size: 16px;
}

.office-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Program ------------------------------------------------------- */
.program {
  background:
    linear-gradient(rgba(169, 83, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 83, 212, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 50%, var(--bg-0));
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

.program h2 {
  margin-bottom: 16px;
}

.program-card {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
}

.program-media {
  position: relative;
  min-height: 420px;
}

.program-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 55%);
}

.program-media-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(to right, var(--purple-500), var(--pink-500));
  color: #fff;
}

.program-media-icon .icon {
  width: 30px;
  height: 30px;
}

.program-media-badge {
  position: absolute;
  top: 34px;
  left: 96px;
  z-index: 2;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.program-card-body {
  padding: 44px 48px;
}

.program-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.badge--outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border-strong);
}

.badge .icon {
  width: 14px;
  height: 14px;
}

.program-card-body h3 {
  font-size: 36px;
  margin-bottom: 14px;
}

.program-card-body > p {
  color: var(--text-muted);
  font-size: 15px;
}

.program-label {
  margin: 26px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pink-400);
}

.program-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin: 14px 0 0;
}

.program-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-soft);
}

.program-list .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--purple-400);
}

.program-advantages-list {
  grid-template-columns: 1fr;
}

.program-advantages-list .icon {
  color: var(--pink-400);
  width: 14px;
  height: 14px;
  margin-top: 4px;
}

.program-card-body .btn {
  margin-top: 32px;
}

.program-stats .stat-value {
  font-family: var(--font-serif);
  background-image: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Success -------------------------------------------------------- */
.success-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.success-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.success-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.success-card:hover img {
  transform: scale(1.04);
}

.success-card-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px 22px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4) 70%, transparent);
}

.success-card h3 {
  margin-bottom: 4px;
}

.success-card p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

.success-stats {
  margin-bottom: 56px;
}

.success-stats .icon-tile {
  margin: 0 auto 16px;
}

.testimonial {
  max-width: 880px;
  margin: 0 auto 48px;
  padding: 44px 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.25), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: var(--radius-xl);
}

.testimonial-mark {
  font-family: var(--font-body);
  font-size: 60px;
  line-height: 0.6;
  color: var(--purple-400);
  display: block;
  margin-bottom: 24px;
}

.testimonial p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 24px;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--purple-400);
}

.success > .container > .btn {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

/* ---------- Video ---------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.video-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-item-body {
  padding: 22px 24px 24px;
}

.video-item-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.video-item-label .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.video-item-label .icon-tile .icon {
  width: 18px;
  height: 18px;
}

.video-item-label span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.video-item h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.video-item-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.video-banner {
  text-align: center;
  padding: 44px 40px;
  background: linear-gradient(to right, rgba(147, 51, 234, 0.12), rgba(219, 39, 119, 0.12));
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: var(--radius-xl);
}

.video-banner h3 {
  margin-bottom: 24px;
}

/* ---------- Advantages ------------------------------------------------------ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.advantage-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-strong);
  background: var(--card-bg-strong);
}

.advantage-card .icon-tile {
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.advantages-stats {
  background: linear-gradient(to right, rgba(147, 51, 234, 0.12), rgba(219, 39, 119, 0.12));
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
}

.advantages-stats .stat {
  background: transparent;
  border: none;
  padding: 8px;
}

.advantages-stats .stat-value {
  font-family: var(--font-serif);
  font-size: 44px;
  background-image: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Team ------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-strong);
}

.team-photo-wrap {
  position: relative;
  aspect-ratio: 393 / 450;
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
}

.team-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a1524, #0c0a14);
}

.team-photo--placeholder::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed var(--card-border-strong);
}

.team-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(to right, rgba(30, 10, 40, 0.85), rgba(60, 20, 60, 0.6));
  border: 1px solid rgba(192, 132, 252, 0.25);
  backdrop-filter: blur(8px);
}

.team-overlay h3 {
  font-size: 24px;
  margin: 0 0 2px;
}

.team-role {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d8b4fe;
  margin: 0;
}

.team-bio {
  padding: 20px 22px 24px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- FAQ --------------------------------------------------------------- */
.faq h2 {
  font-size: clamp(44px, 5vw, 72px);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--card-border-strong);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.faq-q .icon {
  width: 20px;
  height: 20px;
  color: var(--purple-400);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-q .icon {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 26px 24px;
  font-size: 15px;
  color: var(--text-muted);
}

.faq-a p {
  margin: 0;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-footer {
  text-align: center;
  margin-top: 48px;
}

.faq-footer p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* ---------- Consultation form ------------------------------------------------- */
.consultation {
  background:
    radial-gradient(700px 420px at 30% 80%, var(--bg-glow-purple), transparent 65%),
    radial-gradient(600px 380px at 75% 30%, var(--bg-glow-pink), transparent 65%),
    var(--bg-0);
}

.consultation .container {
  max-width: 1000px;
}

.form {
  background: rgba(10, 6, 16, 0.65);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  backdrop-filter: blur(8px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.form-field label .icon {
  width: 16px;
  height: 16px;
  color: var(--purple-400);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.form-field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-consent {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
}

.form-consent a {
  color: var(--text-muted);
  text-decoration: underline;
}

.form .btn {
  width: auto;
  min-width: 220px;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
}

.form-status.success {
  color: var(--green-500);
}

.form-status.error {
  color: #f87171;
}

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-top: 1px solid var(--card-border);
  padding-top: 72px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo-img {
  height: 52px;
}

.footer-brand p {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.footer-social .icon {
  width: 18px;
  height: 18px;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

/* Contact strip above the legal row */
.footer-contacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--card-border);
}

.footer-contact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.18);
  color: var(--purple-400);
  flex: none;
}

.footer-contact-icon .icon {
  width: 20px;
  height: 20px;
}

.footer-contact-label {
  display: block;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.footer-contact-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--card-border);
}

.copyright {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-legal a:hover {
  color: var(--text-muted);
}

/* ---------- Modal ------------------------------------------------------------ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #140b1f, #0a0712);
  border: 1px solid var(--card-border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-dialog h2 {
  text-align: left;
  font-size: 28px;
  margin-bottom: 10px;
}

.modal-dialog > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close .icon {
  width: 18px;
  height: 18px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal .form {
  background: transparent;
  border: none;
  padding: 0;
  backdrop-filter: none;
}

.modal .form .btn {
  width: 100%;
}

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .success-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  section {
    padding: 64px 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100dvh - 73px);
    display: block;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(10px);
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--card-border);
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    padding: 10px 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-media {
    max-width: 560px;
    margin: 0 auto;
  }

  .program-card {
    grid-template-columns: 1fr;
  }

  .program-media {
    min-height: 300px;
  }

  .program-card-body {
    padding: 30px 28px;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contacts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
  }

  section {
    padding: 56px 0;
  }

  .hero {
    padding: 110px 0 72px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 9px 16px;
    margin-bottom: 32px;
  }

  .hero-title {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 48px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

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

  .about-cards {
    grid-template-columns: 1fr;
  }

  .success-cards,
  .advantages-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .program-list {
    grid-template-columns: 1fr;
  }

  .program-card-body {
    padding: 24px 20px;
  }

  /* Grid items default to min-width:auto, so the long media badge forced the
     whole program card to 354px on 320/360px phones. */
  .program-card,
  .program-media,
  .program-card-body {
    min-width: 0;
    width: 100%;
  }

  .program-media-badge {
    right: 14px;
    max-width: calc(100% - 110px);
    white-space: normal;
  }

  .program-card-body h3 {
    font-size: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form {
    padding: 28px 22px;
  }

  .form .btn {
    width: 100%;
  }

  .btn {
    max-width: 100%;
    padding-inline: 20px;
    white-space: normal;
    text-align: center;
  }

  .testimonial {
    padding: 30px 22px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-dialog {
    padding: 28px;
  }
}
