
:root {
    --bg-main: #f4f7fb;
    --bg-soft: #ffffff;
    --bg-alt: #e8f0ff;
    --primary: #2563eb;
    --primary-soft: #d0e1ff;
    --accent: #f97316;
    --text: #0f172a;
    --muted: #64748b;
    --border: #d3ddf0;
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #f9fbff, #eef3ff);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
}

.narrow {
    max-width: 720px;
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(244, 247, 251, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(211, 221, 240, 0.8);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: conic-gradient(from 140deg, #2563eb, #22c1c3, #60a5fa);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #f9fafb;
}

.logo-text {
    font-size: 15px;
    letter-spacing: 0.03em;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
}

.main-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
    background: var(--primary-soft);
}

.cart-link {
    justify-self: end;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffffcc;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#cart-count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.menu-toggle {
    display: none;
    width: 34px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #ffffff;
    padding: 0 6px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.page-main {
    padding: 24px 0 40px;
}

.hero {
    padding: 10px 0 26px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
}

.hero-kicker {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin: 0 0 8px;
}

.hero-main h1 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.hero-lead {
    margin: 0 0 14px;
    color: var(--muted);
    max-width: 34rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pill {
    display: inline-flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.8);
    min-width: 150px;
}

.pill-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.pill-text {
    font-size: 13px;
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-side.card {
    padding: 14px;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 10px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}

.hero-stats strong {
    display: block;
    font-size: 16px;
    color: var(--text);
}

.section {
    padding: 8px 0 26px;
}

.section-alt {
    background: radial-gradient(circle at top right, #e0ebff, #f4f7fb 40%);
}

.section-note {
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.three-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    background: var(--bg-soft);
    border-radius: 18px;
    padding: 16px 16px 18px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.card.subtle {
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
    border-color: rgba(129, 140, 248, 0.4);
}

.card.soft {
    background: linear-gradient(135deg, #f8fafc, #eef3ff);
}

.card.accent {
    border-color: rgba(37, 99, 235, 0.5);
}

.card h2 {
    margin-top: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.1s ease, border-color 0.1s ease;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2f6ef0, #1d4ed8);
}

.btn-outline {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
}

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

.btn-block {
    width: 100%;
}

.product-card .product-price {
    font-weight: 600;
    margin: 8px 0 10px;
}

.product-card.wide {
    grid-column: span 2;
}

.product-price.big {
    font-size: 24px;
    margin-top: 10px;
}

.page-header {
    padding: 10px 0 16px;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

.page-header p {
    margin: 0;
    color: var(--muted);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.05fr);
    gap: 18px;
}

.split-main ul {
    padding-left: 20px;
}

.side-img {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 10px;
}

.small-note {
    font-size: 12px;
    color: var(--muted);
}

.cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 18px;
}

.cart-items {
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.8);
    padding: 10px;
    background: #f8fafc;
    font-size: 14px;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 1.7fr auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-name {
    font-weight: 500;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-weight: 600;
}

.cart-empty {
    text-align: center;
    color: var(--muted);
    padding: 10px 0;
}

.form-grid {
    display: grid;
    gap: 10px;
}

.form-grid label {
    display: grid;
    gap: 4px;
    font-size: 14px;
}

input,
textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 8px 10px;
    font: inherit;
    background: #f9fbff;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--primary-soft);
    border-color: var(--primary);
    background: #ffffff;
}

input[type="number"] {
    width: 72px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
    gap: 18px;
}

.success-card {
    text-align: left;
}

.site-footer {
    border-top: 1px solid rgba(203, 213, 225, 0.9);
    background: linear-gradient(to right, #0f172a, #020617);
    color: #e5e7eb;
    padding: 18px 0 24px;
    font-size: 13px;
}

.site-footer a {
    color: #bfdbfe;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.footer-col h3,
.footer-col h4 {
    margin-top: 0;
}

.footer-note {
    font-size: 12px;
    color: #9ca3af;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 4px;
}

/* Responsive */

@media (max-width: 840px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.2fr);
    }
    .split-layout {
        grid-template-columns: minmax(0, 1.2fr);
    }
    .cart-grid {
        grid-template-columns: minmax(0, 1.2fr);
    }
    .contact-layout {
        grid-template-columns: minmax(0, 1.2fr);
    }
    .product-card.wide {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    .header-inner {
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        align-items: center;
    }
    .menu-toggle {
        display: inline-flex;
        justify-self: start;
    }
    .main-nav {
        position: fixed;
        inset: 56px 0 auto 0;
        padding: 10px 18px 12px;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }
    .main-nav a {
        color: #e5e7eb;
        padding: 6px 0;
    }
    body.nav-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 520px) {
    .hero-main h1 {
        font-size: 24px;
    }
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cart-item-row {
        grid-template-columns: 1.6fr auto auto;
        grid-template-rows: auto auto;
    }
    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr);
    }
}
