/* Витрина aluhub.ru — «Для бизнеса» (программы, конструктор цены), «Для дома». Поверх glass.css, те же токены.
   0.3 (анслоп): текст слева, яркое место — снимок программы в первом экране и в карточках. 0.3.0.10: панели — стекло
   по правилам WashDesk (glass.css), фон с пятнами света.
   Примета — адрес программы моноширинным шрифтом (один вход, разные адреса). */

/* ---------- Первый экран: текст слева, программа справа ---------- */
.sc-hero { max-width: 1200px; margin: 0 auto; padding: 72px 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 48px; align-items: center; }
.sc-hero h1 { margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; color: var(--text); }
.sc-hero p { margin: 20px 0 0; max-width: 36rem; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.sc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair); }
.sc-tabs a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.sc-tabs a:hover { color: var(--text); }
.sc-hero-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); background: var(--panel);
    box-shadow: 0 32px 64px -32px rgba(0, 0, 0, .7); }
.sc-window-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--hair); background: var(--raised); }
.sc-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 18%, transparent); }
.sc-window-bar span { margin-left: 10px; font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 12px; color: var(--text-3); }
.sc-hero-shot img { display: block; width: 100%; height: auto; }
.sc-hero-shot .lg-logo-light { display: none; }
html.light .sc-hero-shot .lg-logo-light { display: block; }
html.light .sc-hero-shot .lg-logo-dark { display: none; }

/* ---------- Разделы ---------- */
.sc-section { max-width: 1200px; margin: 0 auto; padding: 48px 24px 64px; scroll-margin-top: 76px; }
.sc-head { max-width: 680px; margin: 0 0 24px; }
.sc-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.sc-head p { margin: 8px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.sc-subhead { margin-top: 48px; scroll-margin-top: 76px; }
.sc-subhead h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }

/* Знак программы: две буквы и черта её цвета — как значки DealDesk и FactoryDesk */
.sc-mark { position: relative; width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center;
    background: #0f0f11; border: 1px solid var(--hair); color: #f2f2f2; font-weight: 700; font-size: 15px; letter-spacing: .02em; padding-bottom: 4px; }
.sc-mark::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 2px; border-radius: 1px; background: var(--brand); }
.sc-host { display: block; font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 12px; color: var(--text-3); }

