/* =====================================================================
   EdiArt Jewelry — общая дизайн-система
   ===================================================================== */

:root {
  --bg: #0b0a09;
  --bg-2: #100e0c;
  --surface: #161411;
  --surface-2: #1d1a16;
  --line: rgba(240, 225, 195, 0.08);
  --line-strong: rgba(212, 178, 106, 0.28);

  --gold: #d4b26a;
  --gold-light: #ecd59c;
  --gold-dark: #9c7a32;
  --gold-grad: linear-gradient(135deg, #f0dba2 0%, #d4b26a 45%, #a9842f 100%);

  --text: #f1ebe0;
  --text-2: #c9c1b4;
  --muted: #8f877b;
  --danger: #e2735f;

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --pill: 999px;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 76px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(212, 178, 106, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2720; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--gold); color: var(--bg); padding: .6rem 1.1rem;
  border-radius: var(--pill); font-size: .85rem; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── TYPOGRAPHY ───────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }

.h-display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.01em;
}
.h-section {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.005em;
}
.gold-text {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.05rem; color: var(--text-2); line-height: 1.75; }

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.7rem;
  border-radius: var(--pill); border: 1px solid transparent;
  font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--gold-grad); color: #17130b; box-shadow: 0 10px 30px -12px rgba(212, 178, 106, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(212, 178, 106, .75); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--gold); font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: gap .25s var(--ease), color .2s;
}
.link-arrow:hover { gap: .75rem; color: var(--gold-light); }
.link-arrow .icon { width: 16px; height: 16px; }

/* ── HEADER ───────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(11, 10, 9, .78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo-img-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; object-fit: contain; border-radius: 8px; }

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  position: relative; padding: .55rem .9rem; border-radius: var(--pill);
  color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 500;
  transition: color .25s, background .25s;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.main-nav a.active { color: var(--gold-light); background: rgba(212, 178, 106, .1); }

.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; cursor: pointer;
  color: var(--text); text-decoration: none;
  transition: background .25s, border-color .25s, color .25s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--gold-light); }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill);
  background: var(--gold); color: #17130b;
  font-size: .64rem; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.header-phone {
  display: inline-flex; align-items: center; gap: .5rem; margin-left: .4rem;
  min-height: 44px; padding: 0 1.1rem; border-radius: var(--pill);
  border: 1px solid var(--line-strong); color: var(--text); text-decoration: none;
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  transition: border-color .25s, color .25s, background .25s;
}
.header-phone:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(212, 178, 106, .06); }
.header-phone .icon { width: 16px; height: 16px; color: var(--gold); }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 999;
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1.5rem var(--gutter) 2rem;
  background: rgba(11, 10, 9, .97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem .2rem; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.7rem; font-weight: 500;
  color: var(--text); text-decoration: none; transition: color .2s, padding .3s var(--ease);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold-light); padding-left: .6rem; }
.mobile-nav .mobile-nav-cta { margin-top: 1.5rem; display: grid; gap: .7rem; }
.mobile-nav .mobile-nav-cta .btn { font-family: var(--sans); font-size: .95rem; border-bottom: 1px solid transparent; justify-content: center; }
.mobile-nav .mobile-nav-cta .btn:hover { padding-left: 1.7rem; }

@media (max-width: 1100px) { .header-phone span { display: none; } .header-phone { padding: 0; width: 44px; justify-content: center; } }
@media (max-width: 920px) {
  .main-nav, .header-phone { display: none; }
  .burger { display: flex; }
}
body.nav-open { overflow: hidden; }

/* ── SECTIONS ─────────────────────────────────────────────────────── */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head > div { max-width: 640px; }
.section-head .h-section { margin-top: .9rem; }
.section-head p { margin-top: 1rem; color: var(--text-2); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* ── CHIPS / FILTERS ──────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn, .brand-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: 0 1.1rem; border-radius: var(--pill);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  color: var(--text-2); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.filter-btn:hover, .brand-btn:hover { border-color: var(--line-strong); color: var(--text); }
.filter-btn.active, .brand-btn.active { background: var(--text); border-color: var(--text); color: #17130b; }
.filter-btn .icon { width: 15px; height: 15px; }
.brand-btn { min-height: 34px; font-size: .78rem; padding: 0 .9rem; }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap .icon { position: absolute; left: 1.1rem; color: var(--muted); pointer-events: none; width: 18px; height: 18px; }
.search-input {
  width: 100%; min-height: 48px; padding: 0 3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill);
  color: var(--text); font-size: .92rem; outline: none; appearance: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 178, 106, .12); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: .55rem; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .05); border: none; color: var(--muted); cursor: pointer;
}
.search-clear:hover { color: var(--gold-light); }
.search-clear .icon { position: static; width: 14px; height: 14px; color: inherit; }

