@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
    color-scheme: dark;
    --color-bg: #071d16;
    --color-card: #10291f;
    --color-accent: #d6ae55;
    --color-text: #f5f0e5;
    --color-muted: #a7b3a9;
    --line: rgba(235, 222, 181, .16);
    font-family: "DM Sans", sans-serif;
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.announcement { min-height: 34px; display: grid; place-items: center; padding: 7px 16px; background: #04150f; color: var(--color-accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.site-header { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(calc((100vw - 1180px) / 2), 5vw); border-bottom: 1px solid var(--line); background: rgba(7, 29, 22, .97); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 40px; height: 40px; border: 1px solid var(--color-accent); border-radius: 50%; display: grid; place-items: center; color: var(--color-accent); font-size: 22px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Playfair Display", serif; font-size: 17px; font-weight: 500; }
.brand small { margin-top: 3px; color: var(--color-muted); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.main-nav { display: flex; gap: clamp(18px, 3vw, 42px); color: #d7ded6; font-size: 13px; }
.main-nav a:hover, .product-link:hover { color: var(--color-accent); }
.header-cta { padding: 11px 18px; border: 1px solid var(--line); border-radius: 30px; font-size: 12px; }
.header-cta span, .button span, .product-link span { margin-left: 9px; }
.hero { position: relative; min-height: 580px; display: grid; place-items: center; overflow: hidden; padding: 85px 20px; text-align: center; isolation: isolate; background: radial-gradient(ellipse at 70% 40%, rgba(183, 142, 59, .25), transparent 35%), radial-gradient(ellipse at 20% 30%, rgba(36, 82, 67, .54), transparent 48%), linear-gradient(120deg, #102d22, #061710 65%); }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .33; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4, 17, 12, .48), rgba(4, 17, 12, .15), rgba(4, 17, 12, .5)); }
.hero-content { max-width: 760px; }
.eyebrow { margin: 0 0 20px; color: var(--color-accent); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 8px 15px; border: 1px solid rgba(214, 174, 85, .55); border-radius: 24px; }
.hero h1 { margin: 18px 0; font-family: "Playfair Display", serif; font-size: clamp(48px, 7vw, 82px); font-weight: 500; line-height: 1.1; }
.hero h1 em { display: block; color: var(--color-accent); font-weight: 500; }
.hero-copy { max-width: 590px; margin: 24px auto 10px; font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }
.hero-note, .hero-footnote { color: var(--color-muted); font-size: 13px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 21px; border: 0; border-radius: 28px; cursor: pointer; font-weight: 700; }
.button-gold { background: var(--color-accent); color: #172117; }
.button-gold:hover { filter: brightness(1.08); }
.hero-button { min-width: 245px; margin: 24px 0 5px; letter-spacing: .1em; text-transform: uppercase; }
.hero-footnote { margin-top: 16px; }
.hero-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; color: rgba(230, 198, 119, .55); }
.hero-decor span { position: absolute; font-size: 28px; }
.hero-decor span:nth-child(1) { top: 20%; left: 12%; }
.hero-decor span:nth-child(2) { top: 35%; right: 12%; font-size: 42px; }
.hero-decor span:nth-child(3) { bottom: 20%; left: 20%; }
.hero-decor span:nth-child(4) { bottom: 16%; right: 18%; font-size: 19px; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 34px max(calc((100vw - 1180px) / 2), 5vw); background: #0c251b; border-block: 1px solid var(--line); }
.benefit { display: flex; align-items: center; gap: 14px; }
.benefit-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--color-accent); border-radius: 50%; color: var(--color-accent); font-size: 19px; }
.benefit h2 { margin: 0 0 5px; font-size: 14px; }
.benefit p { margin: 0; color: var(--color-muted); font-size: 11px; line-height: 1.55; }
.catalog { max-width: 1180px; margin: auto; padding: 100px 24px; }
.section-heading { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2, .contact-banner h2 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(34px, 5vw, 52px); font-weight: 500; }
.section-heading > p:last-child { color: var(--color-muted); line-height: 1.7; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-bottom: 32px; }
.filter-chip { padding: 9px 16px; border: 1px solid var(--line); border-radius: 22px; background: transparent; color: var(--color-text); cursor: pointer; font-size: 12px; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--color-accent); background: var(--color-accent); color: #162117; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--color-card); }
.product-card[hidden] { display: none; }
.product-image { position: relative; height: 205px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 80%, rgba(214, 174, 85, .28), transparent 48%), linear-gradient(140deg, #1d4431, #0b2118); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image > span:not(.sale-tag) { color: var(--color-accent); font-size: 82px; opacity: .85; }
.sale-tag { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 16px; background: var(--color-accent); color: #1b2418; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.product-info { padding: 17px; }
.product-meta, .old-price { margin: 0 0 8px; color: var(--color-muted); font-size: 11px; }
.product-info h3 { margin: 0 0 8px; font-family: "Playfair Display", serif; font-size: 20px; font-weight: 500; }
.product-description { min-height: 36px; margin: 0 0 15px; color: var(--color-muted); font-size: 12px; line-height: 1.5; }
.old-price { margin-bottom: 3px; text-decoration: line-through; }
.price { margin: 0 0 15px; color: var(--color-accent); font-size: 20px; font-weight: 700; }
.product-link { display: block; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.empty-state { color: var(--color-muted); text-align: center; }
.contact-banner { max-width: 1132px; margin: 0 auto 90px; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--color-card); }
.contact-banner .eyebrow { margin-bottom: 10px; }
.contact-banner h2 { max-width: 700px; font-size: clamp(26px, 4vw, 38px); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(calc((100vw - 1180px) / 2), 5vw); border-top: 1px solid var(--line); color: var(--color-muted); }
.site-footer p, .site-footer small { margin: 0; font-size: 11px; }

.admin-body { min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #183d2d, var(--color-bg) 55%); }
.admin-wrap { max-width: 1000px; margin: auto; padding: 24px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding: 12px 0 20px; border-bottom: 1px solid var(--line); }
.admin-nav { display: flex; align-items: center; gap: 17px; color: var(--color-muted); font-size: 13px; }
.admin-nav form { margin: 0; }
.link-button { border: 0; background: none; color: var(--color-accent); cursor: pointer; }
.admin-card { margin-bottom: 22px; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--color-card); }
.admin-card h1, .admin-card h2 { margin: 0 0 12px; font-family: "Playfair Display", serif; font-weight: 500; }
.admin-card > p:not(.eyebrow):not(.notice) { color: var(--color-muted); line-height: 1.6; }
.admin-card .eyebrow { margin-bottom: 12px; }
.admin-card hr { margin: 25px 0; border: 0; border-top: 1px solid var(--line); }
.image-settings { margin: 8px 0 25px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 21, 15, .45); }
.image-settings h2 { margin: 0 0 8px; font-size: 19px; }
.image-settings > p { margin: 0 0 16px; color: var(--color-muted); font-size: 12px; line-height: 1.6; }
.hero-preview { display: block; width: min(100%, 560px); max-height: 240px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; object-position: center; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; margin: 0 0 16px; color: #d8dfd7; font-size: 12px; }
.form-field input, .form-field textarea { width: 100%; min-height: 43px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; background: #071d16; color: var(--color-text); }
.form-field input[type="file"] { padding: 8px; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--color-accent); }
.color-control { display: flex; align-items: center; gap: 10px; }
.color-control input[type="color"] { flex: 0 0 58px; width: 58px; height: 44px; min-height: 44px; padding: 4px; cursor: pointer; }
.form-field .color-code { flex: 1 1 130px; min-width: 100px; font-family: monospace; letter-spacing: .04em; }
.color-swatch { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; }
.check-field { display: flex; gap: 9px; align-items: center; margin: 0 0 18px; color: var(--color-muted); font-size: 13px; }
.notice { padding: 12px 14px; border: 1px solid var(--color-accent); border-radius: 7px; color: var(--color-accent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 9px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--color-accent); font-size: 11px; text-transform: uppercase; }
.table-actions { display: flex; gap: 7px; align-items: center; }
.table-actions form { margin: 0; }
.button-small { min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); background: transparent; color: var(--color-text); font-size: 11px; }
.button-danger { color: #ffaaa0; }

@media (max-width: 900px) {
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-banner { margin-inline: 24px; }
}
@media (max-width: 640px) {
    .site-header { height: auto; min-height: 72px; flex-wrap: wrap; padding: 14px 18px; }
    .main-nav { order: 3; width: 100%; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
    .header-cta { padding: 9px 12px; }
    .hero { min-height: 540px; padding: 70px 20px; }
    .benefits { gap: 20px 12px; padding: 26px 18px; }
    .benefit { align-items: flex-start; gap: 9px; }
    .benefit-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 16px; }
    .benefit h2 { font-size: 12px; }
    .benefit p { font-size: 10px; }
    .catalog { padding: 70px 16px; }
    .product-grid { gap: 10px; }
    .product-image { height: 155px; }
    .product-info { padding: 12px; }
    .product-info h3 { font-size: 17px; }
    .product-description { min-height: 54px; }
    .contact-banner { align-items: flex-start; flex-direction: column; margin: 0 16px 60px; padding: 26px 22px; }
    .site-footer { align-items: flex-start; flex-direction: column; padding: 24px 18px; }
    .admin-wrap { padding: 14px; }
    .admin-top { align-items: flex-start; flex-direction: column; }
    .admin-nav { flex-wrap: wrap; }
    .admin-card { padding: 20px 16px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .table-actions { flex-direction: column; align-items: flex-start; }
}
