/* ==========================================================================
   site.css
   Дизайн-система генерируемых сайтов. Чистый CSS, без Tailwind.
   Лежит в server/public/themes/css/, отдаётся статикой и подключается
   в превью, просмотр и публикацию. К админке отношения не имеет.

   Все настраиваемые значения приходят переменными из темы.
   Тема генерируется на сервере: server/config/design-system.js -> buildThemeVars()
   и вставляется отдельным <style> после этого файла.

   Структура:
     1. Сброс
     2. Токены по умолчанию
     3. База и типографика
     4. Примитивы разметки
     5. Компоненты
     6. Варианты секций
     7. Адаптив
     8. Доступность
     9. Арт-слой
   ========================================================================== */

/* 1. Сброс ---------------------------------------------------------------- */

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

* { margin: 0; }

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

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

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

button { cursor: pointer; }

p,
h1,
h2,
h3,
h4,
li { overflow-wrap: break-word; }

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

a { color: inherit; }


/* 2. Токены по умолчанию -------------------------------------------------- */
/* Тема переопределяет их правилом .site{...} ниже по каскаду.
   Здесь значения-заглушки, чтобы файл был рабочим сам по себе. */

.site {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --text: #131720;
  --muted: #5d6a78;
  --accent: #1d4ed8;
  --accent-fg: #ffffff;
  --border: #e2e7ec;

  --font-h: 'Inter', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;

  --radius: 12px;
  --density: 88;
  --maxw: 1180px;
  --gutter: 20px;

  /* производные, не трогает тема */
  --rhythm: calc(var(--density) * 1px);
  --s1: 6px;
  --s2: 12px;
  --s3: 20px;
  --s4: 32px;
  --s5: 48px;
  --s6: 72px;
  --radius-sm: calc(var(--radius) * 0.55);
  --line: 1px solid var(--border);
}


/* 3. База и типографика --------------------------------------------------- */

.site {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site h1,
.site h2,
.site h3,
.site .h1,
.site .h2,
.site .h3 {
  font-family: var(--font-h);
  font-weight: var(--fw-h, 700);
  letter-spacing: var(--ls-h, -0.02em);
  text-wrap: balance;
}

.site h1,
.site .h1 {
  font-size: clamp(34px, 1.6rem + 3.2vw, 62px);
  line-height: 1.03;
}

.site h2,
.site .h2 {
  font-size: clamp(26px, 1.3rem + 2.1vw, 44px);
  line-height: 1.1;
}

.site h3,
.site .h3 {
  font-size: clamp(19px, 1rem + 0.6vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(17px, 1rem + 0.35vw, 20px);
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.body-text {
  color: var(--muted);
  max-width: 68ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section--accent .eyebrow,
.section--accent .lead,
.section--accent .body-text { color: inherit; opacity: 0.86; }


/* 4. Примитивы разметки --------------------------------------------------- */

.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.container--narrow { width: min(100% - var(--gutter) * 2, 760px); }

/* Единственное место, где задаётся вертикальный ритм секции.
   Варианты ниже не переопределяют padding-block, чтобы не спорить с этим правилом. */
.section {
  padding-block: clamp(40px, calc(var(--rhythm) * 0.55 + 2.2vw), var(--rhythm));
  position: relative;
  isolation: isolate;
}

.section--alt { background: var(--surface); }

.section--accent {
  background: var(--accent);
  color: var(--accent-fg);
}

.section--accent .card {
  background: color-mix(in srgb, var(--accent-fg) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent-fg) 24%, transparent);
}

.section--flush { padding-block: 0; }

.stack > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s4); }

.grid {
  display: grid;
  gap: clamp(16px, 1vw + 10px, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--s5);
}

.section-head > * + * { margin-top: var(--s2); }

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lead { margin-inline: auto; }


/* 5. Компоненты ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  filter: none;
}

.section--accent .btn {
  background: var(--accent-fg);
  color: var(--accent);
}

.card {
  background: var(--bg);
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 1vw + 16px, 32px);
}

.card > * + * { margin-top: var(--s2); }

.section--alt .card { background: var(--bg); }

.media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-169 { aspect-ratio: 16 / 9; }

.field {
  width: 100%;
  padding: 13px 16px;
  border: var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}

.field::placeholder { color: var(--muted); opacity: 0.75; }

.field:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

textarea.field {
  resize: vertical;
  min-height: 120px;
}

.divider {
  border: 0;
  border-top: var(--line);
}


/* 6. Варианты секций ------------------------------------------------------ */

/* --- header --- */
.header {
    /* background: var(--bg); */
    padding: 20px 0;
    background: var(--surface);
    border-bottom: var(--line);
}
.header.header-bar { padding: 0; }
.header .content{
    display: flex;
    align-items: center;
}
.header .logo{
    display: inline-flex;
    margin-right: 20px;
    max-width: 140px;
}
.header .logo img{
  width: 100%;
  height: auto;
  object-fit: contain;
}
.header-menu{
    display: flex;
    align-items: center;
    gap: var(--s4);
    margin-right: auto;
}
.header-menu a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--text);
}
.header-contact {
    display: flex;
    align-items: center;
    gap: var(--s4);
}
.header-contact a{
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--text);
}
.header-contact a svg{
    stroke: var(--text);
}

.menu-toggle {
    display: none;
    /* это <button>, снимаем браузерные умолчания */
    padding: 0;
    border: 0;
    background: none;
    appearance: none;
    flex-shrink: 0;
    position: relative;
    z-index: 30;
    width: 30px;
    height: 22px;
    margin-left: auto;
    cursor: pointer;
}

.menu-toggle div{
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--text);
    position: absolute;
    transition: all 0.6s;
    transform: rotate(0) translate(0, 0);
}
.menu-toggle div:nth-child(1){
    top: 0;
    left: 0;
}
.menu-toggle div:nth-child(2){
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 1;
}

.menu-toggle div:nth-child(3){
    bottom: 0;
    left: 0;
}
.menu-toggle.active div:nth-child(1){
    transform: rotate(45deg) translate(-50%, -50%);
    transform-origin: top left;
    left: 50%;
    top: 50%;
}
.menu-toggle.active div:nth-child(2){
    left: 150%;
    transform: translateY(0) rotate(-360deg);
    opacity: 0;
}
.menu-toggle.active div:nth-child(3){
    width: 100%;
    transform: rotate(-45deg) translate(-50%, 50%);
    transform-origin: bottom left;
    left: 50%;
    bottom: 50%;
}

.menu-toggle:hover div{   
    opacity: 0.7
}

/* --- main --- */
.main h1 {
    margin-bottom: var(--s3);
}
.main h2,
.main h3 {
    margin-top: var(--s4);
    margin-bottom: var(--s3);
}
.main .text-default {
    font-weight: 400;
    color: var(--text);
}

.main .text-default p {
    margin-top: var(--s3);
    margin-bottom: var(--s3);
}

.main .text-default p:first-child {
    margin-top: 0;
}
            
.main .text-default p:last-child {
    margin-bottom: 0;
}

.main .text-default a{
    color: var(--accent);
    text-decoration: underline;
}

.main .text-default a:hover{
    text-decoration: none;
}

.main .text-default img{
    max-width: 100%;
    height: auto;
}

.main .text-default ul li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 4px;
}

.main .text-default ul,
.main .text-default ol{
    margin: 0;
    padding: 0;
    list-style: none;
}

