/* ===== ЗООСУВЕНИРЫ: оформление в стиле витрины. Цвета и шрифты меняются здесь ===== */
:root {
  --bg: #FBF7F2;            /* фон — тёплый крем */
  --surface: #FFFFFF;       /* карточки */
  --soft: #F4ECE3;          /* фон чередующихся блоков */
  --line: #E5DAD0;
  --text: #2F2A27;
  --muted: #5E544E;
  --green: #3F6B4B;         /* кнопки и ссылки (тёмный шалфей) */
  --green-hover: #335A3E;
  --sage: #96B498;          /* шалфей из логотипа — декор */
  --sage-light: #E6EFE5;
  --coral: #EB8466;         /* коралл из логотипа — декор */
  --coral-dark: #A9492D;    /* коралл для текста и меток */
  --coral-light: #FCE3D8;
  --focus: #1F5FBF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(47, 42, 39, .06), 0 6px 20px rgba(47, 42, 39, .06);
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;
  --fs: 17px;
  /* прежние имена — для админки */
  --kraft: var(--green); --kraft-dark: var(--green-hover); --sand: var(--coral-light); --rose: var(--coral-light); --lavender: #E4DCEC; --sky: #DCE7EA;
}
/* Версия для слабовидящих */
html.a11y { --bg: #fff; --surface: #fff; --soft: #fff; --text: #000; --muted: #000; --line: #000; --green: #003B12; --green-hover: #000; --coral-dark: #6B1A00; --sage-light: #fff; --coral-light: #fff; --fs: 21px; --shadow: none; }
html.a11y body { letter-spacing: .02em; line-height: 1.75; }
html.a11y .card, html.a11y .tile, html.a11y input, html.a11y select, html.a11y textarea, html.a11y .faq details { border: 2px solid #000 !important; }
html.a11y a { text-decoration: underline !important; }
html.a11y .topbar, html.a11y .site-footer { background: #000; color: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs)/1.6 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.small { font-size: .875rem; color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 600; color: var(--coral-dark); margin-bottom: .8em; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 2px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; text-align: center; }
.btn:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-small { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; font: inherit; cursor: pointer; }

/* Полоса над шапкой */
.topbar { background: var(--green); color: #fff; font-size: .88rem; }
/* Полоса над шапкой всегда видна. На телефоне закреплена только она, на компьютере — вместе с шапкой одним блоком. */
.site-top { display: contents; }
.topbar { position: sticky; top: 0; z-index: 30; }
html { scroll-padding-top: 56px; }
@media (max-width: 639px) {
  .topbar { font-size: .8rem; }
  .topbar .topbar-row { flex-wrap: nowrap; padding: 5px 0; gap: 8px; }
  .topbar .topbar-row p { flex: 1; min-width: 0; }
  .topbar p { line-height: 1.3; }
  .topbar-extra { display: none; }
  .a11y-toggle { padding: 4px 8px; flex-shrink: 0; }
  .a11y-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1000px) {
  .site-top { display: block; position: sticky; top: 0; z-index: 30; }
  .site-top .topbar, .site-top .site-header { position: static; }
  html { scroll-padding-top: 170px; }
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 6px 0; }
.topbar p { margin: 0; }
.a11y-toggle { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 12px; min-height: 36px; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.a11y-toggle:hover { background: rgba(255,255,255,.15); }

/* Шапка */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 8px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.logo img { width: 44px; height: 44px; border-radius: 8px; }
.logo-name { display: block; font: 600 1.08rem/1.1 var(--serif); letter-spacing: .05em; }
.logo-sub { display: block; font-size: .72rem; color: var(--muted); }
.header-search { flex: 1; max-width: 380px; position: relative; display: none; }
.header-search input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 46px 8px 16px; background: var(--bg); font: inherit; font-size: .95rem; }
.header-search button { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.header-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.phone { display: none; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; padding: 0 8px; }
.tool { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text); background: none; border: 0; cursor: pointer; text-decoration: none; }
.tool:hover { background: var(--soft); color: var(--text); }
.count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral-dark); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; }
.dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.quick { display: none; margin-left: 6px; }
.burger { display: inline-grid; align-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 2px auto; border-radius: 1px; }
.main-nav { border-top: 1px solid var(--line); display: none; }
.main-nav.open { display: block; }
.nav-row { display: flex; flex-direction: column; padding: 8px 0 12px; }
.main-nav a, .more summary { padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.main-nav a:hover, .more summary:hover, .main-nav [aria-current] { background: var(--soft); }
.more summary { list-style: none; display: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ' ▾'; font-size: .75em; }
.more-menu { display: grid; }
@media (max-width: 479px) { .hide-xs { display: none; } .logo-sub { display: none; } .logo-name { font-size: .95rem; letter-spacing: .01em; } .logo { gap: 6px; } .logo img { width: 38px; height: 38px; } .header-row { gap: 4px; } .tool { width: 40px; height: 40px; } }
.nav-fav { display: block; }
@media (min-width: 480px) { .nav-fav { display: none !important; } }
@media (min-width: 760px) { .header-search { display: block; } }
@media (min-width: 1100px) {
  .phone, .quick { display: inline-flex; }
  .tool-phone, .burger { display: none; }
  .main-nav { display: block; }
  .nav-row { flex-direction: row; align-items: center; gap: 2px; padding: 0; overflow: visible; }
  .main-nav a, .more summary { padding: 10px 12px; border-radius: 999px; }
  .more { position: relative; }
  .more summary { display: block; }
  .more-menu { position: absolute; left: 0; top: calc(100% + 4px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
  .more:not([open]) .more-menu { display: none; }
}

/* Секции */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section-tight { padding: 28px 0 64px; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.page-head { padding: 32px 0 8px; }
.page-head h1 { margin-bottom: .35em; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Первый экран */
.hero { padding: 36px 0 52px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 56px 0 72px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .93rem; }
.hero-facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: middle; }
.hero-photo { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); aspect-ratio: 1; max-width: 520px; margin: 0 auto; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-caption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 8px; }

/* Плитки разделов */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); color: var(--text); }
.tile:hover .tile-name { color: var(--green); text-decoration: underline; }
.tile-img { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-img svg { opacity: .7; }
.tile-body { padding: 12px 14px 16px; }
.tile-name { font-weight: 600; display: block; line-height: 1.3; }
.tile-note { font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; align-items: center; }
.chips span { color: var(--muted); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .92rem; }
.chip:hover { border-color: var(--green); color: var(--green); }
.tone-mug, .tone-cert { background: var(--coral-light); } .tone-key { background: #EFE5D3; } .tone-wood, .tone-frame { background: #EEE3CC; } .tone-car { background: #DCE7EA; }
.tone-badge { background: #E4DCEC; } .tone-magnet { background: #F0E1D4; } .tone-glass { background: var(--sage-light); } .tone-tree { background: #DCEADC; }
.tone-bag { background: #F3E6DA; } .tone-stand { background: #E2E6EE; } .tone-cover, .tone-soap, .tone-shirt, .tone-leather { background: #ECE4DA; } .tone-paw { background: var(--soft); }

/* Подборка по породе */
.breed { display: grid; gap: 16px 32px; align-items: end; padding: 24px; border-radius: 20px; background: linear-gradient(135deg, var(--sage-light), #F6F1EA 60%, var(--coral-light)); }
@media (min-width: 900px) { .breed { grid-template-columns: 1fr 1.3fr; padding: 32px 36px; } }
.breed h2 { margin-bottom: .3em; }
.breed-text p { margin: 0; color: var(--muted); }
.breed-fields { display: grid; gap: 12px; }
@media (min-width: 600px) { .breed-fields { grid-template-columns: 1fr 1.3fr auto; align-items: end; } }
.breed-fields label { display: grid; gap: 6px; margin: 0; font-size: .95rem; font-weight: 500; }
.breed-compact { margin-bottom: 24px; }
.breed-compact h2 { font-size: 1.4rem; }

/* Преимущества, шаги */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 8px; }
.features article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.features p { margin: 0; color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sage-light); color: var(--green); margin-bottom: 14px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: s; padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: var(--coral-light); color: var(--coral-dark); font: 600 1.1rem var(--serif); }
.steps b { color: var(--text); }
.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.split-card p { color: var(--muted); }
.about-short { display: grid; gap: 28px; align-items: center; }
.about-short img { width: 100%; max-width: 320px; height: auto; border-radius: 20px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .about-short { grid-template-columns: 320px 1fr; gap: 56px; } }
.about-short p { color: var(--muted); }

/* Сертификат — как на витрине */
.cert-card { aspect-ratio: 1.6; max-width: 480px; width: 100%; border-radius: 20px; padding: 28px; background: linear-gradient(135deg, var(--coral-light) 0%, #FFF6EF 50%, var(--sage-light) 100%); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); text-decoration: none; color: var(--text); margin-bottom: 24px; }
a.cert-card:hover { color: var(--text); transform: translateY(-2px); transition: transform .15s; }
.cert-top { display: flex; align-items: center; gap: 12px; font: 600 1rem/1.2 var(--serif); letter-spacing: .06em; }
.cert-top img { width: 48px; height: 48px; border-radius: 8px; }
.cert-title { font: 600 clamp(24px, 4vw, 34px)/1.15 var(--serif); color: var(--coral-dark); }
.cert-sum { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; margin: 0 !important; display: inline-flex !important; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.pill input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Карточки товаров */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .grid { gap: 24px; } }
.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; } }
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; border: 0; box-shadow: var(--shadow); }
.product-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; color: var(--text); overflow: hidden; }
.product-media svg { opacity: .7; }
.product-media img, .cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--coral-dark); margin-bottom: 4px; }
.product-title { font: 600 1rem/1.3 var(--sans); margin-bottom: 8px; flex: 1; }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { text-decoration: underline; }
.product-desc { font-size: .92rem; color: var(--muted); }
.product-price { font: 600 1.15rem var(--serif); margin-bottom: 12px; }
.product-actions { display: flex; gap: 8px; align-items: center; }
.product-actions .btn { flex: 1; padding: 0 10px; }
.fav { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--green); display: grid; place-items: center; cursor: pointer; }
.fav[aria-pressed="true"] svg { fill: var(--coral); stroke: var(--coral-dark); }
.badge { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--coral-light); color: var(--coral-dark); }
.badge-new { background: var(--sage-light); color: var(--green); }
.product.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--green); } 100% { box-shadow: var(--shadow); } }
@media (max-width: 420px) { .product-body { padding: 10px 10px 12px; } .product-actions .btn { font-size: .85rem; } .fav { width: 40px; height: 40px; } }
.posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post h2 { font-size: 1.35rem; } .post h2 a { color: var(--text); text-decoration: none; } .post time { font-size: .85rem; color: var(--muted); }

