/* Базовые стили движка. Всё держится на переменных темы,
   которые приходят из дизайна проекта — цвета, шрифты, плотность, углы. */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(23px, 2.6vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { width: min(100% - 40px, var(--width)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 780px); }

.btn {
  display: inline-block;
  padding: calc(11px * var(--space)) calc(22px * var(--space));
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn--lg { padding: calc(14px * var(--space)) calc(30px * var(--space)); font-size: 17px; }
.btn--sm { padding: 7px 14px; font-size: 14px; }
[data-accent="gradient"] .btn { background: linear-gradient(120deg, var(--accent), var(--accent2)); }
[data-accent="outline"] .btn { background: transparent; color: var(--accent); border-color: var(--accent); }
[data-accent="duotone"] .btn { background: var(--accent2); color: var(--text); }

/* ---------- Шапка ----------
   Десять конструкций. Общее — только .header__inner как строка;
   каждый вариант перестраивает её под себя. */
.header { background: var(--bg); border-bottom: 1px solid var(--border); }
.header--sticky { position: sticky; top: 0; z-index: 50; }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: calc(18px * var(--space)) 0;
}
.header__extra { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.header__claim { margin: 0; color: var(--muted); }
/* Полоса меню во всю ширину — общая для stacked и banner */
.header__strip { border-top: 1px solid var(--border); background: var(--surface); }
.header__strip .menu__list { padding: 10px 0; }

/* 1. split — бренд слева, меню справа (базовый, стилей не требует) */

/* 2. split-reverse — зеркало: меню слева, бренд справа.
   Порядок задан разметкой, CSS только выравнивает бренд по правому краю. */
.header--split-reverse .brand { text-align: right; flex-direction: row-reverse; }

/* 3. centered — три яруса по центру */
.header--centered .header__inner { flex-direction: column; gap: 14px; }
.header--centered .header__top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.header--centered .menu__list { justify-content: center; }

/* 4. stacked — бренд и врезка сверху, меню отдельной полосой */
.header--stacked .header__inner { padding-bottom: calc(14px * var(--space)); }

/* 5. banner — логотип и слоган крупным планом */
.header--banner .header__banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: calc(20px * var(--space)) 0; width: 100%;
}
.header--banner .header__claim { max-width: 46ch; text-align: right; font-size: 17px; }
/* Слоган уже вынесен крупно справа — в бренде он лишний */
.header--banner .brand__tagline { display: none; }
.header--banner .brand__logo { width: 68px; height: 68px; }
.header--banner .brand__name { font-size: 28px; }

/* 6. minimal — тонкая строка без границы */
.header--minimal { border-bottom: 0; }
.header--minimal .header__inner { padding: 12px 0; }
.header--minimal .brand__logo { width: 34px; height: 34px; }
.header--minimal .brand__name { font-size: 17px; }
.header--minimal .brand__tagline { display: none; }
.header--minimal .menu__link { font-size: 15px; }

/* 7. brand-aside — бренд колонкой слева, справа врезка над меню */
.header--brand-aside .header__inner { align-items: flex-start; }
.header--brand-aside .header__side { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.header--brand-aside .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.header--brand-aside .brand__logo { width: 58px; height: 58px; }

/* 8. topbar — узкая акцентная полоса над основной строкой */
.header--topbar .header__bar {
  background: var(--accent); color: #fff; font-size: 13.5px;
}
.header--topbar .header__bar a { color: #fff; }
.header--topbar .header__bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; padding: 7px 0; min-height: 34px;
}
.header--topbar .header__bar .header__claim { color: inherit; opacity: .9; }
/* Врезка внутри акцентной полосы: своя подложка тут только мешает */
.header--topbar .header__bar .widget {
  background: transparent; border: 0; padding: 0; color: inherit;
}
.header--topbar .header__bar .widget__title { color: inherit; font-size: inherit; margin: 0; }
[data-accent="gradient"] .header--topbar .header__bar { background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* 9. boxed — шапка-карточка, оторванная от края */
.header--boxed { background: transparent; border-bottom: 0; padding: calc(16px * var(--space)) 0; }
.header--boxed .header__box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(14px * var(--space)) calc(24px * var(--space));
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
}
.header--boxed.header--sticky { top: 10px; }

/* 10. overlay — прозрачная шапка поверх первого экрана */
.header--overlay {
  position: absolute; inset: 0 0 auto; z-index: 50;
  border-bottom: 0; color: #fff;
  /* Затемнение сверху — белый текст читается поверх любого первого экрана */
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent);
}
.header--overlay .brand, .header--overlay .menu__link { color: #fff; }
.header--overlay .brand__tagline { color: rgba(255, 255, 255, .75); }
.header--overlay .menu__link:hover { opacity: .75; color: #fff; }
/* Акцентный цвет активного пункта на затемнении не читается — метим подчёркиванием */
.header--overlay .menu__item.is-active > .menu__link { color: #fff; border-bottom: 2px solid #fff; }
.header--overlay .menu--pill .menu__link { background: rgba(255, 255, 255, .16); }
/* Первый экран уходит под шапку — добавляем ему воздух сверху */
[data-header="overlay"] .main > .sec:first-child { padding-top: calc(120px * var(--space)); }
[data-header="overlay"] body, [data-header="overlay"] { position: relative; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 46px; height: 46px; border-radius: var(--radius); object-fit: cover; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-heading); font-size: 21px; font-weight: 700; }
.brand__tagline { font-size: 12.5px; color: var(--muted); }

/* ---------- Меню ---------- */
.menu__list { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.menu__link { color: var(--text); font-weight: 500; padding: 8px 0; display: inline-block; }
.menu__link:hover { color: var(--accent); text-decoration: none; }
.menu__item.is-active > .menu__link { color: var(--accent); }

.menu--pill .menu__list { gap: 8px; }
.menu--pill .menu__link { padding: 8px 16px; border-radius: 999px; background: var(--surface); }
.menu--pill .menu__item.is-active > .menu__link { background: var(--accent); color: #fff; }

.menu--underline .menu__link { border-bottom: 2px solid transparent; }
.menu--underline .menu__item.is-active > .menu__link { border-color: var(--accent); }

.menu--vertical-left .menu__list { flex-direction: column; gap: 2px; }
/* Внутри шапки вертикальное меню растянуло бы её на весь экран — кладём в строку */
.header .menu--vertical-left .menu__list { flex-direction: row; gap: 4px 22px; }

.menu--mega .menu__item--has-sub { position: relative; }
.menu--mega .menu__sub {
  display: none; position: absolute; top: 100%; left: -18px; z-index: 60;
  min-width: 300px; padding: 18px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}
.menu--mega .menu__item--has-sub:hover .menu__sub { display: block; }
.menu--mega .menu__sub ul { list-style: none; margin: 0; padding: 0; }
.menu--mega .menu__sub li + li { margin-top: 7px; }
.menu--mega .menu__sub-note { margin: 0 0 10px; font-size: 13px; color: var(--muted); }

.menu__burger { display: none; width: 34px; height: 30px; cursor: pointer; position: relative; }
.menu__burger span, .menu__burger span::before, .menu__burger span::after {
  content: ''; position: absolute; left: 0; width: 28px; height: 2px; background: var(--text);
}
.menu__burger span { top: 14px; }
.menu__burger span::before { top: -8px; }
.menu__burger span::after { top: 8px; }
.menu--offcanvas .menu__burger { display: block; }
.menu--offcanvas .menu__list { display: none; }
.menu--offcanvas .menu__toggle:checked ~ .menu__list {
  display: flex; flex-direction: column; position: absolute; right: 0; top: 100%;
  min-width: 240px; padding: 16px 20px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); z-index: 60;
}
.menu--offcanvas { position: relative; }

.menubar { background: var(--surface); border-bottom: 1px solid var(--border); }
.menubar .menu__list { padding: 10px 0; }

/* ---------- Сетка внутренних страниц ---------- */
.main { display: block; padding: calc(34px * var(--space)) 0 calc(50px * var(--space)); }
[data-view="home"] .main { padding: 0 0 calc(40px * var(--space)); }
.layout { display: grid; gap: calc(38px * var(--space)); align-items: start; }
.layout--no-sidebar     { grid-template-columns: minmax(0, 1fr); }
.layout--left-sidebar   { grid-template-columns: 280px minmax(0, 1fr); }
.layout--right-sidebar  { grid-template-columns: minmax(0, 1fr) 280px; }
.layout--both-sidebars  { grid-template-columns: 250px minmax(0, 1fr) 250px; }
.layout--narrow-wide    { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.layout--right-sidebar .col--right { order: 2; }

/* ---------- Контент ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0;
  font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--border); }

.article__title { margin-bottom: .35em; }
.article__intro { font-size: 19px; color: var(--muted); margin-bottom: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.6em 0; padding: 16px 22px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; }
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface); font-weight: 600; }
.figure { margin: 1.8em 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* ---------- Блоки главной ---------- */
.sec { padding: calc(52px * var(--space)) 0; }
.sec:nth-child(even):not(.sec--numbers-band) { background: var(--surface); }
.sec--hero { padding-top: calc(60px * var(--space)); }
.sec__head { margin-bottom: calc(30px * var(--space)); max-width: 60ch; }
.sec__title { margin-bottom: .25em; }
.sec__sub { color: var(--muted); margin: 0; font-size: 18px; }

/* Тема проекта часто красит .hero в свой фон, поэтому здесь собственные
   отступы и наследуемые цвета — иначе текст сливается с заливкой. */
.hero {
  display: grid; gap: calc(38px * var(--space)); align-items: center;
  padding: calc(46px * var(--space)) calc(40px * var(--space));
  border-radius: var(--radius);
}
.hero--media { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero--plain { grid-template-columns: minmax(0, 1fr); }
.hero__title { margin-bottom: .3em; }
.hero__sub { font-size: 20px; color: inherit; opacity: .82; }
.hero__text { color: inherit; opacity: .92; max-width: 62ch; }
.hero__media img { width: 100%; border-radius: var(--radius); }
.hero__points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.hero__points li { padding-left: 16px; border-left: 2px solid var(--accent); }
.hero__points strong { display: block; }
.hero__points span { font-size: 14.5px; color: inherit; opacity: .72; }

.cards { display: grid; gap: calc(22px * var(--space)); }
.cards--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards--row  { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { text-decoration: none; box-shadow: 0 14px 34px rgba(0,0,0,.09); transform: translateY(-2px); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 18px 20px 22px; display: block; }
.card__title { display: block; font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card__text { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.tiles { display: grid; gap: calc(18px * var(--space)); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile {
  padding: calc(24px * var(--space)); border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border); color: inherit;
}
.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile__title { display: block; font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.tile__text { display: block; font-size: 14.5px; color: var(--muted); }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(24px * var(--space));
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: step; }
.item__title { font-size: 18px; margin-bottom: .35em; }
.item__text { color: var(--muted); font-size: 15.5px; margin: 0; }
.item__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
}

.numbers { display: grid; gap: calc(26px * var(--space)); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.number__value { display: block; font-family: var(--font-heading); font-size: 38px; font-weight: 700; color: var(--accent); }
.number__text { display: block; color: var(--muted); font-size: 15px; }

.faq__item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq__item summary { cursor: pointer; font-weight: 600; font-family: var(--font-heading); font-size: 17.5px; }
.faq__item p { margin: 12px 0 0; color: var(--muted); }

.quote { margin: 0; padding: calc(34px * var(--space)); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); }
.quote__title { font-family: var(--font-heading); font-size: 22px; font-weight: 600; margin-bottom: .5em; }
.quote__text { font-size: 18px; color: var(--muted); white-space: pre-line; }
.quote__author { font-size: 14.5px; color: var(--muted); }

.about { display: grid; gap: calc(38px * var(--space)); align-items: center; }
.about--media { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
.about__media img { width: 100%; border-radius: var(--radius); }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding: calc(38px * var(--space)); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.cta--media { background-size: cover; background-position: center; color: #fff; border: 0; position: relative; }
.cta--media::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); border-radius: var(--radius); }
.cta--media .cta__body, .cta--media .btn { position: relative; }
.cta__title { margin-bottom: .2em; }
.cta__sub { margin: 0; color: inherit; opacity: .85; }
.gallery img { width: 100%; border-radius: var(--radius); }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contacts strong { display: block; }
.contacts span { color: var(--muted); font-size: 15px; }

.also { margin-top: calc(52px * var(--space)); padding-top: calc(34px * var(--space)); border-top: 1px solid var(--border); }
.also__title { font-size: 22px; }

/* ---------- Инфоблоки ---------- */
.widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: calc(20px * var(--space));
  margin-bottom: calc(20px * var(--space)); font-size: 15px;
}
.widget--compact { padding: 12px 16px; margin: 0; font-size: 14px; }
.widget__title { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.widget__menu, .widget__list, .widget__contacts { list-style: none; margin: 0; padding: 0; }
.widget__menu li + li, .widget__list li + li, .widget__contacts li + li { margin-top: 9px; }
.widget__list li { padding-left: 16px; position: relative; }
.widget__list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); }
.widget__list .muted { display: block; font-size: 13.5px; }
.widget__stat { padding: 10px 0; border-bottom: 1px solid var(--border); }
.widget__stat b { display: block; font-size: 21px; color: var(--accent); font-family: var(--font-heading); }
.widget__stat span { font-size: 13.5px; color: var(--muted); }
.widget__faq { padding: 9px 0; border-bottom: 1px solid var(--border); }
.widget__faq summary { cursor: pointer; font-weight: 600; }
.widget__faq p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.widget__quote { margin: 0; font-style: italic; color: var(--muted); }
.widget__cta p { margin-bottom: 12px; }

/* ---------- Подвал ----------
   Десять конструкций: от одной строки до карты сайта. */
.footer { margin-top: calc(50px * var(--space)); padding: calc(44px * var(--space)) 0 24px;
  background: var(--surface); border-top: 1px solid var(--border); font-size: 15px; }
.footer__cols { display: grid; gap: calc(30px * var(--space)); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer__col h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.footer__col h4 a { color: inherit; }
.footer__brand { font-family: var(--font-heading); font-size: 19px; font-weight: 700; }
.footer__tagline { color: var(--muted); margin-top: 8px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li + li { margin-top: 8px; }
.footer__links a { color: inherit; }
.footer__links a:hover { color: var(--accent); }
.footer__links--inline { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__links--inline li + li { margin-top: 0; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: calc(30px * var(--space)); padding-top: 18px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px;
}

/* 1-2. columns / rich — колонки, у rich добавляются врезки (базовые стили выше) */

/* 3. compact — одна строка */
.footer--compact { padding-top: calc(28px * var(--space)); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__row .footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__row .footer__links li + li { margin-top: 0; }

/* 4. centered — всё по центру */
.footer__center { text-align: center; }
.footer__center .footer__links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 16px; }
.footer__center .footer__links li + li { margin-top: 0; }
.footer--centered .footer__bottom { justify-content: center; }

/* 5. minimal — только копирайт */
.footer--minimal { padding: calc(22px * var(--space)) 0; background: transparent; }
.footer--minimal .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* 6. bigbrand — имя сайта во всю ширину */
.footer--bigbrand { padding-top: calc(52px * var(--space)); }
.footer__big { margin-bottom: calc(26px * var(--space)); }
.footer__bigname {
  display: block; font-family: var(--font-heading); font-weight: 700; line-height: 1;
  font-size: clamp(38px, 9vw, 108px); letter-spacing: -.02em;
  color: color-mix(in srgb, var(--text) 88%, var(--accent));
}
.footer--bigbrand .footer__tagline { max-width: 52ch; }

/* 7. split — бренд слева, ссылки справа */
.footer__split { display: grid; gap: calc(34px * var(--space)); grid-template-columns: minmax(240px, 1fr) 2fr; }
.footer__aside .footer__brand { font-size: 24px; display: block; }
.footer__aside .motif { color: var(--accent); display: block; margin-bottom: 10px; }

/* 8. cta — акцентная плашка с призывом над подвалом */
.footer--cta { padding-top: 0; }
.footer__call {
  background: var(--accent); color: #fff;
  padding: calc(34px * var(--space)) 0; margin-bottom: calc(30px * var(--space));
}
[data-accent="gradient"] .footer__call { background: linear-gradient(120deg, var(--accent), var(--accent2)); }
.footer__call-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer__call-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 26px; }
.footer__call .footer__tagline { color: rgba(255, 255, 255, .82); margin: 6px 0 0; }
.footer__call .btn { background: var(--bg); color: var(--text); }

/* 9. sitemap — раздел колонкой, внутри его материалы */
.footer--sitemap { padding-top: calc(50px * var(--space)); }
.footer__cols--map { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); font-size: 14px; }
.footer__cols--map .footer__col h4 { font-size: 14.5px; text-transform: none; letter-spacing: 0; color: var(--text); }
.footer__cols--map .footer__links { color: var(--muted); }

/* 10. dark — контрастная плашка с водяным знаком */
.footer--dark {
  position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--text) 92%, var(--accent));
  color: color-mix(in srgb, #fff 86%, transparent);
  border-top: 0;
}
.footer--dark .footer__brand, .footer--dark .footer__links a { color: #fff; }
.footer--dark .footer__col h4, .footer--dark .footer__tagline { color: rgba(255, 255, 255, .6); }
.footer--dark .footer__links a:hover { color: var(--accent2); }
.footer--dark .footer__bottom { border-top-color: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .6); }
.footer--dark .footer__bottom a { color: rgba(255, 255, 255, .8); }
.footer--dark .motif { color: var(--accent2); }
/* Врезки на тёмном фоне: светлая подложка виджета делала текст нечитаемым */
.footer--dark .widget { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: inherit; }
.footer--dark .widget__title, .footer--dark .widget b { color: #fff; }
.footer--dark .widget a { color: var(--accent2); }
.footer--dark .wrap { position: relative; z-index: 2; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .layout--left-sidebar, .layout--right-sidebar, .layout--both-sidebars { grid-template-columns: minmax(0, 1fr); }
  .col--left, .col--right { order: 3; }
  .hero--media, .about--media { grid-template-columns: minmax(0, 1fr); }
  .menu--mega .menu__sub { position: static; min-width: 0; box-shadow: none; padding: 10px 0 0; border: 0; }
  .header__inner { flex-wrap: wrap; }
  .footer__split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  /* Многоярусные шапки на узком экране схлопываются в колонку */
  .header--banner .header__banner,
  .header--brand-aside .header__inner,
  .header--boxed .header__box { flex-direction: column; align-items: flex-start; gap: 14px; }
  .header--banner .header__claim { text-align: left; }
  .header--brand-aside .header__side { align-items: flex-start; }
  /* На мобильном бренд всё равно должен быть первым */
  .header--split-reverse .header__inner { flex-direction: column-reverse; align-items: flex-start; }
  .header--split-reverse .brand { flex-direction: row; text-align: left; }
  .header--topbar .header__bar-inner { justify-content: center; }
  .footer__call-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sec { padding: calc(38px * var(--space)) 0; }
  .cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ДЕКОР. Управляется data-атрибутами на <body> и классами секций.
   Всё на чистом CSS — работает без картинок; FLUX-фоны ложатся сверху.
   ============================================================ */

/* Настроение палитры — усиливает или приглушает акценты */
[data-mood="vivid"]     { --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent); }
[data-mood="pastel"]    { --accent-soft: color-mix(in srgb, var(--accent) 9%, transparent); }
[data-mood="dark"]      { --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent); }
[data-mood="editorial"] { --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent); }
:root { --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------- Крупный фоновый декор за секциями (data-decor) ---------- */
.sec { position: relative; overflow: hidden; }
.sec > .wrap { position: relative; z-index: 2; }

/* Мягкие цветные пятна */
[data-decor="blobs"] .sec::before {
  content: ""; position: absolute; z-index: 1; width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 68%);
  top: -14%; right: -10%; pointer-events: none;
}
[data-decor="blobs"] .sec:nth-child(even)::before {
  left: -12%; right: auto; top: auto; bottom: -18%;
  background: radial-gradient(circle at 40% 40%,
    color-mix(in srgb, var(--accent2) 14%, transparent), transparent 68%);
}

/* Расходящиеся лучи */
[data-decor="rays"] .sec::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 210deg at 85% -10%,
    var(--accent-soft) 0deg 8deg, transparent 8deg 26deg);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
          mask-image: linear-gradient(180deg, #000, transparent 70%);
}

/* Тонкая сетка */
[data-decor="grid"] .sec::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
}

/* Волны понизу секции */
[data-decor="waves"] .sec::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; z-index: 1;
  pointer-events: none; opacity: .6;
  background:
    radial-gradient(40px 40px at 20px -8px, transparent 40px, var(--surface) 41px) repeat-x;
  background-size: 80px 60px;
}

/* Мягкое свечение сверху */
[data-decor="glow"] .sec::before {
  content: ""; position: absolute; left: 50%; top: -30%; z-index: 1; pointer-events: none;
  width: 80%; height: 80%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
}

/* Многоцветная дымка */
[data-decor="mesh"] .sec::before {
  content: ""; position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: .7;
  background:
    radial-gradient(30% 40% at 15% 20%, var(--accent-soft), transparent 60%),
    radial-gradient(30% 40% at 85% 30%,
      color-mix(in srgb, var(--accent2) 14%, transparent), transparent 60%),
    radial-gradient(40% 50% at 60% 90%, var(--accent-soft), transparent 60%);
  filter: blur(6px);
}

/* ---------- Мелкий узор фона (data-pattern) ---------- */
[data-pattern="dots"]  { background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 22px 22px; }
[data-pattern="lines"] { background-image: repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 26px); }
[data-pattern="cross"] {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
}
[data-pattern="diagonal"] {
  background-image: repeating-linear-gradient(45deg, var(--border) 0 1px, transparent 1px 16px);
}
[data-pattern="topography"] {
  background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, var(--border) 18px 19px);
  background-size: 120px 120px;
}
[data-pattern]:not([data-pattern="none"]) .sec:nth-child(even) { background-color: color-mix(in srgb, var(--surface) 70%, transparent); }

