:root {
    --graphite: #191b1b;
    --graphite-2: #232525;
    --warm: #f5f3ed;
    --warm-2: #ebe7dc;
    --yellow: #ffd21c;
    --green: #1d4d3e;
    --text: #f8f5ed;
    --muted: #bfc5c0;
    --line: rgba(255,255,255,.12);
    --surface: #222625;
    --shadow: 0 24px 80px rgba(0,0,0,.32);
    --radius: 24px;
    font-family: Inter, Onest, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(900px 600px at 82% 16%, rgba(255,210,28,.12), transparent 62%),
        radial-gradient(780px 520px at 12% 78%, rgba(29,77,62,.26), transparent 65%),
        var(--graphite);
    color: var(--text);
}

body.theme-mixed {
    --text: #191b1b;
    --muted: #626963;
    --line: rgba(25,27,27,.13);
    --surface: #fffdf6;
    background:
        radial-gradient(820px 540px at 86% 10%, rgba(255,210,28,.18), transparent 58%),
        radial-gradient(760px 520px at 8% 80%, rgba(29,77,62,.10), transparent 66%),
        var(--warm);
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.consent-row a, .legal-page a { text-decoration: underline; }

.site-header {
    width: min(1180px, calc(100% - 40px));
    height: 84px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
}
.brand span { opacity: .55; }

.icon-button, .icon-close, .profile-button, .secondary-button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.icon-button, .icon-close {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
}
.icon-button { justify-self: start; gap: 5px; }
.icon-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}
.icon-close { font-size: 28px; line-height: 1; }
.profile-button {
    justify-self: end;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 800;
}

.hero {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 84px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
    gap: 64px;
    align-items: center;
    padding: 64px 0 92px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 24px;
}
.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--yellow);
}
h1 {
    margin: 0;
    max-width: 740px;
    font-size: clamp(56px, 7vw, 104px);
    line-height: .94;
    letter-spacing: 0;
}
.hero p {
    max-width: 590px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
    margin: 28px 0 32px;
}
.primary-cta, .primary-button {
    border: 0;
    border-radius: 20px;
    background: var(--yellow);
    color: #151715;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(255,210,28,.18);
}
.primary-cta {
    min-width: 230px;
    height: 76px;
    padding: 0 34px;
    font-size: 28px;
}
.primary-button, .secondary-button {
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 900;
}
.primary-button:disabled, .secondary-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}
.theme-actions {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}
.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    padding: 9px 14px;
    font-weight: 800;
}
.chip.is-active {
    background: var(--text);
    color: var(--graphite);
}
body.theme-mixed .chip.is-active { color: var(--warm); }

