/* ═══════════════════════════════════════════════════════════════════════════
   LIQUID GLASS — visual layer for all public pages.
   Loaded after main.css / chairs.css / page CSS. Pure presentation: no layout
   logic, no copy. Interactive parts (cursor, pointer glow, liquid edges) are
   driven by static/js/glass.js, which adds the `.lg` hooks.
   ═══════════════════════════════════════════════════════════════════════════ */

@property --lg-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --lg-bg: rgba(255, 255, 255, .46);
  --lg-bg-strong: rgba(255, 255, 255, .64);
  --lg-bg-dark: rgba(22, 34, 20, .42);
  --lg-line: rgba(255, 255, 255, .72);
  --lg-line-soft: rgba(255, 255, 255, .38);
  --lg-blur: 22px;
  --lg-sat: 175%;
  --lg-shadow: 0 1px 0 rgba(255,255,255,.75) inset, 0 -1px 0 rgba(255,255,255,.18) inset, 0 18px 50px -18px rgba(28, 43, 26, .28), 0 2px 8px rgba(28, 43, 26, .06);
  --lg-shadow-hover: 0 1px 0 rgba(255,255,255,.9) inset, 0 28px 70px -20px rgba(28, 43, 26, .38), 0 0 0 1px rgba(255,255,255,.5), 0 0 42px -6px rgba(223, 184, 112, .45);
  --lg-honey: 223, 184, 112;
  --lg-sage: 120, 168, 112;
  --lg-radius: 22px;
  --lg-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ── Living ambient backdrop (what the glass refracts) ─────────────────── */
html { background: #eef0e7; }
body { background: transparent; }
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34vmax 34vmax at 14% 20%, rgba(var(--lg-sage), .70), transparent 64%),
    radial-gradient(30vmax 30vmax at 86% 14%, rgba(var(--lg-honey), .72), transparent 62%),
    radial-gradient(38vmax 38vmax at 74% 78%, rgba(120, 178, 160, .62), transparent 64%),
    radial-gradient(28vmax 28vmax at 20% 88%, rgba(222, 176, 120, .66), transparent 62%),
    radial-gradient(22vmax 22vmax at 50% 50%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(160deg, #f3eedf 0%, #e2ebdc 55%, #efe5d2 100%);
  filter: saturate(1.15);
  animation: lg-drift 38s var(--lg-ease) infinite alternate;
}
@keyframes lg-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3vmax, -2vmax, 0) rotate(6deg) scale(1.06); }
  100% { transform: translate3d(-3vmax, 2vmax, 0) rotate(-5deg) scale(1.03); }
}
::selection { background: rgba(var(--lg-honey), .45); color: var(--forest); }

/* Plain section bands become see-through so the backdrop shows. */
.ch-section, .ch-games-section { background: transparent; }
.ch-alt { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.34) 50%, rgba(255,255,255,.18)); }

/* ── Glass surfaces ───────────────────────────────────────────────────── */
.ch-set, .ch-cfg, .ch-steps li, .ch-game-tile, .post-card, .product-card,
.req-item, .req-form, .req-empty, .req-ok, .ch-model, .contact-card,
.payment-method-card, .delivery-summary-card, .variant-card, .shop-panel,
.home-category-card, .seller-card, .order-cta-box, .why-feature, .cart-empty,
.empty-state, .sidebar-section, .about-doc, .commerce-aside, .delivery-tier,
.auth-card, .profile-card, .order-card, .spec-card, .info-card {
  background: var(--lg-bg);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  border: 1px solid var(--lg-line);
  box-shadow: var(--lg-shadow);
  transition: transform .45s var(--lg-ease), box-shadow .45s var(--lg-ease), background .35s ease, border-color .35s ease;
}
.ch-set, .ch-game-tile, .post-card, .product-card, .ch-cfg { border-radius: var(--lg-radius); }
.ch-steps li, .req-item, .ch-model { border-radius: 18px; }

.ch-set:hover, .ch-game-tile:hover, .post-card:hover, .product-card:hover,
.ch-steps li:hover, .req-item:hover, .home-category-card:hover, .variant-card:hover,
.why-feature:hover, .contact-card:hover, .payment-method-card:hover {
  background: var(--lg-bg-strong);
  border-color: rgba(255,255,255,.95);
  box-shadow: var(--lg-shadow-hover);
  transform: translateY(-6px) scale(1.01);
}
.ch-cfg:hover, .req-form:hover { box-shadow: var(--lg-shadow-hover); }