.main .text-default ul li:before{
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.main .text-default ol li {
    margin-left: 16px;
}

/* --- hero.split --- */

.hero-split[data-animations] .hero-split__body{
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s;
}
.hero-split[data-animations] .hero-split__media{
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s;
}
.hero-split.animations .hero-split__body{
  opacity: 1;
  transform: translateX(0px);
}
.hero-split.animations .hero-split__media{
  opacity: 1;
  transform: translateX(0px);
}

.hero-split__inner {
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.hero-split__body > * + * { margin-top: var(--s3); }
.hero-split__body .btn { margin-top: var(--s4); }
.hero-split__media { aspect-ratio: 4 / 3; }

/* --- hero.overlay --- */
.hero-overlay {
  display: grid;
  min-height: min(78vh, 720px);
  isolation: isolate;
  align-content: center;
}
.hero-overlay[data-animations] h1{
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s;
}
.hero-overlay[data-animations] p{
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s 0.3s;
}
.hero-overlay[data-animations] a{
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s 0.6s;
}
.hero-overlay.animations h1{
  opacity: 1;
  transform: translateY(0px);
}
.hero-overlay.animations p{
  opacity: 1;
  transform: translateY(0px);
}
.hero-overlay.animations a{
  opacity: 1;
  transform: translateY(0px);
}

.hero-overlay__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #000 30%, transparent),
    color-mix(in srgb, #000 62%, transparent)
  );
}

.hero-overlay__body {
  color: #fff;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero-overlay__body > * + * { margin-top: var(--s3); }
.hero-overlay__body .lead { color: rgba(255, 255, 255, 0.85); margin-inline: auto; }
.hero-overlay__body .btn { margin-top: var(--s4); }

/* --- hero.minimal --- */
/* .hero-minimal__body { max-width: 20ch; } */
.hero-minimal[data-animations] .hero-minimal__body {
  transform: translateX(-20px);
  opacity: 0;
  transition: all 1s;
}
.hero-minimal[data-animations] .hero-minimal__meta {
  transform: translateX(-20px);
  opacity: 0;
  transition: all 1s 0.3s;
}
.hero-minimal.animations .hero-minimal__body {
  transform: translateX(0px);
  opacity: 1;
}
.hero-minimal.animations .hero-minimal__meta {
  transform: translateX(0px);
  opacity: 1;
}

.hero-minimal h1 { font-size: clamp(40px, 2rem + 5.4vw, 96px); }
.hero-minimal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  align-items: flex-end;
  justify-content: space-between;
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: var(--line);
}
.hero-minimal__meta .lead { max-width: 42ch; margin: 0; }

/* --- text.centered --- */
.text-centered { text-align: center; }
.text-centered .body-text { margin-inline: auto; }
.text-centered > * + * { margin-top: var(--s3); }

/* --- text.twoCol --- */
.text-two__inner {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.text-two__aside > * + * { margin-top: var(--s2); }
.text-two__body > * + * { margin-top: var(--s3); }

/* --- features.cards --- */
.features-cards__item h3 { margin-bottom: var(--s1); }
.features-cards__item p { color: var(--muted); }

/* --- features.numbered --- */
.features-num__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  padding-block: var(--s4);
  border-top: var(--line);
}

.features-num__item:last-child { border-bottom: var(--line); }

.features-num__n {
  font-family: var(--font-h);
  font-size: clamp(28px, 1rem + 2vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
}

.features-num__item p { color: var(--muted); margin-top: var(--s1); }

/* --- stats.inline --- */
.stats-inline__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(20px, 2vw, 40px);
}

.stats-inline__item { border-left: 3px solid var(--accent); padding-left: var(--s3); }

.stats-inline__value {
  font-family: var(--font-h);
  font-size: clamp(26px, 1.2rem + 2vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stats-inline__label {
  margin-top: var(--s2);
  color: var(--muted);
  font-size: 15px;
}

.section--accent .stats-inline__item { border-left-color: var(--accent-fg); }
.section--accent .stats-inline__label { color: inherit; opacity: 0.8; }

/* --- testimonials.cards --- */
.testimonials-cards__item blockquote {
  font-size: clamp(17px, 1rem + 0.3vw, 19px);
  line-height: 1.55;
}

.testimonials-cards__author {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: var(--line);
  font-weight: 600;
  font-size: 15px;
}

.testimonials-cards__role {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

/* --- gallery.grid --- */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery-grid__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid__item { aspect-ratio: 4 / 4; }
.gallery-grid__item:first-child { aspect-ratio: 1 / 1; }

/* --- gallery.small --- */
.gallery-small { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery-small__item { aspect-ratio: 1 / 1; }

/* --- cta.band --- */
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.cta-band__body { max-width: 56ch; }
.cta-band__body > * + * { margin-top: var(--s2); }

/* --- contact.formLeft --- */
.contact-left__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.contact-left__list { margin-top: var(--s4); }
.contact-left__list > * + * { margin-top: var(--s3); }

.contact-left__row {
  display: grid;
  gap: 2px;
  padding-bottom: var(--s3);
  border-bottom: var(--line);
}

.contact-left__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-left__value { font-size: 18px; font-weight: 600; text-decoration: none; }

.contact-left__form > * + * { margin-top: var(--s2); }
.contact-left__form .btn { width: 100%; margin-top: var(--s3); }
.contact-left__note { font-size: 13px; color: var(--muted); }

/* --- footer.compact --- */
.footer-compact { border-top: var(--line); }

.footer-compact .logo{
  display: inline-flex;
  margin-bottom: 20px;
  max-width: 140px;
}

.footer-compact .logo img{
  width: 100%;
  height: auto;
}

.footer-compact__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: space-between;
  align-items: flex-start;
}

.footer-compact__brand {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 20px;
}

.footer-compact__text {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
  margin-top: var(--s1);
}

.footer-compact__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
}

.footer-compact__links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

.footer-compact__links a:hover { color: var(--accent); }

.footer-compact__contacts {
  display: grid;
  gap: 4px;
  font-size: 15px;
}

.footer-compact__contacts a { text-decoration: none; }


/* 6б. Новые варианты секций ------------------------------------------------
   По три варианта на каждый тип. Поля у вариантов одного типа совпадают,
   поэтому переключение макета не теряет контент.
   -------------------------------------------------------------------------- */

/* --- общее для контактов, одна форма на три варианта --- */
.contact-form > * + * { margin-top: var(--s2); }
.contact-form .btn { width: 100%; margin-top: var(--s3); }
.contact-note { font-size: 13px; color: var(--muted); }

.contact-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 14px;
}

/* --- header.centered --- */
/* Логотип центрируем потоком, контакты выводим из потока.
   В сетке 1fr auto 1fr широкие контакты раздвигали колонку
   и логотип уезжал влево. */
.header-centered__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding-block: var(--s2);
}

.header-centered__top .logo { max-width: 180px; }

.header-centered__top .logo img {
  width: 100%;
  height: auto;
}

.header-centered__contact {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: var(--s3);
  align-items: center;
  font-size: 15px;
}

.header-centered__contact a { text-decoration: none; }

.header-centered__top .menu-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.header-centered__menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding-block: var(--s2);
  border-top: var(--line);
}

.header-centered__menu a {
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-centered__menu a:hover { color: var(--accent); }

/* --- header.bar --- */
.header-bar__top {
  background: var(--surface);
  border-bottom: var(--line);
  font-size: 14px;
}

.header-bar__topInner {
  display: flex;
  justify-content: flex-end;
  gap: var(--s4);
  padding-block: 8px;
}

.header-bar__topInner a { text-decoration: none; color: var(--muted); }
.header-bar__topInner a:hover { color: var(--accent); }

.header-bar__main { gap: var(--s4); }
.header-bar__cta { white-space: nowrap; }

/* --- features.split --- */
.features-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 12fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.features-split__head { position: sticky; top: var(--s4); }
.features-split__head .lead { margin-top: var(--s2); max-width: 30ch; }

.features-split__list { border-top: var(--line); }

.features-split__item {
  padding-block: clamp(18px, 2vw, 28px);
  border-bottom: var(--line);
}

.features-split__item h3 { font-size: 1.1rem; }
.features-split__item p { color: var(--muted); margin-top: 6px; }

/* --- stats.grid --- */
.stats-grid__item {
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2vw, 28px);
  display: grid;
  gap: 6px;
}

.stats-grid__value {
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats-grid__label { color: var(--muted); font-size: 15px; }

/* --- stats.ribbon --- */
.stats-ribbon__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--s4);
  text-align: center;
}