.service-visual {
    min-height: 580px;
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        radial-gradient(360px 280px at 78% 18%, rgba(255,210,28,.22), transparent 60%),
        radial-gradient(430px 340px at 18% 88%, rgba(29,77,62,.52), transparent 68%),
        linear-gradient(145deg, #252a28, #101211);
    box-shadow: var(--shadow);
}
body.theme-mixed .service-visual {
    background:
        radial-gradient(390px 280px at 78% 18%, rgba(255,210,28,.32), transparent 60%),
        linear-gradient(145deg, #f8f5ed, #e8e2d6);
}
.home-card, .phone-card {
    position: absolute;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.home-card {
    left: 8%;
    top: 14%;
    width: 250px;
    padding: 18px;
    display: flex;
    gap: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
}
body.theme-mixed .home-card { background: #fff; }
.home-card span, .phone-card dd { color: var(--muted); }
.door-mark {
    width: 48px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--green), #112a23);
    flex: none;
}
.phone-card {
    right: 8%;
    bottom: 8%;
    width: min(330px, 72%);
    padding: 28px;
    border-radius: 32px;
    background: #f8f5ed;
    color: #191b1b;
    transform: rotate(-4deg);
}
.status-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 9px 12px;
    background: #e5f0ea;
    color: var(--green);
    font-weight: 900;
    font-size: 13px;
}
.phone-card h2 { margin: 24px 0; font-size: 34px; line-height: 1; }
.phone-card dl { margin: 0; }
.phone-card div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid #dedbd2;
}
.phone-card dd { margin: 0; text-align: right; }
.phone-action {
    display: grid;
    place-items: center;
    height: 52px;
    margin-top: 22px;
    border-radius: 16px;
    background: var(--yellow);
    font-weight: 900;
}

.info-band {
    padding: 84px max(20px, calc((100vw - 1180px) / 2));
    background: var(--surface);
    border-top: 1px solid var(--line);
}
.info-band h2 { margin: 0 0 28px; font-size: 44px; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}
.section-lead {
    max-width: 850px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    margin: 20px 0 0;
}
.tariff-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.tariff-card, .contact-grid article {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}
.tariff-card span, .contact-grid span {
    color: var(--muted);
    font-weight: 900;
}
.tariff-card strong {
    font-size: 38px;
    line-height: 1;
}
.tariff-card p {
    color: var(--muted);
    margin: 0;
}
.tariff-card.is-secondary {
    opacity: .86;
}
.faq-list {
    display: grid;
    gap: 10px;
}
.faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}
.faq-list summary {
    cursor: pointer;
    font-weight: 900;
}
.faq-list p {
    color: var(--muted);
    line-height: 1.55;
}
.inline-link {
    display: inline-grid;
    place-items: center;
    width: fit-content;
    margin-top: 20px;
}
.jobs-form {
    max-width: 620px;
    margin-top: 24px;
}
.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 28px max(20px, calc((100vw - 1180px) / 2));
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.top-return {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--yellow);
    color: #151715;
    font-size: 22px;
    font-weight: 900;
}
.legal-page {
    min-height: 100vh;
    color: var(--text);
}
.legal-page h1 {
    font-size: clamp(36px, 7vw, 72px);
    max-width: 920px;
    margin-bottom: 24px;
}
.legal-page p {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.steps article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.steps span { color: var(--muted); font-weight: 900; }
.steps h3 { margin: 16px 0 8px; font-size: 24px; }
.steps p, .muted { color: var(--muted); line-height: 1.5; }

.scrim {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0,0,0,.56);
    backdrop-filter: blur(10px);
}
.menu-panel, .profile-panel, .order-sheet {
    position: fixed;
    z-index: 30;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.menu-panel, .profile-panel {
    top: 18px;
    bottom: 18px;
    width: min(420px, calc(100vw - 36px));
    border-radius: 28px;
    padding: 22px;
}
.menu-panel { left: 18px; }
.profile-panel { right: 18px; }
.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.menu-panel nav {
    display: grid;
    gap: 6px;
    margin-top: 34px;
}
.menu-panel a {
    padding: 16px 14px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 900;
}
.menu-panel a:hover, .menu-panel a:focus-visible {
    background: rgba(255,255,255,.08);
}

.order-sheet {
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: min(540px, calc(100vw - 36px));
    border-radius: 30px;
    overflow: auto;
}
.order-form { padding: 26px; }
.step-kicker {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}
.order-form h2 { margin: 0; font-size: 34px; line-height: 1.05; }
.flow-step { display: none; margin-top: 30px; }
.flow-step.is-active { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-weight: 850; }
.consent-row {
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 12px;
    color: var(--muted);
    font-weight: 750;
    line-height: 1.4;
}
input {
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    padding: 0 16px;
    outline: none;
}
body.theme-mixed input { background: #fff; }
.consent-row input {
    width: 20px;
    min-height: 20px;
    margin-top: 2px;
    accent-color: var(--yellow);
}
input:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid rgba(255,210,28,.45);
    outline-offset: 2px;
}
.counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
}
.counter button {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 24px;
}
.slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span {
    display: grid;
    place-items: center;
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
}
.slot input:checked + span {
    border-color: var(--yellow);
    box-shadow: inset 0 0 0 1px var(--yellow);
}
.form-error {
    margin-top: 20px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,88,88,.12);
    color: #ffd9d9;
    border: 1px solid rgba(255,88,88,.25);
}
body.theme-mixed .form-error { color: #7a1c1c; }
.sheet-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}
.sheet-actions .primary-button { flex: 1; }
.success-step {
    min-height: 260px;
    align-content: center;
}

@media (max-width: 860px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 36px 0 70px;
    }
    .service-visual { min-height: 460px; }
    .steps, .tariff-grid, .contact-grid { grid-template-columns: 1fr; }
    .section-head { display: grid; }
}

@media (max-width: 560px) {
    .site-header { width: min(100% - 28px, 1180px); height: 74px; }
    .brand { font-size: 21px; }
    .profile-button { width: 48px; padding: 0; font-size: 0; }
    .profile-button::before { content: "П"; font-size: 15px; }
    .hero { width: min(100% - 28px, 1180px); }
    h1 { font-size: 54px; }
    .hero p { font-size: 17px; }
    .primary-cta { width: 100%; height: 70px; }
    .service-visual { min-height: 390px; border-radius: 28px; }
    .home-card { left: 6%; top: 9%; width: 210px; }
    .phone-card { right: 5%; width: 76%; padding: 22px; }
    .phone-card h2 { font-size: 28px; }
    .order-sheet {
        inset: auto 0 0 0;
        width: 100%;
        height: 94vh;
        border-radius: 28px 28px 0 0;
    }
    .slots { grid-template-columns: 1fr; }
    .sheet-actions { position: sticky; bottom: 0; background: var(--surface); padding-top: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
    .primary-cta, .primary-button, .secondary-button, .chip, .menu-panel, .profile-panel, .order-sheet {
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .primary-cta:hover, .primary-button:hover { transform: translateY(-2px); }
}