/* Каталог */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.catalog-search { grid-column: 1 / -1; }
.search-box { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.search-box:focus-within { border-color: var(--green); }
.search-box input[type=search] { flex: 1; min-width: 0; height: 52px; min-height: 0; border: 0 !important; background: none; font: inherit; color: var(--text); outline: none; box-shadow: none !important; padding: 0; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--text); display: flex; justify-content: space-between; gap: 12px; }
.suggest li small { color: var(--muted); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--soft); }
.suggest mark { background: none; color: var(--green); font-weight: 600; }
.search-hint { margin: 10px 4px 0; padding: 10px 14px; border-radius: 10px; background: var(--sage-light); color: var(--text); }
.filters { display: grid; gap: 18px; position: sticky; top: 180px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend, fieldset legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.filters .n { color: var(--muted); font-size: .85em; }
.filters-actions { display: grid; gap: 8px; position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; }
.filters-toggle { display: none; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-meta { color: var(--muted); margin: 0; }
.sort { display: flex !important; align-items: center; gap: 8px !important; margin: 0 !important; font-size: .9rem; }
.sort select { width: auto; min-height: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .filters-toggle { display: inline-flex; justify-self: start; }
  .filters { display: none; position: static; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .filters.open { display: grid; }
}
.filters-count { background: var(--coral-dark); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.catalog-text { margin-top: 40px; }

/* Страница товара */
.product-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .product-page { grid-template-columns: 1fr; gap: 24px; } }
.pgallery-main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); }
.pgallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pgallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pgallery-thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface); }
.pgallery-thumbs button[aria-current] { border-color: var(--green); }
.pgallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-price.big { font: 600 2rem var(--serif); margin-bottom: 6px; }
.product-info .product-actions { margin: 20px 0 8px; flex-wrap: wrap; }
.product-info .product-actions .btn { flex: 1 1 160px; }
.discount { padding: 10px 14px; border-radius: 10px; background: var(--coral-light); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 20px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 8px; } }
.product-body-text { border-top: 1px solid var(--line); padding-top: 16px; }