.stats-ribbon__item + .stats-ribbon__item { border-left: var(--line); }

.stats-ribbon__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.stats-ribbon__value {
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  letter-spacing: var(--ls-h);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

/* --- testimonials.rows --- */
.testimonials-rows__list { border-top: var(--line); }

.testimonials-rows__item {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  padding-block: clamp(20px, 2.4vw, 34px);
  border-bottom: var(--line);
}

.testimonials-rows__item blockquote {
  font-family: var(--font-h);
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  line-height: 1.4;
}

.testimonials-rows__who {
  display: grid;
  gap: 2px;
  font-size: 15px;
  text-align: right;
}

.testimonials-rows__role { color: var(--muted); font-size: 14px; }

/* --- testimonials.spotlight --- */
.testimonials-spot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.testimonials-spot__main blockquote {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.35;
}

.testimonials-spot__main .testimonials-spot__who { margin-top: var(--s3); }

.testimonials-spot__rest { display: grid; gap: var(--s3); }

.testimonials-spot__item {
  padding-bottom: var(--s3);
  border-bottom: var(--line);
}

.testimonials-spot__item blockquote { color: var(--muted); }
.testimonials-spot__item .testimonials-spot__who { margin-top: 10px; }

.testimonials-spot__who {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--s2);
  align-items: baseline;
  font-size: 15px;
  font-weight: 600;
}

.testimonials-spot__role { color: var(--muted); font-weight: 400; font-size: 14px; }

/* --- gallery.strip --- */
.gallery-strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 32vw, 420px);
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  padding-bottom: var(--s2);
  scrollbar-width: thin;
}

.gallery-strip__item {
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-strip__item img { width: 100%; height: 100%; object-fit: cover; }

/* --- cta.card --- */
.cta-card__box {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 4vw, 56px);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.cta-card__box > * + * { margin-top: var(--s3); }
.cta-card__box .lead { margin-inline: auto; max-width: 48ch; }
.section--accent .cta-card__box { background: transparent; border-color: color-mix(in srgb, var(--accent-fg) 30%, transparent); }

/* --- cta.split --- */
.cta-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: end;
  padding-top: var(--s4);
  border-top: 2px solid currentColor;
}

.cta-split__title {
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
}

.cta-split__side { display: grid; gap: var(--s3); justify-items: start; }
.cta-split__sub { color: var(--muted); }
.section--accent .cta-split__sub { color: inherit; opacity: 0.8; }

/* --- contact.stacked --- */
.contact-stacked__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  padding-block: var(--s4);
  border-top: var(--line);
  border-bottom: var(--line);
  text-align: center;
}

.contact-stacked__cell { display: grid; gap: 6px; }

.contact-stacked__form {
  max-width: 560px;
  margin: var(--s5) auto 0;
}

/* --- contact.aside --- */
.contact-aside__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: stretch;
}

.contact-aside__card {
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
}

.contact-aside__card .lead { color: inherit; opacity: 0.85; margin-top: var(--s2); }

.contact-aside__list {
  margin-top: auto;
  padding-top: var(--s4);
  display: grid;
  gap: var(--s2);
}

.contact-aside__list .contact-value { color: inherit; }

.contact-aside .contact-form {
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px);
  align-self: start;
}

.section--accent .contact-aside__card {
  background: color-mix(in srgb, var(--accent-fg) 14%, transparent);
  color: inherit;
}

/* --- footer.columns --- */
.footer-columns { border-top: var(--line); }

.footer-columns__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s4);
  padding-bottom: var(--s4);
}

.footer-columns .logo { display: inline-flex; max-width: 140px; margin-bottom: var(--s2); }
.footer-columns .logo img { width: 100%; height: auto }

.footer-brand {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 20px;
}

.footer-columns__text { color: var(--muted); font-size: 15px; max-width: 42ch; margin-top: var(--s1); }

.footer-columns__nav,
.footer-columns__contacts {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 15px;
}

.footer-columns__nav .contact-label,
.footer-columns__contacts .contact-label { margin-bottom: 4px; }

.footer-columns__nav a,
.footer-columns__contacts a { text-decoration: none; color: var(--muted); }
.footer-columns__nav a:hover,
.footer-columns__contacts a:hover { color: var(--accent); }

.footer-columns__bottom {
  border-top: var(--line);
  padding-top: var(--s3);
  font-size: 14px;
  color: var(--muted);
}

/* --- footer.big --- */
.footer-big { border-top: var(--line); }

.footer-big__name {
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  letter-spacing: var(--ls-h);
  font-size: clamp(2.4rem, 11vw, 9rem);
  line-height: 0.9;
  margin-bottom: var(--s4);
  overflow-wrap: anywhere;
}

.footer-big__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
  padding-top: var(--s3);
  border-top: var(--line);
  font-size: 15px;
}

.footer-big__contacts { display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer-big__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.footer-big__row a { text-decoration: none; }
.footer-big__row a:hover { color: var(--accent); }
.footer-big__text { color: var(--muted); font-size: 15px; margin-top: var(--s3); max-width: 52ch; }
.footer-big__logo { display: inline-flex; max-width: 140px; margin-top: var(--s3); }
.footer-big__logo img { width: 100%; height: auto; }

/* --- main.narrow --- */
.main-narrow h1 { margin-bottom: var(--s4); }

/* --- main.cover --- */
.main-cover { padding-top: 0; }

.main-cover__head {
  background: var(--surface);
  border-bottom: var(--line);
  padding-block: clamp(32px, calc(var(--rhythm) * 0.5 + 2vw), var(--rhythm));
  margin-bottom: clamp(24px, 3vw, 48px);
}

.main-cover__head h1 { max-width: 20ch; }
.main-cover__body .text-default > * + * { margin-top: var(--s3); }

/* --- адаптив новых вариантов --- */
@media (max-width: 900px) {
  .footer-columns__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .testimonials-spot__inner { grid-template-columns: minmax(0, 1fr); }
  .cta-split__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 760px) {
  .header-centered__top { justify-content: flex-start; }
  .header-centered__contact { display: none; }
  .header-centered__top .menu-toggle { display: inline-flex; }
  .header-centered__menu { display: none; }
  .header-centered__menu.active { display: grid; justify-items: center; }

  .header-bar__topInner { justify-content: center; gap: var(--s3); }
  .header-bar__cta { display: none; }

  .features-split__inner { grid-template-columns: minmax(0, 1fr); }
  .features-split__head { position: static; }

  .stats-ribbon__list { grid-auto-flow: row; }
  .stats-ribbon__item + .stats-ribbon__item {
    border-left: 0;
    border-top: var(--line);
    padding-top: var(--s3);
  }

  .testimonials-rows__item { grid-template-columns: minmax(0, 1fr); }
  .testimonials-rows__who { text-align: left; }

  .contact-stacked__row { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .contact-aside__inner { grid-template-columns: minmax(0, 1fr); }
  .footer-columns__grid { grid-template-columns: minmax(0, 1fr); }
}


/* 6в. Новые типы секций ----------------------------------------------------
   faq, тарифы, команда, клиенты, карта, видео и слайдеры.
   Листание слайдера в /themes/js/site.js, здесь только раскладка.
   -------------------------------------------------------------------------- */

/* --- слайдер, общая механика --- */
.slider { position: relative; }

.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { scroll-snap-align: start; min-width: 0; }

.slider--media .slider__track { grid-auto-columns: min(100%, 760px); }

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s3);
}

.slider__btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  transition: border-color 0.15s, opacity 0.15s;
}

.slider__btn svg { width: 20px; height: 20px; }
.slider__btn:hover { border-color: var(--accent); color: var(--accent); }
.slider__btn[disabled] { opacity: 0.3; pointer-events: none; }

.slider__dots { display: flex; gap: 8px; align-items: center; }

.slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 25%, transparent);
  transition: background 0.15s, transform 0.15s;
}

