/* ==========================================================================
   AURA — студия эстетической косметологии
   Дизайн-система. Один файл на весь сайт.
   Порядок: переменные -> база -> типографика -> сетки -> компоненты -> адаптив
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ПЕРЕМЕННЫЕ
   -------------------------------------------------------------------------- */
:root {
  /* Цвет */
  --c-bg:        #FBF7F3;
  --c-surface:   #FFFFFF;
  --c-sand:      #F2E9DF;
  --c-sand-deep: #EADFD2;
  --c-ink:       #2B2422;
  --c-muted:     #7C6F68;
  --c-rose:      #C1877A;
  --c-rose-dark: #A96A5C;
  --c-gold:      #C2A24B;
  --c-sage:      #93A08A;
  --c-line:      #E8DCD2;
  --c-error:     #B4463A;
  --c-success:   #5C7A5A;

  /* Типографика */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Ритм */
  --radius-sm: 10px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 8px rgba(43, 36, 34, .05);
  --shadow:    0 10px 30px rgba(43, 36, 34, .07);
  --shadow-lg: 0 24px 60px rgba(43, 36, 34, .10);

  --container: 1200px;
  --gap: 24px;

  /* Вертикальные отступы секций */
  --section-y: 88px;
  --section-y-sm: 52px;

  --header-h: 76px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. БАЗА / RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* чтобы sticky-хедер не накрывал якоря */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--c-rose-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-ink); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Единый видимый фокус — важно для доступности и для мобильных */
:focus-visible {
  outline: 2px solid var(--c-rose);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-rose); color: #fff; }

/* --------------------------------------------------------------------------
   3. ТИПОГРАФИКА
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--c-muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-rose-dark);
  margin-bottom: 14px;
}

.section-title { margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   4. СЕТКА / КОНТЕЙНЕР
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: var(--section-y) 0; }
.section--tight { padding: var(--section-y-sm) 0; }
.section--sand { background: var(--c-sand); }
.section--pattern {
  background-image: url('../img/pattern.svg');
  background-repeat: repeat;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Авто-сетки: сами схлопываются на мобильных без медиазапросов */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Двухколоночный лэйаут «контент + боковая панель» (форма записи и т.п.) */
.grid--aside { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 900px) {
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   5. КНОПКИ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-ink);
  color: var(--c-bg);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--c-rose-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--rose { background: var(--c-rose); color: #fff; }
.btn--rose:hover { background: var(--c-rose-dark); color: #fff; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.btn--ghost:hover { background: var(--c-ink); color: var(--c-bg); }

.btn--light {
  background: var(--c-surface);
  border-color: var(--c-line);
  color: var(--c-ink);
}
.btn--light:hover { border-color: var(--c-rose); color: var(--c-rose-dark); }

.btn--sm { padding: 11px 22px; font-size: .88rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   6. ХЕДЕР И НАВИГАЦИЯ
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 247, 243, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo img { width: 34px; height: 34px; }
.logo:hover { color: var(--c-rose-dark); }
.logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: .56rem;
  letter-spacing: .22em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative;
  font-size: .93rem;
  color: var(--c-ink);
  padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--c-rose);
  transition: width var(--transition);
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--c-rose-dark); }

/* Кнопка «Записаться» живёт только в мобильном меню:
   на десктопе она уже есть в правом блоке хедера */
.nav > .btn { display: none; }

.header__cta { display: flex; align-items: center; gap: 14px; }

.header__phone {
  font-size: .93rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Бургер — только на мобильных */
.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  margin: 5px auto;
  background: var(--c-ink);
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. ГЕРОЙ
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}
.hero__title { margin-bottom: 22px; }
.hero__title em {
  font-style: italic;
  color: var(--c-rose-dark);
}
.hero__text { max-width: 520px; margin-bottom: 32px; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(43, 36, 34, .12));
}

/* Реальные фотографии: фиксированные пропорции + object-fit,
   чтобы кадр не растягивался на разных экранах */
.hero__media img.photo {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  filter: none;
}
.hero__media img.photo--portrait { aspect-ratio: 2 / 3; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--c-line);
}
.fact__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--c-rose-dark);
}
.fact__label { font-size: .84rem; color: var(--c-muted); }

