/* Сайт партнёра: стили поверх общих стилей страниц (site.css — структура и элементы сайта).
   Стиль — data-style у <html> (sadu, pastel), тема — data-theme (light, dark; по настройке устройства).
   Фотографии, «солнце», тёплое стекло и двухвесовой заголовок «Золотого часа» здесь не используются:
   у каждого стиля свой фон первого экрана, свои поверхности, свои кнопки и своё движение. */

/* Шрифты стилей партнёра — свои файлы, OFL (лицензии: fonts/OFL-*.txt), наборы и диапазоны как в Fontsource.
   «Садо»: Geologica со всеми осями (SHRP — «острота» заголовков) и Handjet для цифр. «Пастель»: Nunito. */
@font-face { font-family: "Geologica Full"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geologica-cyrillic-full-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica Full"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geologica-latin-full-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Handjet"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/handjet-cyrillic-full-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Handjet"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/handjet-latin-full-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================================================
   Общее для всех стилей партнёра: элементы сайта берут цвета из токенов ниже
   ========================================================================================= */
:root[data-style] {
  --sunset: var(--dawn); --sheet-ground-dusk: var(--sheet-ground-dawn); /* фон не «вечереет» при прокрутке */
  --hero-radius: 0px; --band-radius: 0px; --sheet-radius: 20px;
  --btn-radius: 14px; --btn-shadow: none; --display-track: -0.035em;
  --focus: var(--sun-deep);
}
:root[data-style] .sun, :root[data-style] .hero-bloom { display: none; }
:root[data-style] body { background: var(--dawn); }
:root[data-style] ::selection { background: var(--sel-bg); color: var(--ink); }
:root[data-style] :focus-visible { outline-color: var(--focus); }
:root[data-style] :is(.hero, .evening, .band-promises, .foot) :focus-visible { outline-color: var(--hero-accent); }
:root[data-style] :is(.finder, .lead-box, .mega, .quiz-card) :focus-visible { outline-color: var(--focus); }
html[data-style] { scrollbar-color: var(--scroll-thumb) var(--dawn); }
:root[data-style] ::-webkit-scrollbar-track { background: var(--dawn); }
:root[data-style] ::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-color: var(--dawn); }
[data-brand="on"] [data-when="nobrand"], [data-brand="off"] [data-when="brand"] { display: none !important; }

/* типографика */
:root[data-style] .display, :root[data-style] .h2 { letter-spacing: var(--display-track); }
:root[data-style] .d-light { font-weight: var(--d-light-w); color: var(--d-light-c, inherit); }
:root[data-style] .d-strong { font-weight: var(--d-strong-w); color: var(--d-strong-c); }
:root[data-style] .display-ink .d-light { color: var(--ink-light-c, var(--ink)); }
:root[data-style] .display-ink .d-strong { color: var(--ink-strong-c, var(--ink)); }
:root[data-style] .evening .d-light { color: var(--evening-ink); }
:root[data-style] .evening .d-strong { color: var(--evening-strong, var(--evening-ink)); }
/* телефон: самое длинное неразрывное в заголовке («с консультантом», «конфиденциальности») помещается от 320 px;
   размер в долях ширины экрана — строка занимает одну и ту же часть экрана на любом телефоне (нашла CRM 24.11) */
@media (max-width: 600px) {
  :root[data-style] .hero-home .display { font-size: clamp(28px, 9.4vw, 46px); }
  :root[data-style] .display-sm { font-size: clamp(24px, 8.2vw, 30px); }
}

/* кнопки */
:root[data-style] .btn { border-radius: var(--btn-radius); }
:root[data-style] .btn-sun { background: var(--sun); color: var(--on-sun); box-shadow: var(--btn-shadow); }
:root[data-style] .btn-sun:hover { background: var(--sun-hover); box-shadow: var(--btn-shadow); }
:root[data-style] .hero .btn-sun { background: var(--hero-btn-bg); color: var(--hero-btn-ink); }
:root[data-style] .hero .btn-sun:hover { background: var(--hero-btn-hover); }
:root[data-style] .band-promises .btn-sun { background: var(--band-btn-bg, var(--hero-btn-bg)); color: var(--band-btn-ink, var(--hero-btn-ink)); }
:root[data-style] .band-promises .btn-sun:hover { background: var(--band-btn-hover, var(--hero-btn-hover)); }
:root[data-style] .btn-ghost-light { color: var(--hero-ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--hero-line); }
:root[data-style] .btn-ghost-light:hover { background: var(--hero-wash); }

