:root {
    color-scheme: light;
    --ink: #17202a;
    --muted: #6b7280;
    --line: #e8ebef;
    --soft: #f7f8fa;
    --brand: #111827;
    --accent: #2563eb;
    --accent-soft: #eff6ff;
    --white: #ffffff;
    --radius: 18px;
    font-family: Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    line-height: 1.8;
}

button,
input,
select {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: white;
    background: var(--brand);
    border-radius: 13px;
    font-size: 22px;
    font-weight: 700;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 17px;
}

.brand small {
    color: var(--muted);
    font-size: 11px;
}

.main-nav {
    display: flex;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
}

.main-nav a:hover {
    color: var(--ink);
}

.cart-button,
.primary-button,
.secondary-button,
.text-button {
    border: 0;
    cursor: pointer;
}

.cart-button {
    padding: 9px 14px;
    color: var(--ink);
    background: var(--soft);
    border-radius: 10px;
}

.cart-count {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    margin-inline-start: 5px;
    place-items: center;
    color: white;
    background: var(--accent);
    border-radius: 50%;
    font-size: 12px;
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 48px;
    min-height: 470px;
    padding-block: 72px;
}

.eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 640px;
    margin-bottom: 20px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.25;
    letter-spacing: -.04em;
}

h1 span {
    color: var(--accent);
}

.hero-content p {
    max-width: 520px;
    margin-bottom: 28px;
    color: var(--muted);
}

.primary-button {
    display: inline-block;
    padding: 12px 22px;
    color: white;
    background: var(--brand);
    border-radius: 10px;
}

.primary-button:hover {
    background: var(--accent);
}

.hero-card {
    min-height: 310px;
    padding: 28px;
    background: linear-gradient(145deg, #f8fafc, #eef2ff);
    border: 1px solid var(--line);
    border-radius: 28px;
}

.hero-circle {
    display: grid;
    width: 190px;
    height: 190px;
    margin: 15px auto 30px;
    place-items: center;
    color: var(--accent);
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 50%;
    box-shadow: 0 24px 55px rgba(37, 99, 235, .12);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hero-note {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.hero-note strong {
    color: var(--ink);
}

.products-section {
    padding-block: 40px 80px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.35;
}

.filters {
    display: flex;
    gap: 10px;
}

.search-box input,
.filters select {
    min-height: 42px;
    padding: 8px 12px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
}

.search-box input {
    width: 220px;
}

.search-box input:focus,
.filters select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

.product-art {
    display: grid;
    min-height: 160px;
    place-items: center;
    background: linear-gradient(145deg, #f8fafc, #eff6ff);
    font-size: 56px;
}

.product-content {
    padding: 16px;
}

.product-category {
    color: var(--accent);
    font-size: 11px;
}

.product-title {
    min-height: 55px;
    margin: 5px 0 10px;
    font-size: 16px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price {
    font-size: 13px;
    font-weight: 700;
}

.add-button {
    padding: 7px 10px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

.add-button:hover {
    color: white;
    background: var(--accent);
}

.empty-state {
    padding: 35px;
    color: var(--muted);
    text-align: center;
    background: var(--soft);
    border-radius: var(--radius);
}

.info-section {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
    padding-block: 54px;
    border-top: 1px solid var(--line);
}

.info-section p {
    margin: 0;
    color: var(--muted);
}

.cart-panel {
    margin-bottom: 70px;
    padding: 24px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cart-header,
.cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-header {
    margin-bottom: 18px;
}

.cart-header h2 {
    font-size: 23px;
}

.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cart-row-info strong,
.cart-row-info small {
    display: block;
}

.cart-row-info small,
.demo-note {
    color: var(--muted);
    font-size: 12px;
}

.remove-button {
    padding: 5px 9px;
    color: #b91c1c;
    background: #fef2f2;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
}

.text-button {
    color: var(--muted);
    background: transparent;
}

.secondary-button {
    padding: 8px 12px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.demo-note {
    margin: 16px 0 0;
}

.site-footer {
    color: var(--muted);
    background: #fafafa;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
        padding-block: 48px;
    }

    .hero-card {
        min-height: 250px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 620px) {
    .header-inner {
        min-height: 66px;
    }

    .main-nav {
        display: none;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .filters {
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    .products-grid {
        gap: 12px;
    }

    .product-art {
        min-height: 125px;
        font-size: 42px;
    }

    .product-content {
        padding: 12px;
    }

    .product-title {
        min-height: 48px;
        font-size: 14px;
    }

    .product-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-footer {
        align-items: stretch;
        flex-direction: column;
    }
}