/* Images inside glass cards get a soft inner frame + slow zoom. */
.ch-set img, .ch-game-tile-image img, .post-card img, .product-card img {
  transition: transform 1.2s var(--lg-ease), filter .6s ease;
}
.ch-set:hover img, .ch-game-tile:hover .ch-game-tile-image img, .post-card:hover img, .product-card:hover img {
  transform: scale(1.045); filter: saturate(1.08) brightness(1.03);
}
.ch-set > a, .ch-game-tile-image, .product-card-img { overflow: hidden; display: block; }
.post-card img { transform-origin: center; }

/* Gallery & split images float as glass-framed plates. */
.ch-gallery img, .ch-split img {
  border: 1px solid var(--lg-line);
  box-shadow: var(--lg-shadow);
  transition: transform .8s var(--lg-ease), box-shadow .6s ease;
}
.ch-gallery figure:hover img, .ch-split img:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--lg-shadow-hover); }

/* ── Top bar + header ─────────────────────────────────────────────────── */
.topbar {
  background: rgba(22, 34, 20, .86);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header {
  background: rgba(248, 247, 240, .52);
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  border-bottom: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 12px 40px -24px rgba(28,43,26,.35);
}
/* Liquid light running along the bottom edge of the header. */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--lg-honey), 0) 20%, rgba(var(--lg-honey), .95) 38%, rgba(255,255,255,1) 50%, rgba(var(--lg-sage), .9) 62%, rgba(var(--lg-sage), 0) 80%, transparent 100%);
  background-size: 220% 100%;
  animation: lg-flow 7s linear infinite;
  filter: blur(.3px) drop-shadow(0 0 6px rgba(var(--lg-honey), .7));
}
@keyframes lg-flow { from { background-position: 120% 0; } to { background-position: -100% 0; } }

.main-nav .nav-link, .nav-dropdown-toggle {
  border-radius: 100px; position: relative;
  transition: background .3s ease, box-shadow .3s ease, color .2s ease;
}
.main-nav .nav-link:hover, .nav-dropdown-toggle:hover, .main-nav .nav-link.active {
  background: rgba(255,255,255,.6);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(255,255,255,.75), 0 6px 22px -6px rgba(var(--lg-honey), .55);
  color: var(--forest);
}
.nav-dropdown-menu {
  background: rgba(250, 249, 243, .72) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--lg-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--lg-shadow-hover) !important;
}
.nav-dropdown-menu a { border-radius: 12px; transition: background .25s ease; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.7); }
.request-link, .cart-link, .account-link, .hamburger {
  background: rgba(255,255,255,.5);
  border: 1px solid var(--lg-line) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
  border-radius: 100px;
  transition: box-shadow .3s ease, background .3s ease, transform .3s var(--lg-ease);
}
.request-link:hover, .cart-link:hover, .account-link:hover, .hamburger:hover {
  background: rgba(255,255,255,.8);
  box-shadow: 0 1px 0 #fff inset, 0 0 26px -4px rgba(var(--lg-honey), .6);
  transform: translateY(-1px);
}
.mobile-nav {
  background: rgba(248, 247, 240, .78);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--lg-line);
}
.mobile-nav a:hover { background: rgba(255,255,255,.7); }