/* верхняя строка: сплошная, без стекла */
:root[data-style] .top-bar, :root[data-style] .is-scrolled .top-bar {
  background: var(--topbar-bg); border: 1px solid var(--topbar-line); box-shadow: var(--topbar-shadow);
  backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: var(--topbar-radius); color: var(--ink);
}
:root[data-style] .top-nav a:hover, :root[data-style] .top-burger:hover, :root[data-style] .top-burger[aria-expanded="true"] { background: var(--nav-hover); }
:root[data-style] .top-nav .top-item.is-open { background: var(--nav-hover); }
:root[data-style] .top-nav a[aria-current], :root[data-style] .top-nav .top-item.is-current { background: var(--nav-current); }
:root[data-style] .top-burger { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.brand-logo { width: 30px; height: 30px; flex: none; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
.brand-who { gap: 10px; padding-block: 4px; }
.who-ava { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--sun); color: var(--on-sun); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.who-txt { display: grid; line-height: 1.15; }
.who-txt small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.who-txt b { font-size: 15px; font-weight: 700; }
/* длинное имя консультанта — в одну строку с многоточием, не заходит под «Заявку» (нашла CRM 24.11) */
.who-txt { min-width: 0; }
.who-txt small, .who-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* длинное название бренда на компьютере сжимается само, а «Оставить заявку» остаётся в одну строку */
:root[data-style] .top-cta { white-space: nowrap; }
:root[data-theme="dark"] .brand-logo { padding: 3px; background: #FFFFFF; border-radius: 8px; box-sizing: content-box; width: 26px; height: 26px; }

/* меню всех услуг */
:root[data-style] .mega { background: var(--mega-bg); border: 1px solid var(--panel-line); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: var(--topbar-radius); }
:root[data-style] .mega-col.is-focus { background: var(--mega-focus); }
:root[data-style] .mega-list a:hover, :root[data-style] .mega-list a[aria-current] { background: var(--panel-2); }
:root[data-style] .mtag { color: var(--tag-ink); }
:root[data-style] .mega-quiz { background: var(--ink); color: var(--on-ink-2); }
:root[data-style] .mega-quiz b { color: var(--on-ink); }
:root[data-style] .mega-quiz .ic { color: var(--on-ink-accent); }
:root[data-style] .mega-quiz:hover { background: var(--ink-hover); }
:root[data-style] .mega-link:hover { background: var(--nav-hover); }

/* первый экран: фон стиля вместо фото */
:root[data-style] .hero { background: var(--hero-ground); color: var(--hero-ink); }
:root[data-style] .hero-media { background: var(--hero-ground); border-radius: 0 0 var(--hero-radius) var(--hero-radius); }
:root[data-style] .hero-media::after, :root[data-style] .evening-media::after { content: none; }
:root[data-style] .ground { position: absolute; inset: 0; display: block; background: var(--hero-ground); }
:root[data-style] .plate, :root[data-style] .hero-sec .plate-row {
  background: var(--plate-bg); border-color: var(--plate-line); box-shadow: var(--plate-shadow, none);
  backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: var(--plate-radius, var(--r-panel));
}
:root[data-style] .hero-lead, :root[data-style] .hero-meta, :root[data-style] .hero-facts li { color: var(--hero-ink-2); }
:root[data-style] :is(.hero-services, .hero-usp, .hero-meta b, .hero-facts b, .crumbs [aria-current]) { color: var(--hero-ink); }
:root[data-style] .hero-services li::before { background: var(--hero-accent); }
:root[data-style] :is(.hero-usp, .hero-meta, .hero-facts) .ic { color: var(--hero-accent); }
:root[data-style] .hero-usp { border-top-color: var(--hero-line-soft); }
:root[data-style] .hero-facts li, :root[data-style] .crumbs ol { background: var(--crumbs-bg); border-color: var(--hero-line-soft); backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--hero-ink-2); }
:root[data-style] :is(.apply-page, .legal) .crumbs ol { background: var(--panel-2); color: var(--ink-2); }
:root[data-style] :is(.apply-page, .legal) .crumbs [aria-current] { color: var(--ink); }

/* подбор решения и квизы */
:root[data-style] .finder, :root[data-style] .lead-glass {
  background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow);
  backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: var(--r-panel); color: var(--ink);
}
:root[data-style] :is(.lead-light, .quiz-card, .check-box, .route-box, .steps) { background: var(--panel); border-color: var(--panel-line); box-shadow: var(--panel-shadow); }
:root[data-style] .quiz-opt { background: var(--panel); color: var(--ink); border-color: var(--line); }
:root[data-style] .quiz-opt:hover { border-color: var(--ink); }
:root[data-style] .quiz-opt .ic { color: var(--sun-deep); }
:root[data-style] .quiz-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
:root[data-style] .quiz-opt[aria-pressed="true"] .ic { color: var(--on-ink-accent); }
:root[data-style] .quiz-opt[aria-pressed="true"] small { color: var(--on-ink-2); }
:root[data-style] .quiz-bar { background: var(--seg-track); }
:root[data-style] .quiz-back { background: var(--nav-hover); color: var(--ink); }
:root[data-style] .quiz-again { background: var(--panel); color: var(--ink); }
:root[data-style] .quiz-sum, :root[data-style] .vres-route { background: var(--panel-2); }
:root[data-style] .vres-ic, :root[data-style] .done-ic { background: var(--sun); color: var(--on-sun); }
:root[data-style] .vres-route li::before { color: var(--step-ink); }
:root[data-style] .fit-list a { background: var(--panel); border-color: var(--line); }
:root[data-style] .fit-list a:hover { border-color: var(--ink); }
:root[data-style] .fit-list small, :root[data-style] .picked { color: var(--tag-ink); background: var(--sun-tint); }
:root[data-style] .note { background: var(--note-bg); color: var(--ink); }
:root[data-style] .seg { background: var(--seg-track); }
:root[data-style] .seg input:checked + span { background: var(--panel); box-shadow: 0 1px 3px rgba(0, 0, 0, .14), inset 0 0 0 1.5px var(--line); }

/* поля формы */
:root[data-style] .field input, :root[data-style] .field select { background-color: var(--field-bg); color: var(--ink); border-radius: var(--r-field); }
:root[data-style] .field select { background-image: var(--select-arrow); }
:root[data-style] .field input:hover, :root[data-style] .field select:hover { border-color: var(--ink-2); }
:root[data-style] .field input:focus, :root[data-style] .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring); }
:root[data-style] .field [aria-invalid="true"] { background: var(--bad-bg); }
:root[data-style] .field input::placeholder { color: var(--ink-2); opacity: 1; }
:root[data-style] .consent input { accent-color: var(--sun); }

/* как работаем, шаги, этапы, документы */
:root[data-style] .step + .step { border-color: var(--line); }
:root[data-style] .step-num { color: var(--step-ink); }
:root[data-style] .ticks .ic, :root[data-style] .doclist .ic { background: var(--sun); color: var(--on-sun); }
:root[data-style] .doclist li { background: var(--panel); box-shadow: var(--panel-shadow); }
:root[data-style] .route::before { background: var(--line); }
:root[data-style] .route::after { background: var(--sun); }
:root[data-style] .route-dot { background: var(--panel); border-color: var(--sun); }
:root[data-style] .route li:last-child .route-dot { background: var(--sun); box-shadow: 0 0 0 4px var(--sun-tint); }
:root[data-style] .check-ok { background: var(--ok-bg); }
:root[data-style] .check-bad { background: var(--bad-bg); box-shadow: none; }
:root[data-style] .tag-sun { background: var(--sun-tint); color: var(--tag-ink); }
:root[data-style] .tag-price { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-style] .tag-price .ic { color: var(--sun-deep); }
:root[data-style] .srow-link:hover .srow-go { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }

/* карточки продуктов раздела */
:root[data-style] .pcard { background: var(--pcard-bg); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: var(--pcard-radius, 18px); color: var(--ink); }
:root[data-style] .pcard:hover { background: var(--pcard-bg); }
:root[data-style] .pcard:hover .pcard-ic, :root[data-style] .pcard-apply:hover { background: var(--sun); color: var(--on-sun); }
:root[data-style] .pcard:has(.pcard-link:focus-visible) { outline-color: var(--hero-accent); }
/* «Заявка» на карточке: обводка цветом стиля (в site.css она оранжевая, от «Золотого часа») */
:root[data-style] .pcard-apply { color: var(--tag-ink); box-shadow: inset 0 0 0 1.5px var(--apply-ring); }
:root[data-style="sadu"] { --apply-ring: rgba(158, 27, 34, .4); }
:root[data-style="sadu"][data-theme="dark"] { --apply-ring: rgba(243, 168, 160, .45); }
:root[data-style="pastel"] { --apply-ring: rgba(47, 60, 219, .35); }
:root[data-style="pastel"][data-theme="dark"] { --apply-ring: rgba(163, 170, 255, .45); }

/* обещания и вопросы */
:root[data-style] .band-promises { background: var(--band-dark); color: var(--band-dark-ink); border-radius: var(--band-radius); }
:root[data-style] .plist { border-top-color: var(--band-dark-line); }
:root[data-style] .plist li { color: var(--band-dark-ink); border-bottom-color: var(--band-dark-line); }
:root[data-style] .plist .ic { color: var(--band-dark-accent); }
:root[data-style] .faq details, :root[data-style] .faq details:first-child { border-color: var(--line); }
:root[data-style] .faq-pm { background: var(--sun); }
:root[data-style] .faq-pm::before, :root[data-style] .faq-pm::after { background: var(--on-sun); }

/* вечер: заявка */
:root[data-style] .evening { background: var(--evening-ground); color: var(--evening-ink); border-radius: var(--band-radius) var(--band-radius) 0 0; }
:root[data-style] .evening-media { background: var(--evening-ground); }
:root[data-style] .evening-media .ground { background: var(--evening-ground); }
:root[data-style] .evening-lead, :root[data-style] .evening-contacts { color: var(--evening-ink-2); }
:root[data-style] .evening-contacts .ic { color: var(--evening-accent); }
:root[data-style] .evening-contacts a { text-decoration-color: var(--evening-accent); }
:root[data-style] .lead-light, :root[data-style] .lead-box { color: var(--ink); }

