/* ============================================================
   Бутоново — стили витрины (загружается после base.css)
   ============================================================ */

/* ---------- Шапка ---------- */
.skip-link {
    position: absolute; left: 8px; top: -48px; z-index: 100;
    background: var(--brand); color: #fff; border-radius: var(--radius-s);
    padding: 12px 18px; font-weight: 600; transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; color: #fff; text-decoration: none; outline-offset: 2px; }

.site-header {
    background: var(--surface); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 4px; padding: 8px 0; min-width: 0; }
.logo {
    flex: 1 1 auto; text-align: center; min-width: 0;
    font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo:hover { color: var(--brand); text-decoration: none; }
.nav-toggle {
    flex: 0 0 auto; width: 44px; height: 44px; border: none; border-radius: var(--radius-s);
    background: var(--bg); cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center;
}
.nav-toggle-box, .nav-toggle-box::before, .nav-toggle-box::after {
    width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
    content: ''; display: block; position: relative;
}
.nav-toggle-box::before { position: absolute; top: -6px; }
.nav-toggle-box::after { position: absolute; top: 6px; }
.header-icon-link {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-s);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink); background: var(--bg); position: relative;
}
.header-icon-link:hover { color: var(--brand); background: var(--brand-tint); text-decoration: none; }
.cart-badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
    border-radius: 999px; background: var(--accent); color: #fff;
    font-size: 14px; font-weight: 700; line-height: 20px; text-align: center;
    padding: 0 5px;
}
.cart-badge-empty { display: none; }
.cart-badge-bump { animation: badge-bump 0.3s ease; }
@keyframes badge-bump { 50% { transform: scale(1.35); } }

