/*
  Свёрстано под опубликованный figma.site (Desktop JSON export):
  — фон #05264E • Inter Light 14 • заголовки Cormorant Infant
  — герой → двухколоночный блок с именем, текстом и CTAs
  — online: двойной контур, порядок как в узлах группы 11
  — три карточки: оранжевая обводка и нижняя плашка «Записаться»
*/

:root {
  --page: #05264e;
  --plate-stroke: #ff7c89;
  --coral-text: #ff7c89;
  --coral-btn: #ff7c89;
  --orange-edge: rgb(243, 142, 1);
  --orange-bar-fill: rgb(243, 142, 1);
  --tariff-peach: #ffc289;
  --tariff-peach-hover: #ffb066;
  --tariff-cta-text: #04244d;
  --telegram: rgb(44, 163, 219);
  --cta-radius: 50px;
  --shell-max: 1280px;
  --pad-x: 64px;
  --font-infant: "Cormorant Infant", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.21;
  color: rgb(255, 255, 255);
  background: var(--page);
}

.shell {
  --shell-pad-x: clamp(24px, 11vw, 140px);
  max-width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: var(--shell-pad-x);
  /* Никаких отступов под футером: страница заканчивается нижним краем footer-изображения */
  padding-bottom: 0;
  box-sizing: border-box;
}

/* Герой-трек на всю колонну 1278 px (кроме боковых полей области 1847); выносим арт во внутреннее полотно 140 px компенсируют отступы текстов ниже как в узле Desktop. */

.intro__art {
  margin-inline: calc(-1 * var(--shell-pad-x));
  width: calc(100% + 2 * var(--shell-pad-x));
  display: block;
}

.intro__art img {
  width: 100%;
  height: auto;
  display: block;
}

.intro__grid {
  display: grid;
  /* Совпадает с дорожками `.online`: левая колонка = плашке, правая = фото → один вертикальный край текст/кнопок и фото ниже */
  grid-template-columns: minmax(0, 435px) minmax(0, 640px);
  column-gap: min(28px, 3vw);
  row-gap: 0;
  align-items: stretch;
  margin-top: clamp(28px, 5vw, 72px);
  width: 100%;
  box-sizing: border-box;
  /* Одна переменная кегля — для синхронного сдвига правого текста под верх иконки (центрированной по строке «Диана») */
  --hero-name-fs: clamp(48px, 9.2vw, 96px);
  --hero-name-line-box: calc(var(--hero-name-fs) * 1.1);
  --hero-ig-size: clamp(52px, calc(var(--hero-name-fs) * 0.78), 89px);
}

.intro__grid > .intro__primary,
.intro__grid > .intro__secondary {
  min-height: 0;
}

/* Левая колонка: IG по середине строки «Диана»; правая — первый абзац со смещением, верх строки совпадает с верхом иконки; низ подзаголовка = низ FAQ. Отступ ниже иллюстрации — через margin-top сетки. */

.intro__primary {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.intro__heading {
  flex: 1;
  margin: 0;
  padding: 0;
  color: rgb(255, 255, 255);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.intro__name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-infant);
  font-weight: 400;
  font-size: var(--hero-name-fs);
  line-height: normal;
  letter-spacing: 0;
  text-align: left;
}

.intro__name-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(10px, 2.2vw, 24px);
}

.intro__name-second {
  display: block;
}

.intro__ig {
  flex-shrink: 0;
  width: clamp(52px, 0.78em, 89px);
  height: clamp(52px, 0.78em, 89px);
  display: block;
  line-height: 0;
  color: inherit;
  text-decoration: none;
}

/* Подзаголовок: привязка к низу колонки через space-between у .intro__heading */
.intro__subtitle {
  display: block;
  margin-top: 0;
  font-family: var(--font-infant);
  font-weight: 400;
  font-size: clamp(18px, 2.8vw, 24px);
  line-height: normal;
  letter-spacing: 0;
  text-align: left;
}

.intro__ig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 920px) {
  .intro__grid {
    grid-template-columns: 1fr;
    margin-top: clamp(22px, 7vw, 48px);
    margin-inline: 0;
    width: 100%;
  }

  .intro__secondary {
    order: 2;
    margin-top: 8px;
    height: auto;
  }

  .intro__heading {
    flex: none;
    min-height: 0;
    justify-content: flex-start;
    gap: 16px;
    padding-top: 12px;
  }

  .intro__primary {
    display: block;
  }

  .intro__secondary__cta {
    flex: 0 0 auto;
    margin-block: 12px;
  }
}

.intro__secondary {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 0;
}

