/* ============================================================================
   ОФОРМЛЕНИЕ САЙТА. Тексты здесь не хранятся — они в файле content.js.
   Этот файл менять не нужно.

   Шрифты: Unbounded — заголовки, Onest — текст,
           Playfair Display — «элегантный» шрифт для эмоций и сертификата.
   Палитра: Pantone 310–323, опорный оттенок 321.
   ============================================================================ */

:root {
  --deep:  #004851;  /* глубокий тил — текст, футер            */
  --main:  #007377;  /* основной — кнопки, акценты             */
  --aqua:  #00A0C6;  /* живой аква — hover, ссылки             */
  --mint:  #CFE5E4;  /* светлая мята — фоны секций             */
  --bg:    #F6FAF9;  /* общий фон                              */
  --stone: #EAEDED;  /* лаконичный серый — карточки документов */
  --muted: #5C7B7D;  /* вторичный текст                        */

  --line:      rgba(0, 72, 81, .14);
  --line-soft: rgba(0, 72, 81, .08);

  --elegant: "Playfair Display", "Iowan Old Style", Georgia, serif;

  --r-lg: 20px;
  --r-md: 16px;

  --pad: 24px;
  --max: 1180px;

  --header-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--deep);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: "Unbounded", "Onest", -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5.2vw, 54px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; }

p { margin: 0; }

/* Браузер по умолчанию даёт figure и blockquote отступ 40px по бокам — убираем */
figure, blockquote, ul, ol { margin: 0; padding: 0; }

