:root {
  --navy: #102a43;
  --blue: #173654;
  --blue-soft: #e9f0f4;
  --surface: #f5f8fa;
  --white: #ffffff;
  --gold: #d8b56a;
  --gold-dark: #af812d;
  --text: #334e68;
  --muted: #627d98;
  --line: rgba(23, 54, 84, 0.12);
  --shadow: 0 22px 55px rgba(16, 42, 67, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

body:has(dialog[open]) { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.first-screen {
  position: relative;
  background: #f8fafb url("assets/hero-background.webp") center center / cover no-repeat;
}

@media (max-width: 760px) {
  .first-screen {
  position: relative;
  background: #f8fafb url("assets/hero-background.webp") left center / cover no-repeat;
}
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(248, 250, 251, 0.3);
  border-bottom: 1px solid rgba(23, 54, 84, 0.06);
  backdrop-filter: blur(5px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo-link { display: inline-flex; text-decoration: none; }
.site-logo, .footer-logo { width: 190px; height: auto; }

.header-actions, .phone, .button { display: flex; align-items: center; }
.header-actions { gap: 28px; }
.phone { gap: 10px; text-decoration: none; }
.phone-icon { width: 23px; height: 23px; display: grid; place-items: center; color: var(--gold-dark); }
.phone-icon svg { width: 22px; height: 22px; fill: currentColor; }
.phone strong { display: block; color: var(--navy); font-size: 17px; line-height: 1.1; }
.phone small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }

.button {
  min-height: 50px;
  justify-content: center;
  gap: 16px;
  border-radius: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #e2c57f, #c99b40);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(175, 129, 45, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(175, 129, 45, 0.25); }
.button:focus-visible, .policy-link:focus-visible, .dialog-close:focus-visible { outline: 3px solid rgba(216, 181, 106, 0.55); outline-offset: 3px; }
.button-header { min-height: 46px; font-size: 14px; }

.hero {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(400px, 0.84fr);
  align-items: center;
  gap: 34px;
}

.hero-copy { padding: 58px 0 62px; }
.eyebrow { margin: 0 0 18px; color: var(--gold-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; }
.eyebrow::after { content: ""; display: inline-block; width: 54px; height: 1px; margin: 0 0 4px 14px; background: var(--gold); }

h1, h2, h3 { color: var(--navy); margin-top: 0; }
h1 { max-width: 690px; margin-bottom: 22px; font-size: clamp(37px, 3.75vw, 49px); line-height: 1.11; letter-spacing: -0.04em; font-weight: 500; }
.bold {font-weight: 800;}
h2 { font-size: clamp(29px, 3vw, 42px); line-height: 1.16; letter-spacing: -0.035em; font-weight: 800; }
h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.25; }
.hero-lead { max-width: 620px; margin: 0 0 30px; color: var(--text); font-size: 18px; }

.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 690px; margin-bottom: 30px; }
.hero-point { position: relative; display: block; min-width: 0; padding: 0 20px; color: var(--blue); font-size: 12.5px; line-height: 1.4; }
.hero-point:first-child { padding-left: 0; }
.hero-point:last-child { padding-right: 0; }
.hero-point + .hero-point::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 2px; width: 1px; background: rgba(216, 181, 106, 0.78); }
.point-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 50%; background: rgba(233, 240, 244, 0.96); color: var(--navy); }
.point-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-button { width: fit-content; min-width: 356px; min-height: 64px; padding: 17px 30px; }
.privacy-note { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.privacy-icon { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; color: var(--navy); }
.privacy-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { align-self: stretch; position: relative; min-height: 660px; }
.director-photo { position: absolute; z-index: 3; right: -4px; bottom: 0; width: min(100%, 520px); max-height: 625px; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 18px 30px rgba(16, 42, 67, 0.16)); }
.columns { display: none; }
.director-card { position: absolute; z-index: 5; right: 16px; bottom: 70px; min-width: 310px; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 12px; background: rgba(255, 255, 255, 0.91); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.director-card strong, .director-card span { display: block; }
.director-card strong { color: var(--navy); font-size: 15px; }
.director-card span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.hero-orb { display: none; }
.hero-orb-one { width: 330px; height: 330px; right: 20%; top: 38px; background: rgba(233, 240, 244, 0.38); }
.hero-orb-two { width: 190px; height: 190px; right: 3%; bottom: 24px; background: rgba(216, 181, 106, 0.05); }

.benefits { padding: 70px 0; background: #f9fbfc; }
.section-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-card { min-height: 150px; display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; padding: 22px; border: 1px solid rgba(23, 54, 84, 0.06); border-radius: 12px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 13px 34px rgba(16, 42, 67, 0.055); }
.benefit-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--navy); }
.benefit-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 14px; }

.quiz-section { position: relative; overflow: hidden; padding: 70px 0; background: #f8fafb url("assets/quiz-background.webp") center center / cover no-repeat; }
.quiz-section::before { display: none; }
.quiz-heading { position: relative; z-index: 1; margin-bottom: 34px; }
.quiz-shell { position: relative; z-index: 2; width: 100%; }
.quiz-embed { width: 100%; min-height: 510px; padding: 22px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.matomba_iframe { min-height: 466px; width: 100%; }

.site-footer { padding: 34px 0; background: #f9fbfc; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 148px 1.15fr 1fr 1.35fr; align-items: center; gap: 28px; }
.footer-logo { width: 148px; }
.requisites, .footer-phone { display: flex; flex-direction: column; color: var(--muted); font-size: 12px; }
.requisites strong, .footer-phone > a { color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: none; }
.footer-phone { align-items: flex-start; }
.policy-link { margin: 6px 0 0; padding: 0; border: 0; color: var(--blue); background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
address { color: var(--muted); font-size: 12px; font-style: normal; }

.policy-dialog { width: min(880px, calc(100% - 32px)); height: min(90dvh, 920px); max-height: 90dvh; padding: 0; overflow: hidden; border: 0; border-radius: 16px; color: var(--text); background: var(--white); box-shadow: 0 30px 90px rgba(16, 42, 67, 0.28); }
.policy-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.policy-dialog::backdrop { background: rgba(9, 30, 50, 0.72); backdrop-filter: blur(5px); }
.dialog-header { z-index: 2; display: flex; justify-content: space-between; gap: 24px; padding: 26px 30px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.98); }
.dialog-header .eyebrow { margin-bottom: 7px; }
.dialog-header h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.dialog-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--navy); background: var(--blue-soft); font-size: 30px; line-height: 1; cursor: pointer; }
.policy-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 30px 44px; scrollbar-gutter: stable; }
.policy-content section + section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.policy-content h3 { font-size: 20px; }
.policy-content p, .policy-content li { font-size: 14px; line-height: 1.65; }
.policy-content ul { padding-left: 22px; }

@media (max-width: 980px) {
  .hero-grid { min-height: 620px; grid-template-columns: 1fr 390px; }
  .hero-point { padding-inline: 13px; font-size: 11.5px; }
  .point-icon { width: 30px; height: 30px; }
  .director-card { min-width: 275px; right: 0; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 148px 1fr 1fr; }
  .footer-grid address { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 620px); }
  .header-inner { min-height: 74px; }
  .site-logo, .footer-logo { width: 118px; }
  .header-actions { gap: 12px; }
  .phone small { display: none; }
  .phone strong { font-size: 14px; }
  .phone-icon { width: 19px; height: 19px; }
  .phone-icon svg { width: 18px; height: 18px; }
  .button-header { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 0 0; }
  h1 { max-width: none; font-size: clamp(24px, 7.3vw, 30px); line-height: 1.12; }
  .mobile-title-line { display: block; white-space: nowrap; }
  .hero-lead { font-size: 16px; }
  .hero-points { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 0; }
  .hero-point, .hero-point:first-child, .hero-point:last-child { display: block; padding: 0 10px; font-size: 12px; line-height: 1.2; }
  .hero-point:first-child { padding-left: 0; }
  .hero-point:last-child { padding-right: 0; }
  .hero-point + .hero-point::before { display: block; top: 5px; bottom: 0; }
  .point-icon { width: 28px; height: 28px; margin-bottom: 7px; }
  .point-icon svg { width: 16px; height: 16px; }
  .hero-button { width: 100%; min-width: 0; }
  .hero-visual { min-height: 520px; }
  .director-photo { left: 50%; right: auto; transform: translateX(-50%); width: 350px; }
  .director-card { right: 0; bottom: 42px; min-width: min(310px, 85%); }
  .benefits, .quiz-section { padding: 70px 0; }
  .section-heading h2 { font-size: clamp(24px, 7vw, 32px); }
  .section-heading > p:last-child { font-size: 14px; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .benefit-card { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px; text-align: center; }
  .benefit-icon { width: 38px; height: 38px; }
  .benefit-icon svg { width: 21px; height: 21px; }
  .benefit-card h3 { margin-bottom: 5px; font-size: 14px; }
  .benefit-card p { font-size: 12px; line-height: 1.45; }
  .quiz-embed { min-height: 480px; padding: 12px; }
  .matomba_iframe { min-height: 456px; }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; align-items: center; gap: 22px; text-align: center; }
  .footer-grid address { grid-column: auto; }
  .requisites, .footer-phone { align-items: center; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, 440px); }
  .header-inner { min-height: 68px; }
  .phone strong { font-size: 13px; }
  .hero-copy { padding-top: 38px; }
  .hero-visual { min-height: 455px; }
  .director-card { padding: 14px 16px; }
  .director-card strong { font-size: 13px; }
  .section-heading { margin-bottom: 28px; }
  .benefit-card { padding: 14px 8px; }
  .benefit-card h3 { font-size: 13px; }
  .benefit-card p { font-size: 11.5px; }
  .quiz-embed { min-height: 520px; }
  .matomba_iframe { min-height: 496px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .dialog-header { padding: 20px; }
  .policy-content { padding: 22px 20px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
