:root {
    --navy: #212F4F;
    --navy-deep: #161e35;
    --navy-mid: #2c3d66;
    --navy-soft: #3d527d;
    --ink: #1a1f2e;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #e6eaf2;
    --line-2: #d5dbe7;
    --bg: #f5f7fb;
    --bg-2: #eef1f6;
    --white: #ffffff;
    --accent: #2f5bd3;
    --accent-soft: #e8eefc;
    --ok: #0f766e;
    --ok-bg: #e7f6f3;
    --warn: #b45309;
    --warn-bg: #fff6e8;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --shadow: 0 12px 40px rgba(33, 47, 79, 0.08);
    --shadow-sm: 0 4px 16px rgba(33, 47, 79, 0.06);
    --radius: 16px;
    --radius-sm: 12px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.demo-ribbon {
    background: var(--navy);
    color: #dbe4ff;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 8px 16px;
}

.demo-ribbon strong {
    color: #fff;
    font-weight: 600;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.brand img {
    width: 36px;
    height: 36px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 15px;
    color: var(--navy);
}

.brand-text span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.nav-main {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.nav-main a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
}

.nav-main a:hover,
.nav-main a.is-active {
    color: var(--navy);
    background: var(--bg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
}

.btn-ghost {
    color: var(--navy);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--bg);
}

.btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--navy-deep);
}

.btn-outline {
    background: #fff;
    color: var(--navy);
    border-color: var(--line-2);
}

.btn-outline:hover {
    border-color: var(--navy);
}

.btn-ok {
    background: var(--navy);
    color: #fff;
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: transparent;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    margin: 4px auto;
    background: var(--navy);
}

.nav-mobile-actions {
    display: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.badge-warn {
    background: var(--warn-bg);
    color: var(--warn);
}

.badge-ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.site-footer {
    background: var(--navy-deep);
    color: #c5cde0;
    padding: 48px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h4 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
}

.site-footer a,
.site-footer p {
    color: #c5cde0;
    font-size: 14px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-copy {
    padding-top: 20px;
    font-size: 13px;
    color: #8b95ad;
}

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-block;
    }

    .header-actions {
        display: none;
    }

    .nav-main {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 12px 20px 16px;
        display: none;
    }

    .nav-main.is-open {
        display: flex;
    }

    .nav-main a {
        padding: 12px 10px;
    }

    .nav-mobile-actions {
        display: grid;
        gap: 8px;
        padding: 8px 10px 4px;
    }

    .nav-mobile-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