a { color: var(--main); text-decoration-color: rgba(0, 115, 119, .35); text-underline-offset: 3px; }
a:hover { color: var(--aqua); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Текст между *звёздочками* в content.js */
.accent {
  font-family: var(--elegant);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}
h1 .accent, h2 .accent { font-size: 1.06em; }

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

.overline {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--main); color: #fff; }
.btn--primary:hover { background: var(--aqua); color: #fff; }

.btn--ghost { background: transparent; color: var(--deep); border-color: var(--line); }
.btn--ghost:hover { background: #fff; border-color: var(--main); color: var(--main); }

.btn--light { background: #fff; color: var(--deep); border-color: var(--line); }
.btn--light:hover { background: var(--aqua); color: #fff; border-color: var(--aqua); }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 250, 249, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--deep); margin-right: auto; }
.brand__name { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.brand__role {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-top: 3px;
  max-width: 34ch;
}
.brand:hover .brand__name { color: var(--main); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.nav__link:hover { background: var(--mint); color: var(--deep); }
.nav__link[aria-current="page"] { background: var(--mint); color: var(--deep); }

.header-cta { flex: none; min-height: 44px; padding: 10px 22px; font-size: 16px; }

.burger {
  display: none;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  color: var(--deep);
  flex: none;
}
.burger:hover { border-color: var(--main); color: var(--main); }
.burger__bars { display: block; width: 20px; height: 14px; position: relative; }
.burger__bars::before, .burger__bars::after, .burger__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.burger__bars::before { top: 0; }
.burger__bars span { top: 6px; }
.burger__bars::after { bottom: 0; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span { opacity: 0; }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Плавающая кнопка «Записаться» ---------- */

.float-cta {
  position: fixed; right: 28px; bottom: 28px; z-index: 55;
  box-shadow: 0 10px 30px rgba(0, 72, 81, .18);
}

/* ---------- Секции ---------- */

.section { padding: clamp(40px, 5.5vw, 76px) 0; }
.section--tight { padding: clamp(28px, 3.5vw, 48px) 0; }
.section--flush-top { padding-top: 0; }
.section--mint { background: var(--mint); }

.section__head { max-width: 720px; margin-bottom: clamp(22px, 3vw, 34px); }
.section__head .lead { margin-top: 16px; }

/* ---------- Первый экран ---------- */

.hero { padding: clamp(28px, 4vw, 60px) 0 clamp(40px, 5vw, 72px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__text > * + * { margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--mint);
  aspect-ratio: 4 / 5;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Чем могу быть полезна ---------- */

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.benefit {
  display: flex; gap: 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(0, 72, 81, .1);
  border-radius: var(--r-md);
  padding: clamp(22px, 2.6vw, 30px);
}
.benefit__num {
  flex: none;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: var(--main);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--main);
  border-radius: 50%;
}
.benefit__text { font-size: 17px; line-height: 1.6; }

/* Седьмой пункт-вывод */
.conclusion {
  margin: 20px auto 0;
  max-width: 800px;
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 38px);
  background: #fff;
  border: 1px solid var(--main);
  border-radius: var(--r-md);
  text-align: center;
}
.conclusion__text {
  font-family: var(--elegant);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.45;
  text-wrap: balance;
}
.conclusion .btn { margin-top: 18px; min-height: 46px; padding: 11px 24px; font-size: 16px; }

/* ---------- Отзывы ---------- */

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.8vw, 32px);
}
.review__head { display: block; margin-bottom: 16px; }

.review__avatar {
  width: 66px; height: 66px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mint);
  color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--elegant);
  font-size: 26px;
  line-height: 1;
}
.review__avatar--photo { background: none; }
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__avatar--empty { color: var(--muted); }
.review__avatar--empty svg { width: 34px; height: 34px; }

.review__name {
  margin-top: 14px;
  font-family: "Unbounded", sans-serif; font-weight: 500;
  font-size: 19px; line-height: 1.25; letter-spacing: -0.01em;
}
.review__term { margin-top: 4px; font-size: 14px; color: var(--muted); }

.stars { display: flex; gap: 4px; margin-top: 12px; color: #E3A13C; font-size: 18px; line-height: 1; }

.review__text { font-size: 17px; line-height: 1.65; color: var(--muted); }
.review__text p + p { margin-top: 13px; }

/* Стена отзывов: колонки раскладывает site.js, выравнивая их по высоте */
.reviews__wall {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.reviews__col { display: grid; gap: 20px; align-content: start; }

.invite {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 28px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px dashed var(--main);
  border-radius: var(--r-lg);
  background: rgba(0, 115, 119, .05);
}
.invite__text { flex: 1 1 380px; }
.invite h3 { font-family: var(--elegant); font-style: italic; font-weight: 500; }
.invite p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.invite .btn { flex: none; }

/* ---------- Форма отзыва ---------- */

.otzyv-form {
  display: none;
  margin-top: 16px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.otzyv-form.is-open { display: block; }

.otzyv-form__field { margin-bottom: 18px; }
.otzyv-form__label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted);
}
.otzyv-form__hint { text-transform: none; letter-spacing: 0; opacity: .8; }

.otzyv-form__input {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 17px;
  color: var(--deep);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s ease, background-color .2s ease;
}
.otzyv-form__input:hover { border-color: rgba(0, 72, 81, .28); }
.otzyv-form__input:focus { background: #fff; border-color: var(--main); outline: none; }
.otzyv-form__input:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.otzyv-form__area { resize: vertical; min-height: 140px; line-height: 1.6; }

/* ловушка для роботов — человек её не видит */
.otzyv-form__trap {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; opacity: 0;
}

.otzyv-form__stars { border: 0; padding: 0; margin: 0 0 18px; }
/* звёзды идут в разметке от 5 к 1, поэтому подсвечиваем «себя и соседей справа» */
.otzyv-form__stars-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.otzyv-form__stars-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.otzyv-form__star {
  font-size: 30px; line-height: 1; cursor: pointer;
  color: rgba(0, 72, 81, .20);
  transition: color .15s ease;
}
.otzyv-form__stars-row input:checked ~ .otzyv-form__star,
.otzyv-form__star:hover,
.otzyv-form__star:hover ~ .otzyv-form__star { color: #E3A13C; }
.otzyv-form__stars-row input:focus-visible + .otzyv-form__star {
  outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px;
}

.otzyv-form__consent { font-size: 14px; line-height: 1.5; color: var(--muted); }
.otzyv-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.otzyv-form__message { margin-top: 14px; font-size: 16px; min-height: 1.4em; }
.otzyv-form__message.is-ok { color: var(--main); font-weight: 500; }
.otzyv-form__message.is-error { color: #B4452F; }

/* ---------- Страница модерации ---------- */

.mod { max-width: 820px; margin: 0 auto; }
.mod__login { max-width: 420px; }
.mod__login .otzyv-form__input { margin-bottom: 14px; }
.mod__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mod__count { font-size: 16px; color: var(--muted); }
.mod__card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 26px);
  margin-bottom: 16px;
}
.mod__card.is-new { border-color: var(--main); border-width: 2px; }
.mod__status {
  display: inline-block; margin-bottom: 12px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em;
}
.mod__status.is-new { background: var(--main); color: #fff; }
.mod__status.is-live { background: var(--mint); color: var(--deep); }
.mod__who { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 18px; }
.mod__meta { font-size: 14px; color: var(--muted); margin-top: 3px; }
.mod__stars { color: #E3A13C; font-size: 17px; margin-top: 8px; letter-spacing: 2px; }
.mod__text { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.mod__text p + p { margin-top: 10px; }
.mod__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.mod__actions .btn { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.btn--danger { background: transparent; color: #B4452F; border-color: rgba(180, 69, 47, .35); }
.btn--danger:hover { background: #B4452F; color: #fff; border-color: #B4452F; }
.mod__edit { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.mod__edit[hidden] { display: none; }
.mod__row { display: flex; flex-wrap: wrap; gap: 12px; }
.mod__row .otzyv-form__field { flex: 1 1 200px; margin-bottom: 12px; }

/* ---------- Финальный призыв ---------- */

.cta-band {
  background: var(--deep);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band__text {
  margin: 0 auto;
  max-width: 620px;
  color: rgba(255, 255, 255, .88);
  font-family: var(--elegant);
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.5;
}
.cta-band h2 + .cta-band__text { margin-top: 18px; }
.cta-band .btn { margin-top: 32px; }
.cta-band .btn--primary { background: #fff; color: var(--deep); }
.cta-band .btn--primary:hover { background: var(--aqua); color: #fff; }

/* ---------- Обо мне ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about__photo { border-radius: var(--r-lg); overflow: hidden; background: var(--mint); aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.path { margin-top: clamp(24px, 3vw, 34px); border-top: 1px solid var(--line); }
.path__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 4px 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.path__year {
  font-family: "Unbounded", sans-serif; font-weight: 500;
  font-size: 16px; color: var(--main); letter-spacing: -0.01em;
}
.path__place {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}
.path__program { margin-top: 7px; font-size: 17px; line-height: 1.45; }

.manifesto {
  max-width: 840px; margin: 0 auto;
  text-align: center;
  font-family: var(--elegant);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.58;
}
.manifesto p + p { margin-top: 18px; }
.manifesto p:first-child {
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.2;
  font-style: italic;
  margin-bottom: 6px;
}

.edu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.edu-card {
  display: flex; flex-direction: column;
  padding: 0;
  background: var(--stone);
  border: 1px solid rgba(0, 72, 81, .12);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: var(--deep);
  cursor: zoom-in;
  transition: transform .22s ease, border-color .22s ease;
}
.edu-card:hover { transform: translateY(-3px); border-color: var(--main); }
.edu-card__thumb { background: #fff; border-bottom: 1px solid rgba(0, 72, 81, .1); aspect-ratio: 4 / 3; overflow: hidden; }
.edu-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.edu-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.edu-card__program { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.edu-card__place { font-size: 15px; color: var(--muted); line-height: 1.5; }
.edu-card__hours { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgba(0, 72, 81, .6); }

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0, 72, 81, .92);
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  width: auto; height: auto;
  border-radius: 8px;
  background: #fff;
}
.lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  font-size: 24px; line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: #fff; color: var(--deep); }

/* ---------- Программы ---------- */

.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.program {
  display: flex; flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
}
.program--featured { border: 2px solid var(--main); }
.program__badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
}
/* Своя, более мелкая ступень: общий размер h2 не влезает в узкую карточку */
.program__title { font-size: clamp(20px, 1.9vw, 25px); }
.program__price { margin-top: 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.program__cost { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 26px; color: var(--main); letter-spacing: -0.01em; }
.program__dur { font-size: 15px; color: var(--muted); }
.program__list { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 12px; }
.program__list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.55; }
.program__list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--aqua);
}

/* ---------- Подарочный сертификат ---------- */

.gift {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--deep);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 60px);
}
.gift__title { color: #fff; font-family: var(--elegant); font-style: italic; font-weight: 500; }
.gift__lead {
  margin-top: 16px;
  color: rgba(255, 255, 255, .86);
  font-family: var(--elegant);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  max-width: 460px;
}
.gift .btn { margin-top: clamp(24px, 3vw, 32px); }
.gift__photo img {
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
  border-radius: 14px;
  /* светлая обводка, иначе бирюзовый сертификат сливается с тёмным фоном */
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .32);
}

/* ---------- С чем работаю ---------- */

.focus-list { border-top: 1px solid var(--line); }
.focus-row {
  display: grid;
  grid-template-columns: minmax(200px, 4fr) minmax(0, 6fr);
  gap: 12px 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.focus-row__topic { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.3; letter-spacing: -0.01em; }
.focus-row__details { color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ---------- Контакты ---------- */

.contacts__head { max-width: 680px; margin: 0 auto; text-align: center; }
.contacts__head .lead { margin-top: 18px; }

.contacts__art { margin: clamp(26px, 3.5vw, 40px) auto 0; text-align: center; }
.contacts__art img {
  width: min(560px, 100%);
  height: auto;
  margin-inline: auto;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 72, 81, .20);
}
.contacts__art-caption {
  margin-top: 20px;
  font-family: var(--elegant);
  font-size: clamp(18px, 2.1vw, 23px);
  color: var(--muted);
}
.contacts__actions {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.contacts__actions .btn { min-width: 168px; }
.contacts__note { margin-top: 20px; text-align: center; font-size: 16px; color: var(--muted); }

/* ---------- Подвал ---------- */

.site-footer { background: var(--deep); color: rgba(255, 255, 255, .8); padding: clamp(36px, 4.5vw, 56px) 0 clamp(96px, 8vw, 48px); margin-top: clamp(24px, 3vw, 44px); }
.footer__top { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.footer__brand-name { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 20px; color: #fff; letter-spacing: -0.01em; }
.footer__brand-role { margin-top: 6px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: rgba(255, 255, 255, .6); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 16px; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: rgba(255, 255, 255, .82); font-size: 16px; }
.footer__links a:hover { color: #fff; }
.footer__disclaimer {
  margin-top: clamp(24px, 3vw, 34px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  max-width: 760px;
}

/* ---------- Появление блоков при прокрутке ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================================
   АДАПТИВ
   ============================================================================ */

@media (max-width: 1080px) {
  .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__link { padding: 9px 11px; font-size: 15px; }
  .brand__role { max-width: 20ch; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .about__grid { grid-template-columns: minmax(0, 1fr); }

  /* Фото занимает всю ширину колонки, иначе справа остаётся пустое поле */
  .hero__photo, .about__photo { max-width: 100%; aspect-ratio: 4 / 3; }

  /* На узком экране сначала заголовок и текст, фото — следом */
  .about__text { order: 1; }
  .about__photo { order: 2; }

  .gift { grid-template-columns: minmax(0, 1fr); }
  .gift__photo { order: -1; }
  .gift__photo img { max-width: 280px; }
  .gift__lead { max-width: none; }
}

/* Ниже 880px — меню прячется в бургер, кнопка «Записаться» уходит вниз экрана */
@media (max-width: 880px) {
  body { padding-bottom: 88px; }

  .burger { display: inline-flex; }
  .header-cta { display: none; }
  .brand__role { max-width: 26ch; }

  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--pad) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 72, 81, .08);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 13px 16px; border-radius: var(--r-md); font-size: 17px; }

  .float-cta {
    right: var(--pad); left: var(--pad); bottom: 16px;
    width: auto;
    justify-content: center;
  }

  .site-footer { padding-bottom: 40px; }
}

@media (max-width: 760px) {
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .reviews__wall { columns: 1; }
  .programs { grid-template-columns: minmax(0, 1fr); }
  .focus-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .invite { flex-direction: column; align-items: stretch; }
  .invite .btn { width: 100%; }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }
  body { font-size: 17px; }
  .edu-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn, .contacts__actions .btn { width: 100%; }
  .brand__name { font-size: 16px; }
  .brand__role { font-size: 9px; max-width: none; }
  .lightbox { padding: 14px; }
  .lightbox__close { top: 10px; right: 10px; width: 42px; height: 42px; }
  .path__row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 0; }
  .gift .btn { width: 100%; }
}

/* ---------- Уважение к настройке «уменьшить движение» ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .edu-card:hover { transform: none; }
}