/* ── Hero: photo behind a liquid-glass panel ──────────────────────────── */
.ch-hero-shade {
  background: linear-gradient(90deg, rgba(16,26,15,.42) 0%, rgba(16,26,15,.22) 38%, rgba(16,26,15,0) 62%);
}
.ch-hero-panel {
  position: relative; max-width: 560px; padding: 36px 38px 32px; border-radius: 30px;
  background: linear-gradient(140deg, rgba(255,255,255,.20), rgba(255,255,255,.06) 60%, rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(20px) saturate(170%) brightness(.92); backdrop-filter: blur(20px) saturate(170%) brightness(.92);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 -1px 0 rgba(255,255,255,.1) inset, 0 40px 90px -30px rgba(0,0,0,.55);
  animation: lg-rise 1.1s var(--lg-ease) both;
}
.ch-hero-inner > .ch-hero-panel { max-width: 560px; }
.ch-hero-panel > :last-child { margin-bottom: 0; }
.ch-hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.25); }
@keyframes lg-rise { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ── Buttons: liquid glass pills ──────────────────────────────────────── */
.ch-btn, .btn-primary, .btn-cta, .cart-checkout-btn {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(36, 56, 33, .92), rgba(28, 43, 26, .86));
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 -2px 6px rgba(0,0,0,.18) inset, 0 10px 28px -10px rgba(28,43,26,.65);
  transition: transform .35s var(--lg-ease), box-shadow .35s ease, background .35s ease;
}
.ch-btn::before, .btn-primary::before, .btn-cta::before, .cart-checkout-btn::before {
  content: ""; position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.38) 48%, rgba(var(--lg-honey), .35) 52%, transparent 62%);
  transform: translateX(-60%); transition: transform .9s var(--lg-ease);
}
.ch-btn:hover::before, .btn-primary:hover::before, .btn-cta:hover::before, .cart-checkout-btn:hover::before { transform: translateX(60%); }
.ch-btn:hover, .btn-primary:hover, .btn-cta:hover, .cart-checkout-btn:hover {
  background: linear-gradient(135deg, rgba(45, 74, 42, .96), rgba(28, 43, 26, .9));
  border-color: rgba(255,255,255,.4); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 40px -12px rgba(28,43,26,.7), 0 0 34px -4px rgba(var(--lg-honey), .65);
}
.ch-btn:active, .btn-primary:active { transform: translateY(0) scale(.98); }
.ch-btn-ghost {
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(255,255,255,.6);
}
.ch-btn-ghost:hover { background: rgba(255,255,255,.3); color: #fff; border-color: #fff; }
.ch-btn-ghost-dark, .btn-secondary, .ch-product .ch-btn-ghost {
  background: rgba(255,255,255,.5); color: var(--forest);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--lg-line);
}
.ch-btn-ghost-dark:hover, .btn-secondary:hover, .ch-product .ch-btn-ghost:hover {
  background: rgba(255,255,255,.82); color: var(--forest); border-color: #fff;
}

/* Option pills (configurator) */
.ch-opt > span {
  background: rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-color: var(--lg-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, transform .3s var(--lg-ease);
}
.ch-opt:hover > span { background: rgba(255,255,255,.8); box-shadow: 0 1px 0 #fff inset, 0 0 22px -4px rgba(var(--lg-honey), .55); transform: translateY(-1px); }
.ch-opt input:checked + span {
  background: linear-gradient(135deg, rgba(36,56,33,.94), rgba(28,43,26,.88));
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 8px 22px -8px rgba(28,43,26,.7);
}

/* ── Form fields ───────────────────────────────────────────────────────── */
.ch-custom textarea, .req-form input, .req-form select, .req-form textarea,
.ch-dim-grid input, .site-main input[type=text], .site-main input[type=email],
.site-main input[type=tel], .site-main input[type=password], .site-main input[type=number],
.site-main select, .site-main textarea, .search-input {
  background: rgba(255,255,255,.58);
  border: 1px solid var(--lg-line) !important;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28,43,26,.06) inset;
  transition: box-shadow .3s ease, background .3s ease;
}
.ch-custom textarea:focus, .req-form input:focus, .req-form select:focus, .req-form textarea:focus,
.ch-dim-grid input:focus, .site-main input:focus, .site-main select:focus, .site-main textarea:focus, .search-input:focus {
  outline: none; background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 3px rgba(var(--lg-honey), .35), 0 0 28px -6px rgba(var(--lg-honey), .7);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { position: relative; background: rgba(22, 34, 20, .93); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--lg-honey), .9) 40%, rgba(255,255,255,.9) 50%, rgba(var(--lg-sage), .9) 60%, transparent);
  background-size: 220% 100%; animation: lg-flow 9s linear infinite;
}
.site-footer a { transition: color .25s ease, text-shadow .25s ease; }
.site-footer a:hover { color: #fff; text-shadow: 0 0 18px rgba(var(--lg-honey), .9); }

/* ═══════════════════════════════════════════════════════════════════════════
   Interactive layer (hooks added by glass.js)
   ═══════════════════════════════════════════════════════════════════════════ */

.lg-rel { position: relative; }
.lg { isolation: isolate; }

/* One injected <span class="lg-fx"> per element: ::before = liquid edge,
   ::after = pointer glow. */
.lg-fx, .ch-opt .lg-fx, .request-link .lg-fx {
  position: absolute !important; inset: 0 !important; border-radius: inherit; pointer-events: none; z-index: 3;
  display: block !important; margin: 0 !important; padding: 0 !important; width: auto !important; height: auto !important;
  background: none !important; border: 0 !important; box-shadow: none !important; transform: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; opacity: 1 !important;
}
.lg-fx::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--lg-a),
    transparent 0deg, transparent 40deg,
    rgba(255,255,255,.95) 70deg, rgba(var(--lg-honey), .95) 100deg, rgba(var(--lg-sage), .85) 130deg,
    transparent 170deg, transparent 220deg,
    rgba(255,255,255,.7) 250deg, rgba(var(--lg-honey), .6) 270deg, transparent 300deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; filter: drop-shadow(0 0 4px rgba(var(--lg-honey), .8));
  transition: opacity .45s ease;
  animation: lg-spin 5.5s linear infinite; animation-play-state: paused;
}
.lg:hover > .lg-fx::before, .lg.lg-live > .lg-fx::before, .lg:focus-visible > .lg-fx::before { opacity: 1; animation-play-state: running; }
.lg.lg-live > .lg-fx::before { opacity: .75; }
.lg:hover > .lg-fx::before { animation-duration: 2.6s; }
@keyframes lg-spin { to { --lg-a: 360deg; } }