/* --------------------------------------------------------------------------
   8. КАРТОЧКИ УСЛУГ
   -------------------------------------------------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--c-sand-deep);
}

.card__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-sand);
  margin-bottom: 20px;
  color: var(--c-rose-dark);
}
.card__icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { font-size: .94rem; color: var(--c-muted); }

.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--c-ink);
  white-space: nowrap;
}
.card__time { font-size: .84rem; color: var(--c-muted); }

/* Крупная карточка услуги с описанием списком */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-block + .service-block { margin-top: 28px; }
.service-block__body { padding: 44px; }
.service-block__aside {
  background: var(--c-sand);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-block__aside h4 { margin-bottom: 14px; }

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  font-size: .95rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--c-rose);
  border-bottom: 1.5px solid var(--c-rose);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   9. КАТАЛОГ КОСМЕТИКИ
   -------------------------------------------------------------------------- */
.product {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product__media {
  position: relative;
  background: var(--c-sand);
  padding: 26px;
  display: grid;
  place-items: center;
}
.product__media img { max-height: 230px; width: auto; }

.product__badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product__badge--gold { background: var(--c-gold); }
.product__badge--sage { background: var(--c-sage); }

.product__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product__brand {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 7px;
}
.product__name { font-size: 1.08rem; margin-bottom: 8px; }
.product__descr {
  font-size: .9rem;
  color: var(--c-muted);
  flex-grow: 1;
  margin-bottom: 18px;
}
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.product__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  white-space: nowrap;
}
.product__volume { font-size: .8rem; color: var(--c-muted); }

/* --------------------------------------------------------------------------
   10. ПРАЙС
   -------------------------------------------------------------------------- */
.price-group { margin-bottom: 46px; }
.price-group h3 {
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--c-line);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--c-line);
}
.price-row__name { flex-shrink: 0; }
.price-row__note {
  display: block;
  font-size: .84rem;
  color: var(--c-muted);
}
.price-row__dots {
  flex-grow: 1;
  border-bottom: 1px dotted var(--c-sand-deep);
  transform: translateY(-4px);
}
.price-row__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   11. ФОРМА
   -------------------------------------------------------------------------- */
.form-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.field .req { color: var(--c-rose-dark); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-rose);
  box-shadow: 0 0 0 3px rgba(193, 135, 122, .16);
  background: var(--c-surface);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237C6F68' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field__hint { font-size: .8rem; color: var(--c-muted); margin-top: 6px; }
.field__error {
  display: none;
  font-size: .8rem;
  color: var(--c-error);
  margin-top: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--c-error); }
.field.has-error .field__error { display: block; }

/* Чекбокс согласия */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .86rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.consent input {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--c-rose);
}
.consent.has-error { color: var(--c-error); }

/* --------------------------------------------------------------------------
   12. БЛОКИ: отзывы, преимущества, CTA, контакты
   -------------------------------------------------------------------------- */
.quote {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px;
  height: 100%;
}
.quote__text { font-size: .96rem; margin-bottom: 20px; }
.quote__author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-sand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-rose-dark);
  flex-shrink: 0;
}
.quote__name { font-size: .92rem; font-weight: 600; }
.quote__meta { font-size: .8rem; color: var(--c-muted); }

.stars { color: var(--c-gold); letter-spacing: 2px; margin-bottom: 12px; }

.feature { display: flex; gap: 16px; }
.feature__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-sand);
  display: grid;
  place-items: center;
  color: var(--c-rose-dark);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; color: var(--c-muted); }

.cta-band {
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 36px;
}
.cta-band h2 { color: var(--c-bg); margin-bottom: 12px; }
.cta-band p { color: rgba(251, 247, 243, .72); margin: 0; }

.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list__icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-sand);
  display: grid;
  place-items: center;
  color: var(--c-rose-dark);
}
.info-list__icon svg { width: 20px; height: 20px; }
.info-list__label {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-sand);
  min-height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   13. ХЛЕБНЫЕ КРОШКИ + ЗАГОЛОВОК СТРАНИЦЫ
   -------------------------------------------------------------------------- */