/* ---------- Ритм секций (data-rhythm) ---------- */
/* alternating — уже есть базовое чередование, усиливаем разделение */
[data-rhythm="alternating"] .sec:nth-child(even) { background: var(--surface); }

/* diagonal — косой срез между секциями */
[data-rhythm="diagonal"] .sec:nth-child(even) {
  background: var(--surface);
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  margin-top: -3vw; padding-top: calc(52px * var(--space) + 3vw);
}

/* curved — плавная дуга сверху чётных секций */
[data-rhythm="curved"] .sec:nth-child(even) {
  background: var(--surface);
  border-radius: 50% 50% 0 0 / 4vw 4vw 0 0;
  margin-top: -1px;
}

/* framed — секции в карточке-рамке */
[data-rhythm="framed"] .sec > .wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.6);
  padding: calc(34px * var(--space));
  box-shadow: 0 18px 50px rgba(20, 28, 46, .05);
}
[data-rhythm="framed"] .sec { background: var(--surface); }

/* ---------- Стиль карточек (data-cards) ---------- */
[data-cards="raised"] .card {
  border-color: transparent;
  box-shadow: 0 2px 4px rgba(20,28,46,.04), 0 14px 30px rgba(20,28,46,.08);
}
[data-cards="raised"] .card:hover { box-shadow: 0 8px 16px rgba(20,28,46,.08), 0 26px 50px rgba(20,28,46,.14); }