/* ── PRODUCT CARDS ────────────────────────────────────────────────── */
.products-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.product-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #121010; }
.product-icon { font-size: 4.5rem; transition: transform .6s var(--ease); }
.product-icon.has-photo { position: absolute; inset: 0; font-size: 0; }
.product-icon.has-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-icon.has-photo img { transform: scale(1.06); }
.product-img::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent); pointer-events: none; }
.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: .3rem .75rem; border-radius: var(--pill);
  background: rgba(11, 10, 9, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--gold-light);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.product-wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 10, 9, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12); color: var(--text); cursor: pointer;
  opacity: 0; transform: scale(.85); transition: all .3s var(--ease);
}
.product-wish .icon { width: 18px; height: 18px; }
.product-card:hover .product-wish, .product-wish.active { opacity: 1; transform: scale(1); }
.product-wish:hover { color: var(--gold-light); border-color: var(--gold); }
.product-wish.active { color: var(--danger); border-color: rgba(226, 115, 95, .5); }
.product-wish.active .icon { fill: currentColor; }
@media (hover: none) { .product-wish { opacity: 1; transform: scale(1); } }

.product-info { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.product-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; margin-bottom: .3rem; }
.product-material { font-size: .8rem; color: var(--muted); margin-bottom: .9rem; }
.product-footer { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.product-price { font-size: .8rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.add-cart-btn {
  display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; white-space: nowrap;
  min-height: 38px; padding: 0 1rem; border-radius: var(--pill);
  background: rgba(212, 178, 106, .1); border: 1px solid var(--line-strong);
  color: var(--gold-light); font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .25s var(--ease);
}
.add-cart-btn .icon { width: 15px; height: 15px; }
.add-cart-btn:hover, .add-cart-btn.added { background: var(--gold); border-color: var(--gold); color: #17130b; }

.pagination { display: flex; justify-content: center; align-items: center; gap: .4rem; padding-top: 3rem; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 .7rem; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.page-btn.active { background: var(--text); border-color: var(--text); color: #17130b; }
.page-btn:disabled { opacity: .3; cursor: default; }
.page-info { color: var(--muted); font-size: .82rem; padding: 0 .5rem; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state .icon { width: 40px; height: 40px; margin: 0 auto 1rem; color: var(--gold-dark); }

/* ── FORMS ────────────────────────────────────────────────────────── */
.checkout-field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem; }
.checkout-field label { font-size: .78rem; font-weight: 600; color: var(--text-2); }
.checkout-field input,
.checkout-field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: .85rem 1rem; color: var(--text); font-size: .95rem; outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.checkout-field textarea { min-height: 90px; }
.checkout-field input::placeholder, .checkout-field textarea::placeholder { color: #5f584e; }
.checkout-field input:focus,
.checkout-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 178, 106, .12); }

.consent-row { display: flex; align-items: flex-start; gap: .7rem; margin: .4rem 0 1.2rem; }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.consent-row label { font-size: .8rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent-row label a { color: var(--gold); }

.checkout-submit {
  width: 100%; min-height: 54px; border: none; border-radius: var(--pill);
  background: var(--gold-grad); color: #17130b;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, opacity .2s;
  box-shadow: 0 10px 30px -12px rgba(212, 178, 106, .6);
}
.checkout-submit:hover { transform: translateY(-1px); }
.checkout-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── DIALOGS ──────────────────────────────────────────────────────── */
.checkout-overlay, .modal-overlay, .privacy-overlay, .wax-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(5, 4, 3, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.checkout-overlay.open, .modal-overlay.open, .privacy-overlay.open, .wax-overlay.open { opacity: 1; pointer-events: all; }
.privacy-overlay { z-index: 3000; }

.checkout-modal, .modal, .privacy-modal, .wax-modal {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
  transform: translateY(24px) scale(.98); transition: transform .4s var(--ease);
}
.open > .checkout-modal, .open > .modal, .open > .privacy-modal, .open > .wax-modal { transform: none; }

.checkout-modal { max-width: 520px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.checkout-modal-title, .checkout-title { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.1; margin-bottom: 1.4rem; padding-right: 2.5rem; }
.dialog-close, .checkout-close, .modal-close, .privacy-close, .wax-modal-close, .cart-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; transition: background .2s, color .2s, transform .3s var(--ease);
}
.checkout-close:hover, .modal-close:hover, .privacy-close:hover, .wax-modal-close:hover, .cart-close:hover { background: var(--text); color: #17130b; transform: rotate(90deg); }
.checkout-close .icon, .modal-close .icon, .privacy-close .icon, .wax-modal-close .icon, .cart-close .icon { width: 16px; height: 16px; }

.checkout-items-list { list-style: none; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 1.5rem; overflow: hidden; }
.checkout-items-list:empty { display: none; }
.checkout-items-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; font-size: .88rem; border-bottom: 1px solid var(--line); }
.checkout-items-list li:last-child { border-bottom: none; }
.checkout-items-list small { color: var(--muted); }
.checkout-item-qty { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.checkout-item-info {
  background: rgba(212, 178, 106, .06); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1.3rem;
  font-size: .88rem; color: var(--text-2); line-height: 1.7;
}
.checkout-item-info strong { color: var(--text); }

/* Product modal */
.modal { max-width: 1000px; overflow: hidden; display: flex; }
.modal-body { display: flex; width: 100%; max-height: 92vh; }
.modal-left { flex: 0 0 55%; display: flex; flex-direction: column; background: #0f0d0b; min-width: 0; }
.modal-main-img { flex: 1; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; position: relative; }
.modal-main-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.modal-main-img.zoomed { cursor: grab; }
.modal-main-img.panning { cursor: grabbing !important; }
.modal-main-img.panning img { transition: none; }
.modal-thumbs { display: flex; gap: .5rem; padding: .7rem; overflow-x: auto; flex-shrink: 0; }
.modal-thumb { flex: 0 0 64px; height: 64px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; overflow: hidden; opacity: .6; transition: opacity .2s, border-color .2s; }
.modal-thumb:hover { opacity: 1; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb.active { border-color: var(--gold); opacity: 1; }
.modal-right { flex: 1; padding: clamp(1.5rem, 3.5vw, 2.8rem); display: flex; flex-direction: column; overflow-y: auto; }
.modal-cat { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.modal-name { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.1; margin-bottom: .6rem; padding-right: 2rem; }
.modal-material { font-size: .9rem; color: var(--text-2); margin-bottom: 1.4rem; }
.modal-price { display: inline-flex; align-self: flex-start; padding: .45rem 1rem; border-radius: var(--pill); background: rgba(212, 178, 106, .1); border: 1px solid var(--line-strong); color: var(--gold-light); font-weight: 600; font-size: .88rem; margin-bottom: 1.6rem; }
.modal-desc { font-size: .95rem; color: var(--text-2); line-height: 1.75; margin-bottom: 2rem; }
.modal-perks { list-style: none; display: grid; gap: .6rem; margin: auto 0 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.modal-perks li { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--text-2); }
.modal-perks .icon { width: 18px; height: 18px; color: var(--gold); }
.modal-add-btn { width: 100%; }

/* Privacy modal */
.privacy-modal { max-width: 680px; display: flex; flex-direction: column; overflow: hidden; }
.privacy-modal-header { padding: 1.6rem 1.8rem 1.2rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.privacy-modal-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; padding-right: 3rem; }
.privacy-modal-body { padding: 1.4rem 1.8rem 1.8rem; overflow-y: auto; font-size: .9rem; color: var(--text-2); line-height: 1.75; }
.privacy-modal-body h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin: 1.3rem 0 .35rem; }
.privacy-modal-body p { margin: 0 0 .6rem; }
.privacy-modal-body a { color: var(--gold); }

/* ── CART ─────────────────────────────────────────────────────────── */
.cart-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 4, 3, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 2001;
  width: 440px; max-width: calc(100vw - 20px);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
  transform: translateX(calc(100% + 20px)); transition: transform .5s var(--ease);
}
.cart-sidebar.open { transform: none; }
.cart-header { position: relative; padding: 1.6rem 1.8rem 1.2rem; border-bottom: 1px solid var(--line); }
.cart-title { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
.cart-items { flex: 1; overflow-y: auto; padding: .5rem 1.8rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.cart-empty .icon { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--gold-dark); stroke-width: 1.2; }
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); animation: cartIn .4s var(--ease); }
@keyframes cartIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.cart-item-icon { width: 72px; height: 72px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; overflow: hidden; }
.cart-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; margin-bottom: .2rem; }
.cart-item-meta { font-size: .76rem; color: var(--muted); margin-bottom: .6rem; }
.cart-item-controls { display: inline-flex; align-items: center; gap: .2rem; padding: 3px; border: 1px solid var(--line); border-radius: var(--pill); }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; background: transparent; border: none; color: var(--text); cursor: pointer; font-size: 1rem; transition: background .2s; }
.qty-btn:hover { background: rgba(255, 255, 255, .08); color: var(--gold-light); }
.qty-value { font-size: .85rem; font-weight: 600; min-width: 22px; text-align: center; }
.cart-item-price { font-size: .78rem; color: var(--muted); align-self: center; white-space: nowrap; }
.cart-item-remove { align-self: flex-start; width: 30px; height: 30px; border-radius: 50%; background: transparent; border: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .2s, background .2s; }
.cart-item-remove .icon { width: 15px; height: 15px; }
.cart-item-remove:hover { color: var(--danger); background: rgba(226, 115, 95, .1); }
.cart-footer { padding: 1.4rem 1.8rem 1.8rem; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; }
.cart-total-label { font-size: .85rem; color: var(--muted); }
.cart-total-amount { font-weight: 700; color: var(--gold-light); }
.checkout-btn { width: 100%; }

/* ── TOAST ────────────────────────────────────────────────────────── */
.notification, .notify {
  position: fixed; left: 50%; bottom: 24px; z-index: 4000;
  max-width: calc(100vw - 32px); padding: .9rem 1.4rem;
  background: rgba(29, 26, 22, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: var(--pill);
  color: var(--text); font-size: .88rem; font-weight: 500; text-align: center;
  box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.notification.show, .notify.show { opacity: 1; transform: translate(-50%, 0); }

/* ── PAGE HERO (внутренние страницы) ──────────────────────────────── */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(212, 178, 106, .14), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(212, 178, 106, .06), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero .h-display { margin-top: 1.1rem; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero .lead { max-width: 620px; margin-top: 1.2rem; }

/* ── FOOTER ───────────────────────────────────────────────────────── */
.site-footer { background: #080706; border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; }
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-bottom: clamp(2.5rem, 5vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line);
}
.footer-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; max-width: 640px; }
.footer-cta .btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .logo-img { height: 56px; margin-bottom: 1.2rem; }
.footer-desc { font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.4rem; max-width: 320px; }
.footer-social { display: flex; gap: .6rem; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--text-2); text-decoration: none;
  transition: all .25s var(--ease);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: #17130b; transform: translateY(-2px); }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: grid; gap: .65rem; }
.footer-col a { font-size: .9rem; color: var(--text-2); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.footer-copy { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── REVEAL ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .modal { max-height: 94vh; }
  .modal-body { flex-direction: column; overflow-y: auto; }
  .modal-left { flex: none; }
  .modal-main-img { aspect-ratio: 1 / 1; flex: none; }
  .modal-right { overflow: visible; }
  .cart-sidebar { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; height: 86vh; transform: translateY(calc(100% + 20px)); }
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: .7rem; }
.faq-item { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; font-size: 1rem; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--gold); transition: transform .35s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.4rem; color: var(--text-2); font-size: .93rem; line-height: 1.75; }
.faq-item a { color: var(--gold); }

/* ── BLOG ─────────────────────────────────────────────────────────── */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.6rem; font-size: .82rem; color: var(--muted); }
.breadcrumbs a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs span[aria-current] { color: var(--muted); }

.post-tag {
  display: inline-flex; align-self: flex-start; padding: .3rem .8rem; border-radius: var(--pill);
  border: 1px solid var(--line-strong); background: rgba(212, 178, 106, .08);
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light);
}

.post-grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.post-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.post-card-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.12; }
.post-card-title a { text-decoration: none; }
.post-card-title a::after { content: ''; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card-title a:hover { color: var(--gold-light); }
.post-card-excerpt { font-size: .9rem; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { margin-top: auto; font-size: .78rem; color: var(--muted); }
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card.featured .post-card-img { aspect-ratio: auto; min-height: 380px; }
.post-card.featured .post-card-body { padding: clamp(1.6rem, 4vw, 3rem); justify-content: center; }
.post-card.featured .post-card-title { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.post-card.featured .post-card-excerpt { -webkit-line-clamp: 5; font-size: 1rem; }
@media (max-width: 760px) { .post-card.featured { grid-template-columns: 1fr; } .post-card.featured .post-card-img { min-height: 0; aspect-ratio: 16 / 10; } }

.post-hero { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.post-narrow > * { max-width: 900px; }
.post-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; margin: 1.1rem 0 1.2rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.6rem; font-size: .82rem; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.post-meta .icon { width: 15px; height: 15px; color: var(--gold); }

.post-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); align-items: start; }
.post-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
.post-toc, .post-contact { padding: 1.3rem 1.4rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.post-toc-title { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.post-toc ol { list-style: none; display: grid; gap: .1rem; }
.post-toc a { display: block; padding: .4rem 0; font-size: .86rem; color: var(--text-2); text-decoration: none; line-height: 1.4; transition: color .2s; }
.post-toc a:hover { color: var(--gold-light); }
.post-contact { display: grid; gap: .7rem; font-size: .85rem; }
.post-contact > a:not(.btn) { display: flex; align-items: center; gap: .5rem; color: var(--text-2); text-decoration: none; }
.post-contact > a:not(.btn):hover { color: var(--gold-light); }
.post-contact .icon { width: 16px; height: 16px; color: var(--gold); }
.post-contact .btn { min-height: 44px; margin-top: .3rem; }

.post-main { max-width: 760px; }
.post-cover { margin: 0 0 2.5rem; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #111; aspect-ratio: 16 / 10; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 1.05rem; color: var(--text-2); line-height: 1.85; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 500; color: var(--text); line-height: 1.15; margin-top: 2.6rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-top: 1.8rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(212, 178, 106, .4); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before { content: ''; position: absolute; left: .25rem; top: .72em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; position: relative; padding-left: 2.2rem; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: .2em; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(212, 178, 106, .12); color: var(--gold-light); font-size: .78rem; font-weight: 700; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .93rem; }
.prose th, .prose td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }
.prose td:first-child { color: var(--text); }
.article-tip {
  position: relative; padding: 1.3rem 1.5rem 1.3rem 3.6rem;
  border-radius: var(--r); background: rgba(212, 178, 106, .07); border: 1px solid var(--line-strong);
  color: var(--text); font-size: .98rem; line-height: 1.7;
}
.article-tip::before {
  content: '✦'; position: absolute; left: 1.3rem; top: 1.25rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold-grad); color: #17130b; font-size: .8rem;
}

.post-faq { margin-top: 3.5rem; }
.post-faq h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 500; margin-bottom: 1.2rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.cta-box {
  margin-top: 3rem; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: radial-gradient(60% 90% at 100% 0%, rgba(212, 178, 106, .16), transparent 60%), linear-gradient(135deg, #1a150d, #0f0c08);
  display: grid; gap: 1.4rem;
}
.cta-box h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 500; line-height: 1.1; margin-bottom: .5rem; }
.cta-box p { color: var(--text-2); font-size: .95rem; }
.cta-box .btns { display: flex; flex-wrap: wrap; gap: .7rem; }

@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; order: 2; }
  .post-toc { display: none; }
  .post-main { max-width: none; }
}
