:root {
    --red: #a4161a;
    --red-deep: #7d1014;
    --gold: #f0c43a;
    --ink: #1c1917;
    --muted: #5c564e;
    --line: #e6e0d6;
    --paper: #f3efe7;
    --card: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: "Segoe UI", Tahoma, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.page-wrap { padding: 28px 0 48px; }

.ticker {
    background: var(--red);
    color: #fff;
    height: 36px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 650;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    height: 36px;
    animation: ticker-move 28s linear infinite;
}
.ticker span { white-space: nowrap; padding-right: 8px; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-bar { display: flex; align-items: center; gap: 18px; min-height: 86px; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; max-width: 168px; color: var(--ink); }
.wordmark b { font-size: 18px; letter-spacing: -.03em; }
.wordmark span { font-size: 12px; font-weight: 700; color: var(--red); }
.main-nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.pill, .nav-drop > a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    font-weight: 650;
    font-size: 14px;
}
.nav-drop { position: relative; }
.cat-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: min(980px, 76vw);
    min-height: 460px;
    background: transparent;
    padding: 12px 0 0;
    grid-template-columns: 250px 1fr;
    z-index: 50;
}
.nav-drop:hover .cat-menu, .nav-drop:focus-within .cat-menu { display: grid; }
.cat-rail { display: flex; flex-direction: column; gap: 4px; padding: 14px 8px; background: #fff; border-radius: 22px 0 0 22px; box-shadow: 0 18px 48px rgba(0,0,0,.12); }
.cat-rail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px 7px 7px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    color: #222;
}
.cat-rail-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    object-fit: cover;
    flex: 0 0 36px;
}
.cat-rail-item.is-on, .cat-rail-item:hover { background: #f4efe2; }
.cat-rail-item.is-on::after { content: "→"; margin-left: auto; color: #222; }
.cat-panels { position: relative; background: #fbf8f1; border-radius: 0 22px 22px 0; min-height: 440px; box-shadow: 0 18px 48px rgba(0,0,0,.12); }
.cat-panel { display: none; padding: 18px 18px 12px; column-count: 3; column-gap: 28px; }
.cat-panel.is-on { display: block; }
.cat-col { break-inside: avoid; margin: 0 0 16px; }
.cat-title { display: block; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.cat-col a { display: block; color: #333; font-size: 14px; padding: 2px 0; }
.cat-col a:hover, .cat-title:hover { color: var(--red); }
.bar-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-form { display: flex; border: 1px solid #e4e4e4; border-radius: 999px; overflow: hidden; background: #fff; }
.search-form input { border: 0; padding: 8px 12px; width: 160px; outline: none; }
.search-form button { border: 0; background: #fff; padding: 0 10px; cursor: pointer; }
.tool { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.tool.wa { background: #0f7a63; color: #fff; }
.tool svg { display: block; }
.tool.cart { border: 1px solid #e6e6e6; display: inline-flex; gap: 6px; align-items: center; }
.tool.cart b { background: #111; color: #fff; border-radius: 999px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; font-size: 11px; }
.nav-toggle, .nav-backdrop, .nav-panel, .mobile-search { display: none; }

.hero { position: relative; background: #111; }
.hero-slide { display: none; }
.hero-slide.is-on { display: block; }
.hero-slide img { width: 100%; height: auto; display: block; max-height: 460px; object-fit: cover; object-position: center; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border: 0; border-radius: 50%;
    background: #fff; cursor: pointer; font-size: 24px; line-height: 1;
}
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px auto; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 16px; min-height: 220px; background: #eee; }
.tile img { width: 100%; height: 280px; object-fit: cover; display: block; }
.tile span {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 28px 18px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.62));
    color: #fff;
}
.tile strong { display: block; font-size: 28px; line-height: 1.1; }
.tile em { display: block; margin-top: 4px; font-style: normal; font-size: 14px; }

.home-row { margin: 10px auto 28px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 12px; }
.row-head h2 { margin: 0; font-size: 22px; }
.row-head a { color: var(--red); font-weight: 700; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.card-product { display: flex; height: 100%; background: transparent; }
.card-product-inner { display: flex; flex-direction: column; width: 100%; height: 100%; }
.card-product .image { background: #fff; border: 1px solid #efe8dc; border-radius: 12px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.card-product img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-product .c-p-i-link.cart-product-wrapper { display: flex; flex: 1; }
.card-product .c-p-i-info { display: flex; flex-direction: column; flex: 1; padding: 10px 2px 0; }
.card-product .title-special {
    font-size: 14px; line-height: 1.35; color: #222;
    min-height: 2.7em; height: 2.7em; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-product .sale-price { font-weight: 800; margin-top: auto; padding-top: 8px; color: #8f1418; }

.pay-note {
    display: flex; justify-content: space-between; gap: 20px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 22px; margin: 10px auto 40px;
}
.pay-note h2 { margin: 0 0 6px; }
.pay-note p { margin: 6px 0; color: #333; }
.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-red, .btn-line {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; padding: 12px 16px; font-weight: 700; cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; border: 0; }
.btn-line { background: #fff; color: #111; border: 1px solid #ddd; }

.site-footer { background: #1c1713; color: #f7f2ea; margin-top: 36px; padding: 0 0 18px; border-top: 3px solid #c4a15a; }
.footer-brand { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: end; padding: 32px 0 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand strong { font-size: 26px; letter-spacing: -.03em; }
.footer-brand p { margin: 0; max-width: 640px; color: #d9cec0; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 26px 0 12px; }
.footer-grid strong { display: block; margin-bottom: 10px; color: #e7c56a; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a, .footer-contact span { display: block; padding: 5px 0; color: #efe6da; font-size: 14px; }
.footer-grid a:hover { color: #f0c43a; }
.footer-grid a.footer-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px; width: fit-content; background: #1f8a4c; color: #fff; border-radius: 999px; font-weight: 700; }
.footer-wa svg { display: block; flex: 0 0 16px; }
.footer-wa:hover { color: #fff; background: #187a42; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 8px; border-top: 1px solid rgba(255,255,255,.1); color: #c9bbaa; font-size: 13px; }
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 45;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366;
    display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.catalog-page { padding: 28px 0 80px; background: transparent; }
.catalog-page .crumb { font-size: 13px; color: #666; margin: 8px 0 28px; }
.catalog-page .crumb a { color: #444; }
.catalog-title { position: relative; min-height: 42px; margin-bottom: 22px; }
.catalog-title h1 { margin: 0; text-align: center; font-size: 28px; font-weight: 600; }
.view-switch { position: absolute; right: 0; top: 8px; display: flex; gap: 8px; }
.view-switch a { display: flex; gap: 2px; align-items: center; opacity: .35; }
.view-switch a.is-on { opacity: 1; }
.view-switch i { display: block; width: 7px; height: 14px; background: #bdbdbd; }
.catalog-page .catalog-grid { gap: 18px 14px; }
.catalog-page .catalog-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-page .catalog-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-page .catalog-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.catalog-page .card-product .image { background: #f7f4ee; }
.catalog-page .card-product .title-special { font-size: 13px; color: #222; }
.catalog-page .card-product .sale-price { font-size: 16px; }
.filter-fab {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
    z-index: 35; border: 0; cursor: pointer;
    background: var(--gold); color: var(--ink); font-weight: 800;
    border-radius: 10px; padding: 12px 18px; box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.filter-sheet {
    position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%);
    z-index: 36; width: min(320px, calc(100% - 32px));
    background: #fff; border: 1px solid #eee; border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.14); padding: 16px;
}
.filter-sheet strong { display: block; margin: 8px 0 4px; }
.filter-sheet select { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.filter-sheet .btn-red, .filter-sheet [data-filter-close] { margin-top: 8px; margin-right: 6px; }
.filter-sheet [data-filter-close] { border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 10px 14px; cursor: pointer; font-weight: 700; }

.nav-panel a, .nav-panel p { display: block; }
body.nav-open { overflow: hidden; }
body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; }
body.nav-open .nav-panel {
    display: block; position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 92vw);
    background: #fff; z-index: 70; overflow: auto; padding: 16px 16px 32px;
    box-shadow: -8px 0 24px rgba(0,0,0,.12);
}
.nav-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.nav-panel-head button { border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.nav-panel a { padding: 8px 0; border-bottom: 1px solid #f2f2f2; }
.nav-panel p { margin: 14px 0 4px; font-weight: 800; }

.container { width: 100%; }
.section { margin: 8px 0 24px; }
.page-title h1 { margin: 0 0 6px; font-size: 28px; font-weight: 700; }
.page-title p { margin: 0; color: var(--muted); }
.checkout { width: min(760px, 100%); margin: 0 auto 36px; display: flex; flex-direction: column; gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-head h2 { margin: 0; font-size: 20px; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 28px; }
.order-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.order-line img { width: 72px; height: 72px; object-fit: contain; background: #f6f6f6; }
.order-line span, .order-line strong { display: block; }
.order-line span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.order-totals { margin: 12px 0 16px; }
.order-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.order-totals .is-total { font-size: 18px; font-weight: 800; }
.bank-box { background: #f3faf6; border: 1px solid #d7eadf; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.bank-box strong, .bank-box span { display: block; }
.bank-box p { margin: 8px 0 0; color: #246b45; }
.pay-choice { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 650; }
.invoice-switch { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; font-weight: 700; }
.invoice-switch label { display: flex; align-items: center; gap: 6px; }
.field small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.form-grid .field[hidden] { display: none; }
.pay-actions-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pay-actions-stack .btn { width: 100%; min-height: 48px; }
.btn-wa { background: #1f8a4c; color: #fff; border: 0; }
.bag-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-row img { width: 88px; height: 88px; object-fit: contain; background: #f6f3ee; border-radius: 10px; }
.bag-info strong { display: block; line-height: 1.35; }
.bag-info span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.bag-qty { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.bag-qty input { width: 72px; border: 1px solid #ddd; border-radius: 8px; padding: 8px; }
.bag-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bag-side b { white-space: nowrap; font-size: 16px; }
.summary .pay-actions-stack { margin-top: 8px; }
.pay-screen { max-width: 560px; margin-left: auto; margin-right: auto; }
.pay-wait, .pay-result { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px 24px; text-align: center; }
.pay-count h1, .pay-result h1 { margin: 10px 0 8px; font-size: 28px; }
.pay-ring {
    width: 112px; height: 112px; margin: 0 auto 8px; border-radius: 50%;
    display: grid; place-items: center;
    border: 8px solid #f3e7c2;
    border-top-color: var(--gold);
    animation: pay-spin 1s linear infinite;
    font-size: 40px; font-weight: 800;
}
.pay-kicker { margin: 0; color: var(--red); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.pay-code { font-size: 18px; }
.pay-code strong { display: inline-block; margin-left: 6px; padding: 4px 10px; background: #fff6d8; border-radius: 8px; }
.pay-result .btn-wa { min-width: 260px; min-height: 48px; margin-top: 8px; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
    .bag-row { grid-template-columns: 72px minmax(0, 1fr); }
    .bag-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .8fr); gap: 18px; align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; }
.static-html { overflow-wrap: anywhere; line-height: 1.6; }
.static-html img, .static-html iframe, .static-html video { max-width: 100%; height: auto; }
.static-html table { width: 100%; display: block; overflow-x: auto; }
.static-html [style*="width"] { max-width: 100% !important; }

@media (max-width: 980px) {
    .wrap { width: min(1220px, calc(100% - 20px)); }
    .site-bar { min-height: 64px; gap: 8px; }
    .wordmark b { font-size: 15px; }
    .footer-brand, .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { align-items: start; }
    .main-nav, .bar-tools .search-form { display: none; }
    .tool span { display: none; }
    .tool { padding: 8px; }
    .mobile-search { display: flex; width: 100%; margin: 4px 0 12px; }
    .mobile-search input { flex: 1; min-width: 0; }
    .nav-toggle { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px; cursor: pointer; }
    .hero-slide img { max-height: none; width: 100%; height: auto; object-fit: contain; }
    .hero-arrow { width: 34px; height: 34px; font-size: 20px; }
    .tile-grid { gap: 10px; margin: 14px auto; }
    .tile { min-height: 0; border-radius: 12px; }
    .tile img { height: 148px; }
    .tile strong { font-size: 16px; }
    .tile em { font-size: 12px; }
    .catalog-grid,
    .catalog-page .catalog-grid.cols-3,
    .catalog-page .catalog-grid.cols-4,
    .catalog-page .catalog-grid.cols-6,
    .product-grid-theme { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
    .card-product .title-special,
    .catalog-page .card-product .title-special { font-size: 13px; }
    .view-switch { display: none; }
    .catalog-title h1, .page-title h1 { font-size: 22px; }
    .catalog-page { padding-top: 16px; }
    .pay-note { flex-direction: column; align-items: flex-start; }
    .split, .split-even { grid-template-columns: 1fr; }
    .pay-note { padding: 16px; }
    .footer-bottom { flex-direction: column; }
    .filter-fab { left: 12px; right: auto; transform: none; bottom: 14px; max-width: calc(100% - 84px); }
    .filter-sheet { left: 12px; right: auto; transform: none; bottom: 66px; }
    .wa-float { right: 12px; bottom: 14px; width: 52px; height: 52px; }
}
@media (max-width: 640px) {
    .footer-grid, .footer-brand { grid-template-columns: 1fr; }
    .tile img { height: 120px; }
}
.make-page { padding: 8px 0 48px; }
.make-page .page-title h1 { text-align: center; }
.make-lead { max-width: 720px; margin: 0 auto 22px; text-align: center; color: var(--muted); line-height: 1.6; }
.make-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.make-card, .make-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-height: 100%; }
.make-step b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); margin-bottom: 8px; }
.make-card h3, .make-step h3 { margin: 0 0 6px; font-size: 16px; }
.make-card p, .make-step p { margin: 0; color: #444; line-height: 1.5; }
.make-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; background: #f4f1ea; }
.make-block { margin-top: 28px; }
.make-block h2 { text-align: center; margin: 0 0 14px; }
.make-form { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.receipt-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.receipt-meta { margin: 0 0 14px; color: var(--muted); }
.receipt-meta strong { color: var(--ink); }
.bank-box .iban { margin-top: 6px; font-weight: 800; letter-spacing: .03em; color: var(--ink); }
.dekont-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.file-pick { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.file-pick input { font-weight: 500; }
.dekont-form .btn { width: 100%; min-height: 48px; }
@media (max-width: 900px) {
    .make-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .make-grid { grid-template-columns: 1fr; }
}