.main-nav { border-top: 1px solid var(--line); background: var(--surface); }
.nav-scroll { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 16px; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-link { flex: 0 0 auto; padding: 14px; font-size: 16px; color: var(--ink); border-bottom: 3px solid transparent; }
.nav-link:hover { color: var(--brand); text-decoration: none; }
.nav-current { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.nav-current:hover { color: var(--brand-deep); }
.nav-optom { color: var(--brand); font-weight: 700; }

/* ??????????? ????-????: ? JS ???????? ???????? ????????, ??????????? ???????? */
html.js .main-nav { display: none; }
.site-menu {
    position: fixed; inset: 0; z-index: 80; background: var(--surface);
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
    animation: menu-in 0.2s ease;
}
@keyframes menu-in { from { transform: translateY(-12px); opacity: 0; } }
.site-menu-nav { display: flex; flex-direction: column; }
.site-menu-link {
    padding: 16px 8px; font-size: 22px; font-weight: 600; color: var(--ink);
    border-bottom: 1px solid var(--line); border-radius: 0;
}
.site-menu-link:hover { color: var(--brand); text-decoration: none; }
.site-menu-current { color: var(--brand); }
.site-menu-contacts { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
body.menu-open { overflow: hidden; }

@media (max-width: 480px) {
    .logo { font-size: 19px; }
}

.site-main { padding-block: 20px 56px; min-height: 50vh; }
body.has-bottom-bar { padding-bottom: 0; } /* ???????? ????????? ????????????? ???????? ???? */

/* ---------- ?????: ???? ?? ??? ????????, ????? ????? ---------- */
.hero { display: grid; gap: 18px; margin-bottom: 48px; }
.hero-img {
    width: calc(100% + 32px);
    margin-inline: -16px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.hero-title { font-size: 32px; margin-bottom: 10px; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 34em; margin-bottom: 18px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.hero-actions .btn { width: 100%; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--brand-deep); }
.hero-points li::before { content: '\273F\00A0'; color: var(--accent); }

/* ---------- ???????? ---------- */
.section { margin-bottom: 48px; }
.section-title { margin-bottom: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.link-more { font-size: 15px; white-space: nowrap; }

/* ---------- ???????????: ???? 4:5, ????????? ??? ??? ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cat-tile { display: block; color: inherit; }
.cat-tile:hover { text-decoration: none; }
.cat-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.cat-tile:hover img { opacity: 0.92; }
.cat-name { display: block; text-align: center; font-size: 16px; font-weight: 600; color: var(--ink); padding: 10px 2px; }

/* ---------- ?????????? ?????????: ???? 4:5, ????? ?? ???? ?????????? ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product-card { position: relative; display: flex; flex-direction: column; }
.card-link { color: inherit; }
.card-link:hover { text-decoration: none; }
.card-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card-name { font-size: 16px; font-weight: 600; margin: 12px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-hint { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.card-availability { font-size: 14px; color: var(--brand-deep); margin: 0 0 4px; }
.card-availability-muted { color: var(--muted); }
.card-price { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--accent-dark); margin: 0 0 4px; }
.btn-card { width: 100%; margin-top: 8px; }
.card-add { margin: 8px 0 0; display: block; }

/* ---------- ????????? ?????????? ---------- */
.catalog-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.toolbar-row { display: flex; gap: 10px; align-items: center; }
.sort-form { display: flex; gap: 8px; align-items: center; flex: 1 1 auto; }
.sort-select { flex: 1 1 auto; min-height: 44px; }
.active-filter-row { margin-bottom: 12px; }
.category-scroll { margin-bottom: 0; }
.catalog-filters {
    position: fixed; inset: 0; z-index: 80; background: var(--surface);
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto; display: flex; flex-direction: column; gap: 16px;
    animation: menu-in 0.2s ease;
}
.catalog-filters-head { display: flex; justify-content: space-between; align-items: center; }
.catalog-filters-title { margin: 0; font-size: 24px; }
.filter-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-size: 15px; color: var(--muted); min-width: 64px; }
.chip-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chip-scroll .chip { flex-shrink: 0; }
.load-more-wrap { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.mobile-back { display: none; }
@media (max-width: 639px) {
    .breadcrumbs { display: none; }
    .mobile-back { display: block; }
}
@media (min-width: 960px) {
    .catalog-filters {
        position: static; inset: auto; padding: 0; overflow: visible;
        animation: none; background: none; display: flex; flex-direction: column; gap: 10px;
    }
    .catalog-filters-head { display: none; }
    .catalog-filter-toggle { display: none; }
}

/* ---------- ?????????? ???????? ---------- */
.product-page {
    display: grid; gap: 24px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.product-gallery { min-width: 0; }
.gallery-track { display: grid; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: var(--radius); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { grid-area: 1 / 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; }
.gallery-slide-active { z-index: 1; }
.gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.gallery-dot { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; background: var(--line); cursor: pointer; }
.gallery-dot-active { background: var(--brand); }
.product-img-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.product-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 auto; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: none; cursor: pointer; }
.thumb img { width: 72px; height: 90px; object-fit: cover; display: block; }
.thumb-active { border-color: var(--brand); }
.product-info { min-width: 0; }
.product-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.product-title { font-size: 26px; margin-bottom: 8px; }
.product-price { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--accent-dark); margin-bottom: 10px; }
.price-unit { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--muted); }
.opt-twin-link { font-size: 16px; background: var(--brand-tint); border-radius: var(--radius-s); padding: 10px 14px; }
.product-specs { margin: 0 0 14px; }
.product-specs li { padding: 6px 0 6px 24px; position: relative; border-bottom: 1px dashed var(--line); font-size: 15px; }
.product-specs li::before { content: '\273F'; position: absolute; left: 4px; top: 9px; color: var(--accent); font-size: 12px; }
.product-specs li:last-child { border-bottom: none; }
.product-desc { margin-bottom: 0; }
.product-details { border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 10px; }
.product-details summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 17px; list-style: none; position: relative; padding-right: 34px; }
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary::after { content: '+'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand); font-weight: 700; }
.product-details[open] summary::after { content: '?'; }
.product-details > *:not(summary) { margin: 0 16px 14px; }
.delivery-promise { font-size: 16px; color: var(--brand-deep); font-weight: 600; margin: 14px 0 8px; }
.trust-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.trust-row li { font-size: 15px; color: var(--muted); padding-left: 26px; position: relative; }
.trust-row li::before { content: '?'; position: absolute; left: 2px; color: var(--brand); font-weight: 700; }
@media (min-width: 640px) { .trust-row { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; } }

/* ????????? ? ????????? ???????????? */
.stepper { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.stepper-btn { width: 48px; min-height: 48px; border: none; background: var(--bg); font-size: 24px; font-weight: 700; color: var(--ink); cursor: pointer; }
.stepper-btn:hover { background: var(--brand-tint); color: var(--brand-deep); }
.stepper .stepper-value { border: none; border-radius: 0; min-height: 48px; width: 84px; box-shadow: none; }
.quick-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.quick-picks .chip { background: var(--surface); }

.buy-form { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 18px; }
.buy-label { font-size: 15px; font-weight: 600; }
.buy-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.buy-row .qty-input { flex: 0 0 auto; text-align: center; }
.buy-row .btn { flex: 1 1 160px; }
.buy-total { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--accent-dark); }

/* ---------- ???????????????? ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.why-item { display: flex; align-items: flex-start; gap: 14px; }
.why-item p { margin: 0; font-size: 16px; color: var(--muted); }
.why-icon { flex: 0 0 auto; width: 30px; height: 30px; color: var(--brand); }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; } }

/* ---------- ??? ????????-????? ---------- */
.entry-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 48px; }
.entry-tile {
    display: flex; flex-direction: column; gap: 6px;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 18px; text-decoration: none; color: var(--ink); background: var(--surface);
}
.entry-tile:hover { border-color: var(--brand); text-decoration: none; }
.entry-tile-opt { background: var(--brand-tint); border-color: var(--brand); }
.entry-tile-title { font-size: 19px; font-weight: 700; }
.entry-tile-note { font-size: 15px; color: var(--muted); }
@media (min-width: 640px) { .entry-tiles { grid-template-columns: 1fr 1fr; } }

/* ---------- ???? ???? ?? ?????????? ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; counter-reset: none; list-style: none; margin: 0; padding: 0; }
.step {
    display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.step-num {
    grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand-tint); color: var(--brand-deep);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; font-family: var(--font-body);
}
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step-photo { border-color: var(--brand); background: var(--brand-tint); }
.step-photo .step-num { background: var(--brand); color: #fff; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } .step { grid-template-columns: 44px 1fr; } }

/* ?????????????????? ??? ????? ?? ??????????? */
.product-row-scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.product-row-scroll .product-card { scroll-snap-align: start; }
@media (min-width: 640px) {
    .product-row-scroll { grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
}
@media (min-width: 960px) {
    .product-row-scroll { grid-template-columns: repeat(4, 1fr); }
}
.optom-teaser-note { font-size: 17px; color: var(--muted); max-width: 34em; }

/* ---------- ???????????????? (???????? ????) ---------- */
.features-grid { display: grid; gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.feature-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; font-family: var(--font-body); font-size: 15px; margin-bottom: 6px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- ???????? ? ?????????? ---------- */
.cta-band { background: var(--brand); border-radius: var(--radius); padding: 32px 20px; text-align: center; }
.cta-band .section-title { color: #fff; }
.cta-band-inner { max-width: 560px; margin: 0 auto; }
.cta-sub { color: rgba(255, 255, 255, 0.88); font-size: 16px; margin-bottom: 16px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-band .btn-primary:hover { background: var(--bg-soft); color: var(--brand); }

.notfound { text-align: center; padding: 60px 0; }
.notfound .hero-actions { max-width: 360px; margin-left: auto; margin-right: auto; }

/* ---------- ???????? ---------- */
.site-footer { background: #1F2A22; color: #F7F3EC; padding: 36px 0 20px; margin-top: 24px; }
.footer-grid { display: grid; gap: 24px; }
.footer-contacts .logo { color: #fff; }
.footer-text { color: rgba(247, 243, 236, 0.72); font-size: 14px; margin: 6px 0; }
.footer-phone { color: #fff; font-size: 18px; font-weight: 700; display: inline-block; margin-top: 4px; }
.footer-phone:hover { color: var(--gold); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { color: rgba(247, 243, 236, 0.85); font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(247, 243, 236, 0.2); margin-top: 24px; padding-top: 16px; font-size: 14px; color: rgba(247, 243, 236, 0.6); }

/* ---------- ???????? ????????? ?? ??????????? ---------- */
.sticky-cart {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: var(--brand); color: #fff; text-decoration: none;
    font-size: 17px; box-shadow: 0 -4px 16px rgba(31, 42, 34, 0.25);
}
.sticky-cart-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-cart-sum { font-size: 18px; white-space: nowrap; }
@media (min-width: 960px) {
    .sticky-cart { display: none; }
}
.footer-pay {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.footer-pay span {
    border: 1px solid rgba(247, 243, 236, 0.35); border-radius: 999px;
    color: rgba(247, 243, 236, 0.85); font-size: 14px; padding: 6px 14px;
}

/* ---------- ????????? ---------- */
.cart-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.cart-row {
    display: grid; grid-template-columns: 96px 1fr; gap: 12px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px;
}
.cart-img img { width: 96px; height: 120px; object-fit: cover; border-radius: var(--radius-s); }
.cart-mid { min-width: 0; }
.cart-name { display: block; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; margin-bottom: 4px; }
.cart-price { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.cart-discount { font-size: 14px; color: var(--brand); font-weight: 600; margin: 0; }
.cart-controls { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; flex-wrap: wrap; }
.cart-qty-form { display: flex; gap: 8px; align-items: center; }
.cart-sum { margin-left: auto; font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cart-summary { max-width: 460px; }
.cash-note { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.delivery-progress {
    font-size: 15px; color: var(--brand-deep); background: var(--brand-tint);
    border-radius: var(--radius-s); padding: 10px 14px; margin: 0;
}
.delivery-progress-done { background: var(--brand-tint); font-weight: 600; }
.cart-qty-form .stepper { flex: 0 0 auto; }

/* ---------- ???????????? ???????? ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.checkout-form { display: flex; flex-direction: column; gap: 20px; }
.checkout-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checkout-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.checkout-aside { max-width: 460px; }
.delivery-block { display: flex; flex-direction: column; gap: 12px; }

/* ---------- ?????????? ???????? ---------- */
.order-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.order-success {
    background: var(--brand-tint); border: 1px solid var(--brand);
    border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
}
.order-success-title { font-size: 24px; color: var(--brand-deep); margin: 0 0 6px; }
.order-success p { margin: 0; }
.order-statuses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.lookup-form { max-width: 460px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* ---------- ????-???????? ---------- */
.pay-card {
    max-width: 480px; margin: 40px auto; text-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 24px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: var(--shadow);
}
.pay-brand { margin: 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pay-title { margin: 0; font-family: var(--font-head); font-size: 26px; }
.pay-amount { margin: 0; font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--accent-dark); }
.pay-cancel { color: var(--muted); }

/* ---------- ??? ---------- */
.optom-hero { margin-bottom: 28px; }
.optom-flower { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; min-width: 0; }
.optom-flower span { overflow-wrap: anywhere; }
.optom-flower img { width: 60px; height: 75px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.optom-add { display: flex; gap: 8px; align-items: center; }
.optom-add .qty-input { width: 84px; }
.optom-teaser { background: var(--brand-tint); border-radius: var(--radius); padding: 32px 20px; margin-bottom: 48px; }
.optom-teaser-inner { max-width: 640px; }
.optom-mini-list { list-style: none; padding: 0; margin: 12px 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.optom-mini-list li::before { content: '?'; color: var(--brand); margin-right: 8px; }

/* ---------- ???????? ---------- */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review {
    margin: 0; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; font-size: 16px;
}
.review footer { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
    padding: 4px 16px;
}
.faq-item summary {
    cursor: pointer; padding: 14px 0; font-size: 17px; font-weight: 600;
    list-style: none; position: relative; padding-right: 34px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--brand); font-weight: 700;
}
.faq-item[open] summary::after { content: '?'; }
.faq-item p { margin: 0 0 14px; font-size: 16px; color: var(--ink); }

/* ---------- ???? ---------- */
.blog-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.blog-card {
    display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink);
}
.blog-card:hover { border-color: var(--brand); }
.blog-card-date { color: var(--muted); font-size: 14px; }
.blog-card-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.blog-card-excerpt { font-size: 16px; color: var(--ink); }
.blog-card-more { color: var(--brand-deep); font-weight: 600; font-size: 15px; }
.article { max-width: 760px; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body h2 { font-size: 22px; margin: 26px 0 10px; }
.article-body p { margin: 0 0 14px; }
.article-body a { color: var(--brand-deep); text-decoration: underline; }
.article-cta { background: var(--brand-tint); border-radius: var(--radius); padding: 16px 18px; margin-top: 10px; }
.article-cta p { margin: 0; font-size: 16px; }
.article-others { margin-top: 28px; display: grid; gap: 10px; }
.article-cover-preview { border-radius: var(--radius-s); object-fit: cover; }

/* ---------- ????????? ---------- */
@media (min-width: 640px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .product-page { grid-template-columns: 1fr 1fr; padding: 24px; }
    .section-title { font-size: 28px; }
    h1 { font-size: 36px; }
    .hero-title { font-size: 38px; }
    .hero-actions { flex-direction: row; }
    .hero-actions .btn { width: auto; }
}

@media (min-width: 960px) {
    .header-inner { gap: 24px; padding: 10px 0; }
    .logo { flex: 0 0 auto; text-align: left; font-size: 26px; }
    .nav-toggle { display: none; }
    html.js .main-nav { display: block; flex: 1 1 auto; }
    .main-nav { flex: 1 1 auto; border-top: none; }
    .nav-scroll { padding: 0; gap: 24px; }
    .nav-link { padding: 10px 0; font-size: 16px; border-bottom: none; }
    .nav-current { border-bottom: none; color: var(--brand); font-weight: 700; }
    .site-menu { display: none; }
    .hero { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
    .hero-img { width: 100%; margin-inline: 0; aspect-ratio: auto; height: 100%; min-height: 340px; border-radius: var(--radius); }
    .hero-title { font-size: 44px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr; }
    .nav-link { padding: 14px 18px; font-size: 17px; }
    .product-page { gap: 28px; }
    .section { margin-bottom: 72px; }
    h1 { font-size: 44px; }
    .cart-row { grid-template-columns: 96px 1fr auto auto; align-items: center; }
    .cart-controls { grid-column: auto; flex-wrap: nowrap; }
    .checkout-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 32px; }
    .checkout-aside { position: sticky; top: 16px; }
    .order-grid { grid-template-columns: minmax(0, 1fr) 360px; }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
    .filter-group { align-items: baseline; }
    .buy-row .btn { flex: 0 0 auto; }
}

/* ---------- ?????????, ???? C: ???? ???, ????????, ?????, ???????? ???????? ---------- */

/* ???? ???/???????????? + ????????? select ??? ??? */
.date-chips, .slot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
html.js .select-native-date, html.js .select-native-slot { display: none; }
html.js .select-native-date.select-open, html.js .select-native-slot.select-open { display: block; max-width: 320px; }
html:not(.js) .date-chips, html:not(.js) .slot-chips { display: none; }
.chip-disabled { opacity: 0.45; cursor: not-allowed; border-style: dashed; }
.chip-disabled:hover { border-color: var(--line); color: var(--muted); }

/* ???????? ?????????? ?? ??????????? */
body.filters-open::after {
    content: ''; position: fixed; inset: 0; background: rgba(31, 42, 34, 0.4); z-index: 55;
}
@media (min-width: 960px) {
    #catalogFilters[hidden] { display: block; }
    body.filters-open::after { content: none; }
}

/* ?????: ??????????/?????????/????/????????? */
.address-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) {
    .address-extra { grid-template-columns: repeat(4, 1fr); }
}

/* ?????????? ?????????? ???????? */
.payment-cards { display: grid; gap: 12px; }
.payment-card {
    display: grid; gap: 2px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
    padding: 14px 16px; cursor: pointer; background: var(--surface);
}
.payment-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-card-title { font-weight: 600; font-size: 17px; color: var(--ink); }
.payment-card-note { font-size: 14px; color: var(--muted); }
.payment-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.payment-card-active { border-color: var(--brand); background: var(--brand-tint); }
.payment-card:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ??????????? ???? ????? */
.order-collapse { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.order-collapse summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; }
.order-collapse summary::-webkit-details-marker { display: none; }
.order-collapse summary::after { content: '?'; float: right; color: var(--muted); }
.order-collapse[open] summary::after { content: '?'; }
.order-collapse .checkout-items { padding: 0 16px 14px; }

/* ???????? ???????? ???????????? ?? ??????????? */
.checkout-sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(31, 42, 34, 0.12);
    font-size: 18px; font-weight: 700; color: var(--ink);
}
@media (min-width: 640px) {
    .checkout-sticky-bar { display: none; }
}

/* ?????????? ????????: ?????????? ?????????? */
.order-timeline {
    list-style: none; margin: 0 0 20px; padding: 0;
    display: flex; flex-wrap: wrap; gap: 0;
    counter-reset: step;
}
.timeline-step {
    position: relative; flex: 1 1 100px; min-width: 84px;
    padding: 34px 4px 0; text-align: center;
    font-size: 14px; color: var(--muted);
}
.timeline-step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px; line-height: 26px; border-radius: 50%;
    border: 1.5px solid var(--line); background: var(--surface);
    font-size: 14px; font-weight: 700; color: var(--muted);
}
.timeline-step::after {
    content: ''; position: absolute; top: 13px; left: 0; right: 0;
    height: 2px; background: var(--line);
}
.timeline-step:first-child::after { left: 50%; }
.timeline-step:last-child::after { right: 50%; }
.timeline-done { color: var(--brand-deep); font-weight: 600; }
.timeline-done::before { border-color: var(--brand); background: var(--brand); color: #fff; }
.timeline-done::after { background: var(--brand); }
.timeline-current { color: var(--ink); font-weight: 700; }
.timeline-current::before {
    border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep);
    box-shadow: 0 0 0 4px var(--brand-tint);
}
.timeline-skip::before { border-style: dashed; }
.order-next { margin-bottom: 20px; }
.order-next .muted-note { font-size: 16px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.order-repeat-form { display: inline-flex; }
.order-canceled {
    background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-dark);
    border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
}
.order-canceled-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; font-family: var(--font-head); }
.site-menu-order { color: var(--brand); font-weight: 700; }

/* ???????? ???????? ????????? ?? ??????????? */
.buy-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 59;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(31, 42, 34, 0.12);
}
.buy-sticky-info { display: grid; gap: 2px; min-width: 0; }
.buy-sticky-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-sticky-total { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--accent-dark); }
.has-cart-bar .buy-sticky { bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) {
    .buy-sticky { display: none; }
}


/* ---------- ?????????, ???? D: ????????? ????-????? ---------- */

.only-js { display: none; }
html.js .only-js { display: inline-flex; }

#opt-sheet .section-head { align-items: center; margin-bottom: 8px; }
#opt-sheet .section-head .opt-sheet-intro { margin: 0; flex: 1 1 260px; }

/* ???? ??????????? ? ??? ?????????? ???? ??? ?????????? */
.optom-steps { list-style: none; counter-reset: optstep; display: grid; gap: 10px; margin: 0 0 14px; padding: 0; }
.optom-steps li { counter-increment: optstep; position: relative; padding-left: 40px; font-size: 16px; color: var(--ink); }
.optom-steps li::before {
    content: counter(optstep); position: absolute; left: 0; top: -2px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand-tint); color: var(--brand-deep);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
}
@media (min-width: 640px) {
    .optom-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .optom-steps li { padding: 40px 8px 0; text-align: center; }
    .optom-steps li::before { left: 50%; transform: translateX(-50%); top: 0; }
}

/* ????-?????: ????????? = ?????????? ?? ???????????, ??? ?? ?????????? */
.opt-sheet { display: flex; flex-direction: column; gap: 14px; }
.opt-sheet-list { display: flex; flex-direction: column; gap: 10px; }
.opt-row {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 14px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px;
}
.opt-row-active { border-color: var(--brand); background: var(--brand-tint); }
.opt-row-media { align-self: start; flex: 0 0 auto; }
.opt-row-media img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--radius-s); display: block; }
.opt-row-main { min-width: 0; }
.opt-row-name { display: block; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.opt-row-name:hover { color: var(--brand-deep); text-decoration: underline; }
.opt-row-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.opt-row-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt-row-tiers .muted-note { font-size: 14px; }
.opt-row-avail { margin: 8px 0 0; font-size: 14px; color: var(--brand-deep); font-weight: 600; }
.opt-row-avail-muted { color: var(--muted); font-weight: 400; }
.opt-row-tier-hint { margin: 6px 0 0; font-size: 14px; color: var(--brand-deep); font-weight: 600; }
.opt-row-buy {
    grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap;
    gap: 10px 14px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px;
}
.opt-row-price { margin: 0; font-size: 15px; color: var(--muted); white-space: nowrap; }
.opt-row-price strong { font-size: 18px; color: var(--accent-dark); }
.opt-row-price .price-unit { font-size: 14px; }
.opt-row-discount {
    margin-left: 6px; background: var(--brand); color: #fff; border-radius: 999px;
    padding: 2px 10px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.opt-row .stepper { flex: 0 0 auto; }
.opt-row .stepper .stepper-value { width: 64px; }
.opt-row-total { margin: 0 0 0 auto; font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; min-width: 76px; text-align: right; }

@media (min-width: 720px) {
    .opt-row { grid-template-columns: 64px minmax(0, 1fr) 330px; align-items: start; }
    .opt-row-buy { grid-column: auto; border-top: none; padding-top: 0; margin-top: 0; }
}

/* ???????? ???????? ????? ?? ??????????? */
.opt-sheet-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--brand); color: #fff;
    box-shadow: 0 -4px 16px rgba(31, 42, 34, 0.25);
}
.opt-sheet-bar[hidden] { display: none; }
.opt-sheet-bar-text { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-sheet-bar .btn { flex: 0 0 auto; background: #fff; color: var(--brand-deep); }
.opt-sheet-bar .btn:hover { background: var(--bg-soft); color: var(--brand); }
@media (max-width: 639px) {
    body.sheet-bar-on .sticky-cart { display: none; }
    body.sheet-bar-on .buy-sticky { display: none; }
    body.sheet-bar-on { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    body.sheet-bar-on .opt-sheet-submit { display: none; }
}
@media (min-width: 640px) {
    .opt-sheet-bar { display: none; }
}

/* ????????? ???????? */
.opt-request {
    display: flex; flex-direction: column; gap: 14px; max-width: 520px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px; margin-top: 16px;
}

/* ?????????? ???????? ???????? (???????? ?????????? ?????) */
.print-only { display: none; }
.print-header { margin: 0 0 16px; }
.print-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.print-sub { font-size: 13px; margin: 0; color: #444; }
@media print {
    .site-header, .site-menu, .site-footer, .demo-bar, .skip-link, .sticky-cart,
    .opt-sheet-bar, .opt-sheet-submit, .opt-sheet-intro, .opt-row .stepper,
    .opt-row-total, .opt-row-tier-hint, .opt-request, .only-js, .flash,
    .optom-hero, .opt-sheet > .muted-note { display: none !important; }
    .print-only { display: block; }
    body { background: #fff; }
    body.sheet-bar-on { padding-bottom: 0; }
    .opt-sheet, .opt-sheet-list { gap: 0; display: block; }
    .opt-row {
        display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
        border: none; border-bottom: 1px solid #B8B2A6; border-radius: 0;
        padding: 10px 0; background: #fff; page-break-inside: avoid;
    }
    .opt-row-active { background: #fff; }
    .opt-row-media img { width: 44px; height: 55px; }
    .opt-row-buy { grid-column: auto; border-top: none; padding: 0; margin: 0; }
    .opt-row-price { margin: 0; }
    .opt-row-meta, .opt-row-avail { color: #333; }
    .chip { border: 1px solid #777; color: #000; background: #fff; }
    .muted-note { color: #333; }
}

/* Полноэкранный просмотр фото товара */
.gallery-lightbox { padding: 0; border: none; background: transparent; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; }
.gallery-lightbox::backdrop { background: rgba(18, 24, 19, 0.94); }
.gallery-lightbox img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: auto; }

/* Плавное появление картинок при загрузке */
img { transition: opacity 0.3s ease; }
.img-loading { opacity: 0; }