/* Тексты — сверху; кнопка Telegram — по вертикали по центру зазора до «Частые вопросы» */
.intro__secondary__lead {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 921px) {
  /* Абзацы опущены так, чтобы верх первой строки ≈ верх IG (формула центрирования иконки в строке имени) */
  .intro__secondary__lead {
    padding-top: max(0px, calc((var(--hero-name-line-box) - var(--hero-ig-size)) * 0.5));
  }
}

.intro__secondary__cta {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 0;
}

.intro__secondary__cta .cta-tg {
  width: 100%;
}

.intro__text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0;
  text-align: left;
}

.cta-tg {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 41px;
  padding: 10px 16px;
  background: rgb(44, 163, 219);
  color: rgb(255, 255, 255);
  text-decoration: none;
  border-radius: var(--cta-radius);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.cta-tg__icon {
  display: flex;
}

.cta-tg__icon img {
  width: 28px;
  height: auto;
}

.cta-tg:hover {
  filter: brightness(1.05);
}

.intro__faq {
  flex: 0 0 auto;
  margin: 0;
  padding: 16px 0 0;
  text-align: center;
  font-family: var(--font-infant);
  font-size: 24px;
  line-height: 29px;
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.intro__faq:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Online ——— */

.online {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 435px) minmax(0, 640px);
  column-gap: min(28px, 3vw);
  align-items: start;
}

@media (max-width: 920px) {
  .online {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    row-gap: 8px;
  }

  .online__photo-wrap {
    order: -1;
  }
}

.online__frame {
  min-height: clamp(460px, 78vw, 564px);
  border: 2px solid var(--plate-stroke);
  padding: 32px clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}

.popular-line {
  margin: 0 0 20px;
  font-family: var(--font-infant);
  font-size: clamp(30px, 4.5vw, 40px);
  line-height: 1;
  font-weight: 400;
  color: var(--coral-text);
}

.online__heading {
  margin: 0 0 20px;
  font-family: var(--font-infant);
  font-size: 24px;
  font-weight: 400;
  line-height: 29px;
  color: rgb(255, 255, 255);
}

.online-price {
  margin: 0 0 20px;
}

.online-price__major {
  margin: 0;
  font-family: var(--font-infant);
  font-size: 40px;
  line-height: 1;
  color: var(--coral-text);
}

.online-price__minor {
  margin: 7px 0 0;
  font-family: var(--font-infant);
  font-size: clamp(18px, 2.8vw, 23px);
  line-height: 1;
  color: var(--coral-text);
}

.online__lead {
  margin: 0 0 20px;
  font-weight: 300;
}

.online__frame > .list-light {
  margin: 0;
}

.list-light {
  margin: 0 0 22px;
  padding-left: 1.06rem;
  font-weight: 300;
}

.list-light li {
  margin-bottom: 8px;
}

.list-light--tight {
  margin-bottom: 16px;
}

.list-light li::marker {
  font-size: 0.74em;
  color: rgba(255, 255, 255, 0.4);
}

.cta-coral-full {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  background: var(--coral-btn);
  color: var(--tariff-cta-text);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  border-radius: var(--cta-radius);
}

.cta-coral-full:hover {
  filter: brightness(1.05);
}

.online__photo-wrap {
  margin: 0;
  width: 100%;
  max-width: 640px;
}

.online__photo {
  display: block;
}

@media (max-width: 920px) {
  .online__photo-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .online__photo {
    margin-inline: auto;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 557 / 564;
    object-fit: contain;
    object-position: center;
  }
}

@media (min-width: 921px) {
  .online__photo {
    margin-inline: 0;
    width: 100%;
    min-height: min(564px, 120vw);
    max-height: 564px;
    object-fit: cover;
    object-position: center;
  }
}

/* ——— Карточки тарифов (мастер: Figma / Tailwind, персик #ffc289) ——— */

.tariffs {
  margin-top: clamp(28px, 5vw, 44px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  align-items: stretch;
}

@media (max-width: 959px) {
  .tariffs {
    grid-template-columns: minmax(0, 432px);
    justify-content: center;
  }
}

.tariffs .card-tariff {
  border: 0.757px solid var(--tariff-peach);
  padding: 20px 30px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  height: 100%;
  background: transparent;
  box-sizing: border-box;
}

.tariffs .card-tariff__name {
  margin: 0 0 clamp(14px, 2.8vw, 19px);
  padding-top: 0;
  font-family: var(--font-infant);
  font-size: 18.172px;
  font-weight: 400;
  line-height: normal;
  color: rgb(255, 255, 255);
}

.tariffs .card-tariff__sums {
  margin: 0 0 clamp(14px, 2.5vw, 18px);
  padding-top: 0;
}

.tariffs .card-tariff__lari {
  margin: 0;
  font-family: var(--font-infant);
  font-size: 30.286px;
  font-weight: 600;
  line-height: normal;
  color: var(--tariff-peach);
}

.tariffs .card-tariff__alt {
  margin: 11px 0 0;
  font-family: var(--font-infant);
  font-size: 15.143px;
  font-weight: 600;
  line-height: normal;
  color: var(--tariff-peach);
}

.tariffs .card-tariff__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.8vw, 19px);
  min-height: 0;
}

