/* Тема сайта m1soft.ru по умолчанию (тёмная, по макетам главной и М1 Про 11.2026).
 *
 * Состав:
 *   1. токены и шрифт;
 *   2. общие шапка и подвал (SITE-HEADER / SITE-FOOTER из partials/);
 *   3. компоненты контентных страниц (герой, секции, карточки, медиа, FAQ,
 *      светлый лист для длинных текстов, CTA, форма заявки).
 *
 * Файл безопасен для страниц с собственной вёрсткой (М1 Про): глобальных
 * сбросов здесь нет — они в site-base.css, который грузят только страницы,
 * целиком собранные на теме. Сбросы внутри шапки/подвала — через :where(),
 * с нулевой специфичностью, чтобы не перебивать правила компонентов.
 * Гейт: functions/test/site-theme-gate.test.ts.
 */

@font-face {
  font-family: Onest;
  src: url('../fonts/OnestVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ===== 1. Токены ===== */
:root {
  --site-page: #101113;
  --site-surface: #20242a;
  --site-raised: #2a3038;
  --site-line: #ffffff1c;
  --site-text: #f5f6f7;
  --site-muted: #b7bec8;
  --site-accent: #f5c655;
  --site-accent-hover: #ffda7b;
  --site-on-accent: #17191c;
  --site-font: -apple-system, BlinkMacSystemFont, system-ui, Onest, 'Segoe UI', Arial, sans-serif;
  --site-radius-lg: 28px;
  --site-radius-md: 20px;
  --site-radius-sm: 14px;
  --header-height: 92px;
  --max-width: 1280px;

  /* Светлый лист (юридические тексты, инструкция, статьи блога) */
  --sheet-bg: #ffffff;
  --sheet-text: #1d2127;
  --sheet-muted: #5a626d;
  --sheet-line: #e4e7eb;
}

/* ===== 2. Шапка и подвал ===== */
:where(.header, .footer) :where(*, *::before, *::after) { box-sizing: border-box; margin: 0; padding: 0; }
:where(.header, .footer) :where(a) { text-decoration: none; color: inherit; }
:where(.header, .footer) :where(ul) { list-style: none; }
:where(.header, .footer) :where(img) { max-width: 100%; height: auto; display: block; }

.header, .footer { font-family: var(--site-font); font-size: 16px; line-height: 1.6; }

.header .container, .footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.header {
  position: fixed;
  z-index: 1000;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: var(--max-width);
  height: 60px;
  border: 1px solid var(--site-line);
  border-radius: 40px;
  background: #202327eb;
  box-shadow: 0 8px 26px #0002;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  padding: 0 24px;
  max-width: none;
}

.header .header-logo { display: flex; align-items: center; color: var(--site-text); }
.header .header-logo .logo-img { height: 32px; width: auto; content: url('../images/logo-m1soft-white.svg'); }

.header-nav { display: flex; align-items: center; gap: 24px; }
.header .header-nav a {
  color: var(--site-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s;
}
.header .header-nav a:hover,
.header .header-nav a[aria-current='page'] { color: var(--site-text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--site-text); transition: transform .3s, opacity .3s; }

.header a:focus-visible, .header button:focus-visible,
.footer a:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 4px; border-radius: 6px; }

.footer {
  background: #15171a;
  color: var(--site-text);
  padding: 64px 0 28px;
  border-top: 1px solid #ffffff0c;
}
.footer-grid { display: grid; grid-template-columns: 1.45fr .8fr 1fr 1fr; gap: 36px; margin-bottom: 52px; }
.footer-brand { max-width: 320px; }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 20px; }
.footer-logo-img { height: 32px; width: auto; }
.footer-desc { color: var(--site-muted); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.footer-stores { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer .store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff1a;
  border-radius: 18px;
  background: var(--site-surface);
  color: var(--site-text);
  padding: 10px 14px;
  transition: background .2s, border-color .2s;
}
.footer .store-badge:hover { background: var(--site-raised); border-color: #ffffff2b; }
.footer .store-badge svg { width: 22px; height: 22px; flex: none; }
.footer .store-badge-label { display: block; font-size: 11px; line-height: 1.2; color: var(--site-muted); }
.footer .store-badge-name { display: block; font-size: 15px; line-height: 1.3; font-weight: 500; }
.footer-links-title { font-weight: 500; color: var(--site-text); font-size: 17px; line-height: 1.4; margin-bottom: 20px; }
.footer-links ul, .footer-contacts ul, .footer-legal ul { display: flex; flex-direction: column; gap: 12px; }
.footer-contacts li { display: flex; align-items: center; gap: 10px; color: var(--site-muted); }
.footer-contacts svg { width: 18px; height: 18px; flex: none; }
.footer-links a, .footer-legal a, .footer-contacts a {
  font-weight: 400;
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.footer-links a:hover, .footer-legal a:hover, .footer-contacts a:hover { color: var(--site-text); }
.footer-requisites { border-top: 1px solid #ffffff12; padding-top: 32px; margin-bottom: 32px; }
.footer-requisites .footer-links-title { margin-bottom: 16px; }
.footer-requisites-grid { display: grid; gap: 20px; grid-template-columns: 1.4fr .8fr 1fr; }
.footer-requisites-col p, .footer-requisites-col a { color: var(--site-muted); font-size: 14px; line-height: 1.6; font-weight: 400; }
.footer-requisites-col p strong { font-weight: 500; color: var(--site-text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #ffffff12; padding-top: 24px; }
.footer-copyright { color: var(--site-muted); font-size: 14px; }

@media (max-width: 1120px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #202327fa;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 16px 32px #0003;
    max-height: calc(100svh - 110px);
    overflow-y: auto;
  }
  .header-nav.active { display: flex; }
  .menu-toggle { display: flex; }
  .header .container { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 600px) {
  :root { --header-height: 80px; }
  .header { width: calc(100% - 32px); top: 12px; height: 56px; }
  .header-nav { top: 66px; }
  .header .container, .footer .container { padding-inline: 24px; }
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-brand { max-width: none; }
  .footer-stores { flex-direction: row; flex-wrap: wrap; }
  .footer-requisites-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  .footer-requisites-col { grid-column: auto !important; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-desc { max-width: 34ch; }
}

/* ===== 3. Компоненты контентных страниц ===== */
.container { max-width: var(--max-width); margin-inline: auto; padding-inline: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-family: var(--site-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--site-accent); color: var(--site-on-accent); }
.btn-primary:hover { background: var(--site-accent-hover); }
.btn-outline, .btn-ghost { background: #ffffff0f; color: var(--site-text); border-color: #ffffff24; }
.btn-outline:hover, .btn-ghost:hover { background: #ffffff1f; }
.btn:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 4px; }
.btn:disabled, .btn.btn-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Герой страницы */
.page-hero { padding: 168px 0 72px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--site-text);
  max-width: 18ch;
  margin: 0 auto 24px;
}
.page-hero h1 span { color: var(--site-accent); }
.page-hero .lead { max-width: 760px; margin: 0 auto; }
.page-hero .actions { justify-content: center; margin-top: 32px; }
.page-hero .media { margin-top: 56px; }
.page-hero .hero-note { margin-top: 16px; font-size: 14px; }

/* Фото-фон героя (как фото на главной и М1 Про). Сюжет — модификатор
   .photo-<сюжет>; фото лежит под текстом в ::before и затемнением плавно
   уходит в фон страницы — контраст текста держит градиент, а не фото:
   за текстом (эллипс в центре) затемнение ≥ .8 — серый текст (--site-muted)
   даёт ≥ 4.5:1 даже над белым пятном фото (WCAG AA); по краям ~.3, чтобы
   фото было видно, а не читалось чёрным фоном.
   Картинки — images/heroes/hero-<сюжет>-{1536,3072}.webp (ИИ-иллюстрации). */
.page-hero[class*='photo-'] { position: relative; isolation: isolate; }
/* Фото выше героя и заходит под следующие секции, а спозиционированный герой
   рисуется поверх непозиционированных соседей — без этого правила на коротком
   герое («Отзывы») фото закрывает весь контент. Соседи героя и всё после
   <main> (подвал) поднимаем в тот же слой: дальше по DOM — значит выше.
   :where() — нулевой вес: явный position элемента (fixed у модалки заказа)
   побеждает. */
:where(.page-hero[class*='photo-'] ~ *, main:has(> .page-hero[class*='photo-']) ~ *) { position: relative; }
.page-hero[class*='photo-']::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(620px, 100svh, 980px);
  background:
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(16, 17, 19, .9) 82%, var(--site-page) 100%),
    radial-gradient(ellipse 760px 380px at 50% 300px, rgba(16, 17, 19, .8) 0%, rgba(16, 17, 19, .78) 40%, rgba(16, 17, 19, .15) 100%),
    linear-gradient(rgba(16, 17, 19, .15), rgba(16, 17, 19, .15)),
    var(--hero-photo) center 40% / cover no-repeat;
  pointer-events: none;
}
/* Десктоп и Производство: в кадре экран самого приложения, поэтому на широком
   экране текст уходит влево, плотная тень — только под ним, а справа экран
   остаётся видимым (тень .30). Слева ≥ .82 — тот же запас контраста ≥ 4.5:1. */
.page-hero.photo-desktop { --hero-photo: url('../images/heroes/hero-desktop-app-1671.webp'); }
.page-hero.photo-production { --hero-photo: url('../images/heroes/hero-production-app-1672.webp'); }
@media (min-width: 1024px) {
  .page-hero:is(.photo-desktop, .photo-production) { text-align: left; }
  .page-hero:is(.photo-desktop, .photo-production) :is(h1, .lead, .hero-note) { margin-inline: 0; max-width: 540px; }
  .page-hero:is(.photo-desktop, .photo-production) .actions { justify-content: flex-start; }
  .page-hero:is(.photo-desktop, .photo-production, .instr-hero)::before {
    background:
      linear-gradient(180deg, transparent 0%, transparent 62%, rgba(16, 17, 19, .9) 86%, var(--site-page) 100%),
      linear-gradient(90deg, rgba(16, 17, 19, .9) 0%, rgba(16, 17, 19, .82) 38%, rgba(16, 17, 19, .45) 58%, rgba(16, 17, 19, .3) 100%),
      var(--hero-photo) var(--hero-photo-x, right) center / cover no-repeat;
  }
  /* Ноутбук стоит в центре кадра — держим левый край, чтобы он ушёл из-под текста. */
  .page-hero.photo-desktop { --hero-photo-x: left; }
}
.page-hero.photo-reviews { --hero-photo: image-set(url('../images/heroes/hero-reviews-day-1536.webp') 1x, url('../images/heroes/hero-reviews-day-3072.webp') 2x); }
.page-hero.photo-measure { --hero-photo: image-set(url('../images/heroes/hero-measure-v2-1536.webp') 1x, url('../images/heroes/hero-measure-v2-3072.webp') 2x); }
.page-hero.photo-pricelist { --hero-photo: image-set(url('../images/heroes/hero-pricelist-1536.webp') 1x, url('../images/heroes/hero-pricelist-3072.webp') 2x); }
.page-hero.photo-contacts { --hero-photo: image-set(url('../images/heroes/hero-contacts-day-1536.webp') 1x, url('../images/heroes/hero-contacts-day-3072.webp') 2x); }
.page-hero.photo-neutral { --hero-photo: image-set(url('../images/heroes/hero-neutral-day-1536.webp') 1x, url('../images/heroes/hero-neutral-day-3072.webp') 2x); }
.page-hero.photo-download { --hero-photo: image-set(url('../images/heroes/hero-download-1536.webp') 1x, url('../images/heroes/hero-download-3072.webp') 2x); }
.page-hero.photo-agreement { --hero-photo: image-set(url('../images/heroes/hero-agreement-1536.webp') 1x, url('../images/heroes/hero-agreement-3072.webp') 2x); }
.page-hero.photo-payment-success { --hero-photo: image-set(url('../images/heroes/hero-payment-success-1536.webp') 1x, url('../images/heroes/hero-payment-success-3072.webp') 2x); }
.page-hero.photo-payment-fail { --hero-photo: image-set(url('../images/heroes/hero-payment-fail-1536.webp') 1x, url('../images/heroes/hero-payment-fail-3072.webp') 2x); }
.page-hero.photo-404 { --hero-photo: image-set(url('../images/heroes/hero-404-1536.webp') 1x, url('../images/heroes/hero-404-3072.webp') 2x); }
@media (max-width: 600px) {
  .page-hero[class*='photo-']::before { height: clamp(520px, 90svh, 720px); }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--site-accent);
}
.lead { font-size: 20px; line-height: 1.6; color: var(--site-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.muted { color: var(--site-muted); }

/* Секции */
.section { padding: 0 0 104px; }
.section-header { max-width: 780px; margin-bottom: 40px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.03em;
  color: var(--site-text);
  margin-bottom: 18px;
}
.section-subtitle { font-size: 20px; line-height: 1.6; color: var(--site-muted); }

/* Карточки */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border-radius: var(--site-radius-lg);
  background: var(--site-surface);
  color: var(--site-text);
}
a.card { text-decoration: none; transition: background .2s; }
a.card:hover { background: #282d34; }
.card .tag { margin-bottom: 14px; }
.card h3 { font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -.015em; margin-bottom: 12px; }
.card p { font-size: 17px; line-height: 1.6; color: var(--site-muted); }
.card p + p { margin-top: 10px; }
.card ul { display: grid; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 20px; color: var(--site-muted); font-size: 16px; line-height: 1.55; }
.card li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--site-accent); }
.card .more { margin-top: auto; padding-top: 20px; font-size: 16px; color: var(--site-text); }
.card .media { margin: -12px -12px 22px; }
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #f5c65522;
  color: var(--site-accent);
}
.card-icon svg { width: 24px; height: 24px; }

.tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f5c65522;
  color: #f5cf79;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

/* Текст + медиа */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split + .split { margin-top: 88px; }
.split h3 { font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 16px; }
.split p { font-size: 18px; line-height: 1.65; color: var(--site-muted); }
.split p + p, .split p + ul, .split ul + p { margin-top: 14px; }
.split ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.split li { position: relative; padding-left: 22px; color: var(--site-muted); font-size: 17px; line-height: 1.55; }
.split li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--site-accent); }

/* Изображение в рамке «экрана» */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--site-radius-lg);
  background: var(--site-surface);
  border: 1px solid #ffffff12;
  box-shadow: 0 24px 60px #0006;
}
.media img, .media video { display: block; width: 100%; height: auto; }
.media.contain { padding: 12px; }
.media.contain img { border-radius: var(--site-radius-md); }
.media figcaption { padding: 12px 18px 16px; font-size: 14px; color: var(--site-muted); }

