
:root {
    --bg-body: #fff7ed;
    --bg-card: #fffbeb;
    --bg-alt: #fefce8;
    --primary: #f97316;
    --primary-soft: #fed7aa;
    --accent: #0ea5e9;
    --accent-soft: #e0f2fe;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
}

*,
*::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, #fffbeb, #f5f3ff);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    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;
}

/* Header */

.site-header.bar-header {
    position: relative;
    z-index: 20;
    background: linear-gradient(90deg, #f97316, #fb923c);
    color: #fefce8;
    box-shadow: 0 10px 24px rgba(124, 45, 18, 0.45);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.logo-block {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, #facc15, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 12px 24px rgba(124, 45, 18, 0.55);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    font-size: 14px;
}

.logo-sub {
    font-size: 11px;
    opacity: 0.9;
}

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

.main-nav a {
    padding: 4px 10px;
    border-radius: 999px;
    color: #fefce8;
}

.main-nav a:hover {
    background: rgba(254, 243, 199, 0.24);
}

.cart-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fef9c3;
    color: #7c2d12;
    font-size: 13px;
}

.cart-chip span:last-child {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #f97316;
    color: #fffbeb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 6px;
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(254, 249, 195, 0.9);
    background: rgba(248, 250, 252, 0.1);
    padding: 0 8px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #fefce8;
}

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

/* Hero */

.hero-sunset {
    position: relative;
    padding: 18px 0 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-top {
    background:
        radial-gradient(circle at 10% 10%, rgba(250, 204, 21, 0.4), transparent 55%),
        radial-gradient(circle at 70% 0%, rgba(239, 68, 68, 0.28), transparent 60%);
}

.hero-bg-bottom {
    background:
        radial-gradient(circle at 10% 95%, rgba(52, 211, 153, 0.25), transparent 55%),
        radial-gradient(circle at 95% 90%, rgba(14, 165, 233, 0.22), transparent 55%);
    filter: blur(2px);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: stretch;
}

.card {
    background: rgba(255, 251, 235, 0.96);
    border-radius: 18px;
    padding: 16px 18px 18px;
    border: 1px solid rgba(253, 224, 171, 0.9);
    box-shadow: 0 18px 38px rgba(124, 45, 18, 0.18);
}

.hero-card {
    border-radius: 20px;
}

.hero-left .eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
}

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

.hero-lead {
    margin: 0 0 12px;
    color: var(--muted);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.hero-tags span {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(254, 243, 199, 0.9);
    color: #7c2d12;
}

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

.hero-footnote {
    font-size: 12px;
    color: var(--muted);
}

.hero-right {
    display: grid;
    grid-template-rows: minmax(0, 1.3fr) auto;
    gap: 10px;
}

.hero-visual {
    padding: 10px;
    border-radius: 22px;
    background: radial-gradient(circle at top left, #fffbeb, #dbeafe);
}

.hero-img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.hero-chip-row {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
}

.chip-soft {
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
}

.chip-outline {
    border: 1px dashed rgba(37, 99, 235, 0.6);
    color: #1d4ed8;
    background: rgba(239, 246, 255, 0.9);
}

.hero-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.meta-block {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border-radius: 16px;
    padding: 8px 10px;
    font-size: 12px;
}

.meta-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
    opacity: 0.8;
    display: block;
}

.meta-value {
    font-weight: 500;
}

/* Sections */

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

.section-intro .section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.section-intro h2 {
    margin-top: 0;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.check-list li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(209, 213, 219, 0.9);
}

.check-list li:last-child {
    border-bottom: none;
}

.section-title {
    margin: 0 0 14px;
    font-size: 22px;
}

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

/* Buttons */

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

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

.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fffbeb;
    box-shadow: 0 14px 30px rgba(194, 65, 12, 0.55);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.btn-ghost {
    background: rgba(255, 251, 235, 0.8);
    border: 1px solid rgba(248, 250, 252, 0.8);
    color: #7c2d12;
}

.btn-ghost:hover {
    background: rgba(254, 243, 199, 0.9);
}

.btn-block {
    width: 100%;
}

/* Page header */

.page-header {
    padding: 18px 0 14px;
}

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

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

/* Catalog */

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

.product-card {
    position: relative;
}

.product-card-hot {
    border-color: rgba(248, 113, 113, 0.9);
    box-shadow: 0 20px 40px rgba(185, 28, 28, 0.3);
}

.product-meta {
    font-size: 13px;
    color: var(--muted);
}

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

.note-card {
    background: #fffbeb;
}

/* Product layout */

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

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

.product-side {
    align-self: start;
}

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

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

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

/* Cart */

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

.cart-items {
    border-radius: 16px;
    border: 1px dashed rgba(209, 213, 219, 0.9);
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    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: 10px;
    font-weight: 600;
}

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

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

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

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

/* Contact & about grids */

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

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

/* Forms */

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

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

/* Footer */

.site-footer {
    background: #111827;
    color: #e5e7eb;
    padding: 22px 0 28px;
    font-size: 13px;
    border-top: 2px solid #f97316;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 20px;
}

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

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

.footer-links {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

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

.footer-copy {
    margin-top: 6px;
    color: #9ca3af;
}

/* Success */

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

/* Responsive */

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr);
    }
    .hero-right {
        grid-template-columns: minmax(0, 1.1fr);
    }
    .section-intro .section-grid {
        grid-template-columns: minmax(0, 1.1fr);
    }
    .product-layout {
        grid-template-columns: minmax(0, 1.1fr);
    }
    .cart-grid {
        grid-template-columns: minmax(0, 1.1fr);
    }
    .contact-grid {
        grid-template-columns: minmax(0, 1.1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: minmax(0, 1.4fr) auto;
        grid-template-rows: auto auto;
        row-gap: 8px;
    }
    .logo-block {
        order: 1;
    }
    .menu-toggle {
        display: inline-flex;
        order: 2;
        justify-self: flex-end;
    }
    .main-nav {
        position: fixed;
        inset: 58px 0 auto 0;
        padding: 12px 18px 16px;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(18px);
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-140%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
        z-index: 40;
    }
    .main-nav a {
        color: #e5e7eb;
        padding: 6px 0;
    }
    .cart-chip {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 41;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
    }
    body.nav-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 540px) {
    .hero-left h1 {
        font-size: 23px;
    }
    .cart-item-row {
        grid-template-columns: 1.7fr auto auto;
        grid-template-rows: auto auto;
    }
    .footer-grid {
        grid-template-columns: minmax(0, 1.1fr);
    }
}
