:root {
  --ink: #18322f;
  --ink-soft: #60736f;
  --paper: #f4f6f2;
  --paper-deep: #e6ece7;
  --white: #fffdfa;
  --plum: #24534f;
  --plum-deep: #dfe9e4;
  --coral: #d39b62;
  --coral-dark: #b97c43;
  --mint: #b7d5cc;
  --mint-deep: #2d756d;
  --navy: #102839;
  --line: rgba(24, 50, 47, .13);
  --shadow: 0 24px 64px rgba(38, 69, 64, .11);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --shell: min(1180px, calc(100% - 40px));
  --section-gap: 40px;
  --font: Inter, Manrope, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto }
a { color: inherit }
button, input { font: inherit }
button, a { -webkit-tap-highlight-color: transparent }
:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 4px }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--plum);
  border-radius: 8px;
}
.skip-link:focus { width: auto; height: auto; overflow: visible; clip-path: none }
.shell { width: var(--shell); margin-inline: auto }
.page-stack { display: grid; gap: var(--section-gap) }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  letter-spacing: 0;
}
.kicker.light { color: var(--ink-soft) }

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px) }
.button-primary { color: var(--white); background: var(--mint-deep); box-shadow: 0 14px 30px rgba(45, 117, 109, .2) }
.button-primary:hover { background: var(--coral-dark) }
.button-secondary { color: var(--plum); background: var(--mint) }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-weight: 750; text-decoration: none }
.text-link.dark { color: var(--plum) }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px 0 32px;
  color: var(--ink);
  background: #edf3ef;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 230px;
  top: 150px;
  left: -190px;
  background: repeating-linear-gradient(135deg, rgba(45,117,109,.08) 0 1px, transparent 1px 18px);
  clip-path: polygon(8% 0, 100% 0, 86% 100%, 0 76%);
  transform: rotate(-7deg);
}
.site-header {
  display: grid;
  grid-template-columns: 218px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 11px 14px 11px 18px;
  background: rgba(255, 253, 249, .96);
  color: var(--ink);
  border-radius: 22px;
  border: 1px solid rgba(24,50,47,.08);
  box-shadow: 0 12px 35px rgba(38,69,64,.09);
}
.brand img { width: 210px; height: auto }
.header-place { display: grid; gap: 7px; color: var(--ink-soft); font-size: 14px }
.header-place .eyebrow { color: var(--mint-deep); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase }
.header-place ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none }
.header-place li { white-space: nowrap }
.header-place li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; background: var(--coral); border-radius: 2px; transform: translateY(-1px) }
.header-phone { display: grid; padding: 7px 14px; text-align: right; text-decoration: none }
.header-phone span { font-size: 19px; font-weight: 900 }
.header-phone small { color: var(--ink-soft); font-size: 13px }
.header-phone i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #28bd70; border-radius: 50% }

.hero-grid { display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: 22px; padding-top: 62px }
.hero-copy { position: relative; z-index: 2; padding: 24px 0 30px }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(40px, 5vw, 70px); line-height: .98; letter-spacing: -.05em }
.hero h1 em { color: var(--mint-deep); font-style: normal }
.hero h1 mark { display: inline; padding: 0 .08em .08em; color: var(--ink); background: linear-gradient(transparent 62%, rgba(211,155,98,.38) 62%); box-decoration-break: clone; -webkit-box-decoration-break: clone }
.hero-price-line { display: inline-block; white-space: nowrap }
.hero-lead { max-width: 600px; margin: 28px 0 0; color: var(--ink-soft); font-size: 18px }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 30px }
.hero-actions .text-link { color: var(--plum) }