.slider__dot.is-active { background: var(--accent); transform: scale(1.35); }

/* Без скрипта кнопки бесполезны, прячем их до инициализации */
.slider:not([data-slider-ready]) .slider__nav { display: none; }

.gallery-slider__item {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-slider__item img { width: 100%; height: 100%; object-fit: cover; }

.slider--quote .slider__slide { text-align: center; padding-inline: var(--s2); }

.slider--quote blockquote {
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  line-height: 1.4;
}

.testimonials-slider__who {
  margin-top: var(--s3);
  display: flex;
  gap: var(--s2);
  justify-content: center;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
}

.testimonials-slider__role { color: var(--muted); font-weight: 400; }

/* --- faq, общее --- */
.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  padding-block: var(--s3);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__sign {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}

.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__item[open] summary { color: var(--accent); }

.faq__answer { padding-bottom: var(--s3); color: var(--muted); max-width: 70ch; }

/* --- faq.list --- */
.faq-list__items { border-top: var(--line); }
.faq-list .faq__item { border-bottom: var(--line); }

/* --- faq.split --- */
.faq-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.faq-split__head { position: sticky; top: var(--s4); }
.faq-split__head .lead { margin-top: var(--s2); max-width: 28ch; }
.faq-split__items { border-top: var(--line); }
.faq-split .faq__item { border-bottom: var(--line); }

/* --- faq.cards --- */
.faq-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
  align-items: start;
}

.faq-cards .faq__item { padding-inline: clamp(16px, 2vw, 24px); }
.faq-cards .faq__item summary { padding-block: clamp(14px, 1.6vw, 20px); }

/* --- тарифы, общее --- */
.pricing__name {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 1.1rem;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--s2);
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1;
}

.pricing__note {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.pricing__features {
  list-style: none;
  padding: 0;
  margin-top: var(--s3);
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}

.pricing__features li { padding-left: 20px; position: relative; }

.pricing__features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* --- pricing.cards --- */
.pricing-cards__item { display: flex; flex-direction: column; }
.pricing-cards__item .pricing__features { flex: 1; }
.pricing__btn { width: 100%; margin-top: var(--s4); }

.pricing-cards__item.is-lead {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* --- pricing.table --- */
.pricing-table__list { border-top: var(--line); }

.pricing-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s4);
  align-items: start;
  padding-block: clamp(18px, 2vw, 28px);
  border-bottom: var(--line);
}

.pricing-table__price {
  text-align: right;
  display: grid;
  gap: 4px;
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1;
  white-space: nowrap;
}

.pricing-table__btn { margin-top: var(--s4); }

/* --- pricing.simple --- */
.pricing-simple__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 48px);
}

.pricing-simple__head { padding-bottom: var(--s2); border-bottom: 2px solid currentColor; }

.pricing-simple__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--s1);
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

/* --- команда, общее --- */
.team__name { font-family: var(--font-h); font-weight: 600; font-size: 1.05rem; }
.team__role { color: var(--accent); font-size: 14px; margin-top: 2px; }
.team__bio { color: var(--muted); font-size: 15px; margin-top: var(--s2); }

.team__photo,
.team-rows__photo,
.team-photos__photo { border-radius: var(--radius); overflow: hidden; }

.team__photo { aspect-ratio: 4 / 5; margin-bottom: var(--s3); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- team.rows --- */
.team-rows__list { border-top: var(--line); }

.team-rows__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  padding-block: clamp(18px, 2vw, 28px);
  border-bottom: var(--line);
}

.team-rows__photo { aspect-ratio: 1; border-radius: 999px; }
.team-rows__photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- team.photos --- */
.team-photos__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--s3);
}

.team-photos__photo { aspect-ratio: 3 / 4; }
.team-photos__photo img { width: 100%; height: 100%; object-fit: cover; }

.team-photos__item figcaption {
  margin-top: var(--s3);
  display: grid;
  gap: 2px;
}

/* --- клиенты --- */
.logos__name {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  white-space: nowrap;
}

.logos__note { display: block; font-family: var(--font-b); font-weight: 400; font-size: 13px; color: var(--muted); }

.logos-row__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s3);
}

.logos__chip {
  border: var(--line);
  border-radius: var(--radius);
  padding: 14px clamp(16px, 2vw, 26px);
  text-align: center;
}

.logos-grid__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: var(--line);
  border-left: var(--line);
}

.logos-grid__cell {
  border-right: var(--line);
  border-bottom: var(--line);
  padding: clamp(18px, 2.4vw, 30px);
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 96px;
}

.logos-marquee__viewport { overflow: hidden; margin-top: var(--s4); }

.logos-marquee__track {
  display: flex;
  width: max-content;
  animation: logos-run 32s linear infinite;
}

.logos-marquee__group {
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  padding-right: clamp(28px, 5vw, 72px);
  align-items: center;
}

.logos-marquee__viewport:hover .logos-marquee__track { animation-play-state: paused; }

@keyframes logos-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- карта --- */
.map__frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  min-height: 320px;
  position: relative;
}

.map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.map__frame--empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s2);
  border: var(--line);
  text-decoration: none;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}

.map__frame--empty:hover { border-color: var(--accent); color: var(--accent); }
.map__pin svg { width: 40px; height: 40px; }
.map__open { font-size: 15px; font-weight: 600; }

.map__list { margin-top: var(--s4); display: grid; gap: var(--s3); }
.map__list .contact-value { display: block; margin-top: 2px; }
.map__btn { margin-top: var(--s4); }

.map-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: stretch;
}

.map-split__inner .map__frame { min-height: 380px; }
.map-split__inner .map__contacts { align-self: center; }

/* --- map.full --- */
.map-full { padding-block: 0; }
.map-full__frame { border-radius: 0; min-height: 460px; }
.map-full__frame iframe { min-height: 460px; }

.map-full__over {
  position: relative;
  margin-top: -340px;
  margin-bottom: clamp(32px, 5vw, 72px);
  pointer-events: none;
}

/* Без вставки карты наезжать не на что, иначе заглушка выглядит сломанной */
.map-full__frame.map__frame--empty + .map-full__over { margin-top: var(--s4); }

.map-full__card {
  pointer-events: auto;
  background: var(--bg);
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 40px);
  max-width: 420px;
}

/* --- map.card --- */
.map-card__frame { border: var(--line); }

.map-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s3);
}

/* --- видео --- */
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.video__frame iframe,
.video__frame img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
}

.video__play svg { width: 30px; height: 30px; }

.video-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}

.video-split__body > * + * { margin-top: var(--s3); }
.video-card__box { border: var(--line); border-radius: var(--radius); padding: clamp(12px, 1.6vw, 20px); }

/* --- адаптив новых типов --- */
@media (max-width: 900px) {
  .faq-cards__grid { grid-template-columns: minmax(0, 1fr); }
  .team-photos__row { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .faq-split__inner { grid-template-columns: minmax(0, 1fr); }
  .faq-split__head { position: static; }

  .pricing-table__row { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .pricing-table__price { text-align: left; }

  .team-rows__item { grid-template-columns: 72px minmax(0, 1fr); gap: var(--s3); }
  .team-photos__row { grid-template-columns: minmax(0, 1fr); }

  .map-split__inner,
  .video-split__inner { grid-template-columns: minmax(0, 1fr); }

  .map-full__frame,
  .map-full__frame iframe { min-height: 320px; }
  .map-full__over { margin-top: -120px; }
  .map-full__card { max-width: none; }

  .slider--media .slider__track { grid-auto-columns: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .logos-marquee__track { animation: none; }
  .slider__track { scroll-behavior: auto; }
}


/* 6г. Добивка старых типов до пяти вариантов ------------------------------- */

/* --- header.stack --- */
.header-stack__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s2);
}

.header-stack__top .logo { max-width: 180px; }
.header-stack__top .logo img { width: 100%; height: auto; }
.header-stack__contact { display: flex; gap: var(--s3); align-items: center; font-size: 15px; }
.header-stack__contact a { text-decoration: none; }

.header-stack__bar { background: var(--surface); border-block: var(--line); }

.header-stack__bar .header-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding-block: 12px;
}