.tariffs .card-tariff__body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10.6px;
  line-height: normal;
  color: rgb(255, 255, 255);
}

.tariffs .card-tariff__list {
  margin: 0;
  padding-left: 22px;
  list-style-type: disc;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10.6px;
  line-height: normal;
  color: rgb(255, 255, 255);
}

.tariffs .card-tariff__list li {
  margin-bottom: clamp(12px, 2.4vw, 18px);
  padding-left: 2px;
}

.tariffs .card-tariff__list li:last-child {
  margin-bottom: 0;
}

.tariffs .card-tariff__list li::marker {
  font-size: 0.9em;
  color: rgb(255, 255, 255);
}

.tariffs .cta-bar-orange {
  margin-top: clamp(10px, 2.2vw, 16px);
  align-self: center;
  flex-shrink: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(268.788px, 100%);
  height: 31.043px;
  padding: 0 14px;
  background: var(--tariff-peach);
  border: none;
  color: var(--tariff-cta-text) !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.114px;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--cta-radius);
  transition:
    background-color 200ms ease,
    transform 120ms ease,
    box-shadow 200ms ease;
}

.tariffs .cta-bar-orange:hover {
  background: var(--tariff-peach-hover);
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.12),
    0 4px 6px -4px rgb(0 0 0 / 0.08);
}

.tariffs .cta-bar-orange:active {
  transform: scale(0.98);
}

@media (max-width: 959px) {
  .tariffs .card-tariff__body,
  .tariffs .card-tariff__list {
    font-size: 12px;
  }
}

/* ——— Прижатый текстовый футер ——— */

.footer-faq {
  margin-top: clamp(56px, 9vw, 96px);
  padding-bottom: 24px;
}

.footer-faq__display {
  margin: 0 0 24px;
  font-family: var(--font-infant);
  font-size: clamp(52px, 11vw, 96px);
  line-height: 1.06;
  font-weight: 400;
  color: rgb(255, 255, 255);
}

.faq-acc {
  margin-top: 8px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-acc__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-acc__item:last-child {
  border-bottom: none;
}

.faq-acc__summary {
  cursor: pointer;
  list-style: none;
  padding: clamp(14px, 2.4vw, 18px) 40px clamp(14px, 2.4vw, 18px) clamp(16px, 2.5vw, 22px);
  font-family: var(--font-infant);
  font-size: 24px;
  line-height: 1.14;
  font-weight: 400;
  position: relative;
  color: rgb(255, 255, 255);
  outline: none;
}

.faq-acc__summary::-webkit-details-marker {
  display: none;
}

.faq-acc__summary::after {
  content: "";
  position: absolute;
  right: clamp(14px, 2.5vw, 20px);
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.42rem;
  border-right: 2px solid rgba(246, 244, 240, 0.6);
  border-bottom: 2px solid rgba(246, 244, 240, 0.6);
  transform: rotate(45deg);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-acc__item[open] .faq-acc__summary::after {
  transform: rotate(-135deg);
  margin-top: -0.2rem;
}

.faq-acc__summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-acc__summary:focus-visible {
  box-shadow: inset 0 0 0 2px rgb(44, 163, 219);
}

.faq-acc__body {
  padding: 4px clamp(18px, 3vw, 28px) clamp(18px, 3vw, 26px);
  font-weight: 300;
}

.faq-acc__body p {
  margin: 0 0 0.72em;
}

.faq-acc__body p:last-child {
  margin-bottom: 0;
}

/* ——— Нижняя иллюстрация + подпись ——— */

.site-footer {
  margin-top: clamp(40px, 8vw, 88px);
  margin-bottom: 0;
  margin-inline: calc(-1 * var(--shell-pad-x));
  width: calc(100% + 2 * var(--shell-pad-x));
}

.site-footer__frame {
  position: relative;
  display: block;
  overflow: hidden;
}

.site-footer__img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(48%, 260px);
  background: linear-gradient(to top, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.35) 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.site-footer__credit {
  position: absolute;
  left: 50%;
  bottom: 20px;
  top: auto;
  right: auto;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  width: max-content;
  max-width: min(92%, 420px);
  text-align: center;
  font-family: var(--font-infant);
  font-size: clamp(0.875rem, 2.35vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.06em;
  color: #04244d;
  z-index: 2;
}

::selection {
  background: rgb(239, 200, 80);
  color: rgb(1, 20, 40);
}
