
:root {
    --bg-main: #f5f2ec;
    --bg-soft: #ffffff;
    --bg-alt: #f0ebe1;
    --primary: #b45309;
    --primary-soft: #fde68a;
    --accent: #2563eb;
    --text: #1f2933;
    --muted: #6b7280;
    --border: #d4c7b8;
}

*,
*::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, #f9f5ee, #f3eee4);
    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;
}

.site-header.alt {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(245, 242, 236, 0.97);
    border-bottom: 1px solid rgba(212, 199, 184, 0.8);
    backdrop-filter: blur(14px);
}

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

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

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: conic-gradient(from 110deg, #f59e0b, #b45309, #f97316);
    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: 14px;
    font-size: 14px;
}

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

.main-nav a:hover {
    background: rgba(180, 83, 9, 0.08);
}

.cart-link {
    justify-self: end;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff7ed;
    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: 8px;
    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: 22px 0 40px;
}

.hero.hero-split {
    padding: 4px 0 26px;
}

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

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

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

.hero-list {
    padding-left: 20px;
    margin: 0 0 14px;
    font-size: 14px;
}

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

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-img {
    width: 100%;
    border-radius: 12px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
}

.tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.hero-meter {
    border-radius: 10px;
    padding: 10px 12px;
    background: #fefce8;
    border: 1px dashed rgba(202, 138, 4, 0.7);
}

.meter-label {
    font-size: 12px;
    font-weight: 600;
}

.meter-bar {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #fef3c7;
    margin: 6px 0;
    overflow: hidden;
}

.meter-fill {
    position: absolute;
    inset: 0;
    width: 55%;
    background: linear-gradient(90deg, #22c55e, #f97316);
}

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

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

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

.ribbon-card {
    border-left: 4px solid rgba(180, 83, 9, 0.7);
}

.card {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 14px 16px 16px;
    border: 1px solid rgba(212, 199, 184, 0.9);
    box-shadow: 0 10px 24px rgba(148, 115, 80, 0.12);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    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, #f59e0b, #b45309);
    color: #fff;
    box-shadow: 0 10px 22px rgba(180, 83, 9, 0.4);
}

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

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

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

.btn-block {
    width: 100%;
}

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

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

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

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

.product-card.tall {
    grid-row: span 2;
}

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

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

.section-note {
    background: #fefce8;
    border-top: 1px solid rgba(250, 204, 21, 0.5);
}

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

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

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

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

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

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

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

.cart-items {
    border-radius: 10px;
    border: 1px dashed rgba(163, 143, 118, 0.9);
    padding: 10px;
    background: #fefdf9;
    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(229, 231, 235, 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;
}

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

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

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

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.05fr);
    gap: 18px;
}

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

.site-footer {
    border-top: 1px solid rgba(148, 115, 80, 0.5);
    background: linear-gradient(to right, #3f2a1c, #1f130c);
    color: #f9fafb;
    padding: 18px 0 24px;
    font-size: 13px;
}

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

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

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

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

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

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

.footer-copy {
    margin: 0;
    color: #e5e7eb;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-split-grid {
        grid-template-columns: minmax(0, 1.2fr);
    }
    .hero-copy {
        order: 2;
    }
    .hero-visual {
        order: 1;
    }
    .catalog-grid {
        grid-template-columns: minmax(0, 1.2fr);
    }
    .product-card.tall {
        grid-row: auto;
    }
    .product-layout {
        grid-template-columns: minmax(0, 1.2fr);
    }
    .cart-grid {
        grid-тemplate-columns: minmax(0, 1.2fr);
    }
    .contact-layout {
        grid-тemplate-columns: minmax(0, 1.2fr);
    }
}

@media (max-width: 720px) {
    .header-inner {
        grid-тemplate-columns: auto auto;
        grid-template-rows: auto auto;
        align-items: center;
    }
    .menu-toggle {
        display: inline-flex;
        justify-self: start;
    }
    .main-nav {
        position: fixed;
        inset: 54px 0 auto 0;
        padding: 10px 18px 14px;
        background: rgba(63, 42, 28, 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: #fef3c7;
        padding: 6px 0;
    }
    body.nav-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: 23px;
    }
    .hero-split-grid {
        gap: 14px;
    }
    .cart-item-row {
        grid-template-columns: 1.6fr auto auto;
        grid-template-rows: auto auto;
    }
    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr);
    }
}