.header-stack__bar a { text-decoration: none; font-size: 15px; }
.header-stack__bar a:hover { color: var(--accent); }

/* --- header.boxed --- */
.header-boxed { padding-top: var(--s3); }

.header-boxed__box {
  display: flex;
  align-items: center;
  gap: var(--s4);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px clamp(14px, 2vw, 24px);
}

.header-boxed__box .logo { max-width: 150px; }
.header-boxed__box .logo img { width: 100%; height: auto; }
.header-boxed__box .header-menu { display: flex; gap: var(--s3); margin-inline: auto; }
.header-boxed__box .header-menu a { text-decoration: none; font-size: 15px; }
.header-boxed__box .header-menu a:hover { color: var(--accent); }
.header-boxed__box .phone { text-decoration: none; font-weight: 600; white-space: nowrap; }

/* --- hero.center --- */
.hero-center__body { text-align: center; }
.hero-center__body > * + * { margin-top: var(--s3); }
.hero-center__body .lead { margin-inline: auto; max-width: 54ch; }

.hero-center__media {
  margin-top: clamp(28px, 4vw, 56px);
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-center__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- hero.card --- */
.hero-card {
  position: relative;
  display: grid;
  align-content: center;
  min-height: min(76vh, 700px);
  isolation: isolate;
}

.hero-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-card__box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 56px);
  max-width: 560px;
}

.hero-card__box > * + * { margin-top: var(--s3); }

/* --- text.quote --- */
.text-quote__line {
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  letter-spacing: var(--ls-h);
  font-size: clamp(1.5rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  margin-top: var(--s2);
}

.text-quote__note { color: var(--muted); margin-top: var(--s4); max-width: 60ch; }

/* --- text.imageFull --- */
.text-imagefull__media {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}

.text-imagefull__media img { width: 100%; height: 100%; object-fit: cover; }
.text-imagefull__body { margin-top: clamp(24px, 3vw, 48px); }
.text-imagefull__body > * + * { margin-top: var(--s3); }

/* --- features.checklist --- */
.features-check__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3) clamp(24px, 4vw, 64px);
}

.features-check__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s2);
  align-items: start;
  padding-bottom: var(--s3);
  border-bottom: var(--line);
}

.features-check__tick { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; flex: none; }
.features-check__item h3 { font-size: 1.05rem; }
.features-check__item p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* --- features.tiles --- */
.features-tiles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

.features-tiles__item {
  position: relative;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 40px);
  isolation: isolate;
}

.features-tiles__n {
  position: absolute;
  right: -0.08em;
  bottom: -0.28em;
  z-index: -1;
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 12%, transparent);
}

.features-tiles__item h3 { font-size: 1.15rem; }
.features-tiles__item p { color: var(--muted); margin-top: var(--s2); max-width: 36ch; }

/* --- stats.split --- */
.stats-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.stats-split__list { border-top: var(--line); }

.stats-split__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: var(--line);
}

.stats-split__value {
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats-split__label { color: var(--muted); text-align: right; }

/* --- stats.circles --- */
.stats-circles__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--s3);
  text-align: center;
}

.stats-circles__ring {
  width: clamp(104px, 13vw, 150px);
  aspect-ratio: 1;
  margin: 0 auto var(--s3);
  display: grid;
  place-content: center;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-variant-numeric: tabular-nums;
}

.stats-circles__label { color: var(--muted); font-size: 15px; }

/* --- testimonials.compact --- */
.testimonials-compact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) clamp(24px, 4vw, 64px);
}

.testimonials-compact__item {
  padding-left: var(--s3);
  border-left: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.testimonials-compact__who {
  margin-top: var(--s2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--s2);
  align-items: baseline;
  font-size: 15px;
  font-weight: 600;
}

.testimonials-compact__role { color: var(--muted); font-weight: 400; font-size: 14px; }

/* --- gallery.masonry --- */
.gallery-masonry__cols {
  columns: 3;
  column-gap: var(--s3);
}

.gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: var(--s3);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-masonry__item img { width: 100%; height: auto; display: block; }

/* --- cta.center --- */
.cta-center__body { text-align: center; }
.cta-center__body > * + * { margin-top: var(--s3); }
.cta-center__body h2 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.1; }
.cta-center__body .lead { margin-inline: auto; max-width: 52ch; }

/* --- cta.inline --- */
.cta-inline { padding-block: clamp(20px, 2.4vw, 32px); }

.cta-inline__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s3);
}

.cta-inline__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s2); }
.cta-inline__title { font-family: var(--font-h); font-weight: 600; font-size: 1.05rem; }
.cta-inline__sub { color: var(--muted); font-size: 15px; }
.section--accent .cta-inline__sub { color: inherit; opacity: 0.8; }

/* --- contact.wide --- */
.contact-wide__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--s2);
  max-width: 860px;
  margin-inline: auto;
}

.contact-wide__form .btn { white-space: nowrap; }
.contact-wide__note { text-align: center; margin-top: var(--s2); }

.contact-wide__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: var(--line);
}

/* --- contact.plain --- */
.contact-plain__body { text-align: center; }
.contact-plain__body > * + * { margin-top: var(--s3); }
.contact-plain__body .lead { margin-inline: auto; max-width: 48ch; }

.contact-plain__phone {
  display: block;
  font-family: var(--font-h);
  font-weight: var(--fw-h);
  letter-spacing: var(--ls-h);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1;
  text-decoration: none;
  margin-top: var(--s4);
}

.contact-plain__phone:hover { color: var(--accent); }
.contact-plain__rest { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }

/* --- footer.center --- */
.footer-center { border-top: var(--line); }
.footer-center__body { text-align: center; }
.footer-center__body > * + * { margin-top: var(--s3); }
.footer-center__body .logo { display: inline-flex; max-width: 140px; }
.footer-center__body .logo img { width: 100%; height: auto; }
.footer-center__text { color: var(--muted); font-size: 15px; max-width: 48ch; margin-inline: auto; }

.footer-center__links,
.footer-center__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s3);
  font-size: 15px;
}

.footer-center__links a,
.footer-center__contacts a { text-decoration: none; }
.footer-center__links a { color: var(--muted); }
.footer-center__links a:hover { color: var(--accent); }

/* --- footer.minimal --- */
.footer-minimal { border-top: var(--line); padding-block: var(--s4); }

.footer-minimal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s3);
  font-size: 15px;
}

.footer-minimal__brand { font-family: var(--font-h); font-weight: 600; }
.footer-minimal__contacts { display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer-minimal__contacts a { text-decoration: none; color: var(--muted); }
.footer-minimal__contacts a:hover { color: var(--accent); }

/* --- main.aside --- */
.main-aside__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.main-aside__head { position: sticky; top: var(--s4); }
.main-aside__body .text-default > * + * { margin-top: var(--s3); }

/* --- main.columns --- */
.main-columns__title { max-width: 24ch; margin-bottom: var(--s4); }

.main-columns__text {
  columns: 2;
  column-gap: clamp(28px, 4vw, 64px);
}

.main-columns__text > * { break-inside: avoid-column; }
.main-columns__text > * + * { margin-top: var(--s3); }

/* --- адаптив добивки --- */
@media (max-width: 900px) {
  .gallery-masonry__cols { columns: 2; }
  .features-tiles__grid { grid-template-columns: minmax(0, 1fr); }
  .main-columns__text { columns: 1; }
  /* .header-boxed__box .header-menu { display: none; } */
}

@media (max-width: 760px) {
  .header-stack__bar { display: none; }
  .header-stack__bar.active { display: block; }
  .header-stack__bar .header-menu { flex-direction: column; }
  .header-stack__contact { display: none; }

  .hero-card { min-height: auto; padding-block: var(--s5); }
  .hero-card__box { max-width: none; }

  .features-check__list,
  .testimonials-compact__grid { grid-template-columns: minmax(0, 1fr); }

  .stats-split__inner { grid-template-columns: minmax(0, 1fr); }
  .stats-circles__list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gallery-masonry__cols { columns: 1; }

  .contact-wide__form { grid-template-columns: minmax(0, 1fr); }
  .main-aside__inner { grid-template-columns: minmax(0, 1fr); }
  .main-aside__head { position: static; }
}

/* 6д. Иконки ---------------------------------------------------------------
   В поле секции лежат только данные пути SVG, обёртку рисует компонент.
   Цвет всегда currentColor, поэтому иконка следует за палитрой и за фоном
   секции, в том числе на акцентной заливке.
   -------------------------------------------------------------------------- */

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: block;
}

