/* ============================================================
   Центр экспертной ортодонтии — статическая вёрстка по макету Figma
   Дизайн-токены + все стили + адаптив
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&display=swap');

:root {
  /* цвета */
  --dark: #14203a;
  --text-2: #5c6b85;
  --muted: #9aa7bd;
  --green: #4fb55e;
  --green-2: #3c9c4b;
  --green-bg: #e9f7ec;
  --blue: #1560e0;
  --blue-bg: #eaf2fe;
  --surface: #f4f8ff;
  --card: #ffffff;
  --border: #e8eef7;

  --footer-bg: #14203a;
  --footer-text: #c7d2e6;
  --footer-muted: #7a828b;
  --footer-link: #9aa2ab;
  --footer-fine: #5c6670;

  /* градиенты */
  --grad-blue: linear-gradient(140deg, #1560e0 0%, #18b4dc 100%);
  --grad-cta: linear-gradient(150deg, #1560e0 0%, #082f79 100%);
  --grad-doctor: linear-gradient(160deg, #eaf2fe 0%, #dce9ff 100%);

  /* сетка / радиусы */
  --container: 1200px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding-inline: 24px; }

.section { padding-block: 76px; background: var(--surface); }
.section--plain { background: #fff; }

.eyebrow { color: var(--blue); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.sec-head__title { font-size: 36px; font-weight: 800; line-height: 1.15; color: var(--dark); }
.sec-head__sub { margin-top: 12px; font-size: 18px; font-weight: 500; color: var(--text-2); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-sm);
  background: var(--green); color: #fff; font-weight: 700; font-size: 18px; line-height: 1;
  white-space: nowrap; overflow: hidden;
  transition: transform .18s ease, box-shadow .22s ease, background .18s ease;
}
.btn::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 90%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.btn:hover { background: #46a854; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79,181,94,.42); }
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(0) scale(.985); }
.btn--lg { padding: 22px 40px; font-size: 20px; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 15px; border-radius: 12px; }
.btn:disabled { background: #c3ccd6; box-shadow: none; transform: none; cursor: not-allowed; }
.btn:disabled::before { display: none; }

/* ---------- Шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.header { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 13px; }
.logo__badge { width: 50px; height: 50px; flex: none; border-radius: 12px; display: block; }
.logo__name { display: block; font-size: 17px; font-weight: 800; color: var(--dark); line-height: 1.15; }
.logo__city { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.logo > span { display: block; }
.header__info { display: flex; align-items: center; gap: 33px; }
.info-item { display: flex; align-items: center; gap: 10px; }
.info-item__ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--blue-bg); display: grid; place-items: center; color: var(--blue); }
.info-item__label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.info-item__val { font-size: 12px; font-weight: 500; color: var(--dark); }
.info-item__val--phone { font-size: 16px; font-weight: 800; }
.info-item__lines { font-size: 12px; font-weight: 500; color: var(--dark); }
.info-item__lines span { display: block; }
.header__actions { display: flex; align-items: center; gap: 33px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero__inner { position: relative; min-height: 600px; display: flex; align-items: center; padding-block: 56px 0; }
.hero__title { font-size: 46px; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; }
.hero__title .g { color: var(--green-2); }
.hero__copy { position: relative; z-index: 2; max-width: 690px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.price { display: inline-flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 14px 22px; box-shadow: 0 10px 30px rgba(20,32,58,.06); }
.price__label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.price__old { font-size: 19px; font-weight: 700; color: var(--muted); text-decoration: line-through; }
.price__new { font-size: 30px; font-weight: 800; color: var(--green-2); }
.price-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.price-row__braces { height: 84px; width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 11px 14px; box-shadow: 0 6px 18px rgba(20,32,58,.05); }
.chip__ic { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--blue-bg); display: grid; place-items: center; color: var(--blue); }
.chip__txt { font-size: 15px; font-weight: 700; color: var(--dark); max-width: 145px; line-height: 1.2; }
.hero__visual { position: absolute; top: 0; bottom: 0; right: -80px; width: 660px; pointer-events: none; z-index: 1; }
.hero__circle { position: absolute; top: 40%; right: 60px; transform: translateY(-50%); width: 470px; height: 470px; border-radius: 50%; background: rgba(79,181,94,.20); z-index: 1; }
.hero__photo { position: absolute; right: 40px; bottom: 0; height: 560px; width: auto; object-fit: contain; object-position: bottom center; z-index: 2; }

/* ---------- Карточки ---------- */
.b-card { display: flex; align-items: flex-start; gap: 16px; height: 100%; background: #fff; border-radius: 22px; padding: 26px 24px; border: 1px solid var(--border); }
.b-card__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--green-bg); color: var(--green-2); display: grid; place-items: center; }
.b-card__title { font-size: 18px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.b-card__desc { margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--text-2); line-height: 1.35; }
.f-card { display: flex; align-items: flex-start; gap: 18px; background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 12px 32px rgba(20,32,58,.06); }
.f-card__ic { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--grad-blue); color: #fff; display: grid; place-items: center; }
.f-card__title { font-size: 19px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.f-card__desc { margin-top: 5px; font-size: 15.5px; font-weight: 500; color: var(--text-2); line-height: 1.4; }

/* ---------- Слайдер программы ---------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; cursor: grab; padding: 6px 2px; margin: -6px -2px; }
.slider__viewport.is-drag { cursor: grabbing; }
.slider__nudge { will-change: transform; }
.slider__track { display: flex; gap: 24px; transition: transform .48s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.slider__track.no-anim { transition: none; }
.slide { flex: 0 0 322px; }
.slide, .slide * { user-select: none; -webkit-user-drag: none; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.slider__arrow { width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--dark); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(20,32,58,.08); transition: box-shadow .22s ease, transform .2s ease, background .2s ease; }
.slider__arrow:hover { box-shadow: 0 14px 30px rgba(20,32,58,.20); transform: translateY(-2px); background: #fff; }
.slider__arrow:active { transform: translateY(0) scale(.95); }
.slider__arrow:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; transform: none; }
.slider__dots { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cdd7e6; transition: width .25s ease, background .25s ease; }
.dot--active { width: 26px; border-radius: 5px; background: var(--green); }
@keyframes nudge { 0% { transform: translateX(0); } 22% { transform: translateX(-26px); } 55% { transform: translateX(7px); } 100% { transform: translateX(0); } }
.slider__nudge.is-hint { animation: nudge 1.05s ease; }

/* Раскладка блока «Что входит»: desktop — сетка 2×2 + CTA справа */
.program__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: stretch; }
.program__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.program__slider { display: none; }

/* CTA-карточка программы */
.cta-card { background: var(--grad-cta); color: #fff; border-radius: 22px; padding: 34px; box-shadow: 0 26px 54px rgba(21,96,224,.30); display: flex; flex-direction: column; justify-content: center; }
.cta-card__title { font-size: 26px; font-weight: 800; line-height: 1.2; }
.cta-card .btn { margin-top: 20px; }
.cta-card__note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.cta-card__note svg { flex: none; }

/* ---------- Квиз ---------- */
.quiz { background: #fff; padding-block: 48px; }
.quiz .container { display: flex; justify-content: center; }

/* ---------- Секция «Почему» ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0,1fr) 520px; gap: 44px; align-items: stretch; }
.why__list { display: flex; flex-direction: column; gap: 18px; }
.why__doctor { border-radius: 26px; overflow: hidden; background: var(--grad-doctor); min-height: 399px; }
.why__doctor img { width: 100%; height: 100%; min-height: 399px; object-fit: cover; object-position: 50% 30%; }
.why__cta { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- Футер ---------- */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 30px; }
.footer__top { display: flex; justify-content: space-between; gap: 36px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.footer .logo__name { color: #fff; }
.footer .logo__city { color: var(--footer-text); }
.footer__addr { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.footer__desc { font-size: 15px; line-height: 1.5; color: var(--footer-text); }
.footer__contacts { min-width: 180px; display: flex; flex-direction: column; gap: 10px; }
.footer__contacts h4 { font-size: 16px; font-weight: 700; color: #fff; }
.footer__contacts a, .footer__contacts span { font-size: 15px; color: var(--footer-text); }
.footer__divider { height: 1px; background: rgba(255,255,255,.14); margin: 24px 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__copy { font-size: 13px; color: var(--footer-muted); line-height: 1.7; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 13px; color: var(--footer-link); transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__fine { margin-top: 22px; text-align: center; font-size: 13px; color: var(--footer-fine); line-height: 1.7; }
.footer__fine b { display: block; font-weight: 500; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .slider__nudge.is-hint { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero__title { font-size: 40px; }
  .sec-head__title, .why .sec-head__title { font-size: 32px; }
  .header__info { gap: 20px; }
}

@media (max-width: 900px) {
  .section { padding-block: 56px; }
  .header__info { display: none; }
  .program__layout { display: block; }
  .program__grid { display: none; }
  .program__slider { display: block; }
  .cta-card { margin: 44px auto 0; max-width: 560px; }
  .hero__inner { flex-direction: column; min-height: auto; padding-block: 24px 0; }
  .hero__copy { order: 2; max-width: 100%; padding-bottom: 32px; }
  .hero__visual { order: -1; position: relative; right: auto; top: auto; bottom: auto; width: 100%; height: 340px; margin-bottom: 4px; }
  .hero__circle { right: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 320px; height: 320px; }
  .hero__photo { right: auto; left: 50%; bottom: 0; transform: translateX(-50%); height: 340px; }
  .why__grid { grid-template-columns: 1fr; }
  .why__doctor { min-height: 300px; }
  .footer__top { flex-direction: column; gap: 24px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .header { gap: 8px; }
  .logo__badge { width: 42px; height: 42px; }
  .logo__name { font-size: 14px; max-width: 190px; }
  .hero__inner { padding-block: 16px 0; }
  .hero__title { font-size: 27px; line-height: 1.14; }
  .hero__copy { gap: 18px; padding-bottom: 24px; }
  .hero__visual { height: 300px; }
  .hero__circle { width: 270px; height: 270px; }
  .hero__photo { height: 300px; }
  .chip__txt { max-width: none; }
  .price-row__braces { display: none; }
  .sec-head { margin-bottom: 28px; }
  .sec-head__title { font-size: 24px; }
  .sec-head__sub { font-size: 15px; }
  .b-card, .f-card { padding: 20px; }
  .slide { flex-basis: 84%; }
  .cta-card { padding: 26px 22px; }
  .cta-card__title { font-size: 22px; }
  .hero__cta.btn, .why__cta .btn { width: 100%; }
  .btn--lg { white-space: normal; font-size: 17px; padding: 16px 22px; line-height: 1.25; text-align: center; }
  .footer__bottom { flex-direction: column; }
  .footer__links { flex-direction: column; gap: 10px; }
  .quiz { padding-block: 32px; }
}


.modal-call {
  border-radius: 20px;
  padding: 20px;
  max-width: 500px;
  width: 100%;
}

.modal-call__title {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
}

.modal-call__body {

}

.modal-call input {
  border: none;
  width: 100%;
  display: flex;
  outline: none;
  border: 1px solid #e2e2e2;
  padding: 10px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 15px;
}

.modal-call__btn {
  width: 100%;
  margin-top: 20px;
}

.modal-call__desc {
  text-align: center;
}

.modal-call__info {
  font-size: 14px;
  line-height: normal;
  margin-top: 12px;
}

.modal-call__info a {
  text-decoration: underline;
}