/* Шаги */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; list-style: none; }
.steps > li { counter-increment: step; padding: 28px; border-radius: var(--site-radius-lg); background: var(--site-surface); }
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--site-accent);
  color: var(--site-on-accent);
  font-weight: 600;
}
.steps h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.steps p { color: var(--site-muted); font-size: 16px; line-height: 1.6; }

/* Вопросы и ответы */
.qa { display: grid; gap: 12px; max-width: 880px; }
.qa details { border-radius: var(--site-radius-md); background: var(--site-surface); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; font-size: 24px; font-weight: 300; color: var(--site-accent); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; border-radius: var(--site-radius-md); }
.qa .answer { padding: 0 24px 22px; color: var(--site-muted); font-size: 17px; line-height: 1.65; }
.qa .answer p + p, .qa .answer p + ul, .qa .answer ul + p { margin-top: 10px; }
.qa .answer ul { padding-left: 20px; }
.qa .answer a { color: var(--site-accent); }

/* Призыв к действию */
.cta {
  padding: 56px;
  border-radius: 32px;
  background: radial-gradient(120% 140% at 0% 0%, #f5c65530 0, transparent 55%), var(--site-surface);
  border: 1px solid #ffffff12;
  text-align: center;
}
.cta h2 { font-size: 34px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; margin-bottom: 14px; }
.cta p { max-width: 640px; margin: 0 auto; font-size: 18px; color: var(--site-muted); }
.cta .actions { justify-content: center; margin-top: 28px; }

/* Светлый лист для длинного текста на тёмной странице */
.sheet {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 64px;
  border-radius: var(--site-radius-lg);
  background: var(--sheet-bg);
  color: var(--sheet-text);
  font-size: 17px;
  line-height: 1.7;
}
.sheet h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; margin-bottom: 24px; }
.sheet h2 { font-size: 24px; line-height: 1.3; font-weight: 600; margin: 36px 0 14px; }
.sheet h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin: 26px 0 10px; }
.sheet p, .sheet ul, .sheet ol, .sheet table { margin-bottom: 14px; }
.sheet ul, .sheet ol { padding-left: 24px; }
.sheet li + li { margin-top: 6px; }
.sheet a { color: #9a6a00; text-decoration: underline; text-underline-offset: 2px; }
.sheet .muted { color: var(--sheet-muted); }
.sheet hr { border: 0; border-top: 1px solid var(--sheet-line); margin: 28px 0; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sheet th, .sheet td { padding: 10px 12px; border: 1px solid var(--sheet-line); text-align: left; vertical-align: top; }
.sheet img { max-width: 100%; height: auto; border-radius: 12px; }

/* Форма заявки «Заказать» (js/order-form.js) */
.order-modal[hidden] { display: none; }
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #000a;
  overflow-y: auto;
}
.order-modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 36px 28px 28px;
  border-radius: var(--site-radius-lg);
  background: var(--site-surface);
  color: var(--site-text);
  border: 1px solid var(--site-line);
  box-shadow: 0 24px 60px #0008;
}
.order-modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--site-muted); cursor: pointer; }
.order-modal-title { margin: 0 0 8px; font-size: 24px; font-weight: 500; }
.order-modal-lead { margin: 0 0 20px; color: var(--site-muted); font-size: 15px; }
.order-field { margin: 0 0 14px; padding: 0; border: 0; }
.order-field label, .order-field legend { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--site-text); }
.order-field input[type='text'], .order-field input[type='email'] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--site-text);
  background: var(--site-page);
  border: 1px solid #ffffff2b;
  border-radius: 12px;
}
.order-field input:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 1px; }
.order-os label { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; font-weight: 400; }
.order-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-size: 13px; color: var(--site-muted); }
.order-consent input { margin-top: 3px; accent-color: var(--site-accent); }
.order-success h3 { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.order-success p { color: var(--site-muted); margin-bottom: 20px; }
.order-consent a { color: var(--site-accent); }
.order-error { color: #ff8f8f; font-size: 14px; }
.order-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#order-submit { width: 100%; }
#order-submit:disabled { opacity: .6; cursor: wait; }
.order-success { text-align: center; }

@media (max-width: 1024px) {
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 64px; }
}

@media (max-width: 700px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .container { padding-inline: 24px; }
  .page-hero { padding: 124px 0 56px; }
  .page-hero h1 { font-size: 32px; }
  .lead { font-size: 18px; }
  .section { padding-bottom: 72px; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 18px; }
  .section-header { margin-bottom: 28px; }
  .card, .steps > li { padding: 24px; border-radius: 24px; }
  .split h3 { font-size: 24px; }
  .cta { padding: 36px 24px; }
  .cta h2 { font-size: 28px; }
  .sheet { padding: 32px 22px; border-radius: 22px; font-size: 16px; }
  .sheet h1 { font-size: 28px; }
  .qa summary { padding: 18px 20px; font-size: 17px; }
  .qa .answer { padding: 0 20px 20px; }
}

@media (max-width: 359px) {
  .container, .header .container, .footer .container { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .header *, .footer *, .btn, .card, .qa summary::after { transition: none !important; }
}