/* Иконка в строке с текстом: сдвигаем по базовой линии, а не по верху */
.icon--inline {
  display: inline-block;
  vertical-align: -0.18em;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.45em;
  color: var(--accent);
}

/* Акцент бывает не только у секции: карточка контактов красится сама,
   и на ней иконка цвета var(--accent) слилась бы с фоном */
.section--accent .icon--inline,
.contact-aside__card .icon--inline { color: inherit; opacity: 0.75; }

/* Иконка в кружке. Карточки услуг и тарифов.
   Центрируем флексом, а не place-content: иначе трек грида ужимается
   до содержимого, а содержимое задано в процентах от трека, и браузер
   разрывает эту петлю нулевым размером. */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 56px);
  aspect-ratio: 1;
  margin-bottom: var(--s3);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.icon-badge .icon { width: 26px; height: 26px; }

.section--accent .icon-badge {
  background: color-mix(in srgb, var(--accent-fg) 16%, transparent);
  color: inherit;
}

/* --- по вариантам --- */

/* features.numbered: иконка занимает место номера, сетка не едет */
.features-num__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 56px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: var(--line);
  color: var(--accent);
}

.features-num__ico .icon { width: 26px; height: 26px; }

/* features.checklist: иконка на месте галочки */
.features-check__tick { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* features.tiles: иконка в углу, номер остаётся фоном */
.features-tiles__ico {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: var(--s3);
}

/* pricing.simple: иконка над названием */
.pricing-simple__ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: var(--s2); }

/* pricing.table: название становится строкой с иконкой */
.pricing-table__body .pricing__name { display: flex; align-items: center; }

/* stats: иконка над числом, мельче самого числа */
.stats__ico {
  width: 24px;
  height: 24px;
  color: color-mix(in srgb, var(--accent) 70%, transparent);
  margin-bottom: var(--s2);
}

.section--accent .stats__ico { color: inherit; opacity: 0.7; }
.stats-inline__item .stats__ico { margin-bottom: 10px; }
.stats-split__ico { margin-bottom: 0; align-self: center; }
.stats-split__item { align-items: center; }

/* faq: иконка слева от вопроса, не ломает выравнивание плюса справа */
.faq__q { display: flex; align-items: baseline; gap: 0; min-width: 0; }
.faq__q .icon--inline { align-self: center; }

/* Контакты, шапки и подвалы: встроенные иконки мельче и спокойнее */
.header-contact .icon--inline,
.header-centered__contact .icon--inline,
.header-bar__topInner .icon--inline,
.header-stack__contact .icon--inline,
.footer-compact__contacts .icon--inline,
.footer-columns__contacts .icon--inline,
.footer-big__contacts .icon--inline,
.footer-center__contacts .icon--inline,
.footer-minimal__contacts .icon--inline {
  width: 0.95em;
  height: 0.95em;
  opacity: 0.75;
}

@media (prefers-reduced-motion: no-preference) {
  .icon-badge { transition: background 0.15s; }
}


/* 7. Адаптив -------------------------------------------------------------- */

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-contact{
    display: none;
  }
  .menu-toggle{ display: block; }
  .header-menu{
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    opacity: 0;
    align-items: flex-start;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 70px 20px 40px;
    gap: var(--s2);
    transition: all 0.3s;
  }
  .header-menu.active{
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .site { font-size: 16px; }

  .grid--2,
  .grid--3,
  .grid--4,
  .text-two__inner,
  .contact-left__inner,
  .hero-split__inner { grid-template-columns: minmax(0, 1fr); }

  .hero-split__inner { direction: ltr; }
  .hero-split--reverse .hero-split__media { order: -1; }

  /* .hero-minimal__body { max-width: none; } */
  .hero-minimal__meta { flex-direction: column; align-items: flex-start; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid__item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__inner .btn { width: 100%; }

  .footer-compact__inner { flex-direction: column; }
}


/* 8. Доступность ---------------------------------------------------------- */

.site :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.section--accent :focus-visible { outline-color: var(--accent-fg); }

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

@media (prefers-reduced-motion: reduce) {
  .site *,
  .site *::before,
  .site *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- подменю разделов ---
   Строится по дереву страниц в variants.jsx (MenuLinks), кнопку раскрытия
   обрабатывает site.js. На компьютере открывается наведением. */
.menu-has-sub { position: relative; display: flex; align-items: center; gap: 2px; }

.menu-sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  transition: transform 0.2s;
}

.menu-has-sub.is-open > .menu-sub-toggle { transform: rotate(180deg); }

.menu-sub {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: -12px;
  min-width: 220px;
  max-width: 320px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: var(--bg);
  border: var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 12%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}

.menu-sub li { display: block; }

.menu-sub a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  color: var(--text);
  white-space: normal;
}

.menu-sub a:hover { color: var(--accent); background: var(--surface); }
.menu-sub__all { border-top: var(--line); margin-top: 6px; padding-top: 6px; }
.menu-sub__all a { color: var(--accent); font-weight: 600; }

@media (min-width: 901px) {
  .menu-has-sub:hover > .menu-sub,
  .menu-has-sub:focus-within > .menu-sub,
  .menu-has-sub.is-open > .menu-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* В мобильном меню подменю уходит в поток и раскрывается кнопкой */
@media (max-width: 900px) {
  .menu-has-sub { flex-wrap: wrap; width: 100%; }
  .menu-sub-toggle { width: 36px; height: 36px; margin-left: auto; }
  .menu-sub {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    max-width: none;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .menu-has-sub.is-open > .menu-sub { display: block; }
}

/* --- хлебные крошки --- */
.breadcrumbs { padding-block: var(--s3) 0; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; opacity: 0.5; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); }

/* --- карточки раздела (listing.*) --- */
.listing__empty { color: var(--muted); }
.listing__more { margin-top: var(--s5); text-align: center; }

.listing-cards__grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.listing-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s, transform 0.16s;
}

.listing-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.listing-card__media { aspect-ratio: 4 / 3; margin: 0; background: var(--surface); overflow: hidden; }
.listing-card__media img,
.listing-news__media img,
.listing-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.listing-card__body { display: grid; gap: var(--s2); padding: clamp(18px, 1vw + 14px, 26px); flex: 1; align-content: start; }
.listing-card__body h3 { font-size: 1.15rem; }
.listing-card__body p { color: var(--muted); font-size: 15px; }
.listing-card__date { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.listing-card__more { margin-top: auto; padding-top: var(--s1); color: var(--accent); font-weight: 600; font-size: 15px; }

.listing-news__list { border-top: var(--line); }

.listing-news__item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--s4);
  padding-block: var(--s4);
  border-bottom: var(--line);
  text-decoration: none;
  color: inherit;
}

.listing-news__item:hover h3 { color: var(--accent); }
.listing-news__media { aspect-ratio: 4 / 3; margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.listing-news__body { display: grid; gap: var(--s2); align-content: start; }
.listing-news__body p { color: var(--muted); }

.listing-tiles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s3);
}

.listing-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  background: var(--surface);
}

