/* =====================================================================
   «Шаг навстречу» — дизайн-система
   Правки цветов и размеров делать только через токены в :root.
   ===================================================================== */

:root {
  /* --- Цвет --- */
  --ink:        #221F1A;
  --ink-soft:   #5C564B;
  --ink-faint:  #8A8275;

  --paper:      #FDFAF4;
  --paper-2:    #F5EEE1;
  --line:       #E6DBC8;

  --brand-100:  #E3F0EA;
  --brand-300:  #8FC4B1;
  --brand-600:  #2C7A63;
  --brand-700:  #1F5B49;
  --brand-900:  #143A2F;

  --accent-100: #FCEBE0;
  --accent-500: #D9663C;
  --accent-600: #BF5330;

  --gold:       #C08A2E;

  /* --- Размеры --- */
  --wrap:       1180px;
  --wrap-narrow: 780px;
  --gutter:     clamp(1rem, 4vw, 2rem);

  --r-sm:   12px;
  --r:      18px;
  --r-lg:   26px;
  --r-full: 999px;

  --shadow-s: 0 2px 8px -2px rgb(34 31 26 / .08);
  --shadow:   0 14px 34px -16px rgb(34 31 26 / .22);
  --shadow-l: 0 28px 60px -24px rgb(34 31 26 / .28);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* --- Сброс --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.25rem + 3.2vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); font-weight: 750; }

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

a { color: var(--brand-700); text-underline-offset: .18em; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--brand-300); color: var(--brand-900); }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- Служебное --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-700);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: 0 0 .9em;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.kicker .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-500);
}
.kicker--light { color: var(--brand-300); }

