:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #171717;
    --muted: #6b7280;
    --primary: #111827;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 110px;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: clamp(34px, 7vw, 60px);
    margin: 8px 0;
}

h2 {
    margin-top: 28px;
}

p, small {
    color: var(--muted);
}

.badge {
    display: inline-block;
    width: max-content;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn.secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.card, .product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    margin: 14px 0;
}

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

input, textarea, select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px;
    font: inherit;
    background: white;
}

textarea {
    min-height: 90px;
}

.row, .product-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.row {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.row:last-child {
    border-bottom: 0;
}

.row small {
    display: block;
    margin-top: 4px;
}

.products {
    display: grid;
    gap: 12px;
}

.product-card h3 {
    margin: 0 0 6px;
}

.product-card p {
    margin: 0 0 10px;
}

.cart-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(920px, calc(100% - 24px));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-bar span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

@media (max-width: 640px) {
    .product-card, .row, .cart-bar {
        align-items: stretch;
    }

    .product-card, .cart-bar {
        flex-direction: column;
    }

    .product-card .btn, .cart-bar .btn {
        width: 100%;
    }
}
