/* =========================================================================
   AmaxaPhoto — сайт фотографа Арины, Ижевск
   Один файл стилей. Разделы:
     1. Токены          6. Обо мне            11. Цифры
     2. Основа          7. Быстрая отдача     12. Отзывы
     3. Кнопки          8. Услуги             13. Вопросы
     4. Шапка           9. Как проходит       14. Контакты и подвал
     5. Первый экран   10. Портфолио          15. Окна (запись, просмотр)
                                              16. Телефон и планшет
   ========================================================================= */

/* --- 1. Токены ---------------------------------------------------------- */
/* Тема тёмная — основная. Светлая лежит ниже, в .t-light, и включается
   переключателем в админке: «Контакты» → «Сайт и поисковики» → Оформление. */
:root {
  --bg:          #0b0b0d;   /* фон страницы — почти чёрный */
  --bg-soft:     #141417;   /* плашки: полосы разделов */
  --sand:        #1b1b1f;   /* плашка поплотнее: блок «быстрая отдача» */
  --sand-deep:   #34343a;   /* тонкие линии-акценты */
  --line:        #26262b;
  --ink:         #f2f2f4;   /* основной текст */
  --ink-mid:     #bcbcc4;
  --ink-soft:    #91919b;
  --on-plate:    rgba(255, 255, 255, .05);  /* карточка поверх плашки */
  --accent:      #f2f2f4;   /* заливка кнопок */
  --accent-dark: #ffffff;
  --dark:        #141417;   /* тёмные полосы: призыв, подвал */

  /* Пара «залить сплошным»: фон и текст на нём. Меняются местами по теме,
     поэтому кнопки и наведения не надо переписывать под каждую тему. */
  --solid-bg:    #f2f2f4;
  --solid-fg:    #0b0b0d;
  --head-bg:     rgba(11, 11, 13, .92);
  --shadow:      0 18px 44px -26px rgba(0, 0, 0, .9);

  /* Скругления */
  --r-xs: 6px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Ритм: между блоками должно быть много воздуха */
  --gap-sec: clamp(72px, 9vw, 132px);
  --wrap: 1240px;
  --pad: clamp(18px, 4vw, 40px);

  /* Шрифты. Их ровно два: Montserrat Light держит всю страницу,
     рукописный Meamury появляется только в акцентах — заголовки разделов,
     имя, строка на первом экране и финальный призыв. */
  --f-text: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-disp: 'Meamury', 'Segoe Script', cursive;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Светлая тема: те же роли, другие значения. Больше нигде цвета не задаются. */
.t-light {
  --bg:          #ffffff;
  --bg-soft:     #f5f5f6;
  --sand:        #ebebed;
  --sand-deep:   #d9d9dd;
  --line:        #e4e4e7;
  --ink:         #0e0e10;
  --ink-mid:     #45454b;
  --ink-soft:    #83838b;
  --on-plate:    rgba(255, 255, 255, .72);
  --accent:      #16161a;
  --accent-dark: #000000;
  --dark:        #0e0e10;

  --solid-bg:    #0e0e10;
  --solid-fg:    #ffffff;
  --head-bg:     rgba(255, 255, 255, .94);
  --shadow:      0 18px 44px -26px rgba(0, 0, 0, .4);
}

/* --- 2. Основа ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.7 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
/* display: grid/flex ниже по файлу сильнее, чем скрытие по атрибуту hidden */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

/* Иконки одного стиля: тонкий контур, без заливки */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.ico--sm { width: 19px; height: 19px; }
/* Знаки соцсетей — сплошные, контур им не идёт */
.ico use[href="#i-vk"], svg.ico > use[href="#i-vk"] { }
.ico:has(use[href="#i-vk"]), .ico:has(use[href="#i-tg"]), .ico:has(use[href="#i-bolt"]) {
  fill: currentColor; stroke: none;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--solid-bg); color: var(--solid-fg); padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }

/* Типографика */
/* Заголовки — тот же Montserrat Light, только крупнее и с разрядкой.
   Рукописный Meamury включается точечно через .script: строка на первом
   экране, имя, финальный призыв. Так он остаётся акцентом, а не шумом. */
.h2 {
  margin: 0 0 18px;
  font: 300 clamp(27px, 3.5vw, 42px)/1.25 var(--f-text);
  letter-spacing: .005em;
}
.h3 { margin: 0 0 14px; font: 300 clamp(21px, 2.6vw, 27px)/1.3 var(--f-text); }
.script { font-family: var(--f-disp); font-weight: 400; letter-spacing: .01em; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.sec-head { max-width: 640px; margin-bottom: clamp(34px, 4vw, 56px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head__sub { margin: 0; color: var(--ink-soft); }

/* Список с галочками */
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li {
  position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--ink-mid);
}
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: .55em;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--accent-dark);
  border-bottom: 1.5px solid var(--accent-dark);
  transform: rotate(-45deg);
}
.ticks--sm li { font-size: 14.5px; margin-bottom: 7px; line-height: 1.5; }

/* Плавное появление при прокрутке */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- 3. Кнопки ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: none; cursor: pointer;
  font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 16px 34px; font-size: 15.5px; }

.btn--accent { background: var(--solid-bg); color: var(--solid-fg); }
.btn--accent:hover { filter: brightness(.88); }

.btn--outline { border-color: currentColor; color: inherit; }
.btn--outline:hover { color: var(--solid-fg); }

.btn--soft { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
.btn--soft:hover { color: var(--solid-fg); }

/* Заливка наползает слева — спокойнее, чем мгновенная смена фона */
.btn--outline, .btn--soft { position: relative; z-index: 0; overflow: hidden; }
.btn--outline::after, .btn--soft::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--solid-bg);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease);
}
.btn--outline:hover::after, .btn--soft:hover::after { transform: scaleX(1); }
.btn--outline:hover { border-color: var(--solid-bg); }
@media (prefers-reduced-motion: reduce) {
  .btn--outline::after, .btn--soft::after { transition: none; }
}

.linkbtn {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--accent-dark); border-bottom: 1px solid currentColor;
}
.linkbtn:hover { color: var(--ink); }

/* --- 4. Шапка ----------------------------------------------------------- */
.head {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease),
              color .45s var(--ease), padding .45s var(--ease),
              transform .5s var(--ease);
  padding: 14px 0;
}
.head__in { display: flex; align-items: center; gap: 26px; }

.head__logo { flex: none; }
.head__logo-img {
  width: 178px; height: auto;
  transition: filter .45s var(--ease), opacity .45s var(--ease), width .45s var(--ease);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14.5px; position: relative; padding: 4px 0;
  opacity: .92;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right .4s var(--ease);
}
.nav a:hover::after { right: 0; }
.nav__cta { display: none; }

.head__cta { flex: none; }

/* Шапка после прокрутки: подложка под цвет темы */
.head.is-solid {
  background: var(--head-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  padding: 8px 0;
}
.head.is-solid .head__logo-img { width: 154px; }
/* Логотип белый: на светлой теме перекрашиваем его фильтром в чёрный */
.t-light .head.is-solid .head__logo-img { filter: brightness(0); opacity: .88; }

.burger {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.burger span {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- 5. Первый экран ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 28%; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 8, 10, .8) 0%, rgba(8, 8, 10, .52) 38%, rgba(8, 8, 10, .1) 68%),
    /* Правый край притемняем отдельно — иначе белые подписи теряются на светлом фоне */
    linear-gradient(to left, rgba(8, 8, 10, .58) 0%, rgba(8, 8, 10, .18) 18%, transparent 34%),
    linear-gradient(to top, rgba(8, 8, 10, .55), transparent 45%);
}
.hero__in { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; }
.hero__text { max-width: 720px; }