.listing-tile__media { position: absolute; inset: 0; margin: 0; transition: transform 0.4s; }
.listing-tile:hover .listing-tile__media { transform: scale(1.04); }
.listing-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.7)); }
.listing-tile__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: clamp(18px, 2vw, 28px); }
.listing-tile__body .listing-card__more { color: inherit; opacity: 0.85; }

.listing-card__media.is-empty,
.listing-news__media.is-empty,
.listing-tile__media.is-empty { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }

/* --- пагинация --- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--s5);
}

.pagination__item,
.pagination__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pagination__item:hover,
.pagination__step:hover { border-color: var(--accent); color: var(--accent); }
.pagination__item.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.pagination__gap { color: var(--muted); padding: 0 4px; }

@media (max-width: 760px) {
  .listing-news__item { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .pagination__step { display: none; }
}

/* --- custom.block ---
   Запасная вёрстка своего блока из режима «по примеру».
   Обычно блок получает свою разметку от freeform, и эти правила не работают. */
.custom-block__intro { max-width: 760px; }
.custom-block__intro > * + * { margin-top: var(--s3); }
.custom-block__intro .btn { margin-top: var(--s4); }

.custom-block__intro--media {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.custom-block__body > * + * { margin-top: var(--s3); }
.custom-block__items { margin-top: var(--s5); }
.custom-block__item h3 { font-size: 1.1rem; }
.custom-block__item p { color: var(--muted); }
.custom-block__item-media { margin: calc(-1 * clamp(20px, 1vw + 16px, 32px)); margin-bottom: var(--s3); border-radius: var(--radius) var(--radius) 0 0; }

.custom-block__value {
  font-family: var(--font-h);
  font-weight: var(--fw-h, 700);
  font-size: clamp(28px, 1rem + 2vw, 44px);
  line-height: 1;
  color: var(--accent);
}

.section--accent .custom-block__value { color: inherit; }

@media (max-width: 760px) {
  .custom-block__intro--media { grid-template-columns: minmax(0, 1fr); }
}

/* --- формы заявок ---
   Отправка в /themes/js/site.js, шестой блок. */
/* У форм своё display: grid, атрибут hidden без этого не прячет */
form[data-lead-form][hidden] { display: none !important; }

.lead-trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.lead-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.section--accent .lead-consent { color: inherit; opacity: 0.9; }
.contact-wide__form .lead-consent { grid-column: 1 / -1; justify-content: center; }

.field[aria-invalid="true"],
.lead-consent input[aria-invalid="true"] {
  outline: 2px solid #d93025;
  outline-offset: 1px;
}

.lead-note {
  font-size: 14px;
  color: var(--muted);
}

.lead-note.is-error { color: #d93025; }
.section--accent .lead-note.is-error { color: inherit; font-weight: 600; }
.contact-wide__form .lead-note { grid-column: 1 / -1; text-align: center; }

.btn[disabled] { opacity: 0.7; cursor: progress; }

.lead-status {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: clamp(24px, 3vw, 40px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  text-align: center;
  animation: lead-in 0.25s ease;
}

.lead-status:focus { outline: none; }
.lead-status__icon { color: var(--accent); }
.lead-status--err .lead-status__icon { color: #d93025; }

.lead-status__title {
  font-family: var(--font-h);
  font-weight: var(--fw-h, 700);
  font-size: clamp(20px, 1rem + 0.8vw, 26px);
  line-height: 1.2;
}

.lead-status__text { color: var(--muted); max-width: 42ch; }
.lead-status__retry { margin-top: var(--s2); }

.contact-wide .lead-status { max-width: 860px; margin-inline: auto; }

@keyframes lead-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* --- просмотр фото галерей ---
   Окно собирает /themes/js/site.js, пятый блок. Фон тёмный на любой теме:
   фото смотрится на нём лучше, чем на светлом. */
.is-zoomable { cursor: zoom-in; }

.lightbox-open { overflow: hidden; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 12, 0.94);
  color: #ffffff;
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(10, 10, 12, 0.94); }

.lightbox[open] { animation: lightbox-in 0.2s ease; }

.lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* padding: clamp(56px, 7vw, 88px) clamp(12px, 6vw, 96px); */
  padding: 40px 90px;
  touch-action: pan-y;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) * 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__img.is-loaded { opacity: 1; }

.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: background 0.15s;
}

.lightbox__btn:hover { background: var(--accent); color: var(--accent-fg); }
.lightbox__btn[hidden] { display: none; }
.lightbox__btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox__count {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 0.06em;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  /* На телефоне листают свайпом, стрелки уходят вниз и не закрывают фото */
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
}

/* Инлайн-редактирование. Класс вешается на <body> из редактора. */
.is-editing [data-bind] {
  outline: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
  cursor: text;
}

.is-editing [data-bind]:hover {
  outline-style: solid;
  outline-color: var(--accent);
}


/* 9. Арт-слой -------------------------------------------------------------
   Текстуры фона, декоративные формы, ритм секций и высота первого экрана.

   Классы считает client/src/services/renderSite.jsx. Тема и настройки секции
   сводятся там в одно решение, поэтому здесь нет споров весом селекторов:
     на <body>    is-dark, art-shapes--*, art-hero--*
     на .section  art-texture--*, art-shape-at + art-shape--*,
                  art-flow--skew либо art-flow--lap
   Каталог значений: server/config/art-system.js
   -------------------------------------------------------------------------- */

.site {
  --texture: none;
  --texture-size: auto;
  --texture-ink: rgba(0, 0, 0, 0.055);
  --shape: none;
  --shape-ink: color-mix(in srgb, var(--accent) 13%, transparent);
  --shape-line: color-mix(in srgb, var(--accent) 22%, transparent);
  --shape-size: clamp(220px, 32vw, 460px);
  --shape-off: calc(var(--shape-size) * -0.34);
  --skew: clamp(28px, 5vw, 72px);
  --lap: clamp(20px, 3vw, 44px);
}

/* На тёмной палитре тёмного штриха не видно, берём светлый */
.site.is-dark {
  --texture-ink: rgba(255, 255, 255, 0.07);
  --shape-ink: color-mix(in srgb, var(--accent) 26%, transparent);
  --shape-line: color-mix(in srgb, var(--accent) 38%, transparent);
}

/* На цветной заливке декор строим от контрастного цвета акцента.
   Переопределяем токены, а не сами правила: наследование сделает остальное. */
.section--accent {
  --texture-ink: color-mix(in srgb, var(--accent-fg) 12%, transparent);
  --shape-ink: color-mix(in srgb, var(--accent-fg) 14%, transparent);
  --shape-line: color-mix(in srgb, var(--accent-fg) 30%, transparent);
}

/* --- 9.1 Текстуры ---
   Рисуются маской, поэтому цвет задаёт тема и он меняется вместе с палитрой.
   Класс объявляет только переменные, заливка ниже одна на все текстуры. */

.art-texture--noise {
  --texture: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='3'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%201%200%200%200%200'/%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23n)'/%3E%3C/svg%3E");
  --texture-size: 160px 160px;
}

.art-texture--grid {
  --texture: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%3E%3Cpath%20d='M32%200H0v32'%20fill='none'%20stroke='%23000'%20stroke-width='1'/%3E%3C/svg%3E");
  --texture-size: 32px 32px;
}

.art-texture--dots {
  --texture: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%3E%3Ccircle%20cx='3'%20cy='3'%20r='1.6'%20fill='%23000'/%3E%3C/svg%3E");
  --texture-size: 24px 24px;
}

.art-texture--lines {
  --texture: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%3E%3Cpath%20d='M-1%201%205%20-5M0%2014%2014%200M9%2015%2015%209'%20stroke='%23000'%20stroke-width='1.4'/%3E%3C/svg%3E");
  --texture-size: 14px 14px;
}

.art-texture--waves {
  --texture: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='18'%3E%3Cpath%20d='M0%209q8-7%2016%200t16%200%2016%200%2016%200'%20fill='none'%20stroke='%23000'%20stroke-width='1.4'/%3E%3C/svg%3E");
  --texture-size: 64px 18px;
}

.section[class*="art-texture--"]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--texture-ink);
  -webkit-mask-image: var(--texture);
  mask-image: var(--texture);
  -webkit-mask-size: var(--texture-size);
  mask-size: var(--texture-size);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