.lg-fx::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), rgba(255,255,255,.12) 38%, transparent 62%),
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--lg-honey), .22), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity .4s ease;
}
.lg:hover > .lg-fx::after { opacity: 1; }
/* Dark surfaces (buttons, hero) use a brighter screen glow. */
.lg-dark > .lg-fx::after { mix-blend-mode: screen; background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), rgba(var(--lg-honey), .18) 40%, transparent 70%); }

/* ── Glass cursor ─────────────────────────────────────────────────────── */
html.lg-cursor-on, html.lg-cursor-on * { cursor: none !important; }
html.lg-cursor-on input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]),
html.lg-cursor-on textarea, html.lg-cursor-on [contenteditable="true"], html.lg-cursor-on iframe { cursor: auto !important; }

#lg-cursor, #lg-cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none;
  border-radius: 50%; will-change: transform; opacity: 0;
  transition: opacity .25s ease, width .35s var(--lg-ease), height .35s var(--lg-ease), margin .35s var(--lg-ease), background .35s ease, border-color .35s ease, box-shadow .35s ease, border-radius .35s var(--lg-ease);
}
#lg-cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), rgba(255,255,255,.12) 45%, rgba(255,255,255,.04) 70%);
  -webkit-backdrop-filter: blur(2px) saturate(190%) brightness(1.08) contrast(1.05); backdrop-filter: blur(2px) saturate(190%) brightness(1.08) contrast(1.05);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -2px 6px rgba(28,43,26,.12) inset, 0 6px 18px -4px rgba(28,43,26,.35), 0 0 0 .5px rgba(28,43,26,.18);
}
#lg-cursor::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--lg-a), transparent 0 60deg, rgba(var(--lg-honey), .95) 120deg, rgba(255,255,255,1) 160deg, rgba(var(--lg-sage), .9) 200deg, transparent 260deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: lg-spin 2.2s linear infinite; opacity: .9;
}
#lg-cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--forest);
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 12px rgba(var(--lg-honey), .9);
}
html.lg-cursor-visible #lg-cursor, html.lg-cursor-visible #lg-cursor-dot { opacity: 1; }
#lg-cursor.is-hover {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.4), rgba(var(--lg-honey), .14) 55%, rgba(255,255,255,.04) 75%);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 30px -6px rgba(28,43,26,.35), 0 0 34px -2px rgba(var(--lg-honey), .75);
}
#lg-cursor.is-hover + #lg-cursor-dot { opacity: 0; }
#lg-cursor.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
#lg-cursor.is-text { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 4px; }
#lg-cursor.is-text + #lg-cursor-dot, #lg-cursor.is-hidden, #lg-cursor.is-hidden + #lg-cursor-dot { opacity: 0 !important; }

/* Click ripple */
.lg-ripple {
  position: fixed; z-index: 2147482999; pointer-events: none; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.95);
  box-shadow: 0 0 18px rgba(var(--lg-honey), .9), 0 0 0 1px rgba(28,43,26,.12);
  animation: lg-ripple .7s var(--lg-ease) forwards;
}
@keyframes lg-ripple { to { transform: scale(5.5); opacity: 0; } }