/* подвал */
:root[data-style] .foot { background: var(--foot-bg); color: var(--foot-ink-2); }
:root[data-style] .foot-brand, :root[data-style] .foot-h, :root[data-style] .foot a:hover { color: var(--foot-ink); }
:root[data-style] .foot-end { color: var(--foot-ink-2); border-top-color: var(--foot-line); }
:root[data-style] .foot-end a { color: var(--foot-ink-2); }

/* телефон: листы на фоне стиля */
@media (max-width: 960px) {
  :root[data-style] body { background: var(--sheet-ground-dawn); }
  :root[data-style] .hero { background: var(--hero-ground); border-radius: 0 0 var(--sheet-radius) var(--sheet-radius); }
  :root[data-style] .hero .hero-media { inset: 0; height: auto; border-radius: 0 0 var(--sheet-radius) var(--sheet-radius); }
  :root[data-style] .plate, :root[data-style] .hero-facts li, :root[data-style] .crumbs ol { background: var(--plate-bg-phone, var(--plate-bg)); }
  :root[data-style] .band { background: var(--panel); border-radius: var(--sheet-radius); box-shadow: var(--panel-shadow); }
  :root[data-style] .band-process { background: var(--sheet-tint); }
  :root[data-style] .band-promises { background: var(--band-dark); }
  :root[data-style] .band .doclist li { background: transparent; box-shadow: none; border-bottom-color: var(--line); }
  :root[data-style] :is(.band-stages .route-box, .band-check .check-box) { background: var(--sheet-tint); box-shadow: none; }
  :root[data-style] .evening, :root[data-style] .foot { border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; }
  :root[data-style] .pcard { background: var(--pcard-bg); }
}