.page-head {
  padding: 44px 0 28px;
  background: var(--c-sand);
  border-bottom: 1px solid var(--c-line);
}
.page-head h1 { margin-bottom: 12px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .84rem;
  color: var(--c-muted);
  margin-bottom: 16px;
}
.breadcrumbs li::after { content: '/'; margin-left: 8px; color: var(--c-sand-deep); }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-rose-dark); }

/* --------------------------------------------------------------------------
   14. FAQ (аккордеон на details/summary)
   -------------------------------------------------------------------------- */
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  line-height: 1;
  color: var(--c-rose);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { margin-bottom: 12px; }
.faq p { font-size: .94rem; color: var(--c-muted); }

/* --------------------------------------------------------------------------
   15. ПОДВАЛ
   -------------------------------------------------------------------------- */
.footer {
  background: var(--c-ink);
  color: rgba(251, 247, 243, .66);
  padding: 64px 0 0;
  font-size: .9rem;
}
.footer h4 {
  color: var(--c-bg);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer .logo { color: var(--c-bg); margin-bottom: 16px; }
.footer .logo__sub { color: rgba(251, 247, 243, .5); }
.footer a { color: rgba(251, 247, 243, .66); }
.footer a:hover { color: var(--c-bg); }
.footer li { margin-bottom: 10px; }
.footer__bottom {
  border-top: 1px solid rgba(251, 247, 243, .12);
  padding: 22px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: .82rem;
  color: rgba(251, 247, 243, .5);
}

/* --------------------------------------------------------------------------
   16. МОБИЛЬНАЯ НИЖНЯЯ ПАНЕЛЬ CTA
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 243, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
  gap: 10px;
}
.mobile-cta .btn { flex: 1; padding: 14px 16px; }

/* --------------------------------------------------------------------------
   17. СЛУЖЕБНОЕ
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--c-bg); }

/* Появление при скролле.
   Скрываем блоки ТОЛЬКО когда JS доступен (класс .js на <html>):
   иначе при отключённом JS контент остался бы невидимым. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Уважаем настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   18. АДАПТИВ
   -------------------------------------------------------------------------- */

/* Планшет */
@media (max-width: 1024px) {
  :root { --section-y: 64px; --section-y-sm: 44px; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: -1; max-width: 460px; margin: 0 auto; }
  .hero { padding: 48px 0 64px; }

  .service-block { grid-template-columns: 1fr; }
  .service-block__body,
  .service-block__aside { padding: 30px; }

  .cta-band { grid-template-columns: 1fr; padding: 40px; text-align: left; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Мобильный */
@media (max-width: 768px) {
  :root { --header-h: 64px; --gap: 18px; }

  body { font-size: 15px; }

  /* Навигация уезжает в выпадающую панель */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    background: var(--c-bg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
    visibility: hidden;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav a {
    padding: 18px 4px;
    font-size: 1.05rem;
    font-family: var(--font-display);
    border-bottom: 1px solid var(--c-line);
  }
  .nav a::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 22px; }

  .burger { display: block; }
  .header__phone { display: none; }
  .header__cta .btn { display: none; }

  .mobile-cta { display: flex; }
  /* чтобы панель CTA не перекрывала подвал */
  body { padding-bottom: 74px; }

  .form-wrap { padding: 26px 20px; }
  .card { padding: 24px 20px; }
  .cta-band { padding: 32px 24px; }
  .footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; }

  .price-row { flex-wrap: wrap; }
  .price-row__dots { display: none; }
  .price-row__value { margin-left: auto; }

  .section-head { margin-bottom: 32px; }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .btn { padding: 13px 20px; font-size: .9rem; }
  .hero__facts { gap: 22px; }
  .fact__num { font-size: 1.7rem; }
}

/* --------------------------------------------------------------------------
   19. ПЕЧАТЬ
   -------------------------------------------------------------------------- */
@media print {
  .header, .footer, .mobile-cta, .cta-band { display: none; }
  body { background: #fff; }
  .section { padding: 20px 0; }
}