/* Scroll reveal */
.lg-reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(4px); transition: opacity .9s var(--lg-ease), transform .9s var(--lg-ease), filter .9s var(--lg-ease); }
.lg-reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ── Touch / small screens / reduced motion ───────────────────────────── */
@media (hover: none), (pointer: coarse) {
  .lg-fx::after { display: none; }
  .lg.lg-live > .lg-fx::before { animation-play-state: running; animation-duration: 8s; }
}
@media (max-width: 700px) {
  :root { --lg-blur: 14px; --lg-sat: 150%; }
  body::before { animation: none; }
  .ch-hero-panel { padding: 24px 22px 22px; border-radius: 24px; }
  .ch-set:hover, .ch-game-tile:hover, .post-card:hover, .product-card:hover, .ch-steps li:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .site-header::after, .site-footer::before, .lg-fx::before, #lg-cursor::after { animation: none !important; }
  .ch-hero-panel, .lg-reveal { animation: none; transition: none; opacity: 1; transform: none; filter: none; }
  .ch-set:hover, .ch-game-tile:hover, .post-card:hover, .product-card:hover { transform: none; }
}

/* ── Homepage articles carousel (6 cards, 3 visible) ──────────────────── */
.post-carousel { position: relative; }
.post-carousel-controls { display: flex; justify-content: flex-end; gap: 10px; margin: -8px 0 16px; }
.post-carousel-controls button {
  width: 46px; height: 46px; border-radius: 50%; font-size: 20px; color: var(--forest);
  background: rgba(255,255,255,.5); border: 1px solid var(--lg-line);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  box-shadow: 0 1px 0 #fff inset, 0 8px 22px -10px rgba(28,43,26,.4);
  transition: transform .3s var(--lg-ease), box-shadow .3s ease, background .3s ease;
}
.post-carousel-controls button:hover { background: rgba(255,255,255,.85); transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 0 28px -4px rgba(var(--lg-honey), .7); }
.post-carousel-controls button:focus-visible, .post-carousel-track:focus-visible { outline: 3px solid rgba(var(--lg-honey), .8); outline-offset: 3px; }
.post-grid.post-carousel-track {
  display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px 4px 24px; margin: -10px -4px 0;
}
.post-carousel-track::-webkit-scrollbar { display: none; }
.post-carousel-track > .post-card { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1000px) { .post-grid.post-carousel-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 700px) {
  .post-grid.post-carousel-track { grid-auto-columns: 82%; gap: 14px; }
  .post-carousel-track > .post-card { display: flex; flex-direction: column; padding: 14px; border-radius: 18px; }
  .post-carousel-track > .post-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 6px; grid-row: auto; }
}

/* ── Hero carousel (slides from admin → Главный экран) ─────────────────── */
.hero-carousel { display: grid; align-items: stretch; }
.hero-carousel > .hero-slide { grid-area: 1 / 1; }
.hero-slide {
  position: relative; display: flex; min-height: min(78vh, 720px); overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .9s var(--lg-ease), visibility 0s linear .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--lg-ease), visibility 0s; z-index: 1; }
.hero-slide picture, .hero-slide .ch-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide .ch-hero-img { object-fit: cover; transform: scale(1.04); transition: transform 8s linear; }
.hero-slide.is-active .ch-hero-img { transform: scale(1); }
.hero-slide .ch-hero-inner { display: flex; flex-direction: column; min-height: inherit; padding-top: 64px; padding-bottom: 88px; }
.hero-slide:not(.is-active) .ch-hero-panel { animation: none; }
.hero-slide.is-active .ch-hero-panel { animation: lg-rise 1.1s var(--lg-ease) both; }
/* Slide effect "shine": slow zoom-in + a soft light glint sweeping across the photo. */
.hero-fx-shine.is-active .ch-hero-img { animation: hero-kenburns 14s ease-out both; }
.hero-shine { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shine::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 28%;
  background: linear-gradient(100deg, rgba(255,250,240,0) 0%, rgba(255,250,240,.12) 35%, rgba(255,250,240,.4) 50%, rgba(255,250,240,.12) 65%, rgba(255,250,240,0) 100%);
  transform: translateX(-140%) skewX(-12deg);
}
.hero-fx-shine.is-active .hero-shine::before { animation: hero-glint 7s ease-in-out 1.2s infinite; }
@keyframes hero-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes hero-glint { 0% { transform: translateX(-140%) skewX(-12deg); } 30%, 100% { transform: translateX(480%) skewX(-12deg); } }
.ch-hero-title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 58px); line-height: 1.06; font-weight: 700; margin-bottom: 18px; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.ch-hero-lead p { margin: 0 0 10px; }
.ch-hero-lead p:last-child { margin-bottom: 0; }
.ch-hero-lead { margin-bottom: 28px; }
.ch-hero-lead a, .ch-hero-price a { color: inherit; text-decoration: underline; }
.ch-hero-price p { margin: 0; }

