/* =========================================================
   genus.name — общие стили сайта
   Брейкпоинты повторяют сетку Тильды:
     > 1200px   широкий экран
     961–1200   ноутбук
     ≤ 960      планшет и телефон: одна колонка до 600px
     ≤ 640, ≤ 480  телефон
   ========================================================= */

:root {
  --font-head: 'Playfair Display', serif;
  --font-text: 'Roboto', Arial, sans-serif;
  --black: #000;
  --gold: #cc9900;
  --hover: #eb8181;
  --footer-bg: #efefef;
  --drawer-bg: #111;
  --pad: 20px;                 /* боковой отступ на узких экранах */
  --col-2: 160px;              /* ширины колонок для широкого экрана (сетка Тильды: 100N − 40) */
  --col-4: 360px;
  --col-5: 460px;
  --col-6: 560px;
  --col-8: 760px;
  --col-10: 960px;
  --wide: 1200px;              /* «на всю ширину» контейнера Тильды */
  --gutter: 40px;              /* промежуток между колонками */
}
@media (max-width: 1200px) {
  :root {
    --col-2: 140px; --col-4: 300px; --col-5: 380px; --col-6: 460px; --col-8: 620px; --col-10: 780px;
    --wide: 960px; --gutter: 20px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--black);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

/* колонка заданной ширины по центру; на узких экранах — до 600px с отступами */
.col { margin: 0 auto; }
.col--6 { width: var(--col-6); }
.col--8 { width: var(--col-8); }
.col--10 { width: var(--col-10); }
@media (max-width: 960px) {
  .col { width: 100%; max-width: 640px; padding: 0 var(--pad); }
}

/* =================== ШАПКА (от 981px) =================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  height: 80px; background: #000;
}
.header__inner {
  display: flex; align-items: center; height: 100%;
  padding: 0 40px;
}
.header__logo { flex: none; margin-right: 30px; line-height: 0; }
.header__logo img { display: block; width: 150px; height: auto; max-width: none; }
.header__nav { flex: 1 1 auto; min-width: 0; }
.header__menu { font-size: 0; }
.header__menu li {
  display: inline-block; padding: 0 15px; white-space: nowrap;
  font-family: var(--font-head);
}
.header__menu li:first-child { padding-left: 0; }
.header__menu li:last-child { padding-right: 0; }
.header__right { flex: none; display: flex; align-items: center; gap: 30px; margin-left: 25px; }
.header__buttons { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1200px) {
  .header__inner { padding: 0 20px; }
  .header__logo { margin-right: 15px; }
}
@media (max-width: 980px) {
  .header { display: none; }
}

/* пункт меню: при наведении розовый с подчёркиванием, текущая страница — белое подчёркивание */
.menu-link {
  position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: #fff;
  transition: color .3s ease-in-out, opacity .3s ease-in-out;
}
.header .menu-link::after {
  content: ''; position: absolute; left: 0; bottom: 20%; width: 100%; height: 100%;
  border-bottom: 1px solid var(--hover); box-shadow: inset 0 -1px 0 0 var(--hover);
  opacity: 0; transition: all .3s ease; pointer-events: none;
}
.header .menu-link:hover, .header .menu-link:focus-visible { color: var(--hover); }
.header .menu-link:hover::after, .header .menu-link:focus-visible::after { opacity: 1; bottom: -1px; }
.header .menu-link.is-active { color: #fff; opacity: .7; }
.header .menu-link.is-active::after {
  opacity: 1; bottom: -1px; border-color: #fff; box-shadow: inset 0 -1px 0 0 #fff;
}

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10.2px 30px; border-radius: 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.4;
  white-space: nowrap; transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.btn--light { background: #fff; color: #000; }
.btn--gold { background: var(--gold); color: #fff; }
@media (max-width: 1200px) { .btn { padding-left: 25px; padding-right: 25px; } }

/* иконки соцсетей */
.social { display: flex; align-items: center; font-size: 0; line-height: 0; }
.social a { display: block; width: 30px; height: 30px; }
.social svg { display: block; width: 30px; height: 30px; }
.header .social { gap: 19px; color: #fff; }

/* =================== МОБИЛЬНОЕ МЕНЮ (до 980px) =================== */
.burger {
  display: none;
  position: fixed; top: 15px; right: 15px; z-index: 99998;
  width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .6); cursor: pointer;
}
.burger span {
  position: absolute; left: 15px; width: 28px; height: 3px; background: #fff;
  transition: .25s ease-in-out;
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2), .burger span:nth-child(3) { top: 27px; }
.burger span:nth-child(4) { top: 35px; }
@media (hover: hover) {
  .burger:hover span:nth-child(1) { transform: translateY(1px); }
  .burger:hover span:nth-child(4) { transform: translateY(-1px); }
}
@media (max-width: 980px) { .burger { display: block; } }

.drawer-overlay {
  position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity .3s ease-in-out;
}
.drawer-overlay.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 999999;
  width: 100%; max-width: 300px; overflow-y: auto;
  background: var(--drawer-bg); color: #fff;
  transform: translateX(100%); transition: transform .3s ease-in-out;
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
body.menu-open { overflow: hidden; }
.drawer__inner {
  display: flex; flex-direction: column; min-height: 100%;
  padding: 48px 40px 38px;
}
@media (max-width: 640px) { .drawer__inner { padding: 42px 25px 25px; } }
.drawer__logo {
  margin: 0 0 25px; font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.23;
}
.drawer__menu li { font-family: var(--font-head); }
.drawer__menu a { display: inline-block; margin-bottom: 15px; font-size: 21px; font-weight: 400; color: #fff; }
.drawer__menu li:last-child a { margin-bottom: 0; }
.drawer__menu a.is-active { opacity: .7; }
.drawer__bottom { margin-top: auto; }
.drawer__copy { margin: 25px 0 0; font-family: var(--font-head); font-weight: 300; font-size: 13px; line-height: 1.55; }
@media (max-width: 640px) { .drawer__copy { line-height: 1.45; } }
.drawer .social { gap: 8px; margin-top: 26px; padding-bottom: 4px; color: #fff; }
.drawer__close {
  position: absolute; top: 5px; right: 5px; width: 40px; height: 40px;
  padding: 0; border: 0; background: var(--drawer-bg); cursor: pointer; z-index: 1;
}
.drawer__close span {
  position: absolute; left: 8px; top: 18px; width: 24px; height: 2px; background: #fff;
}
.drawer__close span:nth-child(1) { transform: rotate(45deg); }
.drawer__close span:nth-child(2) { transform: rotate(-45deg); }

/* =================== СТАТЬЯ («Боевой путь» и подобные) =================== */
.page-title { padding: 150px 0 30px; }
.page-title h1 {
  margin: 0 auto 40px;
  font-family: var(--font-head); font-weight: 600; font-size: 30px; line-height: 1.23;
  text-align: center;
}
@media (max-width: 480px) { .page-title { padding-top: 90px; } }

/* текст: Roboto Light, как в оригинале */
.article { padding-bottom: 0; }
.article > p {
  width: var(--col-8); margin: 0 auto;
  font-family: var(--font-text); font-weight: 300; font-size: 20px; line-height: 1.55;
}
.article > p + p { margin-top: 1.55em; }      /* пустая строка между абзацами */
.article > :is(figure, .page-title) + p,
.article > p:first-child { margin-top: 8px; }
.article > p:last-child { margin-bottom: 66px; }
.article > p + figure { margin-top: 66px; }  /* 6 + 60 — отступ после текстового блока */
.article strong, .article b { font-weight: 700; }
.article > p a { color: #ff8562; }
@media (max-width: 1200px) { .article > p { font-size: 18px; } }
@media (max-width: 960px) {
  .article > p { width: 100%; max-width: 640px; padding: 0 var(--pad); }
}
@media (max-width: 640px) {
  .article > p { font-size: 16px; line-height: 1.45; }
  .article > p + p { margin-top: 1.45em; }
}

/* страницы с широким текстом (политика конфиденциальности): 10 колонок, как в Тильде */
@media (min-width: 961px) { .text-wide .article > p { width: var(--col-10); } }

/* {% space N %} — нестандартный отступ между блоками; внутренние 6/8px у текста сохраняются */
.space { height: 60px; }
.article > p:has(+ .space) { margin-bottom: 6px; }
.article > .space + p { margin-top: 8px; }
.article > .space + figure { margin-top: 0; }
.article > figure:has(+ .space) { padding-bottom: 0; }

/* фото с подписью */
.photo { margin: 0; padding-bottom: 60px; text-align: center; }
.photo img { display: block; width: 100%; height: auto; margin: 0 auto; }
.photo--w6 img { max-width: var(--col-6); }
.photo--w8 img { max-width: var(--col-8); }
.photo--w10 img { max-width: var(--col-10); }
.photo img[data-zoom] { cursor: zoom-in; }
.photo figcaption {
  width: var(--col-8); margin: 0 auto; padding: 28px 0;
  font-family: var(--font-text); font-weight: 300; font-size: 14px; line-height: 28px;
}
@media (max-width: 960px) {
  .photo figcaption { width: 100%; max-width: 640px; padding: 28px var(--pad); }
}

/* =================== ОСОБЫЕ БЛОКИ СТАТЕЙ ===================
   Повторяют блоки Тильды из семейных историй. У каждого класс .block:
   отступы до и после — как у фото (60px, текст после — 8px). */
.block { padding-bottom: 60px; }
.article > p + .block { margin-top: 66px; }
.article > .block + p { margin-top: 8px; }
.article > .block:has(+ .space) { padding-bottom: 0; }
.article > .space + .block { margin-top: 0; }

/* текст внутри блоков — как обычные абзацы статьи */
.block p { margin: 0; font-family: var(--font-text); font-weight: 300; font-size: 20px; line-height: 1.55; }
.block p + p { margin-top: 1.55em; }
.block p a { color: #ff8562; }
.block img { display: block; max-width: 100%; height: auto; }
.block img[data-zoom] { cursor: zoom-in; }
@media (max-width: 1200px) { .block p { font-size: 18px; } }
@media (max-width: 640px) {
  .block p { font-size: 16px; line-height: 1.45; }
  .block p + p { margin-top: 1.45em; }
}

/* блоки шире текста начинаются от левого края текстовой колонки */
.wrap, .side { width: var(--col-10); margin-left: calc((100% - var(--col-8)) / 2); }

/* фото справа, текст обтекает слева */
.wrap { display: flow-root; }
.wrap__img { float: right; width: calc(var(--col-5) + 30px); margin: 0 0 20px; padding-left: 30px; }
.wrap__img img { max-height: 920px; width: auto; }
.wrap > p { max-width: var(--col-8); }
.wrap figcaption, .side figcaption {
  padding-top: 10px; font-family: var(--font-text); font-weight: 300; font-size: 14px; line-height: 1.55;
}

/* текст колонкой рядом с фото: big — узкий текст + большое фото, small — текст + маленькое фото */
.side { display: grid; gap: var(--gutter); align-items: start; }
.side--big { grid-template-columns: var(--col-4) var(--col-6); }
.side--small { grid-template-columns: var(--col-8) var(--col-2); }
.side--big .side__img img { width: 100%; }
.side--small .side__img img { margin: 0 auto; }
.side__img { margin: 0; }

/* несколько фото в ряд, по центру */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; width: var(--wide); max-width: 100%; margin: 0 auto; }

/* широкое фото с подписью курсивом */
.wide { width: var(--wide); margin: 0 auto; }
.wide img { width: 100%; }
.wide figcaption {
  padding-top: 8px; font-family: var(--font-head); font-weight: 300; font-style: italic; font-size: 16px; line-height: 1.55;
}
@media (max-width: 1200px) { .wide figcaption { font-size: 14px; } }

/* подзаголовок по центру */
.preface {
  width: var(--col-8); margin: 0 auto; text-align: center;
  font-family: var(--font-head); font-weight: 300; font-size: 30px; line-height: 1.35; opacity: .7;
}

/* тонкая линия и орнамент «три звезды» */
.divider::before { content: ""; display: block; width: var(--col-8); height: 1px; margin: 36px auto; background: rgba(0, 0, 0, .2); }
.ornament::before {
  content: ""; display: block; width: 50px; height: 12px; margin: 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 21'%3E%3Cpath d='M77.2 20.9s-.9-4.3-3.5-6.9-6.9-3.5-6.9-3.5 4.3-.9 6.9-3.5C76.3 4.3 77.2 0 77.2 0s.9 4.3 3.5 7c2.6 2.6 7 3.5 7 3.5s-4.3.9-6.9 3.5c-2.7 2.6-3.6 6.9-3.6 6.9zM44.3 20.9s-.9-4.3-3.5-6.9-6.9-3.5-6.9-3.5 4.3-.9 6.9-3.5C43.4 4.3 44.3 0 44.3 0s.9 4.3 3.5 7c2.6 2.6 7 3.5 7 3.5s-4.3.9-6.9 3.5c-2.7 2.6-3.6 6.9-3.6 6.9zM11.1 20.9s-.9-4.3-3.5-6.9S.7 10.5.7 10.5 5 9.6 7.6 7C10.1 4.3 11.1 0 11.1 0s.9 4.3 3.5 7c2.6 2.6 7 3.5 7 3.5s-4.3.9-6.9 3.5c-2.7 2.6-3.6 6.9-3.6 6.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* планшет и телефон: всё в одну колонку, фото сверху */
@media (max-width: 960px) {
  .wrap, .side, .wide, .gallery, .preface {
    width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad);
  }
  .wrap__img { float: none; width: 100%; padding-left: 0; }
  .wrap__img img { width: 100%; max-height: none; }
  .side { grid-template-columns: 1fr; gap: 20px; }
  .divider::before { width: auto; margin: 36px var(--pad); }
}
@media (max-width: 640px) {
  .preface { font-size: 22px; }
  .wide figcaption { font-size: 12px; line-height: 1.45; }
}

/* =================== КОРОТКИЕ СТРАНИЦЫ ===================
   «Анкета», «Активация сертификата», «Подарочный сертификат».
   Повторяют вёрстку Тильды; ссылки в тексте — синие, как там. */
.link-blue a, .anketa__note a, .cert-activate a { color: #0021ff; }
.anketa__note a { border-bottom: 1px solid currentColor; }

/* --- Анкета --- */
.anketa { width: var(--col-10); margin: 0 0 0 calc((100% - var(--col-8)) / 2); padding: 135px 0 45px; }
.anketa__title { margin: 0 0 20px; font-family: var(--font-head); font-weight: 500; font-size: 42px; line-height: 1.25; }
.anketa__lead { width: var(--col-6); margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 20px; line-height: 1.5; }
.anketa__lead + .anketa__lead { margin-top: 1.5em; }
.anketa__cards { display: flex; flex-wrap: wrap; gap: var(--gutter); margin-top: 40px; }
.anketa-card {
  width: var(--col-4); padding: 30px; border: 1px solid #000; border-radius: 20px;
  font-family: var(--font-head);
}
.anketa-card__title { margin: 0; padding-bottom: 14px; font-weight: 600; font-size: 20px; line-height: 1.35; }
.anketa-card__stars { margin: 0; padding-bottom: 20px; font-weight: 300; font-size: 16px; line-height: 1.55; }
.anketa-card__btn {
  display: inline-block; padding: 8px 15px; border-radius: 5px; background: #000; color: #fff;
  font-weight: 600; font-size: 13px; line-height: 1.4;
}
.anketa__note { margin: 70px 0 0; font-family: var(--font-text); font-weight: 300; font-size: 20px; line-height: 1.55; }
@media (max-width: 1200px) {
  .anketa-card__title { font-size: 18px; }
  .anketa-card__stars { font-size: 14px; }
  .anketa__note { font-size: 18px; }
}
@media (max-width: 960px) {
  .anketa { width: 100%; max-width: 640px; margin: 0 auto; padding: 100px var(--pad) 30px; }
  .anketa__lead { width: auto; }
  .anketa-card { width: 100%; }
}
@media (max-width: 640px) {
  .anketa__title { font-size: 30px; }
  .anketa__lead { font-size: 16px; }
  .anketa-card__title { font-size: 16px; }
  .anketa-card__stars { font-size: 12px; }
  .anketa__note { font-size: 16px; line-height: 1.45; }
}

/* --- Активация сертификата: обложка на весь экран + текст --- */
.cert-cover {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 80px var(--pad) 70px; text-align: center;
  background: linear-gradient(to bottom, #e8e8e8, #fff);
  font-family: var(--font-head);
}
.cert-cover__inner { width: var(--col-12, 1160px); max-width: 100%; }
.cert-cover__up { margin: 0; padding: 30px 0 60px; font-weight: 600; font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase; }
.cert-cover__title { margin: 0; padding: 24px 0 38px; font-weight: 600; font-size: 72px; line-height: 1.17; letter-spacing: .5px; }
.cert-cover__text { width: 700px; max-width: 100%; margin: 0 auto; padding-bottom: 30px; font-weight: 300; font-size: 24px; line-height: 1.2; }
.cert-cover__text p { margin: 0; }
.cert-cover__text p + p { margin-top: 2.4em; }
.cert-cover__text p:nth-child(3) { margin-top: 1.2em; }   /* «Архивное исследование…» ближе к своему заголовку */
.cert-cover__text strong { font-weight: 700; }
.cert-cover__sum { font-size: 34px; }
.cert-cover__arrow { position: absolute; left: 50%; bottom: 50px; width: 38px; height: 19px; margin-left: -19px; color: #000; }
.cert-cover__arrow svg { display: block; width: 100%; height: 100%; }
.cert-activate { width: var(--col-8); margin: 0 auto; padding: 30px 0 90px; text-align: center; }
.cert-activate p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 24px; line-height: 1.55; }
@media (max-width: 1200px) {
  .cert-cover__title { font-size: 68px; }
  .cert-cover__text { font-size: 22px; }
}
@media (max-width: 960px) {
  .cert-activate { width: 100%; max-width: 640px; padding-left: var(--pad); padding-right: var(--pad); }
}
@media (max-width: 640px) {
  .cert-cover__up { font-size: 10px; }
  .cert-cover__title { font-size: 24px; }
  .cert-cover__text { font-size: 20px; }
  .cert-cover__arrow { bottom: 27px; width: 27px; height: 13px; margin-left: -13px; }
}

/* --- Подарочный сертификат --- */
.gift { padding: 150px var(--pad) 90px; text-align: center; font-family: var(--font-head); }
.gift__title { width: var(--col-10); max-width: 100%; margin: 0 auto; font-weight: 600; font-size: 52px; line-height: 1.23; }
.gift__line { width: 100px; height: 3px; margin: 40px auto; background: var(--gold); }
.gift__text { width: var(--col-8); max-width: 100%; margin: 0 auto; font-weight: 300; font-size: 30px; line-height: 1.2; }
.gift__price {
  display: inline-block; margin: 60px 0 0; padding: 0 60px; border-radius: 30px;
  background: var(--gold); color: #fff; font-weight: 600; font-size: 22px; line-height: 60px;
}
@media (max-width: 640px) {
  .gift { padding-top: 90px; padding-bottom: 60px; }
  .gift__title { font-size: 28px; }
  .gift__text { font-size: 16px; line-height: 1.45; }
  .gift__price { padding: 0 30px; font-size: 18px; }
}

/* =================== ГЛАВНАЯ =================== */
/* общий вид секций: заголовок по центру, отступы как в Тильде */
.section { padding: 30px var(--pad) 60px; }
.section--grey { background: #efefef; padding-top: 47px; padding-bottom: 100px; }
.section__title {
  margin: 0; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: 42px; line-height: 1.23;
}
.section__lead {
  width: var(--col-6); max-width: 100%; margin: 40px auto 0; text-align: center;
  font-family: var(--font-head); font-weight: 300; font-size: 24px; line-height: 1.5;
}

/* обложка: метрическая книга под тёмной вуалью, логотип и девиз */
.hero {
  display: flex; flex-direction: column; align-items: center;
  height: 630px; padding: 134px var(--pad) 0; text-align: center;
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .7)),
              url('../../images/tild3466-3537-4264-b131-626433393838__metrikagavriil2.jpg') 50% 0 / cover; /* путь от assets/css/ */
}
.hero__logo { display: block; width: 504px; height: 204px; }
.hero__title {
  margin: 38px 0 0; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 48px; line-height: 1.2; letter-spacing: 3px;
}

/* услуги: четыре карточки на сером */
.services { padding: 30px var(--pad) 90px; background: #ccc; }
.services__grid { display: grid; grid-template-columns: repeat(4, 260px); gap: 40px; justify-content: center; }
.service { display: flex; flex-direction: column; border-radius: 15px; overflow: hidden; background: #fff; color: #000; }
.service__img { display: block; padding-bottom: 115.385%; background: 50% 50% / cover no-repeat; }
.service__title {
  display: block; min-height: 156px; padding: 27px 30px;
  font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.35;
}

/* окно с описанием услуги */
.service-dialog {
  width: min(1240px, calc(100vw - 40px)); max-height: calc(100vh - 80px); padding: 40px; border: 0;
  display: none; grid-template-columns: 460px 1fr; gap: 40px; align-items: start;
}
.service-dialog[open] { display: grid; }
.service-dialog::backdrop { background: rgba(0, 0, 0, .6); }   /* затемнение под окном */
.service-dialog__img { width: 100%; height: auto; }
.service-dialog__title { margin: 0 0 20px; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.35; }
.service-dialog__body p { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 18px; line-height: 1.55; }
.service-dialog__body a { color: #00f; border-bottom: 1px solid #00f; }
.service-dialog__close {
  position: fixed; top: 16px; right: 20px; width: 40px; height: 40px; padding: 0; border: 0;
  background: none; font-size: 40px; line-height: 1; cursor: pointer; color: #fff;
}
/* «← вернуться»: на компьютере — слева вверху над затемнением, на телефоне — белая полоса со стрелкой */
.service-dialog__back {
  position: fixed; top: 20px; left: 20px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-head); font-size: 14px; line-height: 1.5; color: #fff;
}

/* примеры работ: карточки с тенью */
.examples { display: grid; grid-template-columns: repeat(3, var(--col-4)); gap: 40px; justify-content: center; margin-top: 90px; }
.example { padding: 30px; border-radius: 5px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1); }
.example__title { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.35; color: #000; }
.example__title--link { color: #0033ff; border-bottom: 1px solid #0033ff; }
.example__more { display: block; margin-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: 13px; line-height: 1.5; color: #0033ff; }

/* команда */
.team { display: grid; grid-template-columns: repeat(3, var(--col-4)); gap: 60px 40px; justify-content: center; margin-top: 105px; }
.person { text-align: center; }
.person__photo { display: block; width: 200px; height: 200px; margin: 0 auto 20px; border-radius: 50%; object-fit: cover; }
.person__name { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.35; }
.person__role { width: 320px; max-width: 100%; margin: 3px auto 0; font-family: var(--font-head); font-weight: 300; font-size: 14px; line-height: 1.55; color: #7a7a7a; }

/* партнёры: 2 × 2 */
.partners { display: grid; grid-template-columns: repeat(2, 440px); gap: 80px 160px; justify-content: center; margin-top: 40px; text-align: center; }
.partner__logo { display: block; width: 440px; max-width: 100%; height: 147px; margin: 0 auto; object-fit: contain; }
.partner__logo--mh { width: 315px; }
.partner__logo--drevo { width: 299px; height: 150px; }
.partner__logo--genotek { width: 321px; height: 114px; margin-bottom: 18px; }
.partner__title { margin: 0; padding-top: 10px; font-family: var(--font-text); font-weight: 700; font-size: 22px; line-height: 1.55; }
.partner__text { margin: 20px 0 0; font-family: var(--font-text); font-weight: 400; font-size: 18px; line-height: 1.55; }
.partner__btn {
  display: inline-block; width: 200px; margin-top: 30px; border-radius: 30px; background: var(--gold); color: #fff;
  font-family: Arial, sans-serif; font-weight: 600; font-size: 14px; line-height: 55px; letter-spacing: 2px; text-transform: uppercase;
}

/* отзывы: лента, видна одна карточка */
.reviews .slider-arrow { top: 312px; }
.reviews .slider-arrow--prev { left: calc((100vw - 100%) / -2 + 30px); }
.reviews .slider-arrow--next { right: calc((100vw - 100%) / -2 + 30px); }
.reviews { position: relative; width: var(--wide); max-width: 100%; margin: 90px auto 0; }
.reviews__track { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; transition: height .3s; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 100%; scroll-snap-align: start;
  display: grid; grid-template-columns: 100px calc(var(--col-8) - 130px); gap: 30px; justify-content: center; align-items: start;
}
.review__avatar { width: 100px; height: 100px; border-radius: 50%; }
.review__text { margin: 0; font-family: var(--font-text); font-weight: 300; font-size: 20px; line-height: 1.55; }
.review__name { margin: 20px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.35; }
.review__date { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 14px; line-height: 1.55; }
.slider-arrow {
  position: absolute; z-index: 1; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: #e8e8e8 no-repeat 50% 50% / 9px 16px; cursor: pointer;
}
.slider-arrow--prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 16'%3E%3Cpath d='M8 1 1 8l7 7' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E"); }
.slider-arrow--next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 16'%3E%3Cpath d='m1 1 7 7-7 7' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E"); }
.slider-dots { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.slider-dots button { width: 16px; height: 26px; padding: 10px 5px; border: 0; background: none; cursor: pointer; }
.slider-dots button::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; }
.slider-dots button.is-active::before { background: #222; }

@media (max-width: 1200px) {
  .section__title { font-size: 38px; }
  .section__lead { font-size: 22px; }
  .services__grid { grid-template-columns: repeat(4, 220px); gap: 20px; }
  .service__img { padding-bottom: 115.385%; }
  .example__title { font-size: 20px; }
  .examples, .team { gap: 40px 20px; }
  .person__name { font-size: 20px; }
  .person__role { width: 260px; font-size: 12px; }
  .partners { grid-template-columns: repeat(2, 440px); gap: 80px 40px; }
  .partner__title { font-size: 20px; }
  .partner__text { font-size: 16px; }
  .review__text { font-size: 18px; }
  .review__name { font-size: 14px; }
  .review__date { font-size: 12px; }
  .hero { padding-top: 68px; }
  .hero__title { font-size: 44px; margin-top: 67px; }
}
@media (max-width: 980px) {
  .services__grid { grid-template-columns: minmax(0, 335px); gap: 20px; padding-top: 15px; }
  .service__img { padding-bottom: 57.692%; }
  .service__title { min-height: 121px; }
  .examples, .team { grid-template-columns: minmax(0, 335px); }
  .partners { grid-template-columns: minmax(0, 335px); }
  .service-dialog { grid-template-columns: 1fr; gap: 30px; padding: 70px 20px 40px; width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; margin: 0; }
  .service-dialog__close { display: none; }
  .service-dialog__back {
    top: 0; left: 0; right: 0; height: 50px; padding: 0 20px; text-align: left;
    background: #fff; border-bottom: 1px solid #e0e0e0; font-size: 30px; color: #000;
  }
  .service-dialog__back span { display: none; }
}
@media (max-width: 640px) {
  .section__title { font-size: 30px; }
  .section__lead { font-size: 20px; margin-top: 20px; }
  .hero { padding-top: 119px; }
  .hero__logo { width: 254px; height: 103px; }
  .hero__title { width: 300px; margin-top: 22px; font-size: 26px; line-height: 1.5; }
  .examples { margin-top: 44px; gap: 20px; }
  .example__title { font-size: 18px; }
  .team { margin-top: 45px; gap: 45px; }
  .person__name { font-size: 18px; }
  .partner__logo { width: 220px; height: 73px; }
  .partner__logo--mh { width: 220px; height: 39px; }
  .partner__logo--drevo { width: 216px; height: 108px; }
  .partner__logo--genotek { width: 251px; height: 89px; }
  .partner__title { font-size: 18px; }
  .partner__text { font-size: 14px; line-height: 1.45; }
  .reviews { margin-top: 40px; }
  .review { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 49px; }
  .review__text { font-size: 16px; line-height: 1.45; }
  .review__name, .review__date { font-size: 12px; }
  .slider-arrow { width: 24px; height: 24px; background-size: 6px 11px; }
  .reviews .slider-arrow { top: 50%; }
  .reviews .slider-arrow--prev { left: 5px; }
  .reviews .slider-arrow--next { right: 5px; }
}

/* =================== СТРАНИЦЫ-ВИТРИНЫ (Аудит, Книги, Партнёры…) ===================
   Общие куски: обложка с фото под вуалью, колонка текста, серая плашка,
   значки в ряд, листалка разворотов, галерея, линия, карточки «Примеры работ». */
:root { --col-3: 260px; }
.cover {
  display: flex; align-items: center; justify-content: center;
  height: 100vh; min-height: 500px; padding: 80px var(--pad) 0; text-align: center;
  background: #000 50% 50% / cover no-repeat;
}
.cover--price { height: 630px; min-height: 0; padding-top: 0; }
.cover__title {
  margin: 0; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 46px; line-height: 1.35; letter-spacing: 3px;
}
.cover__title--caps { text-transform: uppercase; }

/* колонка текста — как в статьях */
.lp-text { width: var(--col-8); margin: 0 auto; padding: 60px 0; }
.lp-text p { margin: 0; font-family: var(--font-text); font-weight: 300; font-size: 20px; line-height: 1.55; }
.lp-text p + p { margin-top: 1.55em; }
.lp-text a, .lp-wrap p a { color: #00f; border-bottom: 1px solid #00f; }
.lp-text--after-book { padding: 38px 0 60px; }
.lp-text--links { padding: 0 0 60px; }
.lp-wrap { padding-bottom: 75px; }

/* серая плашка со списком и значком-стрелкой */
.lp-box { width: var(--col-10); margin: 0 auto 90px; padding: 30px 20px 28px 55px; background: #ebebeb; }
.lp-box p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 20px; line-height: 1.55; }
.lp-box p + p { margin-top: 1.55em; }
.lp-box__lead { position: relative; }
.lp-box__lead::before {
  content: ""; position: absolute; left: -35px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #000
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10m-4-4 4 4-4 4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 100%;
}

/* значок + короткий текст, по четыре в ряд */
.lp-icons { display: grid; grid-template-columns: repeat(4, var(--col-3)); gap: 90px 40px; justify-content: center; padding: 45px var(--pad); }
.lp-icons p { margin: 0; text-align: center; font-family: var(--font-head); font-weight: 500; font-size: 18px; line-height: 1.55; }
.lp-icons span { display: block; }

/* листалка разворотов книги */
.section--book { background: #c7c7c7; padding: 90px var(--pad); }
.book-slider { position: relative; width: var(--col-10); max-width: 100%; margin: 90px auto 0; }
.book-slider__track { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.book-slider__track::-webkit-scrollbar { display: none; }
.book-slider__track img { flex: 0 0 100%; width: 100%; height: auto; scroll-snap-align: start; }
.book-slider .slider-arrow { top: 50%; margin-top: -40px; }
.book-slider .slider-arrow--prev { left: -70px; }
.book-slider .slider-arrow--next { right: -70px; }
.book-slider .slider-dots button::before { width: 8px; height: 8px; }
.book-slider .slider-dots button:not(.is-active)::before { background: #fff; }   /* на сером фоне — белые, как в Тильде */

/* галерея квадратных фото 3 в ряд */
.lp-gallery { display: grid; grid-template-columns: repeat(3, var(--col-4)); gap: 40px; justify-content: center; padding-top: 30px; }
.lp-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }

/* линия, тающая к краям */
.lp-divider { padding: 72px 0 73px; }
.lp-divider::before {
  content: ""; display: block; width: var(--col-8); height: 1px; margin: 0 auto; opacity: .2;
  background: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
}

/* карточки «Примеры работ»: номер и ссылка капсом */
.works { display: grid; grid-template-columns: repeat(3, var(--col-4)); gap: 40px; justify-content: center; margin-top: 90px; }
.work {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 145px; padding: 30px 30px 20px;
  border-radius: 5px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.work b { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.35; color: #000; }
.work span { margin-top: 40px; font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.55; color: #0033ff; text-transform: uppercase; }

@media (max-width: 1200px) {
  :root { --col-3: 220px; }
  .lp-text p { font-size: 18px; }
  .lp-icons { gap: 90px 20px; }
  .lp-gallery, .works { gap: 40px 20px; }
  .work b { font-size: 20px; }
}
@media (max-width: 960px) {
  .lp-text { width: 100%; max-width: 640px; padding-left: var(--pad); padding-right: var(--pad); }
  .lp-box { width: auto; max-width: 640px; margin: 0 var(--pad) 30px; padding: 20px 20px 28px 50px; }
  .lp-icons { grid-template-columns: minmax(0, 335px); gap: 25px; }
  .book-slider .slider-arrow--prev { left: 5px; }
  .book-slider .slider-arrow--next { right: 5px; }
  /* галерея на телефоне листается вбок */
  .lp-gallery { display: flex; gap: 20px; overflow-x: auto; padding: 30px var(--pad) 0; scroll-snap-type: x mandatory; }
  .lp-gallery img { flex: 0 0 300px; height: 360px; aspect-ratio: auto; scroll-snap-align: center; }
  .works { grid-template-columns: minmax(0, 335px); gap: 20px; margin-top: 75px; }
  .lp-divider::before { width: auto; margin: 0 var(--pad); }
}
@media (max-width: 640px) {
  .cover { height: 200px; min-height: 0; padding-top: 0; }
  .cover--price { height: 300px; }
  .cover__title { font-size: 34px; line-height: 1.12; }
  .lp-text p { font-size: 16px; line-height: 1.45; }
  .lp-text--first { padding-top: 30px; }
  .lp-box p { line-height: 1.45; }
  .section--book { padding: 90px 0; }
  .book-slider { margin-top: 45px; }
  .lp-divider { padding: 43px 0; }
  .work b { font-size: 18px; }
}

/* чёрная кнопка-«таблетка» (Заказать книгу, Написать на почту) */
.btn-black {
  display: inline-block; padding: 0 60px; border-radius: 30px; background: #000; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 60px;
}

/* =================== КНИГИ (/books/) =================== */
.books-cream { background: #fcfbef; }
.books-intro { padding: 109px var(--pad) 30px; text-align: center; }
.books-intro__logo { position: relative; width: 559px; max-width: 100%; margin: 0 auto; }
.books-intro__genus { display: block; width: 100%; height: auto; }
.books-intro__icon { position: absolute; left: 44.9%; top: 16.5%; width: 7.16%; height: auto; }
.books-intro__text {
  width: 840px; max-width: 100%; margin: 41px auto 0; padding-bottom: 73px;
  font-family: var(--font-head); font-weight: 400; font-size: 28px; line-height: 1.55;
}

.books-hero { display: grid; grid-template-columns: 460px 660px; gap: 40px; justify-content: center; padding: 45px var(--pad) 30px; }
.books-hero__title { margin: 109px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 46px; line-height: 1.23; }
.books-hero__descr { margin: 33px 0 60px; font-family: var(--font-head); font-weight: 300; font-size: 26px; line-height: 1.55; }
.books-hero__pics { position: relative; aspect-ratio: 660 / 725; }
.books-hero__pic { position: absolute; display: block; object-fit: cover; box-shadow: 0 0 15px rgba(0, 0, 0, .2); }
.books-hero__pic--1 { left: 0; top: 0; width: 58.5%; height: 71.86%; }
.books-hero__pic--2 { left: 61.5%; top: 14.07%; width: 38.5%; height: 42.07%; }
.books-hero__pic--3 { left: 19.24%; top: 58.76%; width: 61.5%; height: 35.03%; }

.books-lead {
  width: var(--col-10); max-width: 100%; margin: 0 auto; padding: 30px 0 105px; text-align: center;
  font-family: var(--font-head); font-weight: 300; font-size: 30px; line-height: 1.45;
}
.books-goal {
  width: var(--col-10); max-width: 100%; margin: 0 auto; padding: 6px 0 90px; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 46px; line-height: 1.55;
}
.books-goal span { display: block; }

.books-artefacts { padding: 60px var(--pad) 150px; }
.books-artefacts__lead { margin-top: 0; }
.artefacts { display: grid; grid-template-columns: repeat(3, var(--col-4)); gap: 40px; justify-content: center; align-items: start; margin-top: 90px; }
.artefact img { display: block; width: 100%; height: auto; border-radius: 20px; }
.artefact h3 { margin: 17px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.35; }
.artefact p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 14px; line-height: 1.55; }

.books-topics { padding-bottom: 150px; }
.books-topics .books-lead { padding-bottom: 60px; }
.topics { display: grid; grid-template-columns: repeat(3, var(--col-4)); gap: 40px; justify-content: center; text-align: center; }
.topic img { display: block; width: 64px; height: 64px; margin: 0 auto 40px; }
.topic h3 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.35; }
.topic p { margin: 20px 0 0; font-family: var(--font-head); font-weight: 300; font-size: 18px; line-height: 1.55; }

/* мозаика примеров на всю ширину: 4 колонки, большая — 2×2, последняя — 2×1 */
.books-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc((100vw - 100px) / 4);
  gap: 20px; padding: 20px 20px 75px;
}
.books-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.books-mosaic__big { grid-column: span 2; grid-row: span 2; }
.books-mosaic__wide { grid-column: span 2; }

.books-sign { padding-top: 165px; text-align: center; line-height: 0; }
.books-sign img { width: 160px; height: auto; }

.cover.books-order { height: 100vh; min-height: 600px; padding: 0 var(--pad); }   /* на телефоне тоже во весь экран */
.books-order__title { margin: 0; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 46px; line-height: 1.23; }
.books-order__descr { margin: 40px 0 0; color: #fff; font-family: var(--font-head); font-weight: 300; font-size: 30px; line-height: 1.55; }
.books-order__mail { margin: 40px 0 30px; color: #fcfbef; font-family: var(--font-text); font-weight: 300; font-size: 20px; line-height: 1.55; }
.books-order__mail a { color: inherit; border-bottom: 1px solid currentColor; }

@media (max-width: 1200px) {
  .books-hero { grid-template-columns: 388px 540px; gap: 12px; }
  .books-hero__title { margin-top: 46px; }
  .artefacts { grid-template-columns: repeat(2, 450px); gap: 40px 39px; }
  .artefact h3 { font-size: 18px; }
  .artefact p { font-size: 12px; }
  .books-mosaic { grid-auto-rows: calc((100vw - 100px) / 4); }
}
@media (max-width: 960px) {
  .books-hero { grid-template-columns: minmax(0, 335px); padding-top: 75px; }
  .books-hero__title { margin-top: 0; font-size: 30px; }
  .books-hero__descr { margin: 14px 0 30px; }
  /* три фото: два рядом, третье на всю ширину */
  .books-hero__pics { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
  .books-hero__pic { position: static; width: 100% !important; height: 213px !important; }
  .books-hero__pic--3 { grid-column: span 2; height: 184px !important; }
  .books-lead, .books-goal { padding-left: var(--pad); padding-right: var(--pad); }
  .artefacts, .topics { grid-template-columns: minmax(0, 335px); gap: 40px; }
  .books-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: calc((100vw - 30px) / 2); gap: 10px; padding: 10px 10px 75px; }
  .books-mosaic__wide { grid-row: span 2; }
}
@media (max-width: 640px) {
  .books-intro { padding-top: 98px; }
  .books-intro__text { margin-top: 11px; }
  .books-lead { font-size: 22px; }
  .books-goal { font-size: 28px; }
  .books-artefacts { padding-bottom: 90px; }
  .artefact h3 { font-size: 16px; }
  .books-topics { padding-bottom: 90px; }
  .books-sign { padding-top: 90px; }
  .books-order__title { font-size: 30px; }
  .books-order__descr { font-size: 16px; }
  .books-order__mail { font-size: 16px; }
}

/* кнопки: золотая и с чёрной обводкой */
.btn-gold {
  display: inline-block; padding: 0 60px; border-radius: 100px; background: var(--gold); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 60px;
}
.btn-outline {
  display: inline-block; padding: 0 60px; border: 2px solid #000; border-radius: 40px; color: #000;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 56px;
}
.cover--short { height: 80vh; }

/* =================== ПАРТНЁРЫ (/partners/) =================== */
.partners-head { padding: 150px var(--pad) 60px; background: #efefef; text-align: center; }
.partners-head__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 48px; line-height: 1.17; }
.partners-logos { display: flex; align-items: center; justify-content: center; gap: 0; height: 300px; }
.partners-logos__genotek { width: 260px; height: auto; }
.partners-logos__plus { width: 160px; text-align: center; font-family: var(--font-head); font-size: 60px; line-height: 1; }
.partners-logos__genus { width: 290px; height: auto; margin-top: -40px; }
.partners-dna { display: grid; grid-template-columns: 560px 560px; gap: 40px; justify-content: center; align-items: center; padding: 30px var(--pad) 75px; }
.partners-dna p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 24px; line-height: 1.55; }
.partners-dna img { display: block; width: 100%; height: auto; }
.partners-test { padding: 30px var(--pad) 90px; text-align: center; }
.partners-test__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 48px; line-height: 1.23; }
.partners-test__text { width: var(--col-8); max-width: 100%; margin: 0 auto; font-family: var(--font-head); font-weight: 300; font-size: 24px; line-height: 1.55; }
.partners-test__text + .partners-test__text { margin-top: 1.55em; }
.partners-test .btn-gold { margin-top: 60px; border-radius: 30px; }
.cover.partners-bonus { height: 569px; padding-top: 0; }
.partners-bonus__title { margin: 0; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 48px; line-height: 1.23; }
.partners-bonus__text { max-width: 600px; margin: 25px auto 70px; color: #fff; font-family: var(--font-head); font-weight: 300; font-size: 24px; line-height: 1.5; }

/* =================== БОЕВОЙ ПУТЬ (/warbio/) =================== */
.warbio-title { font-size: 52px; line-height: 1.55; letter-spacing: 0; }
.warbio-lead {
  width: calc(var(--col-8) + 2 * var(--pad)); max-width: 100%; margin: 0 auto; padding: 60px var(--pad); text-align: center;
  font-family: var(--font-head); font-weight: 300; font-size: 26px; line-height: 1.45;
}
.wars { display: grid; grid-template-columns: repeat(3, var(--col-4)); gap: 40px; justify-content: center; padding: 45px var(--pad) 90px; }
.war img { display: block; width: 100%; aspect-ratio: 360 / 238; object-fit: cover; }
.war h2 { margin: 25px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 28px; line-height: 1.17; }
.war p { margin: 19px 0 0; font-family: var(--font-text); font-weight: 300; font-size: 18px; line-height: 1.55; }
.stories { display: grid; grid-template-columns: repeat(4, var(--col-3)); gap: 40px; justify-content: center; padding: 105px var(--pad) 165px; }
.story { color: #000; }
.story img { display: block; width: 100%; aspect-ratio: 260 / 346; object-fit: cover; }
.story h3 { margin: 30px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.17; }
.story p { margin: 10px 0 0; font-family: var(--font-head); font-weight: 300; font-size: 16px; line-height: 1.55; }
.warbio-more { padding-bottom: 120px; text-align: center; }

/* =================== ПРИМЕРЫ РАБОТ (/portfolio/) =================== */
.portfolio-title { font-size: 72px; line-height: 1.17; letter-spacing: 0; }
.portfolio-group { padding-top: 45px; padding-bottom: 45px; }
.portfolio-group--last { padding-top: 30px; padding-bottom: 165px; }
.cases { display: grid; grid-template-columns: repeat(2, 560px); gap: 60px 40px; justify-content: center; margin-top: 90px; }
.case { color: #000; text-align: center; }
.case img { display: block; width: 100%; aspect-ratio: 560 / 370; object-fit: cover; }
.case h3 { margin: 29px 40px 0; font-family: var(--font-head); font-weight: 600; font-size: 36px; line-height: 1.23; }
.case p { margin: 10px 40px 0; font-family: var(--font-head); font-weight: 300; font-size: 16px; line-height: 1.55; }

@media (max-width: 1200px) {
  .partners-dna { grid-template-columns: 460px 460px; gap: 20px; }
  .cases { grid-template-columns: repeat(2, 460px); gap: 60px 20px; }
  .wars { gap: 20px; }
  .stories { gap: 20px; }
}
@media (max-width: 960px) {
  .partners-dna { grid-template-columns: minmax(0, 300px); }
  .partners-dna img { order: -1; }
  .wars, .stories { grid-template-columns: minmax(0, 335px); gap: 60px; }
  .cases { grid-template-columns: minmax(0, 335px); }
}
@media (max-width: 640px) {
  .partners-head { padding-top: 90px; }
  .partners-head__title { font-size: 30px; }
  .partners-logos { flex-direction: column; height: auto; padding: 23px 0 20px; }
  .partners-logos__genotek { width: 182px; }
  .partners-logos__plus { margin: 0; }
  .partners-logos__genus { width: 186px; margin-top: -10px; }
  .partners-dna p { font-size: 20px; font-weight: 500; line-height: 1.45; }
  .partners-test__title { font-size: 28px; }
  .partners-test__text { font-size: 20px; line-height: 1.45; }
  .cover.partners-bonus { height: 560px; }
  .partners-bonus__title { font-size: 30px; }
  .partners-bonus__text { font-size: 20px; }
  .partners-bonus .btn-gold { display: block; padding: 0; }
  .cover.cover--short { height: 720px; }
  .cover.warbio-cover { height: 100vh; }
  .warbio-title, .portfolio-title { font-size: 30px; line-height: 1.17; }
  .warbio-lead { font-size: 20px; }
  .war h2 { font-size: 24px; }
  .war p { font-size: 14px; }
  .stories { padding-top: 105px; padding-bottom: 90px; }
  .warbio-more { padding-bottom: 90px; }
  .case h3 { margin: 29px 40px 0; font-size: 28px; }
  .case p { font-size: 12px; }
  .cases { margin-top: 60px; }
  .portfolio-group--last { padding-bottom: 90px; }
}

/* =================== СЕМЕЙНЫЕ ИСТОРИИ (/familyhistory/…) =================== */
.story-page--pink { background: #f9ebe4; }
.fh-intro > * { max-width: var(--col-10); }
.fh-intro { width: var(--wide); max-width: 100%; min-height: 900px; margin: 0 auto; padding: 146px var(--pad) 60px; box-sizing: content-box; }
.fh-intro__title { margin: 0 0 20px; font-family: var(--font-head); font-weight: 600; font-size: 64px; line-height: 1.23; }
.fh-intro__title span { font-size: 44px; }
.fh-intro p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 20px; line-height: 1.55; }
.fh-intro p + p { margin-top: 1.55em; }
.fh-intro a, .fh-metrika a { color: #00f; border-bottom: 1px solid #00f; }
.fh-stars { padding: 0 0 45px; text-align: center; font-size: 16px; letter-spacing: 4px; }
.fh-metrika > p:not(.fh-metrika__note) { max-width: 860px; }
.fh-metrika { width: var(--col-10); max-width: 100%; margin: 0 auto; padding: 0 var(--pad) 90px; box-sizing: content-box; }
.fh-metrika p { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 20px; line-height: 2.25; }
.fh-metrika__quote { margin-top: 2.25em !important; font-style: italic; }
.fh-audio { display: block; width: 300px; max-width: 100%; margin: 40px 0 0; }
.fh-metrika .fh-metrika__note { width: 600px; max-width: 100%; margin-top: 60px; font-size: 16px; line-height: 1.55; }
.fh-scan { display: block; width: 100%; height: auto; cursor: zoom-in; }
.fh-scan--narrow { display: none; }
.fh-after {
  width: var(--wide); max-width: 100%; margin: 0 auto; padding: 60px var(--pad) 120px; box-sizing: content-box; text-align: center;
  font-family: var(--font-head); font-weight: 400; font-size: 20px; line-height: 2.1;
}
.fh-credits { padding: 90px var(--pad); background: #111; text-align: center; }
.fh-credits img { display: block; width: 78px; height: 78px; margin: 0 auto 30px; }
.fh-credits p { margin: 0; color: #fff; opacity: .8; font-family: var(--font-text); font-weight: 400; font-size: 14px; line-height: 26px; letter-spacing: .5px; }

@media (max-width: 960px) {
  .fh-intro, .fh-metrika, .fh-after { width: auto; box-sizing: border-box; }
}
@media (max-width: 640px) {
  .fh-intro { min-height: 0; padding-top: 119px; }
  .fh-intro__title { font-size: 30px; }
  .fh-intro__title span { font-size: 24px; }
  .fh-intro p { font-size: 14px; line-height: 1.45; }
  .fh-metrika p { font-size: 16px; line-height: 2; }
  .fh-scan--wide { display: none; }
  .fh-scan--narrow { display: block; }
  .fh-after { font-size: 16px; line-height: 2; padding-bottom: 90px; }
}

/* =================== ГАВРИИЛ МАКАРОВ (/familyhistory/gavriil/) ===================
   Колонка текста начинается там же, где у статей (слева на сетке 8 колонок),
   фото — 560px с подписью справа, оливковые вставки в две колонки. */
.gv-page { --gv-left: calc((100% - var(--col-10)) / 2); }
.gv-hero {
  position: relative; display: flex; justify-content: center; height: 100vh; min-height: 560px;
  padding: 132px var(--pad) 0; text-align: center; color: #fff;
  background: #000 50% 50% / cover no-repeat fixed;
}
.gv-hero > div { min-width: 0; max-width: 100%; }
.gv-hero__title { margin: 0; overflow-wrap: break-word; font-family: var(--font-head); font-weight: 600; font-size: 72px; line-height: 1.17; }
.gv-hero__years { display: block; margin-top: 10px; font-size: 36px; }
.gv-hero__lead { width: 700px; max-width: 100%; margin: 30px auto 0; font-family: var(--font-head); font-weight: 300; font-size: 24px; line-height: 1.5; }
.gv-hero__arrow { position: absolute; left: 50%; bottom: 50px; width: 38px; height: 19px; margin-left: -19px; color: #fff; }
.gv-hero__arrow svg { display: block; width: 100%; height: 100%; }

/* текст */
.gv-text { width: var(--col-8); max-width: 100%; margin: 0 0 0 var(--gv-left); padding: 45px 0; }
.gv-text p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 22px; line-height: 1.55; }
.gv-text p + p { margin-top: 1.55em; }
.gv-text--black { width: auto; padding: 53px var(--gv-left); background: #000; }
.gv-text--black p { max-width: var(--col-8); color: #ff7e4d; }
.gv-text a, .gv-cols a, .gv-banner a { color: inherit; border-bottom: 1px solid currentColor; }

/* фото с подписью справа */
.gv-side { display: grid; grid-template-columns: 560px 260px; gap: 40px; align-items: start; margin: 0 0 0 var(--gv-left); padding: 45px 0 75px; }
.gv-side img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.gv-side figcaption, .gv-song figcaption {
  font-family: var(--font-text); font-weight: 400; font-size: 18px; line-height: 1.2; color: #666;
}
.gv-side--wide { margin-left: calc((100% - var(--wide)) / 2); grid-template-columns: 360px 360px; padding: 45px 0 30px; }

/* две колонки на оливковом */
.gv-cols { display: grid; grid-template-columns: 460px 460px; gap: 40px; justify-content: center; padding: 45px var(--pad); background: #cdcba3; }
.gv-cols p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 18px; line-height: 1.55; }
.gv-cols p + p { margin-top: 1.55em; }

/* «Часть N» и звёзды */
.gv-part { margin: 0; padding: 45px var(--pad) 20px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 36px; line-height: 1.23; }
.gv-part span { display: block; margin-bottom: 20px; font-size: 16px; letter-spacing: 1px; }
.gv-stars { padding: 0 0 75px; text-align: center; font-size: 14px; letter-spacing: 4px; }

/* цитата с большой кавычкой */
.gv-quote { position: relative; width: var(--col-8); max-width: 100%; margin: 0 0 0 var(--gv-left); padding: 45px 0 75px; }
.gv-quote::before {
  content: "“"; position: absolute; left: -80px; top: 30px;
  font-family: var(--font-head); font-size: 120px; line-height: 1; color: #ccc;
}
.gv-quote p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 32px; line-height: 1.55; }
.gv-quote footer { margin-top: 30px; font-family: var(--font-text); font-size: 18px; line-height: 1.2; color: #666; }

/* песня + портрет */
.gv-song { display: grid; grid-template-columns: 500px 386px 202px; gap: 20px; justify-content: center; align-items: start; padding: 43px var(--pad) 98px; }
.gv-song__quote { margin: 141px 0 0; }
.gv-song__quote p { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 32px; line-height: 1.25; }
.gv-song__quote footer { margin-top: 30px; font-family: var(--font-text); font-size: 18px; color: #666; }
.gv-song__photo { display: contents; }
.gv-song__photo img { display: block; width: 100%; height: auto; cursor: zoom-in; }

/* фото слева, текст справа */
.gv-pair { display: grid; grid-template-columns: 460px 560px; gap: 40px; justify-content: center; align-items: start; padding: 45px var(--pad) 75px; margin-left: -100px; }
.gv-pair img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.gv-pair p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 22px; line-height: 1.55; }

/* ряд снимков одной высоты */
.gv-row { display: flex; justify-content: center; align-items: flex-start; gap: 20px; width: var(--wide); max-width: 100%; margin: 0 auto; padding: 45px 0 15px; }
.gv-row img { display: block; flex: 1 1 0; min-width: 0; height: auto; cursor: zoom-in; }
.gv-caption { margin: 0 auto; padding: 10px var(--pad) 75px; max-width: 560px; text-align: center; font-family: var(--font-text); font-size: 18px; line-height: 1.2; color: #666; }

/* чёрная плашка с оранжевым текстом */
.gv-banner { width: 1240px; max-width: 100%; margin: 45px auto; padding: 60px; background: #000; box-sizing: border-box; }
.gv-banner p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 32px; line-height: 1.2; color: #ff7e4d; }

/* снимки на всю ширину */
.gv-wide { width: var(--wide); max-width: 100%; margin: 0 auto; padding: 45px 0 15px; }
.gv-wide img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.gv-wide--part { width: auto; margin-left: calc((100% - var(--wide)) / 2); padding-top: 15px; }
.gv-wide--part img { width: 762px; max-width: 100%; }
.gv-duo { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 15px; }
.gv-duo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }

/* чёрный блок с текстом по центру */
.gv-dark { padding: 45px calc((100% - var(--wide)) / 2) 90px; background: #000; text-align: center; color: #fff; }
.gv-dark p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 32px; line-height: 1.2; }
.gv-dark p + p { margin-top: 1.2em; }
.gv-dark--small { padding-top: 120px; padding-bottom: 105px; }
.gv-dark--small p { font-family: var(--font-text); font-size: 18px; line-height: 1.5; }

/* фото «до/после»: верхний снимок обрезается по ползунку */
.gv-ba { position: relative; width: 560px; max-width: calc(100% - 2 * var(--pad)); margin: 45px 0 0 var(--gv-left); }
.gv-ba img { display: block; width: 100%; height: auto; }
.gv-ba__top { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.gv-ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.gv-ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.gv-ba + .gv-caption { max-width: 560px; margin: 0 0 0 var(--gv-left); }

@media (max-width: 1200px) {
  .gv-side { grid-template-columns: 460px 200px; gap: 20px; }
  .gv-cols { grid-template-columns: 380px 380px; }
  .gv-song { grid-template-columns: 380px 300px 160px; }
  .gv-pair { grid-template-columns: 380px 460px; margin-left: 0; }
  .gv-quote::before { left: -60px; }
}
@media (max-width: 960px) {
  .gv-page { --gv-left: var(--pad); }
  .gv-text, .gv-quote { width: auto; margin: 0; padding-left: var(--pad); padding-right: var(--pad); }
  .gv-text--black { padding: 45px var(--pad); }
  .gv-side, .gv-side--wide { grid-template-columns: 1fr; gap: 15px; margin: 0 auto; padding: 30px var(--pad) 45px; max-width: 640px; }
  .gv-cols { grid-template-columns: minmax(0, 600px); gap: 1.55em; }
  .gv-song, .gv-pair { grid-template-columns: minmax(0, 600px); gap: 20px; }
  .gv-song__quote { margin-top: 0; }
  .gv-quote::before { position: static; display: block; height: 60px; }
  .gv-banner { margin: 30px var(--pad); width: auto; padding: 30px; }
  .gv-row { flex-wrap: wrap; padding: 30px var(--pad) 15px; }
  .gv-row img { flex: 1 1 40%; }
  .gv-wide, .gv-wide--part { padding: 30px var(--pad) 15px; margin: 0; width: auto; }
  .gv-duo { grid-template-columns: 1fr; }
  .gv-dark { padding: 45px var(--pad) 60px; }
  .gv-ba + .gv-caption { margin: 0 var(--pad); }
}
@media (max-width: 640px) {
  .gv-hero { padding-top: 100px; background-attachment: scroll; }
  .gv-hero__title { font-size: 34px; }
  .gv-hero__years { font-size: 24px; }
  .gv-hero__lead { font-size: 18px; }
  .gv-text p, .gv-pair p { font-size: 18px; line-height: 1.45; }
  .gv-cols p { font-size: 16px; line-height: 1.45; }
  .gv-part { font-size: 28px; }
  .gv-quote p, .gv-song__quote p, .gv-banner p, .gv-dark p { font-size: 22px; }
  .gv-dark--small p { font-size: 15px; }
  .gv-side figcaption, .gv-caption, .gv-quote footer { font-size: 15px; }
}

/* =================== ПОДВАЛ =================== */
.footer { padding: 60px 0 45px; background: var(--footer-bg); text-align: center; }
.footer__inner { width: var(--col-6); margin: 0 auto; }
.footer__contacts {
  margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 48px; line-height: 1.23;
}
.footer__contacts > * { font-family: var(--font-text); }   /* сами телефон и почта — Roboto, как в оригинале */
.footer__contacts a { color: #181818; }
.footer__copy { margin: 45px 0 30px; font-family: var(--font-text); font-weight: 300; font-size: 18px; line-height: 1.55; }
.footer .social { justify-content: center; gap: 6px; margin-top: 20px; padding-top: 4px; color: #000; }
@media (max-width: 1200px) {
  .footer__contacts { font-size: 44px; }
  .footer__copy { font-size: 16px; }
}
@media (max-width: 960px) {
  .footer__inner { width: 100%; max-width: 640px; padding: 0 var(--pad); }
  .footer__contacts { word-break: break-word; }
}
@media (max-width: 640px) {
  .footer__contacts { font-size: 30px; }
  .footer__copy { font-size: 14px; line-height: 1.45; }
}

/* =================== УВЕЛИЧЕНИЕ ФОТО ПО КЛИКУ =================== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999999; display: flex; align-items: center; justify-content: center;
  background: #fff; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: calc(100vw - 120px); max-height: calc(100vh - 40px); object-fit: contain; user-select: none; }
@media (max-width: 640px) { .lightbox__img { max-width: 100vw; max-height: 100vh; } }
.lightbox__btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #000; cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, .15);
}
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__prev[hidden], .lightbox__next[hidden] { display: none; }
@media (max-width: 640px) {
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
}

/* =================== ТЕЛЕФОН И ПЛАНШЕТ: удобнее, чем на Тильде ===================
   (18.11.2026) Мелкий текст 12px → 14px; команда по двое в ряд;
   карточки «Примеры работ» компактнее. Убрать этот блок — вернётся вид Тильды. */
@media (max-width: 980px) {
  .person__role, .review__name, .review__date, .artefact p, .case p, .wide figcaption { font-size: 14px; line-height: 1.45; }

  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-left: auto; margin-right: auto; padding: 0 var(--pad); gap: 40px 20px; }
  .person__photo { width: 130px; height: 130px; margin-bottom: 14px; }
  .person__name { font-size: 17px; }
  .person__role { width: auto; }

  .work { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 16px; min-height: 0; padding: 22px 24px; }
  .work b { min-width: 12px; }
  .work span { margin-top: 0; }
}

/* ссылки из меню на блоки (#services, #reviews, #contacts): не прятать заголовок под шапкой */
@media (min-width: 981px) {
  section[id], footer[id] { scroll-margin-top: 80px; }
}

/* =================== ОТЗЫВЫ: по два в ряд (23.11.2026) ===================
   На экранах шире 980px — два компактных отзыва рядом: аватар с именем и датой сверху, текст ниже.
   Листалка в main.js сама считает, сколько отзывов видно, и листает по столько же. */
.reviews__more { margin: 30px 0 0; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.5; }
.reviews__more a { color: #0033ff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.reviews__more a:hover { text-decoration-thickness: 2px; }
@media (min-width: 981px) {
  .review {
    flex-basis: 50%; box-sizing: border-box; padding: 0 30px;
    grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "av name" "av date" "text text";
    column-gap: 16px; row-gap: 0; justify-content: stretch; align-content: start;
  }
  .review__body { display: contents; }
  .review__avatar { grid-area: av; width: 64px; height: 64px; }
  .review__name { grid-area: name; align-self: end; margin: 0; font-size: 16px; }
  .review__date { grid-area: date; font-size: 14px; }
  .review__text { grid-area: text; margin-top: 18px; font-size: 16px; line-height: 1.55; }
  /* длинный отзыв (больше 1000 знаков, см. data-slider-pairs) — один на всю ширину, текст в две колонки */
  .review--wide { flex-basis: 100%; }
  .review--wide .review__text { column-count: 2; column-gap: 60px; }
  /* короткий без пары — один, по центру, шириной в половину */
  .review--solo { flex-basis: 100%; padding: 0 calc(25% + 30px); }
  /* второй в паре — без точки «прилипания», чтобы лента не останавливалась посередине страницы */
  .review--second { scroll-snap-align: none; }
}

/* ===== ПЛАШКА COOKIE (partials/cookie.njk, initCookie в main.js) ===== */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 99990;
  display: flex; align-items: center; gap: 24px;
  max-width: 560px; box-sizing: border-box; padding: 14px 14px 14px 28px;
  background: var(--footer-bg); border-radius: 40px; box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  font-family: var(--font-text); font-weight: 400; font-size: 16px; line-height: 1.35; color: var(--black);
}
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; }
.cookie__text a { color: #0033ff; text-decoration: none; border-bottom: 1px solid currentColor; }
.cookie__text a:hover { color: #000; }
.cookie__ok {
  flex: none; padding: 12px 24px; border: 0; border-radius: 30px; cursor: pointer;
  background: #2b2b2b; color: #fff; font: inherit; font-size: 18px;
}
.cookie__ok:hover { background: #000; }
@media (max-width: 640px) {
  /* справа 96px — место под кнопку чата Re:plain (кружок 70px в правом нижнем углу) */
  /* центр плашки на высоте центра кнопки чата: 20px отступ + 35px половина кружка */
  .cookie { left: 12px; right: 96px; bottom: 55px; transform: translateY(50%); gap: 12px; padding: 10px 10px 10px 20px; font-size: 10px; }
  .cookie__ok { padding: 10px 18px; font-size: 16px; }
}

/* ===== РЕКВИЗИТЫ В ПОДВАЛЕ (partials/footer.njk, данные в site.json → legal, age) ===== */
.footer__legal { margin: 30px 0 0; font-family: var(--font-text); font-weight: 300; font-size: 14px; line-height: 1.6; color: #666; }
.footer__legal span { white-space: nowrap; }
.footer__legal a { color: #666; text-decoration: none; border-bottom: 1px solid currentColor; }
.footer__legal a:hover { color: #000; }   /* рамка снизу берёт цвет текста и темнеет вместе с ним */
@media (max-width: 640px) {
  .footer { padding-bottom: 100px; }   /* чтобы кнопка чата Re:plain не закрывала последнюю строку */
}