.lead {
  font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.head--center { text-align: center; }
.head--center .lead { margin-inline: auto; }
.head--center .kicker { justify-content: center; }

.subhead {
  margin: clamp(3rem, 6vw, 4.5rem) 0 1.6rem;
  text-align: center;
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
}

/* --- Секции --- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--paper-2); }
.section--dark {
  background: var(--brand-900);
  color: #EEF5F1;
}
.section--dark h2 { color: #fff; }

/* =====================================================================
   Кнопки
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.7em;
  min-height: 50px;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: .6em 1.25em; min-height: 42px; font-size: .93rem; }
.btn--lg { padding: 1.05em 2.1em; min-height: 56px; font-size: 1.05rem; }

.btn--accent {
  background: var(--accent-500);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(217 102 60 / .7);
}
.btn--accent:hover { background: var(--accent-600); box-shadow: 0 16px 30px -12px rgb(217 102 60 / .8); }

.btn--wa {
  background: #22C15E;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(34 193 94 / .65);
}
.btn--wa:hover { background: #1BA750; }

/* Градиент повторяет фирменный значок MAX (сине-фиолетовый). */
.btn--max { background: linear-gradient(135deg, #4A90E2, #9B59D6); color: #fff; }
.btn--max:hover { background: linear-gradient(135deg, #3D80D1, #8A48C5); }

/* Фирменный синий VK — приглушённее, чем градиент MAX, чтобы кнопки не сливались. */
.btn--vk { background: #5181B8; color: #fff; }
.btn--vk:hover { background: #446E9E; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-700); }

.btn--light { background: #fff; color: var(--brand-900); }
.btn--light:hover { background: #F3F7F5; }

/* =====================================================================
   Хедер
   ===================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-s);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.logo__mark { flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__text b { font-size: 1.06rem; font-weight: 800; letter-spacing: -.01em; }
.logo__text i {
  font-style: normal;
  font-size: .76rem;
  color: var(--ink-faint);
  letter-spacing: .01em;
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.5rem); }
.nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
  padding: .35rem 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  border-radius: 2px;
  background: var(--accent-500);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--brand-700); }
.nav a.is-active::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: none; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: min(70vw, 780px);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--brand-100) 0%, transparent 68%);
  opacity: .8;
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: .5em; }
.hero h1 em {
  font-style: normal;
  color: var(--brand-700);
  /* Подчёркивание-маркер: рисуем фоном, чтобы не зависеть от z-index. */
  background-image: linear-gradient(var(--accent-100), var(--accent-100));
  background-repeat: no-repeat;
  background-size: 100% .3em;
  background-position: 0 88%;
  border-radius: 3px;
  padding-inline: .06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero .lead { font-size: clamp(1.05rem, 1rem + .45vw, 1.25rem); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.9rem 0 1.1rem;
}
.hero__note {
  font-size: .93rem;
  color: var(--ink-faint);
  max-width: 46ch;
}

.hero__media {
  position: relative;
  margin: 0;
}
.hero__media picture { display: block; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-l);
}
.hero__tag {
  position: absolute;
  left: clamp(.75rem, 3%, 1.5rem);
  bottom: clamp(-.75rem, -2%, -1rem);
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .85rem 1.3rem;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  max-width: calc(100% - 2rem);
}
.hero__tag b { font-size: 1rem; font-weight: 800; }
.hero__tag span { font-size: .8rem; color: var(--ink-faint); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 3 / 2; }
  .hero__tag { position: static; margin-top: .9rem; max-width: none; }
}

/* =====================================================================
   Цифры
   ===================================================================== */
.stats {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 2vw, 1.25rem);
}
.stat {
  padding: clamp(1.1rem, 2.5vw, 1.7rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
  box-shadow: var(--shadow-s);
}
.stat b {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -.03em;
  color: var(--brand-600);
  line-height: 1.05;
}
.stat span {
  display: block;
  margin-top: .35rem;
  font-size: .87rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   Боли
   ===================================================================== */
.problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: .75rem 1.5rem;
  margin-bottom: 2.5rem;
}
.problems li {
  position: relative;
  padding: .35rem 0 .35rem 2.2rem;
  color: var(--ink-soft);
}
.problems li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 22px; height: 2.5px;
  border-radius: 2px;
  background: var(--accent-500);
  opacity: .85;
}
.problems__out {
  max-width: 62ch;
  margin-inline: auto;
  padding: 1.4rem 1.6rem;
  background: var(--accent-100);
  border-radius: var(--r);
  text-align: center;
  font-size: 1.06rem;
}
.problems__out b { color: var(--ink); }
.problems + .problems__out { margin-bottom: 1.8rem; }

/* =====================================================================
   О специалисте
   ===================================================================== */
.about {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__media { position: sticky; top: 100px; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.about h3 { margin-top: 2rem; }

.quote {
  margin: 1.8rem 0;
  padding: 1.3rem 1.6rem;
  background: #fff;
  border-left: 4px solid var(--brand-600);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  box-shadow: var(--shadow-s);
}

.timeline { display: grid; gap: .85rem; counter-reset: tl; }
.timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
  font-size: .97rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.timeline b { color: var(--ink); font-weight: 750; white-space: nowrap; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { position: static; }
  .about__media img { aspect-ratio: 3 / 2; }
  .timeline li { grid-template-columns: 1fr; gap: .1rem; }
}

/* =====================================================================
   Карточки услуг
   ===================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: clamp(.9rem, 2vw, 1.4rem);
}
.card {
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow);
}
.card__ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: .95rem;
  font-size: 1.5rem;
  background: var(--brand-100);
  border-radius: 15px;
}
.card p { color: var(--ink-soft); font-size: .96rem; }

/* =====================================================================
   С кем работаю
   ===================================================================== */
.who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.who p { color: var(--ink-soft); }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.pill {
  padding: .55em 1.2em;
  border-radius: var(--r-full);
  font-size: .92rem;
  font-weight: 700;
}
.pill--solid { background: var(--brand-600); color: #fff; }

.who__tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.who__tags li {
  padding: .65em 1.15em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .93rem;
  color: var(--ink-soft);
}
@media (max-width: 900px) { .who { grid-template-columns: 1fr; } }

/* =====================================================================
   Методы
   ===================================================================== */
.methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.method {
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-600);
  border-radius: var(--r);
}
.method p { color: var(--ink-soft); font-size: .95rem; }

.methods__shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}
.methods__shots figure { margin: 0; }
.methods__shots img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
}
.methods__shots figcaption {
  margin-top: .7rem;
  font-size: .89rem;
  color: var(--ink-faint);
}

/* =====================================================================
   Результаты (тёмная секция)
   ===================================================================== */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: .8rem 1.6rem;
}
.results li {
  position: relative;
  padding: .7rem 0 .7rem 2.4rem;
  color: #D3E3DB;
  font-size: 1rem;
}
.results li b { color: #fff; font-weight: 750; }
.results li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--brand-300);
  border-bottom: 2.5px solid var(--brand-300);
  transform: rotate(-45deg);
}
.results__note {
  max-width: 64ch;
  margin: 2.2rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgb(255 255 255 / .14);
  font-size: .96rem;
  color: #A9C2B7;
  text-align: center;
}

/* =====================================================================
   Шаги
   ===================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.steps__n {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1rem;
  background: var(--brand-600);
  color: #fff;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 850;
}
.steps p { color: var(--ink-soft); font-size: .96rem; }

/* =====================================================================
   Плитки: галерея, документы, отзывы
   ===================================================================== */
.grid-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(.7rem, 1.6vw, 1rem);
}
.grid-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
  gap: clamp(.7rem, 1.6vw, 1rem);
}

.tile {
  position: relative;
  display: block;
  padding: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.tile:hover img { transform: scale(1.05); }

.grid-photos .tile { aspect-ratio: 4 / 3; }
.grid-docs .tile   { aspect-ratio: 3 / 4; }
.grid-docs .tile img { object-fit: cover; object-position: top center; }
.grid-docs--reviews .tile img { object-position: top left; }

.tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem .7rem .6rem;
  background: linear-gradient(0deg, rgb(20 18 14 / .85), transparent);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

/* --- Текстовые цитаты --- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  margin-bottom: 2.5rem;
}
.qcard {
  margin: 0;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
}
.qcard::before {
  content: "”";
  font-size: 3.2rem;
  line-height: .6;
  color: var(--brand-300);
  margin-bottom: .35rem;
}
.qcard p { font-size: .99rem; color: var(--ink); flex: 1; }
.qcard footer {
  margin-top: 1rem;
  font-size: .87rem;
  font-weight: 700;
  color: var(--brand-700);
}

.reviews__hint {
  text-align: center;
  font-size: .93rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--brand-300); box-shadow: var(--shadow-s); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--brand-600);
  border-bottom: 2.5px solid var(--brand-600);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--brand-700); }
.faq details > div { padding: 0 1.4rem 1.3rem; }
.faq details p { color: var(--ink-soft); font-size: .97rem; }

/* =====================================================================
   Контакты (CTA)
   ===================================================================== */
.cta {
  background:
    radial-gradient(ellipse at 50% 0%, rgb(143 196 177 / .18), transparent 60%),
    var(--brand-900);
  color: #EEF5F1;
}
.cta h2 { color: #fff; }
.cta .lead { color: #BDD3C9; margin-inline: auto; }

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 2rem 0 2.2rem;
}

.cta__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgb(255 255 255 / .14);
}
.cta__list li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 8rem;
}
.cta__list span {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7FA294;
  font-weight: 700;
}
.cta__list a, .cta__list b {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}
.cta__list a:hover { color: var(--brand-300); }

.cta__note { margin-top: 1.8rem; font-size: .92rem; color: #8FAFA2; }

/* =====================================================================
   Футер
   ===================================================================== */
.footer {
  background: #16110C;
  color: #B6AFA3;
  padding: clamp(2.2rem, 4vw, 3rem) 0;
  padding-bottom: calc(clamp(2.2rem, 4vw, 3rem) + env(safe-area-inset-bottom));
  font-size: .9rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
.footer__brand b { display: block; color: #fff; font-size: 1.05rem; font-weight: 800; }
.footer__brand span { display: block; margin-top: .25rem; color: #8D8779; }

.footer__contacts { display: grid; gap: .4rem; }
.footer__contacts a { color: #DCD6CB; text-decoration: none; }
.footer__contacts a:hover { color: #fff; text-decoration: underline; }

.footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgb(255 255 255 / .09);
  color: #7C766A;
  font-size: .83rem;
}
@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* =====================================================================
   Липкая мобильная панель
   ===================================================================== */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: none;
  gap: .5rem;
  padding: .6rem var(--gutter);
  padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.dock.is-visible { transform: translateY(0); }
.dock__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 50px;
  border-radius: var(--r-full);
  font-size: .97rem;
  font-weight: 750;
  text-decoration: none;
}
.dock__btn--wa { background: #22C15E; color: #fff; }
.dock__btn--call { background: var(--brand-600); color: #fff; }

@media (max-width: 780px) {
  .dock { display: flex; }
  body { padding-bottom: 4.5rem; }
}

/* =====================================================================
   Лайтбокс
   ===================================================================== */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgb(16 14 11 / .94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lb[hidden] { display: none; }

.lb__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  max-width: 100%;
}
.lb__figure img {
  max-width: min(94vw, 1100px);
  max-height: 82vh;
  width: auto;
  border-radius: var(--r-sm);
  box-shadow: 0 30px 70px rgb(0 0 0 / .55);
}
.lb__figure figcaption {
  color: #E3DED4;
  font-size: .92rem;
  text-align: center;
  max-width: 60ch;
}
.lb__figure figcaption:empty { display: none; }

.lb__x, .lb__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: rgb(255 255 255 / .13);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lb__x:hover, .lb__nav:hover { background: rgb(255 255 255 / .26); }
.lb__x { top: max(1rem, env(safe-area-inset-top)); right: 1rem; font-size: 1.25rem; }
.lb__nav { top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; }
.lb__nav--prev { left: 1rem; }
.lb__nav--next { right: 1rem; }

@media (max-width: 640px) {
  .lb__nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lb__nav--prev { left: .4rem; }
  .lb__nav--next { right: .4rem; }
  .lb__figure img { max-height: 74vh; }
}

/* =====================================================================
   Появление при скролле
   ===================================================================== */
/* Контент по умолчанию ВИДЕН. Прячем только если JS отработал и добавил
   класс .js на <html> — иначе при ошибке скрипта страница осталась бы пустой. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Задержка для элементов внутри сеток — эффект «каскада» */
.js .cards .reveal.is-in, .js .methods .reveal.is-in,
.js .steps .reveal.is-in, .js .stats__grid .reveal.is-in { transition-delay: calc(var(--i, 0) * 60ms); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* Печать */
@media print {
  .header, .dock, .lb, .btn, .burger { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
}