/* Panel position: t/m/b + l/c/r */
.hero-pos-tl, .hero-pos-tc, .hero-pos-tr { justify-content: flex-start; }
.hero-pos-ml, .hero-pos-mc, .hero-pos-mr { justify-content: center; }
.hero-pos-bl, .hero-pos-bc, .hero-pos-br { justify-content: flex-end; }
.hero-pos-tl, .hero-pos-ml, .hero-pos-bl { align-items: flex-start; }
.hero-pos-tc, .hero-pos-mc, .hero-pos-bc { align-items: center; text-align: center; }
.hero-pos-tr, .hero-pos-mr, .hero-pos-br { align-items: flex-end; }
.hero-pos-tc .ch-hero-actions, .hero-pos-mc .ch-hero-actions, .hero-pos-bc .ch-hero-actions { justify-content: center; }
.hero-shade-c { background: radial-gradient(ellipse at center, rgba(16,26,15,.38), rgba(16,26,15,.08) 60%, rgba(16,26,15,0) 80%); }
.hero-shade-r { background: linear-gradient(270deg, rgba(16,26,15,.42) 0%, rgba(16,26,15,.22) 38%, rgba(16,26,15,0) 62%); }

/* Light glass panel: dark text */
.ch-hero-panel.hero-tone-light {
  background: linear-gradient(140deg, rgba(255,255,255,.72), rgba(255,255,255,.5) 60%, rgba(255,255,255,.62));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border-color: rgba(255,255,255,.85); color: var(--forest);
}
.hero-tone-light h1, .hero-tone-light .ch-hero-title { color: var(--forest); text-shadow: none; }
.hero-tone-light .ch-kicker { color: var(--gold); }
.hero-tone-light .ch-hero-lead, .hero-tone-light .ch-hero-price { color: var(--text); }
.hero-tone-light .ch-btn-ghost { color: var(--forest); border-color: rgba(28,43,26,.35); background: rgba(255,255,255,.45); }

/* Controls */
.hero-controls {
  position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 100px;
  background: rgba(20, 30, 18, .28); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.hero-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff; font-size: 17px; cursor: pointer; transition: background .3s ease, box-shadow .3s ease; }
.hero-arrow:hover { background: rgba(255,255,255,.3); box-shadow: 0 0 22px -4px rgba(var(--lg-honey), .8); }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .4s var(--lg-ease), background .3s ease; }
.hero-dot.is-active { width: 28px; background: #fff; box-shadow: 0 0 12px rgba(var(--lg-honey), .9); }
.hero-arrow:focus-visible, .hero-dot:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* Set card picked for the configurator */
.ch-set.is-picked { border-color: rgba(var(--lg-honey), .95); box-shadow: var(--lg-shadow-hover); }
.ch-sets[data-set-picker] { margin-bottom: 32px; }
.ch-set [data-pick-set] { cursor: pointer; }

@media (max-width: 700px) {
  .hero-slide { min-height: 0; }
  .hero-slide .ch-hero-inner { padding-top: 28px; padding-bottom: 72vw; justify-content: flex-start; align-items: stretch; text-align: left; }
  .hero-slide .ch-hero-inner.hero-mpos-bottom { padding-top: 72vw; padding-bottom: 76px; justify-content: flex-end; }
  .hero-shade-c, .hero-shade-r, .hero-shade-l { background: linear-gradient(180deg, rgba(20,30,18,.55) 0%, rgba(20,30,18,.25) 45%, rgba(20,30,18,0) 70%); }
  .hero-mpos-bottom ~ .hero-shade-l { background: none; }
  .hero-controls { bottom: 12px; gap: 8px; padding: 4px 6px; }
  .hero-arrow { width: 32px; height: 32px; font-size: 15px; }
  .hero-slide .ch-hero-actions { justify-content: flex-start !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide .ch-hero-img { transition: none; transform: none; }
  .hero-fx-shine.is-active .ch-hero-img, .hero-fx-shine.is-active .hero-shine::before { animation: none; }
}