.hero__title {
  margin: 0 0 22px;
  font: 300 clamp(34px, 4.8vw, 58px)/1.15 var(--f-text);
  letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero__title .line { display: block; }
.hero__title .script {
  display: block; margin-top: .12em;
  font-size: .78em; line-height: 1.1;
  color: #fff;
}
.hero__sub {
  margin: 0 0 32px; max-width: 520px;
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
/* На фотографии всё одинаково в любой теме: рамка светлая, заливка белая */
.hero .btn--outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero .btn--outline::after { background: #fff; }
.hero .btn--outline:hover { border-color: #fff; color: #0b0b0d; }
.hero .btn--accent { background: #fff; color: #0b0b0d; }

.hero__notes {
  margin: 0 0 0 auto; padding: 0 0 0 26px; list-style: none;
  max-width: 240px;
  border-left: 1px solid rgba(255, 255, 255, .35);
}
.hero__notes li + li { margin-top: 26px; }
.hero__notes strong { display: block; font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.hero__notes span { font-size: 13.5px; color: rgba(255, 255, 255, .82); line-height: 1.5; }
.hero__notes li { text-shadow: 0 1px 14px rgba(20, 15, 11, .75); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  width: 26px; height: 44px; margin-left: -13px;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--r-pill);
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px; width: 2px; height: 7px; margin-left: -1px;
  background: #fff; border-radius: 2px;
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* --- 6. Почему выбирают + Обо мне --------------------------------------- */
.why { background: var(--bg-soft); padding: clamp(38px, 4.5vw, 58px) 0; }
.why__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px;
}
.why__item { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.why__item .ico { grid-row: span 2; color: var(--accent-dark); margin-top: 2px; }
.why__item h3 { margin: 0; font: 500 14.5px/1.35 var(--f-text); }
.why__item p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

.about { padding: var(--gap-sec) 0; }
.about__in { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(34px, 6vw, 88px); align-items: center; }
.about__photo img { width: 100%; border-radius: var(--r); }
.about__photo { position: relative; }
.about__photo::before {
  content: ''; position: absolute; left: -18px; top: -18px; right: 34px; bottom: 34px;
  border: 1px solid var(--sand-deep); border-radius: var(--r); z-index: -1;
}
.about__text p { margin: 0 0 15px; color: var(--ink-mid); }
.about__text .h2 { line-height: 1.35; }
.about__text .h2 .script { font-size: 1.15em; }
.about__lead { margin-top: 24px !important; font-weight: 500; color: var(--ink) !important; }
.about__out {
  margin-top: 24px !important; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 18px; line-height: 1.6; color: var(--ink) !important;
}

/* --- 7. Быстрая отдача -------------------------------------------------- */
.fast { padding: 0 0 var(--gap-sec); }
.fast__in {
  background: var(--sand); border-radius: var(--r-lg);
  padding: clamp(38px, 5.5vw, 72px) clamp(22px, 5vw, 64px);
  text-align: center;
}
.fast__ico { width: 40px; height: 40px; fill: var(--accent-dark); stroke: none; margin-bottom: 14px; }
.fast__in > p { max-width: 640px; margin: 0 auto; color: var(--ink-mid); }
.fast__cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center; gap: 18px; margin-top: 34px;
}
.fast__card {
  background: var(--on-plate); border-radius: var(--r);
  padding: 22px 24px; text-align: left;
}
.fast__card strong {
  display: block; margin-bottom: 6px;
  font: 400 26px/1.2 var(--f-disp); color: var(--ink);
}
.fast__card span { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* --- 8. Услуги ---------------------------------------------------------- */
.services { padding: var(--gap-sec) 0; background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sand-deep); }
.card__pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__pic img { transform: scale(1.04); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { margin: 0 0 10px; font: 500 17.5px/1.3 var(--f-text); letter-spacing: .01em; }
.card__price { margin: 0 0 4px; font-size: 18px; font-weight: 500; }
.card__price span { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.card__price--second { margin-bottom: 12px; }
.card__note { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.card .ticks { margin-top: 12px; }
.card__btn { margin-top: auto; align-self: flex-start; }
.card .ticks--sm { margin-bottom: 20px; }

.services__gift { margin: 34px 0 0; text-align: center; color: var(--ink-soft); font-size: 15px; }

/* --- 9. Как проходит съёмка --------------------------------------------- */
.steps { padding: var(--gap-sec) 0; }
.steps__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
  position: relative;
}
.steps__list::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 32px;
  border-top: 1px dashed var(--sand-deep);
}
.steps__item { position: relative; text-align: center; }
.steps__ico {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--sand); border-radius: 50%; color: var(--accent-dark);
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.steps__item:hover .steps__ico { background: var(--solid-bg); color: var(--solid-fg); }
.steps__num {
  display: block; margin-bottom: 8px;
  font: 400 20px/1 var(--f-disp); color: var(--ink-soft);
}
.steps__item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-mid); }

/* --- 10. Портфолио ------------------------------------------------------ */
.portfolio { padding: var(--gap-sec) 0 0; }
.pf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.pf__item {
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; background: var(--dark); cursor: pointer;
  aspect-ratio: 4 / 4.6; overflow: hidden;
}
.pf__item img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .78; transition: transform 1.1s var(--ease), opacity .6s var(--ease);
}
.pf__item:hover img { transform: scale(1.06); opacity: .62; }
.pf__cap {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: 26px 20px;
  background: linear-gradient(to top, rgba(8, 8, 10, .8), transparent);
  color: #fff; text-align: center;
}
.pf__cap b { display: block; font: 400 clamp(19px, 1.8vw, 25px)/1.2 var(--f-disp); font-weight: 400; }
.pf__cap span { font-size: 12.5px; color: rgba(255, 255, 255, .72); letter-spacing: .04em; }

/* --- 11. Цифры ---------------------------------------------------------- */
.nums { padding: var(--gap-sec) 0; background: var(--bg-soft); }
.nums__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.nums__item strong {
  display: block; margin-bottom: 6px;
  font: 300 clamp(29px, 3.5vw, 43px)/1.1 var(--f-text); color: var(--ink);
  letter-spacing: -.01em;
}
.nums__item span { font-size: 14px; color: var(--ink-soft); line-height: 1.45; display: block; }

/* --- 12. Отзывы --------------------------------------------------------- */
.reviews { padding: var(--gap-sec) 0; }
.slider { position: relative; }
.slider__track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px var(--pad) 26px;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track::before, .slider__track::after { content: ''; flex: 0 0 max(0px, calc((100vw - var(--wrap)) / 2)); }

.rev {
  flex: 0 0 min(400px, 82vw); scroll-snap-align: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px; position: relative;
}
/* Кавычка — фон, а не украшение поверх текста: раньше налезала на первые строки */
.rev__quote {
  font: 400 54px/1 var(--f-disp); color: var(--sand-deep);
  position: absolute; right: 18px; top: 10px; z-index: 0;
  opacity: .5; pointer-events: none;
}
.rev__text { position: relative; z-index: 1; margin: 0 0 20px; color: var(--ink-mid); font-size: 15px; }
.rev__who { position: relative; z-index: 1; }
.rev__who { display: flex; align-items: center; gap: 13px; }
.rev__ava {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--sand); display: grid; place-items: center;
  font: 400 19px/1 var(--f-disp); color: var(--accent-dark); flex: none;
}
.rev__name { display: block; font-weight: 500; font-size: 15px; }
.rev__kind { display: block; font-size: 13px; color: var(--ink-soft); }
.rev__demo {
  position: absolute; left: 26px; top: -11px;
  background: var(--solid-bg); color: var(--solid-fg);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--r-pill);
}

.reviews__add { display: flex; justify-content: center; margin-top: 26px; }
/* Поле-ловушка для рассылок: человеку не видно, роботы заполняют — и мы это видим */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.slider__ctrl { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.slider__btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.slider__btn:hover { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.slider__btn--prev .ico { transform: rotate(180deg); }
.slider__empty { text-align: center; color: var(--ink-soft); padding: 20px; }

/* --- 13. Вопросы -------------------------------------------------------- */
.faq { padding: 0 0 var(--gap-sec); }
.faq__in { display: grid; grid-template-columns: 0.75fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: start; }
.faq .sec-head { margin-bottom: 0; position: sticky; top: 110px; }

.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 2px; border: 0; background: none; cursor: pointer;
  text-align: left; font-size: 16.5px; font-weight: 500;
  transition: color .3s var(--ease);
}
.acc__q:hover { color: var(--accent-dark); }
.acc__chev {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(90deg); transition: transform .4s var(--ease);
  color: var(--accent-dark);
}
.acc__q[aria-expanded="true"] .acc__chev { transform: rotate(-90deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__a > div { overflow: hidden; }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a p { margin: 0 0 22px; color: var(--ink-mid); max-width: 58ch; }

/* --- 14. Контакты и подвал ---------------------------------------------- */
.contacts { padding: var(--gap-sec) 0; background: var(--bg-soft); }
.contacts__in { display: grid; grid-template-columns: 0.6fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.contacts__photo img { width: 100%; border-radius: var(--r); }
.contacts__role { margin: -8px 0 4px; color: var(--ink-soft); }
.contacts__city { display: flex; align-items: center; gap: 8px; margin: 0 0 26px; color: var(--ink-mid); }
.contacts__links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.contacts__cta { }

.cta { position: relative; background: var(--dark); color: #fff; padding: clamp(46px, 6vw, 76px) 0; }
.cta__in { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 46px); flex-wrap: wrap; }
.cta__script { margin: 0; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.2; color: #f2f2f4; }

.foot { padding: 34px 0; }
.foot__in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot__logo img { width: 150px; opacity: .85; }
.foot__soc { margin: 0 auto; display: flex; gap: 8px; }
.foot__soc a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.foot__soc a:hover { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.foot__copy { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* --- 15. Окна: запись и просмотр серий ---------------------------------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__back { position: absolute; inset: 0; background: rgba(8, 8, 10, .55); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; width: min(520px, 100%); max-height: 92svh; overflow: auto;
  background: var(--bg); border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px);
  animation: pop .4s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.modal__x {
  position: absolute; right: 14px; top: 14px;
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-soft); border-radius: 50%;
}
.modal__x:hover { background: var(--bg-soft); color: var(--ink); }
.modal__lead { margin: 0 0 22px; color: var(--ink-soft); font-size: 14.5px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; color: var(--ink-mid); }
.field em { font-style: normal; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--bg-soft); color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: var(--bg); outline: none;
}
/* Согласие на обработку данных: галочка обязательная, по 152-ФЗ она не может
   стоять заранее — человек ставит её сам */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 2px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.consent span { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.consent a { color: var(--ink-mid); border-bottom: 1px solid var(--line); }
.consent a:hover { color: var(--ink); }

.foot__copy a { border-bottom: 1px solid var(--line); }
.foot__copy a:hover { color: var(--ink); }

.form__hint { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.form__hint a { color: var(--ink); border-bottom: 1px solid var(--line); }
.form__hint a:hover { border-color: currentColor; }
.modal .err { margin: 0; color: #e2705a; font-size: 14px; }
.modal .ok { margin: 0; color: #7fc08d; font-size: 14px; }
.form__send { display: flex; gap: 10px; flex-wrap: wrap; }
.form__preview {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 14px 16px;
}
.form__preview-h { margin: 0 0 8px; font-size: 13px; color: var(--accent-dark); }
.form__preview pre {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font: 400 13.5px/1.55 var(--f-text); color: var(--ink-mid);
}

.lb { position: fixed; inset: 0; z-index: 95; background: rgba(8, 8, 10, .97); }
.lb[hidden] { display: none; }
.lb__bar {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  padding: 18px var(--pad); color: #fff;
}
.lb__title { font: 300 18px/1 var(--f-text); letter-spacing: .02em; }
.lb__count { font-size: 13px; color: rgba(255, 255, 255, .6); }
.lb__x {
  margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  color: #fff; display: grid; place-items: center; border-radius: 50%;
}
.lb__x:hover { background: rgba(255, 255, 255, .12); }
.lb__stage {
  position: absolute; inset: 64px 0 0;
  display: flex; align-items: center; justify-content: center; padding: 0 clamp(12px, 7vw, 90px) 26px;
}
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-xs); }
.lb__empty { color: rgba(255, 255, 255, .7); text-align: center; max-width: 420px; }
.lb__nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background-color .3s var(--ease);
}
.lb__nav:hover { background: rgba(255, 255, 255, .18); }
.lb__nav--prev { left: clamp(8px, 2vw, 26px); }
.lb__nav--prev .ico { transform: rotate(180deg); }
.lb__nav--next { right: clamp(8px, 2vw, 26px); }

/* --- 16. Телефон и планшет ---------------------------------------------- */
@media (max-width: 1100px) {
  .why__list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pf { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 30px 18px; }
  .steps__list::before { display: none; }
  .hero__notes { display: none; }
}

@media (max-width: 900px) {
  .about__in, .contacts__in, .faq__in { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .contacts__photo { max-width: 320px; }
  .faq .sec-head { position: static; }
  .nums__in { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
}

@media (max-width: 860px) {
  .head__cta { display: none; }
  .burger { display: flex; }

  .nav {
    position: fixed; inset: 0 0 auto; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 92px var(--pad) 30px;
    background: var(--bg);
    color: var(--ink);
    transform: translateY(-102%);
    transition: transform .5s var(--ease);
    box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .45);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; opacity: 1; }
  .nav a::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 22px; align-self: flex-start; }
  /* Пока меню открыто, шапка непрозрачная — иначе логотип теряется на фоне */
  .head.is-menu { background: var(--bg); color: var(--ink); }
  .t-light .head.is-menu .head__logo-img { filter: brightness(0); opacity: .88; }
}

@media (max-width: 700px) {
  /* На телефоне воздуха нужно меньше: иначе страница растягивается на
     тридцать экранов и до контактов никто не долистывает */
  :root { --gap-sec: 58px; }

  .why__list { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .cards { grid-template-columns: 1fr; }
  /* Фотография в карточке — широкой полосой, а не половиной экрана */
  .card__pic { aspect-ratio: 2 / 1; }
  .card__body { padding: 18px 18px 20px; }
  .steps__list { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .steps__item { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; text-align: left; }
  .steps__ico { grid-row: span 2; width: 54px; height: 54px; margin: 0; }
  .steps__num { margin-bottom: 2px; }
  .fast__cards { grid-template-columns: 1fr; }
  .fast__in { padding: 34px 20px; }
  .pf { grid-template-columns: 1fr; }
  .pf__item { aspect-ratio: 16 / 9; }
  .nums__in { gap: 28px 16px; }
  .foot__in { flex-direction: column; text-align: center; }
  .foot__soc { margin: 4px 0; }
  .hero__btns .btn { flex: 1 1 100%; }
  .cta__in { flex-direction: column; text-align: center; }
  .form__send .btn { flex: 1 1 100%; }

  /* Первый экран: снимок сверху, текст внизу на затемнении — иначе надписи
     ложатся прямо на лицо */
  .hero { align-items: flex-end; padding: 100px 0 54px; }
  .hero__bg img { object-position: 60% 18%; }
  .hero::after {
    background:
      linear-gradient(to top, rgba(8, 8, 10, .94) 0%, rgba(8, 8, 10, .8) 34%, rgba(8, 8, 10, .25) 62%, rgba(8, 8, 10, .35) 100%);
  }
  .hero__title { text-shadow: none; }

  /* Портретные снимки кадрируем: во весь экран они не нужны */
  .about__photo, .contacts__photo { max-width: none; }
  .about__photo img, .contacts__photo img {
    width: 100%; height: clamp(300px, 74vw, 400px);
    object-fit: cover; object-position: 50% 22%;
  }
  .about__photo::before { display: none; }
}

@media (max-width: 420px) {
  .why__list { grid-template-columns: 1fr; }
  .nums__in { grid-template-columns: 1fr; }
}

/* --- 18. Движение -------------------------------------------------------
   Правило одно: анимация показывает содержимое, а не себя. Ничего не мигает,
   не прыгает и не повторяется по кругу — только спокойные наплывы.
   Всё выключается системной настройкой «уменьшить движение» в самом низу. */

/* Первый экран: фотография наплывает, текст поднимается следом */
.hero__bg img { animation: heroIn 2.2s var(--ease) both; }
@keyframes heroIn {
  from { opacity: .35; transform: scale(1.07); }
  to { opacity: 1; transform: none; }
}

.hero__text > *, .hero__notes li { animation: riseIn .9s var(--ease) both; }
.hero__text > :nth-child(1) { animation-delay: .3s; }
.hero__text > :nth-child(2) { animation-delay: .45s; }
.hero__text > :nth-child(3) { animation-delay: .6s; }
.hero__notes li:nth-child(1) { animation-delay: .75s; }
.hero__notes li:nth-child(2) { animation-delay: .85s; }
.hero__scroll { animation: riseIn 1s var(--ease) 1.1s both; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Крупные фотографии открываются шторкой снизу вверх.
   Обрезаем ВНУТРЕННИЙ слой, а не сам блок: элемент, спрятанный собственным
   clip-path, Chrome не считает попавшим в окно — и он никогда не открылся бы. */
.about__photo.reveal, .contacts__photo.reveal { opacity: 1; transform: none; }
.about__photo > *, .contacts__photo > * {
  display: block;
  clip-path: inset(0 0 100% 0);
}
.about__photo.is-in > *, .contacts__photo.is-in > * {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s var(--ease);
}
.about__photo img, .contacts__photo img { transition: transform 1.6s var(--ease); transform: scale(1.05); }
.about__photo.is-in img, .contacts__photo.is-in img { transform: none; }

/* Надпись над заголовком дочерчивает линию */
.eyebrow { display: flex; align-items: center; gap: 12px; }
.sec-head--center .eyebrow { justify-content: center; }
.eyebrow::after {
  content: ''; height: 1px; width: 0; background: var(--sand-deep);
  transition: width .9s var(--ease) .25s;
}
.is-in .eyebrow::after { width: 46px; }

/* У заголовков по центру линия нужна с обеих сторон, иначе перекос */
.sec-head--center .eyebrow::before {
  content: ''; height: 1px; width: 0; background: var(--sand-deep);
  transition: width .9s var(--ease) .25s;
}
.is-in .sec-head--center .eyebrow::before,
.sec-head--center.is-in .eyebrow::before { width: 46px; }

/* Плитки портфолио: рамка проявляется, подпись подаётся вверх */
.pf__item::after {
  content: ''; position: absolute; inset: 16px; z-index: 1;
  border: 1px solid rgba(255, 255, 255, .5);
  opacity: 0; transform: scale(1.03);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.pf__item:hover::after { opacity: 1; transform: none; }
.pf__cap { transition: transform .55s var(--ease); }
.pf__item:hover .pf__cap { transform: translateY(-6px); }

/* Шапка уезжает, когда листают вниз, и возвращается при движении вверх */
.head { will-change: transform; }
.head.is-up { transform: translateY(-102%); }

@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .hero__text > *, .hero__notes li, .hero__scroll { animation: none; }
  .about__photo > *, .contacts__photo > * { clip-path: none; }
  .about__photo img, .contacts__photo img { transform: none; }
  .eyebrow::after { width: 46px; transition: none; }
  .head.is-up { transform: none; }
}

/* --- 17. Цифры ----------------------------------------------------------
   Рукописный Meamury хорош в заголовках, но числа в нём читаются плохо.
   Поэтому цены, статистика и номера шагов остаются на Montserrat — правило
   стоит в конце файла: сокращение font: … в правилах выше его перебивает. */
.card__price, .nums__item strong, .steps__num, .fast__card strong {
  font-family: var(--f-text);
  font-weight: 300;
}
.card__price { font-weight: 500; }