/* Корзина */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-thumb { width: 72px; height: 72px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: var(--coral-dark); }
.cart-thumb svg { width: 36px; height: 36px; opacity: .8; }
.cart-item h3 { font: 600 1rem/1.3 var(--sans); margin: 0 0 4px; }
.cart-item h3 a { color: var(--text); text-decoration: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--text); }
.qty span { min-width: 24px; text-align: center; }
.remove { border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: .85rem; padding: 4px 0; }
.cart-total { margin: 16px 4px; font-size: 1.05rem; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cart-item { grid-template-columns: 56px minmax(0, 1fr); } .cart-thumb { width: 56px; height: 56px; } .cart-item .qty { grid-column: 2; justify-self: start; } }

/* Формы */
form label:not(.check):not(.pill) { display: grid; gap: 6px; margin-bottom: 14px; font-size: .95rem; }
input:not([type=checkbox]):not([type=radio]), textarea, select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #B9AEA5; border-radius: 10px; background: #fff; font: inherit; color: var(--text); }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(63, 107, 75, .18); }
form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
form h2 { font-size: 1.4rem; }
.order-form .btn, .two-col form .btn, .cert-form .btn { width: 100%; margin: 6px 0 12px; }
.subscribe { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 180px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.contacts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 20px; }
.contacts dt { color: var(--muted); }
.contacts dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .contacts { grid-template-columns: 1fr; gap: 2px; } .contacts dd { margin-bottom: 10px; } }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-size: 1.4em; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery-photo { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--surface); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-photo:hover img { transform: scale(1.03); }
.gallery-photo span { position: absolute; left: 8px; right: 8px; bottom: 8px; width: fit-content; max-width: calc(100% - 16px); padding: 4px 10px; background: rgba(255,255,255,.92); color: var(--text); border-radius: 8px; font-size: .82rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Подвал */
.site-footer { background: var(--text); color: #EDE6DF; padding: 48px 0 24px; margin-top: 32px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.footer-grid ul.docs { columns: 1; }
.footer-grid li { margin-bottom: 6px; break-inside: avoid; }
.footer-h { font: 600 1rem var(--sans); margin-bottom: 12px; color: #fff; }
.footer-docs { margin-top: 20px; }
.logo-footer { display: flex; align-items: center; gap: 10px; font: 600 1.15rem var(--serif); letter-spacing: .05em; color: #fff; }
.logo-footer img { border-radius: 8px; }
.copyright { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); color: #CFC6BE; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Уведомления, cookie, наверх */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; z-index: 60; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 12px; background: var(--text); color: #fff; transition: transform .25s, visibility .25s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 10px 14px; display: flex; gap: 12px; align-items: center; font-size: .82rem; line-height: 1.45; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie .btn { flex-shrink: 0; }
@media (min-width: 640px) { .cookie { font-size: .9rem; padding: 14px 16px; left: 16px; bottom: 16px; } }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--green); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.cookie:not([hidden]) ~ .to-top { bottom: 110px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Кабинет, заказы, таблицы */
.alert { padding: 12px 16px; border-radius: 10px; background: #f6dcd6; color: #6d2c22; margin-bottom: 16px; }
.alert-ok { background: var(--sage-light); color: #2f4a23; }
.auth-form { max-width: 440px; }
.auth-form .btn { width: 100%; margin: 4px 0 12px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-weight: 600; background: var(--soft); }
.table tfoot th { font-size: 1.05rem; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; background: var(--soft); white-space: nowrap; }
.status-new { background: var(--coral-light); } .status-confirmed, .status-making { background: #F0E1C4; } .status-paid { background: var(--sage-light); }
.status-shipped { background: #DCE7EA; } .status-delivered { background: #CFDFC4; } .status-cancelled { background: #E6E0DA; color: var(--muted); }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.order-head .small { margin: 0 0 4px; }
.history { padding-left: 1.2em; color: var(--muted); }
.history li { margin-bottom: 6px; }
.history span { font-size: .85rem; margin-right: 6px; }
.reviews { display: grid; gap: 14px; }
.review { margin: 0; }
.review footer { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.post-cover { width: calc(100% + 44px); margin: -22px -22px 14px; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; }
.post-hero, .prose img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Админка: таблица цен */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; margin-bottom: 12px; }
.toolbar label { margin: 0 !important; min-width: 200px; }
.price-table td { vertical-align: middle; }
.price-table .price-input { width: 110px; min-height: 40px; padding: 6px 10px; }
.price-table select { width: auto; min-height: 40px; }
.sticky-save { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; margin: 0; border-top: 1px solid var(--line); }
