/* M3 «Цвета Alab» — сайт платформы. Отдельное оформление, НЕ входит в переключатель витрины.
   Переопределяет токены на :root (грузится после tokens.css), плюс свои компоненты. */
:root {
  --bg: #0B1430;
  --surface: #131E40;
  --surface-2: #1F2B52;
  --panel: #FEB83C;
  --panel-ink: #0B1430;
  --ink: #F2F5FA;
  --ink-2: #AEB8CC;
  --line: #3A4668;
  --line-strong: #4A5470;
  --accent: #FEB83C;
  --accent-ink: #0B1430;
  --selected-bg: #1F2B52;
  --selected-ring: inset 0 0 0 2px #FEB83C;
  --promo: #FEB83C;
  --promo-ink: #0B1430;
  --ok: #7FD6A8;
  --warn: #F27AB0;
  --focus: #FEB83C;
  --control-h: 52px; --control-h-lg: 60px; --control-h-sm: 44px;
  --control-radius: 999px; --card-radius: 22px; --radius-sm: 14px; --radius-lg: 32px;
  --border-width: 1px;
  --shadow: 0 20px 50px rgba(0,0,0,.35); --shadow-sm: 0 6px 20px rgba(0,0,0,.25); --lift: -2px;
  --font-head: 'Wix Madefor Display', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Wix Madefor Text', 'Segoe UI', system-ui, sans-serif;
  --head-weight: 800; --head-spacing: -.01em; --head-transform: none;
  --kicker-transform: none; --kicker-spacing: .02em; --label-transform: none; --label-font: var(--font-body); --label-weight: 600;
  --container: 1320px; --gutter: clamp(16px, 4vw, 48px); --body-size: 16px; --line-height: 1.55;
}
.m3-teal { --c: #17BFD3; } .m3-amber { --c: #FEB83C; } .m3-magenta { --c: #E2217A; } .m3-mint { --c: #7FD6A8; }

/* светлая секция внутри тёмного сайта */
.panel-light { background: #FFFFFF; color: #0B1430; border-radius: var(--radius-lg); }
.panel-light .muted { color: #4A5470; }
.panel-light .m3-field { background:#fff; }

/* шапка M3 */
.m3-head { position: sticky; top: 0; z-index: 40; background: rgba(11,20,48,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.m3-head .head-row { min-height: 68px; }
.m3-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; white-space: nowrap; }
.m3-logo img { height: 28px; width: auto; }
.m3-nav { display: flex; gap: 4px; margin-left: 12px; }
.m3-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.m3-nav a:hover, .m3-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.m3-head .head-tools { margin-left: auto; gap: 10px; }
.m3-burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) { .m3-nav { display: none; } .m3-burger { display: inline-grid; place-items: center; } .m3-head .head-tools .link-contacts { display: none; } }

.m3-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px,4vw,48px); align-items: center; padding-block: clamp(32px,6vw,72px); }
@media (max-width: 860px) { .m3-hero { grid-template-columns: 1fr; } }
.m3-hero h1 { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.02; }
.m3-hero__art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px,3vw,32px); display: grid; gap: 12px; }
.m3-browser { background: #0B1430; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.m3-browser__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.m3-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.m3-browser__body { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 12px; }
.m3-browser__body span { aspect-ratio: 4/5; border-radius: 8px; background: var(--surface-2); display:grid; place-items:center; }
.m3-browser__body img { width: 70%; }

.m3-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%),1fr)); gap: 16px; }
.m3-feature { border-radius: var(--card-radius); padding: 22px; color: #0B1430; background: var(--c, #FEB83C); display: grid; gap: 8px; align-content: start; min-height: 180px; }
.m3-feature h3 { color: inherit; }
.m3-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 22px; display: grid; gap: 10px; }
.m3-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px,100%),1fr)); gap: 16px; counter-reset: s; }
.m3-step { position: relative; } .m3-step__n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.m3-price { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr)); gap: 16px; }
.m3-price__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 24px; display: grid; gap: 10px; }
.m3-price__card.is-feature { outline: 2px solid var(--accent); }
.m3-amount { font-family: var(--font-head); font-size: clamp(28px,4vw,44px); font-weight: 800; }
.m3-field { width: 100%; min-height: 52px; padding: 0 16px; font: inherit; border: 2px solid #D5DBE6; border-radius: 14px; background: #fff; color: #0B1430; }
.m3-field:focus { outline: none; border-color: #0060B3; box-shadow: 0 0 0 3px rgba(0,96,179,.25); }
textarea.m3-field { padding: 12px 16px; min-height: 96px; }
.m3-faq summary { cursor: pointer; padding: 16px 2px; font-weight: 600; display: flex; justify-content: space-between; list-style: none; border-bottom: 1px solid var(--line); }
.m3-faq summary::-webkit-details-marker { display: none; }
.m3-faq summary::after { content: "+"; color: var(--ink-2); }
.m3-faq details[open] summary::after { content: "–"; }
.m3-faq .body { padding: 0 2px 16px; color: var(--ink-2); max-width: 70ch; }
.m3-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.m3-pill { border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: transparent; color: var(--ink); font: inherit; }
.m3-pill:has(input:checked), .m3-pill.is-on { border-color: var(--accent); background: rgba(254,184,60,.12); }
.m3-pill input { position: absolute; opacity: 0; width: 0; }
.m3-foot { border-top: 1px solid var(--line); margin-top: clamp(40px,6vw,72px); }
.m3-placeholder { display: inline-block; background: rgba(254,184,60,.16); color: #FEB83C; border: 1px dashed #FEB83C; border-radius: 6px; padding: 0 6px; font-size: .9em; }
.m3-logo span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .m3-head .head-tools .btn--primary { display: none; } .m3-logo { font-size: 17px; min-width: 0; } .m3-head .head-row { gap: 10px; } }
/* v2-fix: пилюли формы на светлой панели были светлым текстом на белом (невидимы) */
.panel-light .m3-pill { color: #0B1430; border-color: #C9D1DE; background: #fff; }
.panel-light .m3-pill:has(input:checked), .panel-light .m3-pill.is-on { border-color: #0060B3; background: #E8F1FA; color: #0B1430; }
.m3-pill { position: relative; min-height: 44px; display: inline-flex; align-items: center; }
.m3-pill:has(input:focus-visible) { outline: 3px solid #0060B3; outline-offset: 2px; }
.panel-light .m3-pill:has(input:checked)::before { content: "✓"; margin-right: 6px; font-weight: 700; }
/* v2: страница «Возможности» — чередование текст/экран, схемы подписаны */
.m3-cap { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(20px,4vw,56px); align-items: center; padding-block: clamp(24px,4vw,48px); }
.m3-cap--rev .m3-cap__text { order: 2; }
@media (max-width: 860px) { .m3-cap { grid-template-columns: minmax(0,1fr); } .m3-cap--rev .m3-cap__text { order: 0; } }
.m3-cap h2 { font-size: clamp(26px,3.6vw,40px); margin: 0 0 8px; }
.m3-list { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.m3-shot { margin: 0; display: grid; gap: 10px; }
.m3-shot img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.m3-shot figcaption, .m3-scheme figcaption { font-size: 13px; color: var(--ink-2); }
.m3-phones { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(8px,2vw,16px); }
.m3-phones img { border-radius: 18px; }
.m3-scheme { margin: 8px 0 0; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 14px; display: grid; gap: 10px; }
.m3-scheme__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m3-scheme__row span { border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font-weight: 600; }
.m3-scheme__row span.is-dashed { border-style: dashed; color: var(--ink-2); }
.m3-scheme__row i { font-style: normal; color: var(--ink-2); }
/* v2: сообщения и ошибки на светлой панели — контраст на белом */
.panel-light .notice { background: #F4F6FA; border-color: #C9D1DE; color: #0B1430; }
.panel-light .notice--ok { border-color: #1E8E5A; } .panel-light .notice--ok .notice__ic { background: #1E8E5A; }
.panel-light .notice--bad { border-color: #B3261E; } .panel-light .notice--bad .notice__ic { background: #B3261E; }
.panel-light .field__err { color: #B3261E; }
.panel-light .field--error .m3-field { border-color: #B3261E; }
.m3-field[aria-invalid="true"] { border-color: #B3261E; }
.panel-light .field__err::before { background: #B3261E; }
.panel-light :focus-visible { outline-color: #0060B3; }
:root { --warn-ink: #F27AB0; --warn-on: #0B1430; }
/* v2-fix (axe color-contrast): белый текст на маджента-карточке — чуть более глубокий тон (5,1:1); заглушки на светлой панели — тёмный текст */
.m3-feature.m3-magenta { background: #D01E70; }
.panel-light .m3-placeholder { color: #7A4B00; background: #FFF1D6; border-color: #B07400; }
