/* ZANI — стили сайта. Цвета и размеры меняются в :root */
:root {
  --bg: #f7f3ed;
  --surface: #ffffff;
  --alt: #efe8de;
  --ink: #1d1b18;
  --muted: #6d665c;
  --line: #e2d9cc;
  --accent: #23493c;
  --accent-ink: #ffffff;
  --kaspi: #f14635;
  --kaspi-hover: #d93a2a;
  --star: #e8a33d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29, 27, 24, .04), 0 8px 24px rgba(29, 27, 24, .06);
  --wrap: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #1a382e; }
.btn-kaspi { background: var(--kaspi); color: #fff; }
.btn-kaspi:hover { background: var(--kaspi-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--accent); }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 237, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font: 600 30px/1 var(--font-brand); letter-spacing: .14em; text-decoration: none; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 10px; }
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .hide-sm { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
}

/* hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-media img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.trust-row div { display: flex; flex-direction: column; }
.trust-row strong { font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; }
.trust-row span { font-size: 13px; color: var(--muted); line-height: 1.3; }
@media (min-width: 900px) { .hero { padding: 64px 0 80px; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

/* секции */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0 56px; }
.section-alt { background: var(--alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; color: var(--accent); }
.page-head { padding: 40px 0 8px; }
@media (min-width: 768px) { .section { padding: 80px 0; } .page-head { padding: 64px 0 16px; } }

/* категории */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--surface); aspect-ratio: 1; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile span { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255, 255, 255, .94); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 15px; line-height: 1.25; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* карточки */
.grid { display: grid; gap: 16px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-articles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 768px) { .grid { gap: 24px; } }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-img-wide { aspect-ratio: 16 / 9; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 4px 0 2px; }
.card-body h3 a { text-decoration: none; }
.card-meta { font-size: 13px; font-weight: 600; }
.card-type { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 12px; }
.card-actions .btn { min-height: 44px; font-size: 14px; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.stars { color: var(--star); font-weight: 700; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: 22px; font-weight: 800; }
.price-row s { color: var(--muted); font-size: 15px; }
.price-lg .price { font-size: 32px; }

/* почему мы */
.why-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.why { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.why svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: 12px; }
.why p { color: var(--muted); margin: 0; font-size: 15px; }

/* отзывы */
.reviews-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review-stars { color: var(--star); letter-spacing: 2px; margin-bottom: 8px; }
.review blockquote { margin: 0 0 14px; font-size: 15px; flex: 1; }
.review figcaption { font-size: 14px; }
.review figcaption a { text-decoration: none; }

/* FAQ */
.faq details { background: var(--surface); border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* CTA */
.cta { background: var(--accent); color: #fff; border-radius: 28px; padding: 32px 24px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta p { opacity: .85; margin: 0; }
.cta h2 { margin-bottom: 8px; }
@media (min-width: 768px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 48px; } }

/* каталог */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 18px; font: 600 15px var(--font); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.product-card.hidden { display: none; }

/* товар */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 16px; padding-bottom: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { padding: 8px 0 24px; }
.product-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.product-grid > *, .product-info > *, .hero-grid > * { min-width: 0; }
.gallery-main { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 4; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumb { flex: none; width: 60px; height: 80px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; cursor: pointer; }
.thumb[aria-current="true"] { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.rating-link { display: inline-flex; gap: 8px; text-decoration: none; margin-bottom: 16px; font-size: 15px; }
.highlights { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.highlights li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.buy-box { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.buy-box .muted.small { margin: 4px 0 16px; }
.buy-secondary { display: flex; gap: 8px; margin-top: 10px; }
.buy-secondary .btn { flex: 1; }
.buy-facts { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.buy-facts li { display: flex; gap: 10px; align-items: flex-start; }
.buy-facts svg { color: var(--accent); margin-top: 1px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } .gallery { position: sticky; top: 88px; align-self: start; } }
.product-info { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.product-info h2 { font-size: 24px; margin-top: 8px; }
@media (min-width: 900px) { .product-info { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; } }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.specs th, .specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 44%; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sticky-buy { display: none; }
@media (max-width: 899px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .25s; }
  .sticky-buy.show { transform: none; }
  .sticky-buy .btn { flex: 1; max-width: 240px; }
}

/* статьи */
.article { padding: 8px 0 56px; }
.article h1 { font-size: clamp(30px, 4.4vw, 46px); }
.prose { font-size: 17px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--alt); }
.prose .lead { font-size: 19px; }
.note { background: #e6efe9; border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 1.4em 0; font-size: 16px; }
.note.warn { background: #fbece6; border-left-color: var(--kaspi); }

/* подвал */
.site-footer { background: var(--ink); color: #d9d3c9; padding: 56px 0 24px; margin-top: 0; }
.site-footer .muted { color: #a59d91; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.logo-footer { color: #fff; margin-bottom: 12px; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col a { display: block; text-decoration: none; padding: 5px 0; font-size: 15px; }
.footer-col a:hover, .footer-social a:hover { color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-social a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #3a362f; margin-top: 40px; padding-top: 20px; font-size: 13px; }

/* плавающая кнопка */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(35, 73, 60, .35); }
.fab svg { width: 22px; height: 22px; }
@media (max-width: 899px) { .fab-up { bottom: 84px; } .fab span { display: none; } .fab { padding: 14px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* контакты в подвале и блок Instagram */
.footer-contacts { display: grid; gap: 8px; margin-top: 4px; }
.footer-contacts a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-contacts a:hover { color: #fff; }
.ig-block { background: var(--surface); border-radius: 28px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); }
.ig-block h2 { margin-bottom: 6px; }
.ig-block p { margin: 0; }
@media (min-width: 768px) { .ig-block { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 48px; } }
.out-of-stock { color: var(--muted); font-size: 16px; font-weight: 700; }