[data-cards="outline"] .card { box-shadow: none; border-width: 1.5px; }
[data-cards="outline"] .card:hover { border-color: var(--accent); box-shadow: 0 10px 26px var(--accent-soft); }

[data-cards="glass"] .card {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  border-color: color-mix(in srgb, var(--border) 60%, transparent);
}

[data-cards="gradient-border"] .card {
  border: 0; background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent2)) border-box;
  border: 1.5px solid transparent;
}

/* ---------- Богаче hero и cta ----------
   Фон и цвет hero задаёт тема проекта (theme_css). Мы его НЕ трогаем,
   иначе ломается контраст: тема часто красит hero тёмным с белым текстом.
   Декор идёт за секцией (::before), не внутри hero-карточки. */
.sec--hero .hero {
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

/* Кнопка — мягкое свечение акцентом */
.btn { box-shadow: 0 6px 16px var(--accent-soft); }
.btn:hover { box-shadow: 0 10px 24px var(--accent-soft); transform: translateY(-1px); }
.btn { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }

/* Заголовки секций с акцентной чертой */
.sec__title { position: relative; }
[data-mood="editorial"] .sec__head, [data-mood="corporate"] .sec__head {
  padding-left: 16px; border-left: 3px solid var(--accent);
}

/* Цифры покрупнее и с градиентом при vivid */
[data-mood="vivid"] .number__value {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Абстрактный FLUX-фон секции (когда есть картинка) ---------- */
.sec--bg { color: #fff; }
.sec--bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--sec-bg); background-size: cover; background-position: center;
}
.sec--bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,20,32,.72), rgba(15,20,32,.82));
}
.sec--bg > .wrap { z-index: 2; }
.sec--bg .sec__sub, .sec--bg .hero__sub, .sec--bg .cta__sub, .sec--bg .hero__text { color: rgba(255,255,255,.85); }
.sec--bg .card, .sec--bg .tile { color: var(--text); }