/* без фото первый экран держится на цвете: содержимое по центру экрана, а не прижато к низу */
@media (min-width: 961px) {
  :root[data-style] .hero-grid { align-items: center; }
}
/* телефон: первый экран без пустого поля, которое на нашем сайте занимало фото; листы — по размеру содержимого */
@media (max-width: 960px) {
  :root[data-style] .hero-grid { padding-top: 96px; }
  html[data-snap][data-style] .hero-home .hero-copy { justify-content: center; padding-top: 96px; padding-bottom: 32px; }
  :root[data-style] .hero-inner-grid, :root[data-style] .hero-sec-grid { padding-top: 104px; }
  html[data-snap][data-style] .screen { justify-content: center; }
  html[data-snap][data-style] .screen > .band:only-child { flex: 0 0 auto; }
  html[data-snap][data-style] .screen > .band-promises { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
  html[data-snap][data-style] .hero-home .finder-screen { justify-content: center; }
  html[data-snap][data-style] .hero-home .finder { flex: 0 0 auto; }
}
/* компьютер: первый экран раздела без пустой строки на месте фото — заголовок и карточки вместе, по центру экрана */
@media (min-width: 961px) {
  :root[data-style] .hero-sec-grid { grid-template-rows: auto auto; align-content: center; gap: 28px; }
  :root[data-style] .hero-sec .pcards { grid-row: 2; align-self: start; }
}
/* очередь появления для списков, которые не нумерует motion.js */
:root[data-style] :is(.route, .hero-services, .plist, .ticks, .steps) > :nth-child(2) { --i: 1; }
:root[data-style] :is(.route, .hero-services, .plist, .ticks, .steps) > :nth-child(3) { --i: 2; }
:root[data-style] :is(.route, .hero-services, .plist, .ticks, .steps) > :nth-child(4) { --i: 3; }
:root[data-style] :is(.route, .hero-services, .plist, .ticks, .steps) > :nth-child(5) { --i: 4; }
:root[data-style] :is(.route, .hero-services, .plist, .ticks, .steps) > :nth-child(6) { --i: 5; }
:root[data-style] :is(.route, .hero-services, .plist, .ticks, .steps) > :nth-child(7) { --i: 6; }
:root[data-style] :is(.route, .hero-services, .plist, .ticks, .steps) > :nth-child(n+8) { --i: 7; }

/* сообщение образца */
.proto-toast { position: fixed; z-index: 90; left: 50%; bottom: 20px; width: min(420px, calc(100% - 24px)); padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--on-ink); font: 500 15px/1.4 var(--font); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.proto-toast.show { opacity: 1; transform: translate(-50%, 0); }


/* =========================================================================================
   «Садо»: марена, чёрно-бурая шерсть, белое поле. Тканая кайма — на краях первого экрана и полос.
   Движение: кайма «ткётся» слева направо, ромбы этапов прошиваются по очереди.
   ========================================================================================= */
:root[data-style="sadu"] {
  color-scheme: light;
  --font: "Geologica Full", "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lattice: rgba(255, 255, 255, .12); --seam: rgba(255, 255, 255, .6); --seam-on-light: rgba(143, 28, 32, .5); --thread: #E6A63A; --zig: var(--dawn);
  --sun: #9E1B22; --sun-hover: #86151B; --sun-deep: #8F1C20; --sun-tint: #F6E4E0; --glow: #FFFFFF; --on-sun: #FFFFFF;
  --dusk: #231614; --dusk-deep: #170E0D; --ink: #231614; --ink-2: #6A524C; --ink-3: #6A524C; --line: #E8DCD7; --field: #A08780;
  --on-dark: #F5D7D2; --on-dark-2: #E3CFC9; --dawn: #FAF6F6; --sheet-ground-dawn: #EFE4E5; --sheet-tint: #FBF7F7;
  --step-1: #9E1B22; --step-2: #9E1B22; --step-3: #9E1B22; --step-4: #9E1B22; --step-5: #9E1B22; --step-ink: #FFFFFF;
  --r-panel: 6px; --r-field: 4px; --btn-radius: 4px; --pcard-radius: 6px; --topbar-radius: 6px; --sheet-radius: 6px; --plate-radius: 0px;
  --shadow-panel: none; --shadow-soft: none; --panel-shadow: none; --topbar-shadow: 0 10px 24px -20px rgba(35, 22, 20, .6);
  --d-light-w: 700; --d-strong-w: 700; --d-strong-c: #FFFFFF; --display-track: -0.03em;
  --panel: #FFFFFF; --panel-2: #F8F2F2; --panel-line: #EADDDD; --pcard-bg: #FFFFFF; --field-bg: #FFFFFF;
  --hero-ground: #9E1B22; --hero-ink: #FFFFFF; --hero-ink-2: #F5D7D2; --hero-accent: #FFFFFF; --hero-line: rgba(255, 255, 255, .75);
  --hero-line-soft: rgba(255, 255, 255, .24); --hero-wash: rgba(255, 255, 255, .12); --plate-bg: transparent; --plate-line: transparent;
  --crumbs-bg: rgba(35, 22, 20, .28); --hero-btn-bg: #FFFFFF; --hero-btn-ink: #8F1C20; --hero-btn-hover: #F6E4E0;
  --band-dark: #231614; --band-dark-ink: #FFFFFF; --band-dark-line: rgba(255, 255, 255, .16); --band-dark-accent: #E6A63A;
  --evening-ground: #231614; --evening-ink: #FFFFFF; --evening-ink-2: #E3CFC9; --evening-accent: #E6A63A;
  --foot-bg: #170E0D; --foot-ink: #FFFFFF; --foot-ink-2: #D9C6C0; --foot-line: rgba(255, 255, 255, .12);
  --topbar-bg: #FFFFFF; --topbar-line: #E8DCD7; --nav-hover: rgba(35, 22, 20, .06); --nav-current: #F6E4E0; --mega-bg: #FFFFFF; --mega-focus: #FBF4F2;
  --tag-ink: #6E1216; --seg-track: #F1E6E2; --note-bg: #F9EEDC; --ok-bg: #E4F1E8; --bad-bg: #FBE9E6; --focus-ring: rgba(158, 27, 34, .25);
  --on-ink: #FFFFFF; --on-ink-2: #E3CFC9; --on-ink-accent: #E6A63A; --ink-hover: #000000; --sel-bg: #F6D5CF; --scroll-thumb: #D9C1B9;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23231614' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  --pat-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='28' shape-rendering='crispEdges'%3E %3Crect width='16' height='28' fill='%239E1B22'/%3E %3Cpath d='M8 3 L12 7 L8 11 L4 7 Z' fill='%23FBF4EF' shape-rendering='geometricPrecision'/%3E %3Cpath d='M8 5.6 L9.4 7 L8 8.4 L6.6 7 Z' fill='%23231614' shape-rendering='geometricPrecision'/%3E %3Crect y='14' width='16' height='2' fill='%23231614'/%3E %3Crect x='0' y='16' width='4' height='4' fill='%23FBF4EF'/%3E%3Crect x='4' y='16' width='4' height='4' fill='%23231614'/%3E %3Crect x='8' y='16' width='4' height='4' fill='%23FBF4EF'/%3E%3Crect x='12' y='16' width='4' height='4' fill='%23231614'/%3E %3Crect x='0' y='20' width='4' height='4' fill='%23231614'/%3E%3Crect x='4' y='20' width='4' height='4' fill='%23FBF4EF'/%3E %3Crect x='8' y='20' width='4' height='4' fill='%23231614'/%3E%3Crect x='12' y='20' width='4' height='4' fill='%23FBF4EF'/%3E %3Crect y='24' width='16' height='4' fill='%23231614'/%3E%3C/svg%3E");
  --pat-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E %3Crect width='8' height='8' fill='%239E1B22'/%3E %3Crect x='0' y='0' width='4' height='4' fill='%23FBF4EF'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%23FBF4EF'/%3E%3C/svg%3E");
  --pat-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='12'%3E %3Cpath d='M4 2 L8 6 L4 10 L0 6 Z M16 2 L20 6 L16 10 L12 6 Z M28 2 L32 6 L28 10 L24 6 Z' fill='%239E1B22'/%3E %3Cpath d='M16 4.6 L17.4 6 L16 7.4 L14.6 6 Z' fill='%23E6A63A'/%3E%3C/svg%3E");
  --pat-warp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='8' shape-rendering='crispEdges'%3E %3Crect width='4' height='8' fill='%239E1B22'/%3E%3Crect y='6' width='4' height='2' fill='%23231614'/%3E%3C/svg%3E");
  --pat-band-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' shape-rendering='crispEdges'%3E%3Crect width='28' height='16' fill='%239E1B22'/%3E%3Cpath d='M3 8 L7 12 L11 8 L7 4 Z' fill='%23FBF4EF' shape-rendering='geometricPrecision'/%3E%3Cpath d='M5.6 8 L7 9.4 L8.4 8 L7 6.6 Z' fill='%23231614' shape-rendering='geometricPrecision'/%3E%3Crect x='14' width='2' height='16' fill='%23231614'/%3E%3Crect x='16' y='0' width='4' height='4' fill='%23FBF4EF'/%3E%3Crect x='16' y='4' width='4' height='4' fill='%23231614'/%3E%3Crect x='16' y='8' width='4' height='4' fill='%23FBF4EF'/%3E%3Crect x='16' y='12' width='4' height='4' fill='%23231614'/%3E%3Crect x='20' y='0' width='4' height='4' fill='%23231614'/%3E%3Crect x='20' y='4' width='4' height='4' fill='%23FBF4EF'/%3E%3Crect x='20' y='8' width='4' height='4' fill='%23231614'/%3E%3Crect x='20' y='12' width='4' height='4' fill='%23FBF4EF'/%3E%3Crect x='24' width='4' height='16' fill='%23231614'/%3E%3C/svg%3E");
}
:root[data-style="sadu"][data-theme="dark"] {
  color-scheme: dark;
  --sun: #C0393A; --sun-hover: #B23334; --sun-deep: #F3A8A0; --sun-tint: #3B1C1B; --on-sun: #FFFFFF;
  --ink: #F4EAE7; --ink-2: #CDB7B1; --ink-3: #CDB7B1; --line: #3A2A27; --field: #8E746D;
  --dawn: #140D0C; --sheet-ground-dawn: #0C0707; --sheet-tint: #1A1110;
  --panel: #1F1513; --panel-2: #271B19; --panel-line: #352523; --pcard-bg: #1F1513; --field-bg: #1A1110;
  --lattice: rgba(255, 255, 255, .08); --seam-on-light: rgba(124, 20, 26, .5);
  --hero-ground: #7C141A; --crumbs-bg: rgba(0, 0, 0, .25); --hero-btn-bg: #FBF4EF; --hero-btn-ink: #7C141A; --hero-btn-hover: #FFFFFF;
  --band-dark: #2A1C19; --evening-ground: #0E0908; --foot-bg: #0B0707;
  --topbar-bg: #1F1513; --topbar-line: #352523; --nav-hover: rgba(255, 255, 255, .06); --nav-current: #3B1C1B; --mega-bg: #1F1513; --mega-focus: #271B19;
  --tag-ink: #F3A8A0; --seg-track: #2A1C19; --note-bg: #2E2414; --ok-bg: #12261A; --bad-bg: #3A1715; --focus-ring: rgba(243, 168, 160, .35);
  --on-ink: #140D0C; --on-ink-2: #3A2A27; --on-ink-accent: #9E1B22; --ink-hover: #FFFFFF; --sel-bg: #5A2422; --scroll-thumb: #4A3532;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23F4EAE7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  --pat-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='28' shape-rendering='crispEdges'%3E %3Crect width='16' height='28' fill='%237C141A'/%3E %3Cpath d='M8 3 L12 7 L8 11 L4 7 Z' fill='%23EADDD7' shape-rendering='geometricPrecision'/%3E %3Cpath d='M8 5.6 L9.4 7 L8 8.4 L6.6 7 Z' fill='%23140D0C' shape-rendering='geometricPrecision'/%3E %3Crect y='14' width='16' height='2' fill='%23140D0C'/%3E %3Crect x='0' y='16' width='4' height='4' fill='%23EADDD7'/%3E%3Crect x='4' y='16' width='4' height='4' fill='%23140D0C'/%3E %3Crect x='8' y='16' width='4' height='4' fill='%23EADDD7'/%3E%3Crect x='12' y='16' width='4' height='4' fill='%23140D0C'/%3E %3Crect x='0' y='20' width='4' height='4' fill='%23140D0C'/%3E%3Crect x='4' y='20' width='4' height='4' fill='%23EADDD7'/%3E %3Crect x='8' y='20' width='4' height='4' fill='%23140D0C'/%3E%3Crect x='12' y='20' width='4' height='4' fill='%23EADDD7'/%3E %3Crect y='24' width='16' height='4' fill='%23140D0C'/%3E%3C/svg%3E");
  --pat-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E %3Crect width='8' height='8' fill='%237C141A'/%3E %3Crect x='0' y='0' width='4' height='4' fill='%23EADDD7'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%23EADDD7'/%3E%3C/svg%3E");
  --pat-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='12'%3E %3Cpath d='M4 2 L8 6 L4 10 L0 6 Z M16 2 L20 6 L16 10 L12 6 Z M28 2 L32 6 L28 10 L24 6 Z' fill='%23D04A47'/%3E %3Cpath d='M16 4.6 L17.4 6 L16 7.4 L14.6 6 Z' fill='%23E6A63A'/%3E%3C/svg%3E");
  --pat-band-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' shape-rendering='crispEdges'%3E%3Crect width='28' height='16' fill='%237C141A'/%3E%3Cpath d='M3 8 L7 12 L11 8 L7 4 Z' fill='%23EADDD7' shape-rendering='geometricPrecision'/%3E%3Cpath d='M5.6 8 L7 9.4 L8.4 8 L7 6.6 Z' fill='%23140D0C' shape-rendering='geometricPrecision'/%3E%3Crect x='14' width='2' height='16' fill='%23140D0C'/%3E%3Crect x='16' y='0' width='4' height='4' fill='%23EADDD7'/%3E%3Crect x='16' y='4' width='4' height='4' fill='%23140D0C'/%3E%3Crect x='16' y='8' width='4' height='4' fill='%23EADDD7'/%3E%3Crect x='16' y='12' width='4' height='4' fill='%23140D0C'/%3E%3Crect x='20' y='0' width='4' height='4' fill='%23140D0C'/%3E%3Crect x='20' y='4' width='4' height='4' fill='%23EADDD7'/%3E%3Crect x='20' y='8' width='4' height='4' fill='%23140D0C'/%3E%3Crect x='20' y='12' width='4' height='4' fill='%23EADDD7'/%3E%3Crect x='24' width='4' height='16' fill='%23140D0C'/%3E%3C/svg%3E");
}
/* заголовки «Садо» — Geologica 700 одним весом */
:root[data-style="sadu"] :is(.h2, .step-h, .lead-h, .quiz-h, .finder-h, .pcard-name, .vres-name, .mega-sec, .faq summary, .srow-name) { font-weight: 700; }
/* кайма первого экрана и полос */
:root[data-style="sadu"] .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 28px; background: var(--pat-band) 0 0 / 16px 28px repeat-x; }
:root[data-style="sadu"] .hero-grid, :root[data-style="sadu"] .hero-inner-grid, :root[data-style="sadu"] .hero-sec-grid { padding-bottom: calc(28px + clamp(24px, 4svh, 56px)); }
:root[data-style="sadu"] :is(.band-promises, .evening)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--pat-edge) 0 0 / 8px 8px repeat-x; }
:root[data-style="sadu"] .band-promises { position: relative; }
:root[data-style="sadu"] .band .h2::before, :root[data-style="sadu"] .proc-head .h2::before { content: ""; display: block; width: 32px; height: 12px; margin-bottom: 14px; background: var(--pat-motif) 0 0 / 32px 12px no-repeat; }
:root[data-style="sadu"] .band-promises .h2::before { display: none; }
/* ромбы: номера шагов, галочки, вопросы, точки маршрута */
:root[data-style="sadu"] .step-num, :root[data-style="sadu"] .vres-route li::before { border-radius: 0; background: var(--sun); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
:root[data-style="sadu"] .ticks .ic, :root[data-style="sadu"] .doclist .ic { border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); padding: 7px; }
:root[data-style="sadu"] .faq-pm { border-radius: 2px; }
:root[data-style="sadu"] .route-dot { border-radius: 0; transform: rotate(45deg) scale(.86); }
:root[data-style="sadu"] .route::after { width: 4px; left: 12px; background: var(--pat-warp) 0 0 / 4px 8px repeat-y; }
:root[data-style="sadu"] .quiz-opt, :root[data-style="sadu"] .fit-list a, :root[data-style="sadu"] .tag, :root[data-style="sadu"] .mtag { border-radius: 4px; }
:root[data-style="sadu"] .pcard-ic, :root[data-style="sadu"] .mega-ic, :root[data-style="sadu"] .qz-points .ic { border-radius: 2px; }
:root[data-style="sadu"] .plate-row { padding-left: 0; padding-right: 0; }
/* телефон: тканая полоса прямо в первом экране, над заголовком (кайма по низу первого экрана уходит за подбор) */
@media (max-width: 960px) {
  :root[data-style="sadu"] .hero-home .hero-copy::before { content: ""; display: block; height: 28px; margin: 0 calc(-1 * var(--gutter)) 28px;
    background: var(--pat-band) 0 0 / 16px 28px repeat-x; transform: scaleY(-1); }
}
/* компьютер: первые экраны в рамке из каймы — по низу и вертикально по правому краю */
@media (min-width: 1200px) {
  :root[data-style="sadu"] .hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; width: 42px;
    background: var(--pat-band-v) 0 0 / 42px 24px repeat-y; }
}
@media (min-width: 961px) {
  /* на большом экране кайма крупнее: ткань читается с расстояния */
  :root[data-style="sadu"] .hero::after { height: 42px; background-size: 24px 42px; }
  :root[data-style="sadu"] .hero-grid, :root[data-style="sadu"] .hero-inner-grid, :root[data-style="sadu"] .hero-sec-grid { padding-bottom: calc(42px + clamp(24px, 4svh, 56px)); }
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="sadu"] .hero::after, :root[data-style="sadu"] .hero-home .hero-copy::before { animation: weave 1.6s .2s var(--ease) both; }
  :root[data-style="sadu"] .hero::before { animation: weave-down 1.6s .4s var(--ease) both; }
  :root[data-style="sadu"] .route li .route-dot { animation: stitch .5s var(--ease) both; animation-delay: calc(.1s + var(--i, 0) * 90ms); }
}
@media (min-width: 961px) { :root[data-style="sadu"] .hero-sec .pcards[data-count="7"] > .pcard:first-child { grid-column: span 2; } }
@keyframes weave { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes weave-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stitch { from { opacity: 0; transform: rotate(45deg) scale(.2); } }

/* --- приёмы из открытых библиотек (выбор владельца 23.11), всё своё на CSS --- */
/* заголовки с характером — ось «острота» Geologica; номера шагов — Handjet, модульные, как тканая сетка.
   Цены остаются в Geologica: перечёркнутый ноль Handjet на 13–15 px читается как восьмёрка */
:root[data-style="sadu"] :is(.display, .h2) { font-variation-settings: "SHRP" 100; }
:root[data-style="sadu"] .step-num, :root[data-style="sadu"] .vres-route li::before { font-family: "Handjet", var(--font); font-weight: 700; font-size: 22px; }
/* узор поля: тонкая ромбическая сетка по марене (идея — CSS Pattern, MIT) */
:root[data-style="sadu"] .hero .ground { background: repeating-linear-gradient(45deg, transparent 0 23px, var(--lattice) 23px 24px),
  repeating-linear-gradient(-45deg, transparent 0 23px, var(--lattice) 23px 24px), var(--hero-ground); }
/* зубчатая кайма по верху тёмных полос вместо шашки: зубцы цвета страницы (идея — Animata Zigzag, MIT) */
:root[data-style="sadu"] :is(.band-promises, .evening)::before { height: 10px; background: conic-gradient(from -45deg at 50% 100%, var(--zig) 0 90deg, transparent 0) 0 0 / 20px 10px repeat-x; }
@media (max-width: 960px) { :root[data-style="sadu"] { --zig: var(--sheet-ground-dawn); } }
/* шов на главной кнопке и нить, которая один раз обходит её при появлении (идея — Border Trail, Border Beam; MIT) */
@property --seam-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root[data-style="sadu"] .btn-sun { position: relative; }
:root[data-style="sadu"] .btn-sun::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed var(--seam); border-radius: 2px; pointer-events: none; }
:root[data-style="sadu"] :is(.hero, .band-promises) .btn-sun::after { border-color: var(--seam-on-light); }
:root[data-style="sadu"] .btn-sun::before { content: ""; position: absolute; inset: -5px; padding: 2px; border-radius: 7px; opacity: 0; pointer-events: none;
  background: conic-gradient(from var(--seam-a), transparent 0deg 290deg, var(--thread) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
/* буквы заголовка первого экрана: partner.js режет их на span только на компьютере и при согласии на движение; текст для диктора — в .sr */
:root[data-style="sadu"] .hero h1 .w { display: inline-block; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="sadu"] .btn-sun[data-seen]::before { animation: seam-run 1.8s cubic-bezier(.45, 0, .2, 1) .2s 1 both; }
  /* карточки раздела и шаги «ткутся»: раскрываются слева направо, как кайма (идея — Clip Path Image, UI Layouts; MIT).
     Только backwards: после раскрытия clip-path снимается и не режет рамку фокуса */
  :root[data-style="sadu"] .pcard { animation: weave-in .9s var(--ease) backwards; animation-delay: calc(.3s + var(--i, 0) * 110ms); }
  :root[data-style="sadu"] .steps[data-weave]:not([data-seen]) .step { clip-path: inset(0 100% 0 0); }
  :root[data-style="sadu"] .steps[data-seen] .step { animation: weave-in .8s var(--ease) backwards; animation-delay: calc(.05s + var(--i, 0) * 120ms); }
}
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  :root[data-style="sadu"] .hero h1 :is(.d-light, .d-strong) { animation: none; }
  :root[data-style="sadu"] .hero h1 .ch { display: inline-block; animation: stitch-in .4s var(--ease) backwards; animation-delay: calc(.1s + var(--i, 0) * 11ms); }
  /* очередь первого экрана: буквы, потом кайма снизу и справа, потом нить по кнопке */
  :root[data-style="sadu"] .hero::after { animation-delay: .9s; }
  :root[data-style="sadu"] .hero::before { animation-delay: 1.05s; }
  :root[data-style="sadu"] :is(.top-cta, .hero .btn-sun)[data-seen]::before { animation-delay: 2.6s; }
}
@keyframes seam-run { 0% { --seam-a: 0deg; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { --seam-a: 360deg; opacity: 0; } }
@keyframes weave-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stitch-in { from { opacity: .25; transform: translateY(.12em); } }


/* =========================================================================================
   «Пастель»: как приложение. Первые экраны — мягкие цвета разделов, плотные скруглённые карточки,
   ультрамарин действий. Движение: карточки и метки мягко поднимаются по очереди, кнопки и плитки чуть сжимаются при нажатии.
   ========================================================================================= */
:root[data-style="pastel"] {
  color-scheme: light;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grain: .2; --card-glow: rgba(47, 60, 219, .1); --shine: rgba(255, 255, 255, .55); --feature-tint: #BCD4FF;
  --sun: #2F3CDB; --sun-hover: #2531C2; --sun-deep: #2F3CDB; --sun-tint: #E7E9FF; --glow: #2F3CDB; --on-sun: #FFFFFF;
  --dusk: #2F3CDB; --dusk-deep: #0E1016; --ink: #14161F; --ink-2: #5A6072; --ink-3: #5A6072; --line: #E3E5EC; --field: #8E94A6;
  --on-dark: #EEF0F6; --on-dark-2: #C9CCF5; --dawn: #F1F2F6; --sheet-ground-dawn: #E9EBF2; --sheet-tint: #F6F7FB;
  --step-1: #DCEBFF; --step-2: #D9F3E6; --step-3: #FFF1C2; --step-4: #ECE3FF; --step-5: #FFE3E3; --step-ink: #14161F;
  --r-panel: 26px; --r-field: 14px; --btn-radius: 16px; --pcard-radius: 22px; --topbar-radius: 22px; --sheet-radius: 26px; --hero-radius: 36px; --band-radius: 36px;
  --shadow-panel: 0 2px 4px rgba(20, 22, 31, .04), 0 24px 48px -28px rgba(20, 22, 31, .28); --shadow-soft: 0 1px 2px rgba(20, 22, 31, .05), 0 14px 30px -18px rgba(20, 22, 31, .22);
  --panel-shadow: 0 1px 2px rgba(20, 22, 31, .05), 0 14px 30px -18px rgba(20, 22, 31, .22); --topbar-shadow: 0 10px 30px -18px rgba(20, 22, 31, .35);
  --btn-shadow: 0 12px 22px -14px rgba(47, 60, 219, .8);
  --d-light-w: 800; --d-strong-w: 800; --d-strong-c: #2F3CDB; --ink-strong-c: #2F3CDB; --display-track: -0.03em;
  --panel: #FFFFFF; --panel-2: #F1F2F6; --panel-line: transparent; --pcard-bg: #FFFFFF; --field-bg: #FFFFFF;
  --hero-ground: #DCEBFF; --hero-ink: #14161F; --hero-ink-2: #3D4357; --hero-accent: #2F3CDB; --hero-line: rgba(20, 22, 31, .3);
  --dot-2: #1C9A66; --dot-3: #E0A800; --dot-4: #7B5CE0; --dot-5: #E8577A; /* точки меток услуг первого экрана, 1-я — акцент */
  --hero-line-soft: rgba(20, 22, 31, .12); --hero-wash: rgba(255, 255, 255, .5); --plate-bg: transparent; --plate-line: transparent;
  --crumbs-bg: rgba(255, 255, 255, .62); --hero-btn-bg: #2F3CDB; --hero-btn-ink: #FFFFFF; --hero-btn-hover: #2531C2;
  --band-dark: #2F3CDB; --band-dark-ink: #FFFFFF; --band-dark-line: rgba(255, 255, 255, .28); --band-dark-accent: #FFFFFF;
  --band-btn-bg: #FFFFFF; --band-btn-ink: #2530B8; --band-btn-hover: #E7E9FF;
  --evening-ground: #14161F; --evening-ink: #FFFFFF; --evening-ink-2: #C3C8D8; --evening-accent: #A3AAFF; --evening-strong: #A3AAFF;
  --foot-bg: #0E1016; --foot-ink: #FFFFFF; --foot-ink-2: #A7ADBD; --foot-line: rgba(255, 255, 255, .1);
  --topbar-bg: #FFFFFF; --topbar-line: transparent; --nav-hover: #F1F2F6; --nav-current: #E7E9FF; --mega-bg: #FFFFFF; --mega-focus: #F6F7FB;
  --tag-ink: #2530B8; --seg-track: #E6E8F0; --note-bg: #FFF6D6; --ok-bg: #DDF5E8; --bad-bg: #FFE8E8; --focus-ring: rgba(47, 60, 219, .25);
  --on-ink: #FFFFFF; --on-ink-2: #C3C8D8; --on-ink-accent: #A3AAFF; --ink-hover: #000000; --sel-bg: #D6DAFF; --scroll-thumb: #C9CDDA;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2314161F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
}
:root[data-style="pastel"][data-theme="dark"] {
  color-scheme: dark;
  --sun: #8E97FF; --sun-hover: #A3AAFF; --sun-deep: #A3AAFF; --sun-tint: #23274D; --on-sun: #0E1016; --glow: #A3AAFF;
  --grain: .1; --card-glow: rgba(163, 170, 255, .14); --shine: rgba(255, 255, 255, .35); --feature-tint: #22365A;
  --ink: #EEF0F6; --ink-2: #A7ADBD; --ink-3: #A7ADBD; --line: #2A2E3B; --field: #6E7488;
  --dawn: #0E1016; --sheet-ground-dawn: #08090D; --sheet-tint: #151821;
  --step-1: #1B2A45; --step-2: #15372A; --step-3: #3D2F0C; --step-4: #2A2247; --step-5: #3D1E22; --step-ink: #EEF0F6;
  --shadow-panel: none; --shadow-soft: none; --panel-shadow: none; --topbar-shadow: none; --btn-shadow: none;
  --d-strong-c: #A3AAFF; --ink-strong-c: #A3AAFF;
  --panel: #191C25; --panel-2: #20232E; --panel-line: #2A2E3B; --pcard-bg: #191C25; --field-bg: #12141B;
  --hero-ground: #1B2A45; --hero-ink: #EEF0F6; --hero-ink-2: #C3C8D8; --hero-accent: #A3AAFF; --hero-line: rgba(255, 255, 255, .35);
  --hero-line-soft: rgba(255, 255, 255, .12); --hero-wash: rgba(255, 255, 255, .08); --crumbs-bg: rgba(0, 0, 0, .25);
  --hero-btn-bg: #8E97FF; --hero-btn-ink: #0E1016; --hero-btn-hover: #A3AAFF;
  --band-dark: #262D8C; --evening-ground: #090B10; --foot-bg: #07080C;
  --band-btn-bg: #EEF0F6; --band-btn-ink: #262D8C; --band-btn-hover: #FFFFFF;
  --topbar-bg: #191C25; --topbar-line: #2A2E3B; --nav-hover: #20232E; --nav-current: #23274D; --mega-bg: #191C25; --mega-focus: #20232E;
  --tag-ink: #C3C8FF; --seg-track: #20232E; --note-bg: #2E2A12; --ok-bg: #12261C; --bad-bg: #33181B; --focus-ring: rgba(163, 170, 255, .35);
  --on-ink: #0E1016; --on-ink-2: #3D4357; --on-ink-accent: #2F3CDB; --ink-hover: #FFFFFF; --sel-bg: #2F3CDB; --scroll-thumb: #3A3F50;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23EEF0F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
}
/* заголовки «Пастели»: полосы — 800, как первый экран; мелкие — 700 */
:root[data-style="pastel"] .h2 { font-weight: 800; letter-spacing: var(--display-track); }
:root[data-style="pastel"] :is(.step-h, .lead-h, .quiz-h, .finder-h, .pcard-name, .vres-name, .mega-sec, .faq summary, .srow-name) { font-weight: 700; }
/* свой мягкий цвет у первого экрана каждого раздела: основа и два пятна соседних цветов, сверху лёгкое зерно
   (идея — Grainient, React Bits; пятна — radial-gradient, зерно — своё SVG feTurbulence) */
:root[data-style="pastel"] .ground { --g0: #DCEBFF; --g1: #ECE3FF; --g2: #D9F3E6; }
:root[data-style="pastel"] body[data-section="finance"] .ground { --g0: #D9F3E6; --g1: #DCEBFF; --g2: #FFF1C2; }
:root[data-style="pastel"] body[data-section="life"] .ground { --g0: #FFF1C2; --g1: #FFE3E3; --g2: #D9F3E6; }
:root[data-style="pastel"] body[data-section="legal"] .ground { --g0: #ECE3FF; --g1: #DCEBFF; --g2: #FFE3E3; }
:root[data-style="pastel"][data-theme="dark"] .ground { --g0: #1B2A45; --g1: #2A2247; --g2: #15372A; }
:root[data-style="pastel"][data-theme="dark"] body[data-section="finance"] .ground { --g0: #15372A; --g1: #1B2A45; --g2: #3D2F0C; }
:root[data-style="pastel"][data-theme="dark"] body[data-section="life"] .ground { --g0: #3D2F0C; --g1: #3D1E22; --g2: #15372A; }
:root[data-style="pastel"][data-theme="dark"] body[data-section="legal"] .ground { --g0: #2A2247; --g1: #1B2A45; --g2: #3D1E22; }
:root[data-style="pastel"] .hero .ground { background: radial-gradient(55% 80% at 8% 12%, var(--g1), transparent 70%),
  radial-gradient(45% 70% at 92% 16%, var(--g2), transparent 70%), var(--g0); }
:root[data-style="pastel"] .hero .ground::before { content: ""; position: absolute; inset: 0; opacity: var(--grain); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-style="pastel"] body[data-section="finance"] .hero { background: #D9F3E6; }
:root[data-style="pastel"] body[data-section="life"] .hero { background: #FFF1C2; }
:root[data-style="pastel"] body[data-section="legal"] .hero { background: #ECE3FF; }
:root[data-style="pastel"] .step:nth-child(5) .step-num { background: var(--step-5); }
:root[data-style="pastel"] .pcard-ic { border-radius: 14px; }
:root[data-style="pastel"] .quiz-opt, :root[data-style="pastel"] .fit-list a { border-radius: 16px; }
:root[data-style="pastel"] .tag-price { box-shadow: none; background: var(--panel-2); }
:root[data-style="pastel"] .finder { box-shadow: var(--shadow-panel); }
/* услуги на первом экране — белые «таблетки», как метки в приложении */
:root[data-style="pastel"] .hero-services { gap: 8px; margin-top: 20px; }
:root[data-style="pastel"] .hero-services li { padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 15px; font-weight: 600;
  box-shadow: 0 6px 14px -10px rgba(20, 22, 31, .45); display: inline-flex; align-items: center; gap: 8px; }
:root[data-style="pastel"] .hero-services li::before { position: static; margin: 0; width: 8px; height: 8px; flex: none; background: var(--sun); }
:root[data-style="pastel"] .hero-services li:nth-child(2)::before { background: var(--dot-2); }
:root[data-style="pastel"] .hero-services li:nth-child(3)::before { background: var(--dot-3); }
:root[data-style="pastel"] .hero-services li:nth-child(4)::before { background: var(--dot-4); }
:root[data-style="pastel"] .hero-services li:nth-child(5)::before { background: var(--dot-5); }
:root[data-style="pastel"] .hero-services + .hero-lead { margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="pastel"] .pcard { animation: rise-soft .7s var(--ease) both; animation-delay: calc(.2s + var(--i, 0) * 70ms); }
  :root[data-style="pastel"] .quiz-opt:active, :root[data-style="pastel"] .btn:active { transform: scale(.96); }
  :root[data-style="pastel"] .pcard:hover { transform: translateY(-4px) scale(1.01); }
  :root[data-style="pastel"] .hero-services li { animation: rise-soft .6s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * 60ms); }
}
@keyframes rise-soft { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* --- приёмы из открытых библиотек (выбор владельца 23.11) --- */
/* карточки раздела bento-сеткой: при нечётном числе услуг первая — крупная плитка на две строки (идея — Bento Grid, Magic UI; MIT) */
@media (min-width: 961px) {
  :root[data-style="pastel"] .hero-sec .pcards[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-style="pastel"] .hero-sec .pcards[data-count="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root[data-style="pastel"] .hero-sec .pcards:is([data-count="3"], [data-count="5"], [data-count="7"]) > .pcard:first-child { grid-row: span 2; }
}
/* первая услуга раздела — своим цветом и с объёмным значком раздела (Fluent Emoji 3D, MIT): там, где она крупная плитка
   или единственная. При чётном числе услуг значок раздела мог бы не совпасть с первой услугой («дом» на «Правах») — там его нет */
:root[data-style="pastel"] .hero-sec .pcards:is([data-count="1"], [data-count="3"], [data-count="5"], [data-count="7"]) > .pcard:first-child {
  background: linear-gradient(150deg, var(--pcard-bg) 35%, var(--feature-tint) 100%); }
:root[data-style="pastel"] .hero-sec .pcards:is([data-count="1"], [data-count="3"], [data-count="5"], [data-count="7"]) > .pcard:first-child :is(.pcard-text, .pcard-tags) { padding-right: 84px; }
:root[data-style="pastel"] .hero-sec .pcards:is([data-count="1"], [data-count="3"], [data-count="5"], [data-count="7"]) > .pcard:first-child::after {
  content: ""; position: absolute; right: 12px; bottom: 10px; width: 72px; height: 72px; pointer-events: none;
  background: url("icons3d/airplane.webp") center / contain no-repeat; }
:root[data-style="pastel"] body[data-section="finance"] .hero-sec { --feature-tint: #B3E4CA; }
:root[data-style="pastel"] body[data-section="life"] .hero-sec { --feature-tint: #FFE08A; }
:root[data-style="pastel"] body[data-section="legal"] .hero-sec { --feature-tint: #CFBEFF; }
:root[data-style="pastel"][data-theme="dark"] body[data-section="finance"] .hero-sec { --feature-tint: #1C4634; }
:root[data-style="pastel"][data-theme="dark"] body[data-section="life"] .hero-sec { --feature-tint: #4D3B10; }
:root[data-style="pastel"][data-theme="dark"] body[data-section="legal"] .hero-sec { --feature-tint: #352B5A; }
/* первый экран услуги: крупный объёмный значок раздела на свободном поле.
   Компьютер — справа от текста. Телефон и планшет (24.11) — над крошками, как фото первого экрана на нашем сайте:
   значок первый в колонке первого экрана, занимает свободное место и стоит посередине него, текст остаётся внизу.
   На низком экране места нет — значка нет, кнопки первого экрана не уходят за край */
@media (min-width: 961px) {
  :root[data-style="pastel"] .hero-service .ground::after { content: ""; position: absolute; top: 50%; right: clamp(40px, 9vw, 160px); width: clamp(150px, 17vw, 250px); aspect-ratio: 1;
    transform: translateY(-42%); pointer-events: none; background: url("icons3d/airplane.webp") center / contain no-repeat; filter: drop-shadow(0 24px 30px rgba(20, 22, 31, .18)); }
}
@media (max-width: 960px) and (min-height: 720px) {
  :root[data-style="pastel"] .hero-service .hero-inner-grid::before { content: ""; flex: 1 1 0; min-height: 0; max-height: 176px; margin-block: auto;
    pointer-events: none; background: url("icons3d/airplane.webp") 88% 50% / contain no-repeat; filter: drop-shadow(0 18px 24px rgba(20, 22, 31, .16)); }
}
/* значок раздела; селекторы отдельные, без :is() — иначе их вес выше, чем у значка услуги ниже */
:root[data-style="pastel"] body[data-section="finance"] .hero-sec .pcards > .pcard:first-child::after,
:root[data-style="pastel"] body[data-section="finance"] .hero-service .ground::after,
:root[data-style="pastel"] body[data-section="finance"] .hero-service .hero-inner-grid::before { background-image: url("icons3d/bank.webp"); }
:root[data-style="pastel"] body[data-section="life"] .hero-sec .pcards > .pcard:first-child::after,
:root[data-style="pastel"] body[data-section="life"] .hero-service .ground::after,
:root[data-style="pastel"] body[data-section="life"] .hero-service .hero-inner-grid::before { background-image: url("icons3d/house.webp"); }
:root[data-style="pastel"] body[data-section="legal"] .hero-sec .pcards > .pcard:first-child::after,
:root[data-style="pastel"] body[data-section="legal"] .hero-service .ground::after,
:root[data-style="pastel"] body[data-section="legal"] .hero-service .hero-inner-grid::before { background-image: url("icons3d/balance-scale.webp"); }
/* у прав свой значок — машина (Fluent Emoji 3D, тот же набор): «дом» раздела «Жизнь в ОАЭ» к ним не подходит */
:root[data-style="pastel"] body[data-service="driving-licence"] .hero-service .ground::after,
:root[data-style="pastel"] body[data-service="driving-licence"] .hero-service .hero-inner-grid::before { background-image: url("icons3d/automobile.webp"); }
/* крупная плитка bento: объёмный значок заполняет середину между названием и ценой, тон раздела заметнее */
@media (min-width: 961px) {
  :root[data-style="pastel"] .hero-sec .pcards:is([data-count="3"], [data-count="5"], [data-count="7"]) > .pcard:first-child {
    background: linear-gradient(165deg, var(--pcard-bg) 5%, var(--feature-tint) 75%); }
  :root[data-style="pastel"] .hero-sec .pcards:is([data-count="3"], [data-count="5"], [data-count="7"]) > .pcard:first-child::after {
    position: static; inset: auto; width: auto; height: auto; flex: 1 1 auto; min-height: 72px; margin-block: 4px; order: 1;
    background-position: center; background-size: contain; filter: drop-shadow(0 18px 22px rgba(20, 22, 31, .16)); }
  :root[data-style="pastel"] .hero-sec .pcards:is([data-count="3"], [data-count="5"], [data-count="7"]) > .pcard:first-child .pcard-tags { order: 2; }
  :root[data-style="pastel"] .hero-sec .pcards:is([data-count="3"], [data-count="5"], [data-count="7"]) > .pcard:first-child :is(.pcard-text, .pcard-tags) { padding-right: 0; }
}
/* карточка мягко подсвечивается под курсором (идея — Magic Card, Magic UI; MIT); на сенсорных экранах подсветки нет */
:root[data-style="pastel"] .pcard { isolation: isolate; }
@media (hover: hover) {
  :root[data-style="pastel"] .pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), var(--card-glow), transparent 65%); transition: opacity .3s var(--ease); }
  :root[data-style="pastel"] .pcard:hover::before { opacity: 1; }
}
/* блик один раз проходит по главной кнопке, когда она появляется (идея — Shimmer Button, Magic UI; MIT) */
:root[data-style="pastel"] .btn-sun { position: relative; overflow: hidden; }
:root[data-style="pastel"] .btn-sun::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(100deg, transparent, var(--shine), transparent); }
:root[data-style="pastel"] .band-promises .btn-sun { --shine: rgba(47, 60, 219, .18); }
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="pastel"] .btn-sun[data-seen]::after { animation: shine 1.2s var(--ease) .3s 1 both; }
}
@keyframes shine { to { left: 130%; } }