.hero-visual { align-self: end }
.visual-frame { position: relative; min-height: 570px }
.visual-frame::before {
  content: "";
  position: absolute;
  inset: 42px 0 0;
  background: linear-gradient(155deg, #c8ddd6, #9fc8bd);
  border-radius: 44px 14px 44px 14px;
  transform: rotate(2deg);
}
.visual-frame img { position: absolute; z-index: 2; right: -22px; bottom: 0; width: min(100%, 500px); filter: drop-shadow(0 22px 20px rgba(28, 10, 34, .25)) }
.accent-grid { position: absolute; z-index: 1; top: 52px; right: -26px; width: 290px; height: 210px; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px); background-size: 28px 28px; transform: skewY(-6deg) }
.accent-bar { position: absolute; z-index: 1; display: block; height: 12px; background: rgba(255,255,255,.58); border-radius: 3px; animation: drift 7s ease-in-out infinite }
.accent-bar-one { width: 126px; top: 118px; left: 18px; transform: rotate(-12deg) }
.accent-bar-two { width: 82px; top: 156px; left: 58px; transform: rotate(-12deg); animation-delay: -2.4s }
.accent-spark { position: absolute; z-index: 3; top: 64px; right: 18px; color: var(--white); font-size: 34px; animation: softPulse 4.6s ease-in-out infinite }
@keyframes drift { 0%,100% { translate: 0 0 } 50% { translate: 10px -7px } }
@keyframes softPulse { 0%,100% { opacity: .45; transform: scale(.9) rotate(0) } 50% { opacity: 1; transform: scale(1.08) rotate(8deg) } }
.experience-chip { position: absolute; z-index: 3; display: grid; padding: 13px 17px; border-radius: 16px; box-shadow: var(--shadow) }
.experience-chip { right: -16px; bottom: 30px; color: var(--ink); background: #ead7bf }
.experience-chip strong { font-size: 20px }
.experience-chip span { font-size: 12px }

.benefit-rail { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: -6px }
.benefit-rail article { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 17px; color: var(--ink); background: var(--white); border-radius: 18px }
.benefit-rail article:nth-child(2) { background: var(--mint) }
.benefit-rail article:nth-child(3) { background: #f2d9cd }
.benefit-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; color: var(--white); background: var(--plum); border-radius: 12px; font-weight: 900 }
.benefit-rail strong, .benefit-rail small { display: block }
.benefit-rail small { margin-top: 2px; color: var(--ink-soft) }

.quiz-section { color: var(--ink); background: var(--plum-deep); border-radius: var(--radius-lg); overflow: hidden }
.quiz-shell { display: grid; grid-template-columns: .62fr 1.38fr; gap: 48px; padding-block: 74px }
.section-intro h2 { max-width: 450px; margin: 0; font-size: clamp(38px, 4.4vw, 66px); line-height: 1; letter-spacing: -.045em }
.section-intro > p:last-child { max-width: 420px; margin: 24px 0 0; color: var(--ink-soft); font-size: 17px }
.quiz { align-self: start; display: grid; grid-template-columns: 1fr 250px; min-width: 0; color: var(--ink); background: var(--white); border-radius: 28px; box-shadow: 0 26px 70px rgba(38,69,64,.12); overflow: hidden }
.quiz-main { position: relative; min-height: 500px; padding: 32px }
.quiz-progress { display: grid; grid-template-columns: 1fr auto; gap: 10px; color: var(--ink-soft); font-size: 13px; font-weight: 750 }
.quiz-progress strong { color: var(--plum) }
.progress-track { grid-column: 1 / -1; height: 5px; overflow: hidden; background: var(--paper-deep); border-radius: 999px }
.progress-track span { display: block; width: 20%; height: 100%; background: var(--mint-deep); border-radius: inherit; transition: width .25s ease }
.quiz-step { min-width: 0; margin: 32px 0 0; padding: 0; border: 0 }
.quiz-step legend { max-width: 560px; margin: 0 0 24px; padding: 0; color: var(--plum); font-size: 26px; font-weight: 850; line-height: 1.18; letter-spacing: -.025em }
.answers { display: grid; gap: 10px }
.answers-compact { grid-template-columns: 1fr 1fr }
.answers label { cursor: pointer }
.answers input { position: absolute; opacity: 0; pointer-events: none }
.answers span { position: relative; display: flex; min-height: 58px; align-items: center; padding: 13px 48px 13px 17px; background: var(--paper); border: 1px solid transparent; border-radius: 14px; font-weight: 700; transition: background .18s ease, border .18s ease, transform .18s ease }
.answers span::after { content: ""; position: absolute; right: 16px; width: 20px; height: 20px; border: 2px solid rgba(36,83,79,.22); border-radius: 50% }
.answers label:hover span { border-color: var(--mint-deep); transform: translateX(3px) }
.answers input:focus-visible + span { outline: 3px solid var(--mint-deep); outline-offset: 2px }
.answers input:checked + span { color: var(--plum); background: rgba(126, 216, 197, .35); border-color: var(--mint-deep) }
.answers input:checked + span::after { border: 6px solid var(--mint-deep) }
.quiz-step.is-confirmed { animation: confirm .18s ease }
@keyframes confirm { 50% { transform: scale(.99); opacity: .82 } }
.quiz-back { position: absolute; left: 32px; bottom: 24px; padding: 8px 0; color: var(--ink-soft); background: transparent; border: 0; font-weight: 750; cursor: pointer }
.quiz-aside { padding: 32px 22px; background: #c8ddd6 }
.aside-label { margin: 0 0 10px; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase }
.quiz-aside h3 { margin: 0; color: var(--plum); font-size: 24px; line-height: 1.12 }
.quiz-aside > p:not(.aside-label) { margin: 10px 0 20px; color: var(--ink-soft) }
.gift-list { display: grid; gap: 12px }
.gift-list div { overflow: hidden; background: rgba(255, 253, 249, .78); border-radius: 14px }
.gift-list img { width: 100%; height: 105px; object-fit: cover }
.gift-list span { display: block; padding: 9px 11px; font-size: 12px; font-weight: 800 }
.contact-step > p { color: var(--ink-soft) }
.phone-field { display: grid; gap: 8px; margin-top: 22px; font-size: 13px; font-weight: 800 }
.phone-field input { min-height: 58px; padding: 14px 17px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 14px }
.consent { font-size: 12px; line-height: 1.45 }
.consent a { color: var(--plum); font-weight: 800 }
.form-error { min-height: 19px; color: #b72f2f; font-size: 13px; font-weight: 800 }
.contact-actions { display: flex; align-items: center; gap: 18px }
.quiz-result { margin-top: 58px; text-align: center }
.result-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; color: var(--white); background: var(--mint-deep); border-radius: 50%; font-size: 26px; font-weight: 900 }
.quiz-result h3 { margin: 0; color: var(--plum); font-size: 30px }
.quiz-result p { color: var(--ink-soft) }

.clinic-story { padding: 74px 0; background: var(--white); border-radius: var(--radius-lg) }
.story-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px 70px }
.story-heading h2 { max-width: 780px; margin: 0; font-size: clamp(38px, 4.6vw, 68px); line-height: 1; letter-spacing: -.05em }
.story-heading h2 em { color: var(--mint-deep); font-style: normal }
.story-copy { align-self: end }
.story-copy p { margin: 0 0 18px; color: var(--ink-soft); font-size: 17px }
.story-note { display: flex; align-items: end; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line) }
.story-note span { color: var(--mint-deep); font-size: 96px; font-weight: 900; line-height: .75; letter-spacing: -.08em }
.story-note p { max-width: 170px; margin: 0; color: var(--ink-soft); font-weight: 750 }
.award-section { position: relative; overflow: hidden; color: var(--white); background: var(--navy); border-radius: var(--radius-lg) }
.award-section::after { content: "2025"; position: absolute; right: -22px; bottom: -88px; color: rgba(255,255,255,.035); font-size: 240px; font-weight: 950; line-height: 1 }
.award-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 70px; padding-block: 60px }
.award-art { position: relative; max-width: 460px }
.award-visual { position: relative; min-height: 440px; overflow: hidden; padding: 34px; background: radial-gradient(circle at 68% 35%, rgba(47,101,151,.44), transparent 34%), linear-gradient(145deg,#07121d,#17395a 58%,#0b1b2a); border: 1px solid rgba(255,255,255,.14); border-radius: 28px; box-shadow: 0 28px 70px rgba(0,0,0,.28) }
.award-visual::before { content: ""; position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(98deg, transparent 0 32px, rgba(255,255,255,.18) 33px 34px, transparent 35px 68px); transform: skewX(-8deg) }
.award-brand { position: relative; z-index: 2; font-size: 16px; font-weight: 900; letter-spacing: .03em }
.award-visual strong { position: relative; z-index: 2; display: block; margin-top: 44px; font-size: clamp(48px,5vw,70px); line-height: .92; letter-spacing: -.06em }
.award-visual strong em { color: #d4aa5f; font-size: .58em; font-style: normal; letter-spacing: -.02em }
.award-pin { position: absolute; right: 28px; bottom: 32px; width: 126px; height: 160px; background: linear-gradient(145deg,#f2d58e,#aa7532); clip-path: polygon(50% 0,88% 18%,100% 52%,74% 100%,26% 100%,0 52%,12% 18%); filter: drop-shadow(0 18px 24px rgba(0,0,0,.32)); animation: awardFloat 6s ease-in-out infinite }
.award-pin i { position: absolute; top: 38px; left: 39px; width: 48px; height: 48px; background: var(--navy); clip-path: polygon(50% 0,61% 35%,98% 35%,68% 56%,79% 92%,50% 71%,21% 92%,32% 56%,2% 35%,39% 35%) }
.award-visual small { position: absolute; z-index: 2; left: 34px; bottom: 36px; padding: 10px 14px; color: #f4e3bd; background: rgba(212,170,95,.16); border: 1px solid rgba(212,170,95,.35); border-radius: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase }
@keyframes awardFloat { 0%,100% { transform: translateY(0) rotate(1deg) } 50% { transform: translateY(-9px) rotate(-1deg) } }
.award-copy h2 { max-width: 600px; margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: .96; letter-spacing: -.05em }
.award-copy > p:not(.kicker) { max-width: 620px; margin: 28px 0; color: rgba(255,253,249,.7); font-size: 17px }

.site-footer { margin-top: var(--section-gap); padding: 30px 0 22px; color: var(--white); background: #102b35 }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 50px }
.footer-links { display: grid; grid-template-columns: 1fr; align-content: start; gap: 12px }
.footer-links a { display: block; color: rgba(255,253,249,.78); font-size: 14px }
.legal-document-link { white-space: normal; overflow-wrap: anywhere }
.footer-legal { margin: 0; color: rgba(255,253,249,.58); font-size: 13px }
.footer-address, .company-details { margin: 0 }
.company-details { margin-top: 10px }
.footer-warnings { grid-column: 1 / -1; padding-top: 18px; text-align: center; border-top: 1px solid rgba(255,255,255,.12) }
.footer-warnings p { margin: 0 0 8px }
.footer-warnings p:last-child { font-size: clamp(17px, 2vw, 24px); font-weight: 850; text-transform: uppercase; line-height: 1.2 }

.cookie { position: fixed; z-index: 50; left: 18px; bottom: 18px; display: flex; width: min(470px, calc(100% - 36px)); align-items: center; gap: 16px; padding: 14px 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow) }
.cookie[hidden] { display: none }
.cookie p { margin: 0; font-size: 12px }
.cookie button { flex: 0 0 auto; padding: 8px 12px; color: var(--white); background: var(--plum); border: 0; border-radius: 9px; cursor: pointer }

@media (max-width: 1024px) {
  .site-header { grid-template-columns: 190px 1fr auto }
  .header-place { display: grid; gap: 3px }
  .header-place .eyebrow { width: max-content }
  .hero-grid { grid-template-columns: 1.05fr .95fr }
  .visual-frame { min-height: 500px }
  .experience-chip { right: 0 }
  .quiz-shell { grid-template-columns: 1fr; gap: 34px }
  .section-intro h2 { max-width: 760px }
  .quiz { grid-template-columns: 1fr 260px }
}

@media (max-width: 768px) {
  :root { --shell: min(100% - 28px, 680px) }
  .hero { padding-top: 14px; border-radius: 0 0 28px 28px }
  .site-header { grid-template-columns: 1fr auto; grid-template-areas: "brand phone" "addresses addresses"; gap: 9px 12px; padding: 9px 11px 10px }
  .brand { grid-area: brand; align-self: start }
  .brand img { width: 170px }
  .header-phone { grid-area: phone; justify-self: end; align-self: start; min-height: 42px; padding: 7px 11px; border: 1px solid rgba(45,117,109,.38); border-radius: 12px; background: #f5faf7 }
  .header-place { grid-area: addresses; padding: 8px 4px 0; border-top: 1px solid var(--line) }
  .header-place .eyebrow { font-size: 12px }
  .header-place ul { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px 12px }
  .header-place li { font-size: 14px; white-space: normal }
  .header-phone span { font-size: 15px }
  .header-phone small { font-size: 10px }
  .hero-grid { grid-template-columns: 1fr; padding-top: 38px }
  .hero-copy { padding-bottom: 0 }
  .hero h1 { font-size: clamp(38px, 10vw, 62px) }
  .hero-actions { flex-wrap: wrap }
  .visual-frame { min-height: 470px; max-width: 510px; width: 100%; margin: 0 auto }
  .benefit-rail { grid-template-columns: 1fr; margin-top: 0 }
  .benefit-rail article { min-height: 78px }
  .quiz-shell { padding-block: 58px }
  .quiz { grid-template-columns: 1fr }
  .quiz-aside { display: none }
  .quiz-main { min-height: 540px }
  .story-grid { grid-template-columns: 1fr; gap: 32px }
  .story-copy { max-width: 650px }
  .award-grid { grid-template-columns: 1fr; gap: 45px }
  .award-art { width: min(420px, 86%); margin: 0 auto }
  .award-copy { text-align: center }
  .award-copy .kicker { justify-content: center }
  .award-copy > p:not(.kicker) { margin-inline: auto }
  .footer-grid { grid-template-columns: 1fr; gap: 28px }
  .footer-warnings { text-align: center }
}

@media (max-width: 520px) {
  .site-header { grid-template-columns: 1fr auto }
  .brand img { width: 142px }
  .header-phone span { font-size: 0 }
  .header-phone span::after { content: "Позвонить"; font-size: 15px }
  .header-phone small { display: none }
  .hero-copy { padding-top: 10px }
  .hero h1 { font-size: clamp(34px, 9.2vw, 38px) }
  .hero h1 br { display: none }
  .hero h1 em, .hero h1 mark { display: inline }
  .hero-lead { font-size: 16px }
  .hero-actions { align-items: flex-start; gap: 20px }
  .hero-actions .button { width: 100% }
  .visual-frame { min-height: 390px }
  .visual-frame::before { top: 22px }
  .visual-frame img { right: -18px }
  .experience-chip { right: -4px; bottom: 14px }
  .accent-grid { width: 220px; height: 170px }
  .section-intro h2, .story-heading h2, .award-copy h2 { font-size: 38px }
  .quiz-shell { padding-block: 46px }
  .quiz-main { min-height: 480px; padding: 24px 18px 64px }
  .quiz-step legend { font-size: 23px }
  .answers-compact { grid-template-columns: 1fr }
  .answers span { min-height: 54px }
  .quiz-back { left: 18px }
  .contact-actions { align-items: stretch; flex-direction: column }
  .clinic-story { padding: 52px 0 }
  .story-note span { font-size: 78px }
  .award-grid { padding-block: 48px }
  .award-art { padding: 22px }
  .award-copy { text-align: left }
  .award-copy .kicker { justify-content: flex-start }
  .cookie { align-items: flex-start }
  .header-place ul { grid-template-columns: 1fr; gap: 3px }
  .header-place li { font-size: 14px }
  .award-art { padding: 0 }
  .award-visual { min-height: 370px; padding: 25px }
  .award-pin { width: 104px; height: 132px; right: 20px; bottom: 24px }
  .award-pin i { top: 31px; left: 32px; width: 40px; height: 40px }
  .award-visual small { left: 25px; bottom: 28px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important }
}