/* ---------- Тематический SVG-мотив ---------- */
.motif { display: inline-block; vertical-align: middle; color: var(--accent); }

/* Разделитель с мотивом над заголовком секции */
.sec__divider { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec__divider::before, .sec__divider::after {
  content: ""; height: 1px; width: 44px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.sec__divider::after { background: linear-gradient(90deg, var(--border), transparent); }
.sec__divider .motif { color: var(--accent); }
/* У центрированных настроений разделитель по центру */
[data-mood="editorial"] .sec__divider, [data-mood="corporate"] .sec__divider { justify-content: flex-start; }

/* Крупный водяной знак-мотив за секцией */
.sec__watermark {
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  z-index: 1; pointer-events: none; line-height: 0;
  color: var(--accent); opacity: .05;
}
.sec__watermark .motif { width: 180px; height: 180px; }
.sec:nth-child(even) .sec__watermark { right: auto; left: -20px; }

/* Мотив в подвале рядом с брендом */
.footer .motif { color: var(--accent); margin-right: 8px; opacity: .8; }

/* ---------- Появление блоков при скролле ----------
   Надёжно: прятать элемент можно ТОЛЬКО когда активен JS (html.js) и
   есть класс reveal. Без JS или до появления — контент виден.
   Внутренние карточки/пункты всплывают каскадом (transition-delay из JS). */
.js .reveal { opacity: 0; transform: translateY(34px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,.8,.3,1);
}
.js .reveal .card, .js .reveal .tile, .js .reveal .item, .js .reveal .number {
  opacity: 0; transform: translateY(24px);
}
.js .reveal.is-in .card, .js .reveal.is-in .tile,
.js .reveal.is-in .item, .js .reveal.is-in .number {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.16,.8,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal .card, .js .reveal .tile,
  .js .reveal .item, .js .reveal .number { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   ВАРИАНТЫ БЛОКОВ ГЛАВНОЙ.
   У каждого типа блока несколько подач — их выбирает шаг 3 и кладёт
   в home_sections.variant. Класс приходит как .sec--<тип>-<вариант>,
   поэтому базовая вёрстка типа остаётся вариантом по умолчанию.
   ============================================================ */

/* ---------- hero ---------- */
/* cover — картинка фоном всей секции, текст поверх */
.sec--hero-cover { padding: 0; }
.hero--cover {
  display: flex; align-items: center; min-height: min(78vh, 720px);
  background-size: cover; background-position: center; position: relative; color: #fff;
}
.hero--cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .28));
}
.hero--cover .hero__body { position: relative; z-index: 2; max-width: 46rem; padding: calc(60px * var(--space)) 0; }
.hero--cover .hero__title { font-size: clamp(34px, 5.4vw, 60px); }
.hero--cover .hero__sub, .hero--cover .hero__text { color: rgba(255, 255, 255, .88); }

/* center — без картинки, всё по центру */
.sec--hero-center .hero { text-align: center; justify-items: center; }
.sec--hero-center .hero__title { font-size: clamp(32px, 5vw, 56px); max-width: 20ch; }
.sec--hero-center .hero__sub, .sec--hero-center .hero__text { margin-inline: auto; max-width: 58ch; }
.sec--hero-center .hero__points { justify-content: center; text-align: left; }

/* stack — картинка сверху во всю ширину, текст под ней */
.sec--hero-stack .hero { grid-template-columns: minmax(0, 1fr); }
.sec--hero-stack .hero__media { order: -1; }
.sec--hero-stack .hero__media img { aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- about ---------- */
.sec--about-stack .about { grid-template-columns: minmax(0, 1fr); }
.sec--about-stack .about__media { order: -1; }
.sec--about-stack .about__media img { aspect-ratio: 21 / 9; object-fit: cover; }
/* overlap — текст карточкой наезжает на картинку */
.sec--about-overlap .about { grid-template-columns: minmax(0, 1fr); gap: 0; }
.sec--about-overlap .about__media { order: -1; }
.sec--about-overlap .about__media img { aspect-ratio: 2 / 1; object-fit: cover; }
.sec--about-overlap .about__body {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: calc(30px * var(--space)); margin: calc(-60px * var(--space)) auto 0;
  width: min(100%, 62rem); position: relative; z-index: 2;
}

/* ---------- cards / latest ---------- */
/* feature — первая карточка крупная, остальные мелкие рядом */
.cards--feature { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards--feature > .card:first-child { grid-column: span 2; grid-row: span 2; }
.cards--feature > .card:first-child .card__media img { aspect-ratio: 4 / 3; height: 100%; }
.cards--feature > .card:first-child .card__title { font-size: 24px; }
/* list — карточки строками: картинка слева, текст справа */
.cards--list { grid-template-columns: minmax(0, 1fr); }
.cards--list > .card { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); align-items: center; }
.cards--list > .card .card__media img { height: 100%; aspect-ratio: 4 / 3; }
.cards--list > .card .card__title { font-size: 20px; }
.cards--list > .card .card__text { -webkit-line-clamp: 3; }

/* ---------- sections_grid ---------- */
/* numbered — крупный нумерованный список разделов */
.tiles--numbered { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); counter-reset: tile; }
.tiles--numbered > .tile {
  counter-increment: tile; display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px; row-gap: 6px; align-items: start; background: transparent; border: 0;
  border-top: 1px solid var(--border); border-radius: 0; padding: calc(20px * var(--space)) 0;
}
/* Ячейки задаём явно: авторазмещение уводило описание под номер */
.tiles--numbered > .tile::before {
  content: counter(tile, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 2;
  font-family: var(--font-heading); font-size: 30px; font-weight: 700; line-height: 1;
  color: var(--accent); opacity: .55;
}
.tiles--numbered > .tile .tile__title { grid-column: 2; grid-row: 1; margin-bottom: 0; }
.tiles--numbered > .tile .tile__text  { grid-column: 2; grid-row: 2; }
.tiles--numbered > .tile:hover { border-color: var(--accent); }
/* columns — узкие колонки с разделителями */
.tiles--columns { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; }
.tiles--columns > .tile {
  background: transparent; border: 0; border-left: 1px solid var(--border);
  border-radius: 0; padding: calc(6px * var(--space)) calc(24px * var(--space));
}
.tiles--columns > .tile:first-child { border-left: 0; padding-left: 0; }

/* ---------- features / steps ---------- */
/* row — пункты в одну строку, разделённые линиями */
.items--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.items--row > .item { padding: 0 calc(24px * var(--space)); border-left: 1px solid var(--border); }
.items--row > .item:first-child { border-left: 0; padding-left: 0; }
/* zigzag — пункты в столбик, чередуясь по краям */
.items--zigzag { grid-template-columns: minmax(0, 1fr); gap: calc(18px * var(--space)); }
.items--zigzag > .item {
  width: min(100%, 34rem); padding: calc(20px * var(--space)) calc(26px * var(--space));
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.items--zigzag > .item:nth-child(even) { margin-left: auto; }
/* timeline — вертикальная лента с точками */
.items--timeline { grid-template-columns: minmax(0, 1fr); gap: 0; position: relative; }
.items--timeline > .item {
  position: relative; padding: 0 0 calc(30px * var(--space)) calc(46px * var(--space));
  border-left: 2px solid var(--border);
}
.items--timeline > .item:last-child { border-left-color: transparent; padding-bottom: 0; }
.items--timeline > .item .item__num {
  position: absolute; left: 0; top: 0; transform: translateX(-50%);
  display: grid; place-items: center; width: 34px; height: 34px; margin: 0;
}
/* arrows — шаги в строку со стрелками между ними */
.items--arrows { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: calc(30px * var(--space)); }
.items--arrows > .item { position: relative; }
.items--arrows > .item + .item::before {
  content: "→"; position: absolute; left: calc(-15px * var(--space) - 9px); top: 4px;
  color: var(--accent); font-size: 20px; line-height: 1;
}

/* ---------- numbers ---------- */
/* band — цифры на акцентной плашке во всю ширину секции.
   Двойной класс — иначе чередование .sec:nth-child(even) перебивает фон. */
.sec.sec--numbers-band { background: var(--accent); color: #fff; }
[data-accent="gradient"] .sec.sec--numbers-band { background: linear-gradient(120deg, var(--accent), var(--accent2)); }
.sec--numbers-band .sec__title, .sec--numbers-band .sec__sub { color: #fff; }
.sec--numbers-band .sec__sub { opacity: .85; }
.sec--numbers-band .number__value { color: #fff; font-size: 46px; }
.sec--numbers-band .number__text { color: rgba(255, 255, 255, .8); }
.sec--numbers-band .sec__watermark { color: rgba(255, 255, 255, .12); }
/* Акцентный мотив в разделителе на акцентной же плашке не виден */
.sec--numbers-band .sec__divider .motif { color: #fff; }
.sec--numbers-band .sec__divider::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5)); }
.sec--numbers-band .sec__divider::after { background: linear-gradient(90deg, rgba(255, 255, 255, .5), transparent); }

/* ---------- quote ---------- */
/* center — цитата по центру карточки (базовая вёрстка выключает выравнивание) */
.sec--quote-center .quote { text-align: center; }
.sec--quote-center .quote__text { margin-inline: auto; max-width: 54ch; }
/* aside — крупная кавычка слева, текст справа */
.sec--quote-aside .quote {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: calc(24px * var(--space));
  align-items: start; text-align: left;
}
.sec--quote-aside .quote::before {
  content: "“"; grid-row: span 3; font-family: var(--font-heading);
  font-size: 92px; line-height: .8; color: var(--accent); opacity: .35;
}
.sec--quote-aside .quote__text { font-size: 21px; color: var(--text); }

/* ---------- faq ---------- */
.sec--faq-two-col .wrap--narrow { width: min(100% - 40px, var(--width)); }
.sec--faq-two-col .faq { columns: 2; column-gap: calc(40px * var(--space)); }
.sec--faq-two-col .faq__item { break-inside: avoid; }

/* ---------- cta ---------- */
/* boxed — призыв карточкой с акцентной рамкой */
.sec--cta-boxed .cta {
  border: 2px solid var(--accent); background: var(--bg);
  flex-direction: column; align-items: flex-start; gap: 18px;
}
/* full — плашка во всю ширину секции, без скруглений */
.sec--cta-full { padding: 0; }
.sec--cta-full > .wrap { width: 100%; }
.sec--cta-full .cta {
  border-radius: 0; border: 0; background: var(--accent); color: #fff;
  padding: calc(56px * var(--space)) max(20px, calc((100vw - var(--width)) / 2));
}
[data-accent="gradient"] .sec--cta-full .cta { background: linear-gradient(120deg, var(--accent), var(--accent2)); }
.sec--cta-full .cta__title, .sec--cta-full .cta__sub, .sec--cta-full .cta__text { color: #fff; }
.sec--cta-full .btn { background: var(--bg); color: var(--text); }
.sec--cta-full .cta--media { background-color: transparent; }

/* ---------- contacts ---------- */
/* cards — контакты плитками, а не списком */
.sec--contacts-cards .wrap--narrow { width: min(100% - 40px, var(--width)); }
.sec--contacts-cards .contacts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: calc(18px * var(--space)); }
.sec--contacts-cards .contacts li {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: calc(20px * var(--space));
}

/* ---------- gallery ---------- */
/* strip — картинка широкой лентой в край экрана */
.sec--gallery-strip > .wrap { width: 100%; }
.sec--gallery-strip .gallery img { border-radius: 0; aspect-ratio: 3 / 1; object-fit: cover; }

/* ============================================================
   РИТМ ГЛАВНОЙ (layout.grid.home) — общий поверх вариантов блоков:
   ширина секций, чередование фона, вертикальный воздух.
   ============================================================ */

/* hero-split — плотнее и шире, секции идут встык */
[data-home="hero-split"] .sec { padding: calc(40px * var(--space)) 0; }
[data-home="hero-split"] .sec:nth-child(even):not(.sec--numbers-band) { background: transparent; }
[data-home="hero-split"] .sec + .sec { border-top: 1px solid var(--border); }

/* mosaic — чередование ширины: секции то во всю ширину, то узкие */
[data-home="mosaic"] .sec:nth-child(odd) > .wrap { width: min(100% - 40px, calc(var(--width) + 160px)); }
[data-home="mosaic"] .sec:nth-child(even) > .wrap { width: min(100% - 40px, 820px); }
[data-home="mosaic"] .sec:nth-child(even):not(.sec--numbers-band) { background: var(--surface); }

/* magazine — узкая колонка и крупная типографика */
[data-home="magazine"] .sec > .wrap { width: min(100% - 40px, 900px); }
[data-home="magazine"] .sec--hero > .wrap, [data-home="magazine"] .sec--cards > .wrap { width: min(100% - 40px, var(--width)); }
[data-home="magazine"] .sec__title { font-size: clamp(26px, 3.2vw, 40px); }
[data-home="magazine"] .sec__sub { font-size: 19px; }
[data-home="magazine"] .sec:nth-child(even):not(.sec--numbers-band) { background: transparent; }

/* feature-rows — каждая секция как отдельный экран, много воздуха */
[data-home="feature-rows"] .sec { padding: calc(84px * var(--space)) 0; }
[data-home="feature-rows"] .sec:nth-child(even):not(.sec--numbers-band) { background: transparent; }
[data-home="feature-rows"] .sec__head { margin-bottom: calc(42px * var(--space)); }

/* ---------- Адаптив вариантов ---------- */
@media (max-width: 900px) {
  .cards--feature > .card:first-child { grid-column: auto; grid-row: auto; }
  .cards--list > .card { grid-template-columns: minmax(0, 1fr); }
  .sec--faq-two-col .faq { columns: 1; }
  .items--row, .items--arrows { grid-template-columns: minmax(0, 1fr); }
  .items--row > .item { border-left: 0; padding: 0; }
  .items--arrows > .item + .item::before { content: none; }
  .items--zigzag > .item, .items--zigzag > .item:nth-child(even) { width: 100%; margin-left: 0; }
  .tiles--columns > .tile { border-left: 0; padding-left: 0; }
  .sec--about-overlap .about__body { margin-top: calc(-24px * var(--space)); }
  [data-home="mosaic"] .sec:nth-child(odd) > .wrap { width: min(100% - 40px, var(--width)); }
}