/* ---------- Карточки программ ---------- */
.sc-spheres { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.sc-sphere { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sc-sphere-top { display: flex; gap: 12px; align-items: center; }
.sc-sphere h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.25; }
.sc-sphere > p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.sc-shot { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--raised); border: 1px solid var(--hair); }
/* Снимок 1440×900 в карточке шириной ~300 px нечитаем — крупнее и с левого верхнего угла (меню и главные цифры) */
.sc-shot img { display: block; width: 165%; max-width: none; height: auto; }
.sc-shot .lg-logo-light { display: none; }
html.light .sc-shot .lg-logo-light { display: block; }
html.light .sc-shot .lg-logo-dark { display: none; }
.sc-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; align-content: start; }
.sc-points li { position: relative; padding-left: 16px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.sc-points li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.sc-sphere-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-more { font-size: 14px; font-weight: 500; color: var(--accent-hi); margin-left: auto; }
.sc-sphere-actions .sc-more { padding: 0 4px; }
.sc-soon { font-size: 13px; color: var(--text-3); }

.sc-combine { margin-top: 16px; padding: 20px; }
.sc-combine h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.sc-combine-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.sc-combine-grid div { display: grid; gap: 4px; }
.sc-combine-grid b { font-size: 15px; font-weight: 500; }
.sc-combine-grid span { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ---------- Отдельные программы и «Для дома» ---------- */
.sc-apps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.sc-app { display: flex; gap: 16px; align-items: flex-start; padding: 20px; color: var(--text); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
a.sc-app[href]:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 18%, transparent); }
a.sc-app.is-static { cursor: default; }
.sc-app-body { display: grid; gap: 8px; min-width: 0; }
.sc-app-name { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sc-app-name b { font-size: 18px; font-weight: 600; }
.sc-app-name .sc-host { display: inline; }
.sc-app-text { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.sc-app .sc-more { margin-left: 0; }

/* ---------- Конструктор ---------- */
.sc-builder { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 24px; align-items: start; }
.sc-steps { display: grid; gap: 24px; min-width: 0; }
.sc-step-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.sc-step-title i { font-style: normal; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600;
    background: var(--raised); border: 1px solid var(--hair); color: var(--text-2); font-variant-numeric: tabular-nums; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chip { appearance: none; font: inherit; font-size: 14px; cursor: pointer; height: 36px; padding: 0 14px; border-radius: 8px; color: var(--text);
    border: 1px solid var(--hair); background: var(--raised); transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.sc-chip:hover { border-color: color-mix(in srgb, var(--text) 20%, transparent); }
.sc-chip.is-on { background: color-mix(in srgb, var(--accent) 16%, var(--raised)); border-color: var(--accent); color: var(--text); }
.sc-hint { margin-top: 8px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.sc-focus { margin-top: 12px; display: grid; gap: 8px; }
.sc-focus:empty { display: none; }
.sc-focus-title { font-size: 13px; font-weight: 500; color: var(--text-2); }
.sc-feat { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 14px; color: var(--text-3); }
.sc-feat > span:first-child { font-weight: 600; text-align: center; }
.sc-feat.is-on { color: var(--text); }
.sc-feat.is-on > span:first-child { color: var(--ok); }
.sc-feat b { font-weight: 500; }
.sc-feat small { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }

.sc-presets { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: 12px; }
.sc-preset { appearance: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--hair); background: var(--raised); display: grid; gap: 4px; transition: border-color .15s var(--ease); }
.sc-preset:hover { border-color: color-mix(in srgb, var(--text) 20%, transparent); }
.sc-preset b { font-weight: 500; }
.sc-preset small { color: var(--text-2); font-size: 12.5px; line-height: 1.4; }
.sc-preset span { margin-top: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-preset.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--raised)); }
.sc-mods { display: grid; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); }
.sc-mod { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; cursor: pointer;
    background: var(--panel); transition: background-color .15s var(--ease); }
.sc-mod + .sc-mod { border-top: 1px solid var(--hair); }
.sc-mod:hover { background: var(--raised); }
.sc-mod.is-core { cursor: default; background: var(--raised); }
.sc-mod input { appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; cursor: pointer; display: grid; place-items: center;
    border: 1.5px solid color-mix(in srgb, var(--text) 30%, transparent); background: transparent; }
.sc-mod input::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .15s var(--ease); }
.sc-mod input:checked { background: var(--accent); border-color: var(--accent); }
.sc-mod input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.sc-mod input:disabled { opacity: .7; cursor: default; }
.sc-mod b { font-weight: 500; font-size: 14.5px; }
.sc-mod small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.sc-mod em { font-style: normal; font-weight: 500; font-size: 14px; white-space: nowrap; color: var(--text-2); font-variant-numeric: tabular-nums; }

.sc-total { position: sticky; top: 84px; display: grid; gap: 12px; }
.sc-total-box { padding: 20px; display: grid; gap: 6px; text-align: center; }
.sc-total-box small { color: var(--text-3); font-size: 12.5px; }
.sc-total-box s { color: var(--text-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.sc-total-box > b { font-size: 32px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sc-total-box .lg-btn { margin-top: 8px; }
.sc-small { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.sc-total > .sc-small { color: var(--text-3); padding: 0 4px; }
.sc-posts { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }
.sc-posts input { width: 56px; height: 36px; text-align: center; font: inherit; color: var(--text); border-radius: 8px; border: 1px solid var(--hair); background: var(--field); }
.sc-off { max-width: 680px; display: block; }

@media (max-width: 980px) {
    .sc-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
    .sc-builder { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .sc-total { position: static; }
}
@media (max-width: 520px) {
    .sc-hero { padding: 40px 16px 48px; }
    .sc-hero h1 { font-size: 34px; line-height: 1.1; }
    .sc-hero p { font-size: 16px; }
    .sc-hero-actions .lg-btn { flex: 1 1 auto; }
    .sc-section { padding: 32px 16px 48px; }
    .sc-sphere, .sc-app { padding: 16px; }
}

/* Телефон и планшет: итог под длинным списком модулей — плашка с ценой внизу, пока конструктор на экране */
.sc-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none;
    align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; transform: translateY(140%); transition: transform .25s var(--ease); }
.sc-bar.is-on { transform: none; }
.sc-bar b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-bar small { display: block; font-size: 12px; color: var(--text-2); }
.sc-bar .lg-btn { margin-left: auto; flex: none; }
@media (max-width: 980px) { .sc-bar { display: flex; } }