/* Страховка на случай значения none в старых документах */
.section.art-texture--none::before { content: none; }

/* --- 9.2 Декоративные формы ---
   Семейство задаёт тема, угол выбирается на секции.
   art-shape-at появляется только когда есть и семейство, и угол. */

.art-shapes--blobs {
  --shape: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20200'%3E%3Cpath%20fill='%23000'%20d='M163%2062c11%2019%209%2045-4%2065s-35%2034-57%2032-43-20-56-43-17-50-4-66%2044-21%2070-19%2040%2012%2051%2031z'/%3E%3C/svg%3E");
}

.section.art-shape-at { overflow: clip; }

.section.art-shape-at::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: var(--shape-size);
  aspect-ratio: 1;
  pointer-events: none;
  background-color: var(--shape-ink);
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}

/* Геометрия это повёрнутый квадрат заливкой. Контур на такой площади
   превращается в случайную чёрточку, поэтому именно заливка. */
.art-shapes--geo .section.art-shape-at::after {
  -webkit-mask: none;
  mask: none;
  border-radius: var(--radius);
  transform: rotate(14deg);
}

.art-shapes--rings .section.art-shape-at::after {
  background-color: transparent;
  background-image: repeating-radial-gradient(
    circle,
    transparent 0 22px,
    var(--shape-line) 22px 23px
  );
  -webkit-mask: none;
  mask: none;
  border-radius: 50%;
}

/* Сдвиг считаем от самой формы, а не от секции: иначе на широком экране
   форма уезжает за край и от неё остаётся случайная чёрточка. */
.section.art-shape-at.art-shape--tl::after { top: var(--shape-off); left: var(--shape-off); }
.section.art-shape-at.art-shape--tr::after { top: var(--shape-off); right: var(--shape-off); }
.section.art-shape-at.art-shape--bl::after { bottom: var(--shape-off); left: var(--shape-off); }
.section.art-shape-at.art-shape--br::after { bottom: var(--shape-off); right: var(--shape-off); }

/* --- 9.3 Ритм секций ---
   Класс получают только контрастные секции: на основном фоне эффекта не видно.
   Префикс .site поднимает вес выше правил высоты hero из 9.4. */

.site .section.art-flow--skew {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--skew)), 0 100%);
  padding-bottom: calc(clamp(40px, calc(var(--rhythm) * 0.55 + 2.2vw), var(--rhythm)) + var(--skew));
}

.site .section.art-flow--lap {
  border-radius: clamp(20px, 3.5vw, 48px) clamp(20px, 3.5vw, 48px) 0 0;
  margin-top: calc(var(--lap) * -1);
  overflow: clip;
  z-index: 1;
}

/* --- 9.4 Высота первого экрана --- */

.art-hero--compact .hero-overlay { min-height: min(52vh, 440px); }
.art-hero--tall .hero-overlay { min-height: min(86vh, 820px); }
/* .art-hero--full .hero-overlay { min-height: 100svh; } */

.art-hero--compact .hero-split,
.art-hero--compact .hero-minimal {
  padding-block: clamp(32px, calc(var(--rhythm) * 0.4 + 1.6vw), calc(var(--rhythm) * 0.8));
}

.art-hero--tall .hero-split,
.art-hero--tall .hero-minimal {
  padding-block: clamp(56px, calc(var(--rhythm) * 0.8 + 3vw), calc(var(--rhythm) * 1.5));
}

.art-hero--full .hero-split,
.art-hero--full .hero-minimal {
  display: grid;
  align-content: center;
  min-height: 100svh;
}

/* --- 9.5 Адаптив и печать --- */

@media (max-width: 760px) {
  .site {
    --shape-size: clamp(180px, 58vw, 300px);
    --skew: clamp(18px, 6vw, 36px);
  }

  /* На узком экране наезд съедает слишком много, оставляем только скругление */
  .site .section.art-flow--lap { margin-top: 0; }

  .art-hero--full .hero-split,
  .art-hero--full .hero-minimal { min-height: auto; }
}

/* В печать декор не нужен */
@media print {
  .section::before,
  .section::after { content: none !important; }

  .section {
    clip-path: none !important;
    margin-top: 0 !important;
  }
}

/* --- Переключатель языка в шапке --- */
/* Виден во всех вариантах шапки, когда у сайта включена вторая версия */

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  margin-left: var(--s3);
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}

.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.lang-switch a.lang-switch__item:hover { color: var(--text); }

.lang-switch__item.is-active {
  background: var(--accent);
  color: var(--accent-fg);
}

/* Логотип по центру: переключатель слева, контакты справа */
.header-centered__top .lang-switch {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

/* Логотип и контакты сверху: контакты остаются у правого края, рядом с переключателем */
.header-stack__top:has(.lang-switch) .header-stack__contact { margin-left: auto; }

/* Шапка своей разметкой: переключатель поверх, в правом верхнем углу */
.lang-switch--float {
  position: absolute;
  z-index: 40;
  top: 12px;
  right: 12px;
  margin: 0;
  background: var(--bg);
}

@media (max-width: 900px) {
  /* На телефоне переключатель всегда на виду, рядом с кнопкой меню */
  .header .content .lang-switch,
  .header-stack__top .lang-switch,
  .header-boxed__box .lang-switch { margin-left: auto; }

  .header .content .lang-switch + .menu-toggle,
  .header-stack__top .lang-switch + .menu-toggle,
  .header-boxed__box .lang-switch + .menu-toggle { margin-left: 14px; }
}

@media (max-width: 760px) {
  /* Логотип по центру на телефоне уходит влево: переключатель к кнопке меню */
  .header-centered__top .lang-switch { left: auto; right: 46px; }
}

@media (max-width: 480px) {
  /* В шапке-карточке телефон, переключатель и меню в одну строку не влезают */
  .header-boxed__box:has(.lang-switch) .phone { display: none; }
}

/* --- Мессенджеры: Telegram, WhatsApp, MAX --- */
/* Значки в цвет текста, при наведении акцентный. Список берётся из настроек сайта */

.messengers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: var(--line);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.messenger:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.messenger__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* В контактах: значок с подписью */
.messengers--labels .messenger {
  height: 40px;
  padding: 0 14px 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.section--accent .messenger,
.contact-aside__card .messenger { border-color: color-mix(in srgb, currentColor 35%, transparent); }
.section--accent .messenger:hover,
.contact-aside__card .messenger:hover { color: inherit; border-color: currentColor; }

/* Шапка: рядом с телефоном */
.messengers--header { gap: 6px; }
.messengers--header .messenger { min-width: 32px; height: 32px; padding: 0 6px; }
.messengers--header .messenger__icon { width: 18px; height: 18px; }

/* В подвалах значки в строку под контактами */
.footer-compact__contacts .messengers,
.footer-columns__contacts .messengers { margin-top: 6px; }
.footer-center__contacts .messengers { justify-content: center; }

/* Контакты */
.contact-stacked__messengers,
.contact-wide__messengers,
.contact-plain__messengers { justify-content: center; margin-top: var(--s4); }
.contact-aside__list .messengers { margin-top: var(--s2); }

/* В мобильном меню. На компьютере этот пункт не нужен, значки уже в шапке */
.menu-messengers { display: none; }

@media (max-width: 900px) {
  .header .messengers--header { display: none; }
  .header-menu .menu-messengers { display: block; padding-top: var(--s2); }
}

/* У шапки с логотипом по центру меню строкой до 760 пикселей */
@media (min-width: 761px) and (max-width: 900px) {
  .header-centered .messengers--header { display: flex; }
  .header-centered .header-menu .menu-messengers { display: none; }
}
