/* =========================================================
   GOLDTEX — премиальный интернет-магазин домашнего текстиля
   Дизайн-система. Стиль: тёплая «тихая роскошь», структура a-la Huawei.
   ========================================================= */

:root {
  /* Палитра */
  --cream: #fbf9f5;
  --cream-2: #f7f3ec;
  --cream-3: #f2ebdf;
  --sand: #ece4d7;
  --line: #e4ddd0;
  --ink: #1a1917;
  --ink-2: #4a463f;
  --muted: #8a8373;
  --gold: #c69a51;
  --gold-deep: #a97f36;
  --gold-soft: #e7cf9c;
  --white: #ffffff;
  --danger: #b4452f;
  --success: #3f7d57;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(26, 25, 23, .06);
  --shadow: 0 18px 50px -24px rgba(26, 25, 23, .35);
  --shadow-lg: 0 40px 90px -40px rgba(26, 25, 23, .45);

  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 120px); }
.eyebrow {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }
.reveal { opacity: 1; transform: translateY(14px); transition: transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px; font-weight: 600; font-size: 14.5px;
  letter-spacing: .01em; transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: linear-gradient(120deg, var(--gold), var(--gold-deep)); color: #fff; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(169,127,54,.7); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.4); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 18px; font-size: 13px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,249,245,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-size: 23px; letter-spacing: .14em; }
.brand-logo { height: 38px; width: auto; display: block; min-width: 0; max-width: min(220px, 100%); object-fit: contain; object-position: left center; }
/* Широкий логотип из админки сжимается и не выталкивает кнопки шапки и меню за край */
.nav .brand, .drawer-head .brand { min-width: 0; }
.footer .brand-logo { height: 42px; }
.drawer .brand-logo { height: 34px; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: #fff;
  font-size: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links > li > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 100px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2);
  transition: color .25s, background .25s;
}
.nav-links > li > a:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--ink); background: var(--cream-3); }
.nav-trigger svg { width: 15px; height: 15px; transition: transform .3s; }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); transition: background .25s, transform .2s; position: relative;
}
.icon-btn:hover { background: var(--cream-3); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold-deep); color: #fff; font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  border-radius: 100px; display: grid; place-items: center; line-height: 1;
}
.burger { display: none; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 1px);
  background: var(--cream); border-top: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s var(--ease);
  z-index: 55;
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 10px; padding: 28px 0 36px; }
.mega-cat { display: flex; gap: 14px; padding: 14px; border-radius: var(--radius-sm); transition: background .25s; align-items: center; }
.mega-cat:hover { background: var(--cream-3); }
.mega-cat img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.mega-cat h4 { font-family: var(--font-sans); font-weight: 700; font-size: 15px; }
.mega-cat p { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
/* Подкатегории — ссылками-«таблетками» под карточкой своей категории */
.mega-item { min-width: 0; }
.mega-subs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px 92px; margin-top: -4px; }
.mega-subs a { padding: 5px 11px; border-radius: 100px; background: var(--cream-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
.mega-subs a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.mega-feature { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px; }
.mega-feature .eyebrow { color: var(--gold-soft); }
.mega-feature h4 { font-size: 24px; margin: 8px 0 14px; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(90vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,15,.15) 0%, rgba(20,18,15,.05) 40%, rgba(20,18,15,.78) 100%); }
.hero-inner { padding-block: clamp(40px, 8vw, 90px); max-width: 760px; }
.hero h1 { font-size: clamp(52px, 11vw, 150px); line-height: .9; }
.hero h1 .accent { color: var(--gold-soft); font-style: italic; display: block; }
.hero p { font-size: clamp(16px, 2vw, 20px); max-width: 520px; margin: 22px 0 32px; color: rgba(255,255,255,.88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { position: absolute; bottom: 28px; right: var(--gutter); font-size: 12px; letter-spacing: .25em; opacity: .8; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--cream); padding: 16px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(32px, 5vw, 58px); }
.sec-head p { max-width: 440px; color: var(--ink-2); }
.sec-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: .02em; border-bottom: 1.5px solid var(--gold); padding-bottom: 4px; transition: gap .3s, color .3s; }
.sec-link:hover { gap: 14px; color: var(--gold-deep); }

/* ---------- Category bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.cat-card:nth-child(1) { grid-column: span 2; grid-row: span 2; min-height: 496px; }
.cat-card img, .cat-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat-card video { background: var(--ink); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 100%); }
.cat-card:hover img, .cat-card:hover video { transform: scale(1.06); }
.cat-card .cat-body { padding: 22px; width: 100%; }
.cat-card h3 { font-size: clamp(20px, 2.4vw, 30px); color: #fff; }
.cat-card p { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 4px; max-width: 320px; }
.cat-card .cat-go { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.p-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.p-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--cream-2); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; backdrop-filter: blur(4px); }
.p-fav { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; opacity: 0; transform: translateY(-6px); transition: all .3s; }
.p-card:hover .p-fav { opacity: 1; transform: none; }
.p-body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.p-collection { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.p-name { font-family: var(--font-sans); font-weight: 700; font-size: 16.5px; margin: 7px 0 4px; }
.p-material { font-size: 13px; color: var(--muted); }
.p-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-price { display: flex; align-items: baseline; gap: 8px; }
.p-price .now { font-weight: 700; font-size: 18px; }
.p-price .old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.p-add { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .3s, transform .3s; flex-shrink: 0; }
.p-add:hover { background: var(--gold-deep); transform: scale(1.08); }
.p-add svg { width: 20px; height: 20px; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/6; box-shadow: var(--shadow); }
.split-media img, .split-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(32px, 4.6vw, 56px); margin: 14px 0 18px; }
.split .points { margin-top: 26px; display: grid; gap: 14px; }
.split .points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.split .points li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a97f36' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .35s var(--ease), box-shadow .35s; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--cream-3); display: grid; place-items: center; color: var(--gold-deep); margin-bottom: 16px; }
.service .ic svg { width: 26px; height: 26px; }
.service h4 { font-family: var(--font-sans); font-weight: 700; font-size: 16px; }
.service p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ---------- CTA banner ---------- */
.cta { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; padding: clamp(44px, 8vw, 96px) var(--gutter); text-align: center; }
.cta img, .cta video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Фоновое видео лежит поверх фото и проявляется, когда начинает играть — без чёрной вспышки */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.bg-video.is-playing { opacity: 1; }
.cat-card .bg-video { transition: opacity .8s ease, transform .8s var(--ease); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,15,.55), rgba(20,18,15,.75)); }
.cta h2 { font-size: clamp(32px, 6vw, 72px); }
.cta p { max-width: 520px; margin: 18px auto 30px; color: rgba(255,255,255,.88); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfc7ba; padding-top: clamp(56px, 8vw, 96px); }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-col h5 { color: #fff; font-family: var(--font-sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col li { margin-bottom: 11px; font-size: 14.5px; }
.footer-sub { font-size: 14px; max-width: 300px; line-height: 1.7; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.news-form { display: flex; gap: 8px; margin-top: 14px; }
.news-form input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 100px; padding: 12px 18px; color: #fff; }
.news-form input::placeholder { color: rgba(255,255,255,.5); }
.news-form button { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-deep); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; font-size: 13px; color: #8c8578; flex-wrap: wrap; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; font-size: 12px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 6vw, 72px); }
.breadcrumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(36px, 6vw, 76px); }
.page-hero p { max-width: 520px; color: var(--ink-2); margin-top: 14px; }

/* ---------- Catalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--white); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: all .25s; }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.count-pill { font-size: 13px; color: var(--muted); }
.select { padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--white); font-size: 13.5px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.pdp-gallery { position: sticky; top: calc(var(--nav-h) + 24px); }
.pdp-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); background: var(--cream-2); }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp-thumbs img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.pdp-thumbs img.active { border-color: var(--gold); }
.pdp-info h1 { font-size: clamp(30px, 4vw, 50px); margin: 10px 0 14px; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; margin: 20px 0; }
.pdp-price .now { font-family: var(--font-serif); font-size: 36px; }
.pdp-price .old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pdp-price .save { background: var(--gold-soft); color: var(--gold-deep); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 100px; }
.pdp-desc { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.features { margin: 26px 0; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--cream-2); border-radius: var(--radius-sm); font-size: 14.5px; }
.features svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; background: #fff; }
.qty button { width: 46px; height: 50px; font-size: 20px; color: var(--ink-2); }
.qty button:hover { color: var(--ink); background: var(--cream-2); }
.qty input { width: 44px; text-align: center; border: none; background: none; font-weight: 700; }
.pdp-buy { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.pdp-buy .btn { flex: 1; min-width: 180px; }
.pdp-meta { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; display: grid; gap: 10px; font-size: 14px; }
.pdp-meta .row { display: flex; justify-content: space-between; gap: 16px; }
.pdp-meta .row span:first-child { color: var(--muted); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr .9fr; gap: 32px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 110px; height: 128px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item .ci-name { display: block; font-weight: 700; font-size: 16px; margin-top: 2px; }
.cart-item .ci-col { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.cart-item .ci-remove { color: var(--muted); font-size: 13px; margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; }
.cart-item .ci-remove:hover { color: var(--danger); }
.cart-item .ci-right { text-align: right; }
.cart-item .ci-var { display: block; font-size: 13.5px; color: var(--ink-2); margin: 3px 0 2px; }
.cart-item .ci-pick { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cart-item .ci-unit { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ci-price { font-weight: 700; font-size: 17px; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: calc(var(--nav-h) + 20px); }
.summary h3 { font-family: var(--font-sans); font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.summary .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; color: var(--ink-2); }
.summary .total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 20px; font-weight: 700; color: var(--ink); }
.empty-state { text-align: center; padding: clamp(40px, 8vw, 90px) 0; }
.empty-state .ic { width: 80px; height: 80px; border-radius: 50%; background: var(--cream-3); display: grid; place-items: center; margin: 0 auto 22px; color: var(--gold-deep); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,154,81,.16); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.form-note { font-size: 12.5px; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; display: none; }
.alert.ok { background: #edf6f0; color: var(--success); display: block; }
.alert.err { background: #fbeeea; color: var(--danger); display: block; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: var(--cream); padding: 14px 20px; border-radius: 100px; box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 10px; align-items: center; transform: translateY(20px); opacity: 0; transition: all .4s var(--ease); }
.toast.in { transform: none; opacity: 1; }
.toast svg { width: 18px; height: 18px; color: var(--gold-soft); }

/* ---------- Кнопка «Наверх»: тёмное стекло, тонкая золотая стрелка, кольцо прогресса прокрутки ---------- */
.to-top {
  position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 64;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  color: var(--gold-soft); background: rgba(24, 22, 19, .8);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.9);
  transition: opacity .45s ease, visibility .45s, transform .6s cubic-bezier(.2, .9, .25, 1.12), bottom .5s var(--ease),
    background .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top-ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.to-top-ring circle { fill: none; stroke-width: 1.5; }
.to-top-track { stroke: rgba(231, 207, 156, .16); transition: stroke .4s ease; }
.to-top-bar { stroke: url(#gtTopGold); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.to-top-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.to-top-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.to-top-label {
  position: absolute; right: calc(100% + 12px); top: 50%; padding: 7px 13px; border-radius: 100px; white-space: nowrap; pointer-events: none;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  background: rgba(251, 249, 245, .94); border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(26, 25, 23, .35);
  opacity: 0; transform: translate(8px, -50%); transition: opacity .3s ease, transform .45s var(--ease);
}
.to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { color: #f6e6c2; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .65), 0 0 0 6px rgba(198, 154, 81, .12), inset 0 1px 0 rgba(255, 255, 255, .07); }
  .to-top:hover .to-top-arrow { transform: translateY(-3px); }
  .to-top:hover .to-top-label, .to-top:focus-visible .to-top-label { opacity: 1; transform: translate(0, -50%); }
}
/* Нажатие: стрелка «улетает» вверх и возвращается снизу */
.to-top.go .to-top-arrow { animation: toTopGo .75s var(--ease); }
@keyframes toTopGo {
  0% { transform: none; opacity: 1; }
  42% { transform: translateY(-30px); opacity: 0; }
  43% { transform: translateY(26px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
/* Над тёмным подвалом — светлое стекло */
.to-top.on-dark { color: var(--ink); background: rgba(251, 249, 245, .94); border-color: rgba(255, 255, 255, .5); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .7); }
.to-top.on-dark .to-top-track { stroke: rgba(169, 127, 54, .22); }
@media (hover: hover) and (pointer: fine) {
  .to-top.on-dark:hover { color: var(--gold-deep); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .75), 0 0 0 6px rgba(231, 207, 156, .16); }
}
/* Страница товара: над капсулой покупки, если на узком экране они пересекаются */
.to-top.lift { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 70px); }
/* Уведомления «Добавлено в корзину» — над кнопкой, а не под ней */
.toast-wrap { transition: bottom .4s var(--ease); }
body.to-top-on:not(.lp-page) .toast-wrap { bottom: 96px; }
@media (max-width: 560px) {
  .to-top { width: 48px; height: 48px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .to-top-arrow { width: 18px; height: 18px; }
  .to-top-label { display: none; }
  body.to-top-on:not(.lp-page) .toast-wrap { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transform: none; transition: opacity .2s ease, visibility .2s, background .3s, color .3s; }
  .to-top.go .to-top-arrow { animation: none; }
}
@media print { .to-top { display: none; } }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,18,15,.45); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .3s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 380px); background: var(--cream); z-index: 80; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; display: flex; flex-direction: column; padding: 22px; overflow-y: auto; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-links a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-family: var(--font-serif); }
/* Подкатегории в мобильном меню — под своей категорией, мельче и с отступом */
.drawer-links a.drawer-sub { padding: 11px 4px 11px 22px; font-family: var(--font-sans); font-size: 15px; color: var(--ink-2); position: relative; }
.drawer-links a.drawer-sub::before { content: "↳"; position: absolute; left: 4px; color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cat-card:nth-child(1) { grid-column: span 2; grid-row: auto; min-height: 300px; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  /* Кнопки «Каталог» здесь нет — скрытая 4-колоночная сетка мега-меню иначе растягивает страницу вбок */
  .mega { display: none; }
  .split, .pdp, .cart-layout { grid-template-columns: 1fr; }
  .contacts-split { grid-template-columns: 1fr !important; } /* колонки заданы инлайн-стилем в contacts.html */
  .pdp-gallery, .summary { position: static; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  /* Плотнее шапка: логотип помещается в полный размер рядом с четырьмя кнопками */
  .nav { gap: 12px; }
  .nav-actions { gap: 2px; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bento { grid-template-columns: 1fr; }
  .cat-card:nth-child(1) { grid-column: auto; }
  .services { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 84px 1fr; }
  .cart-item .ci-right { grid-column: 2; text-align: left; }
  .cart-item img { width: 84px; height: 100px; }
  .hero h1 { font-size: clamp(44px, 16vw, 70px); }
}

/* =========================================================
   PRODUCT LANDING (карточка товара в стиле Huawei)
   ========================================================= */

/* Липкая подшапка товара */
.pp-subnav {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(251,249,245,.9); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%); transition: transform .4s var(--ease);
}
.pp-subnav.show { transform: none; }
.pp-subnav-inner { height: 60px; display: flex; align-items: center; gap: 20px; }
.pp-subnav .pp-sn-name { font-weight: 700; font-size: 15px; }
.pp-subnav .pp-sn-links { margin-left: auto; display: flex; gap: 20px; }
.pp-subnav .pp-sn-links a { font-size: 14px; color: var(--ink-2); padding-bottom: 2px; }
.pp-subnav .pp-sn-links a:hover { color: var(--ink); border-bottom: 2px solid var(--gold); }
.pp-subnav .pp-sn-price { font-weight: 700; font-size: 15px; }
.pp-subnav .btn { padding: 10px 20px; }
@media (max-width: 680px) { .pp-subnav .pp-sn-links { display: none; } }

/* Hero товара */
.pp-hero { position: relative; overflow: hidden; background: var(--cream-2); }
.pp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding-block: clamp(28px, 5vw, 60px); }
.pp-hero-media { position: relative; }
.pp-hero-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); background: var(--cream-3); }
.pp-hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pp-hero-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pp-hero-thumbs img { width: 72px; height: 88px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.pp-hero-thumbs img.active { border-color: var(--gold); }
.pp-hero-info .p-collection { font-size: 12px; }
.pp-hero-info h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1; margin: 10px 0 14px; }
.pp-hero-info .pp-lead { font-size: clamp(16px, 2vw, 20px); color: var(--ink-2); line-height: 1.6; max-width: 460px; }
.pp-price { display: flex; align-items: baseline; gap: 14px; margin: 22px 0; flex-wrap: wrap; }
.pp-price .now { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 42px); }
.pp-price .old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pp-price .save { background: var(--gold-soft); color: var(--gold-deep); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 100px; }
.pp-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
/* Вариации товара: размер — кнопками, цвет — кружками */
.pp-opts { display: grid; gap: 18px; margin: 24px 0 2px; max-width: 540px; }
.pp-opt-h { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.pp-opt-h b { color: var(--ink); font-weight: 600; }
.pp-opt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-ov { min-height: 44px; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; line-height: 1.2; transition: border-color .2s, box-shadow .2s; }
.pp-ov:hover { border-color: var(--ink-2); }
.pp-ov:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pp-ov[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.pp-ov.off { color: var(--muted); background: transparent; text-decoration: line-through; cursor: not-allowed; }
.pp-ov-c { width: 46px; height: 46px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; border-color: transparent; background: transparent; }
.pp-ov-c i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); background-size: cover; background-position: center; }
.pp-ov-c[aria-checked="true"] { border-color: var(--ink); box-shadow: none; }
.pp-ov-c.off i { opacity: .3; }
.pp-ov-c.off { text-decoration: none; position: relative; }
.pp-ov-c.off::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: var(--muted); transform: rotate(-45deg); }
.pp-hero-main img { transition: transform 1.2s var(--ease), opacity .16s ease; }
.pp-hero-main img.swap { opacity: 0; }
.lp-bg-dark .pp-opt-h { color: rgba(243,239,231,.7); } .lp-bg-dark .pp-opt-h b { color: #fff; }
.lp-bg-dark .pp-ov { background: transparent; color: #f3efe7; border-color: rgba(243,239,231,.28); }
.lp-bg-dark .pp-ov[aria-checked="true"] { border-color: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.lp-bg-dark .pp-ov-c { border-color: transparent; } .lp-bg-dark .pp-ov-c[aria-checked="true"] { border-color: var(--gold-soft); box-shadow: none; }
/* В капсуле покупки рядом с ценой — выбранный вариант; длинный обрезаем многоточием */
.lp-pill-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
@media (max-width: 560px) { .lp-pill-text span { max-width: 40vw; } }

/* Полноэкранные секции-сторителлинг */
.pp-feature { position: relative; min-height: min(92vh, 760px); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; padding: clamp(40px, 8vw, 100px) var(--gutter); }
.pp-feature .pp-bg { position: absolute; inset: 0; z-index: -2; }
.pp-feature .pp-bg img { width: 100%; height: 110%; object-fit: cover; }
.pp-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,15,.35), rgba(20,18,15,.6)); }
.pp-feature.light { color: var(--ink); }
.pp-feature.light::after { background: linear-gradient(180deg, rgba(251,249,245,.4), rgba(251,249,245,.7)); }
.pp-feature-inner { max-width: 760px; }
.pp-feature .kick { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.pp-feature.light .kick { color: var(--gold-deep); }
.pp-feature h2 { font-size: clamp(34px, 6vw, 76px); line-height: 1.02; margin: 14px 0 18px; }
.pp-feature p { font-size: clamp(16px, 2vw, 21px); line-height: 1.6; opacity: .92; max-width: 560px; margin: 0 auto; }

/* Сплит-секция (чередование) */
.pp-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); padding-block: clamp(50px, 9vw, 130px); }
.pp-split .pp-split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/6; box-shadow: var(--shadow); }
.pp-split .pp-split-media img { width: 100%; height: 100%; object-fit: cover; }
.pp-split.reverse .pp-split-media { order: 2; }
.pp-split .kick { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.pp-split h2 { font-size: clamp(30px, 4.4vw, 54px); margin: 12px 0 16px; line-height: 1.05; }
.pp-split p { font-size: 17px; color: var(--ink-2); line-height: 1.7; }

/* Параллакс-слой */
.pp-parallax { will-change: transform; }

/* Полоса характеристик (крупные цифры) */
.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.pp-stats .pp-stat .n { font-family: var(--font-serif); font-size: clamp(34px, 5vw, 62px); color: var(--gold-deep); line-height: 1; }
.pp-stats .pp-stat .t { color: var(--muted); margin-top: 8px; font-size: 14px; }

/* Галерея */
.pp-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pp-gallery-grid a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; display: block; }
.pp-gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pp-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pp-gallery-grid a:hover img { transform: scale(1.05); }

/* Характеристики (таблица) */
.pp-specs { max-width: 760px; }
.pp-specs .row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.pp-specs .row span:first-child { color: var(--muted); }
.pp-specs .row span:last-child { font-weight: 600; text-align: right; }

/* Липкая панель покупки снизу */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(26,25,23,.96); backdrop-filter: blur(10px); color: var(--cream); transform: translateY(110%); transition: transform .4s var(--ease); }
.buy-bar.show { transform: none; }
.buy-bar-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.buy-bar img { width: 46px; height: 56px; object-fit: cover; border-radius: 8px; }
.buy-bar .bb-name { font-weight: 700; font-size: 15px; }
.buy-bar .bb-price { color: var(--gold-soft); font-weight: 700; }
.buy-bar .bb-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 560px) { .buy-bar .bb-name, .buy-bar img { display: none; } .buy-bar .bb-actions { margin-left: 0; width: 100%; } .buy-bar .bb-actions .btn { flex: 1; } }

@media (max-width: 860px) {
  .pp-hero-grid { grid-template-columns: 1fr; }
  .pp-split { grid-template-columns: 1fr; }
  .pp-split.reverse .pp-split-media { order: 0; }
  .pp-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .pp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pp-gallery-grid a:first-child { grid-column: span 2; }
}

/* =========================================================
   ЛЕНДИНГ ТОВАРА ИЗ БЛОКОВ (landing.js) — структура страниц Huawei
   ========================================================= */
.lp-page .pp-subnav .pp-sn-links a.active { color: var(--ink); border-bottom: 2px solid var(--gold); }
.lp-page .pp-subnav .pp-sn-links { gap: 28px; }
.lp-page .pp-subnav .pp-sn-links a { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 600; }
.lp-noscroll { overflow: hidden; }

.lp-sec { padding-block: clamp(64px, 9vw, 140px); }
.lp-bg-white { background: #fff; }
.lp-bg-sand { background: var(--cream-2); }
.lp-bg-dark { background: #151412; color: #f3efe7; }
.lp-bg-dark .lp-head p, .lp-bg-dark .lp-split-text p, .lp-bg-dark .lp-stat span, .lp-bg-dark .lp-badge p, .lp-bg-dark .lp-chapter p { color: rgba(243,239,231,.72); }
.lp-bg-dark .lp-kick { color: var(--gold-soft); }

.lp-kick { display: inline-block; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.lp-head { max-width: 860px; margin: 0 auto clamp(34px, 5vw, 64px); text-align: center; }
.lp-head h2 { font-size: clamp(34px, 5.4vw, 68px); margin-top: 12px; }
.lp-head .lp-kick + h2 { margin-top: 14px; }
.lp-head h2:first-child { margin-top: 0; }
.lp-head p { font-size: clamp(16px, 1.8vw, 20px); color: var(--ink-2); line-height: 1.65; margin-top: 18px; }

/* Крупная цифра с подписью */
.lp-num { margin-top: 22px; }
.lp-num b { display: block; font-family: var(--font-sans); font-weight: 600; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.02em; }
.lp-num span { display: block; margin-top: 8px; font-size: 14px; opacity: .75; }

/* ---------- Первый экран ---------- */
.lp-hero { position: relative; overflow: hidden; }
.lp-hero-eyebrow { font-family: var(--font-sans); font-weight: 600; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .04em; }
.lp-hero h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; margin: 14px 0 0; }
.lp-hero-sub { margin-top: 20px; font-size: clamp(15px, 1.7vw, 19px); line-height: 1.6; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; }
.lp-sep { display: inline-block; width: 1px; height: 1em; background: currentColor; opacity: .35; margin: 0 14px; }
.lp-hero-price { margin-top: 22px; display: flex; gap: 12px; align-items: baseline; justify-content: center; }
.lp-hero-price .now { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); }
.lp-hero-price .old { color: var(--muted); text-decoration: line-through; }
.lp-hero-actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-play { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: currentColor; }
.lp-play svg { width: 12px !important; height: 12px !important; color: var(--cream); margin-left: 2px; }
.btn-light .lp-play svg { color: var(--ink); }
.lp-hero-note { margin-top: 16px; font-size: 12px; color: var(--muted); }

.lp-hero--product { padding-top: clamp(44px, 6vw, 84px); text-align: center; background: radial-gradient(120% 70% at 50% 100%, var(--cream-3) 0%, var(--cream) 62%); }
.lp-hero--product .lp-hero-text { max-width: 900px; margin: 0 auto; }
.lp-hero-stage { margin-top: clamp(30px, 4vw, 54px); display: flex; justify-content: center; }
.lp-hero-stage picture, .lp-hero-stage > img, .lp-hero-stage > video { display: block; }
.lp-hero-stage .lp-hero-img { width: auto; max-width: 100%; max-height: min(74vh, 820px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); object-fit: cover; }
.lp-hero--product.lp-th-dark { background: radial-gradient(120% 70% at 50% 100%, #2a2621 0%, #151412 62%); color: #f3efe7; }
.lp-hero--product.lp-th-dark .lp-hero-sub { color: rgba(243,239,231,.78); }

.lp-hero--cover { min-height: min(calc(100vh - var(--nav-h) - 60px), 900px); display: flex; color: #fff; }
.lp-hero-bg { position: absolute; inset: 0; z-index: 0; }
.lp-hero-bg picture, .lp-hero-bg .lp-cover-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-hero-bg .lp-cover-media { object-fit: cover; }
.lp-hero--cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lp-hero--cover.lp-th-dark::after { background: linear-gradient(180deg, rgba(15,13,11,.22) 0%, rgba(15,13,11,.34) 45%, rgba(15,13,11,.78) 100%); }
.lp-hero--cover.lp-th-dark .lp-hero-text { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.lp-hero--cover.lp-th-light { color: var(--ink); }
.lp-hero--cover.lp-th-light::after { background: linear-gradient(180deg, rgba(251,249,245,.55) 0%, rgba(251,249,245,0) 45%); }
.lp-hero--cover.lp-th-dark .lp-hero-sub, .lp-hero--cover.lp-th-dark .lp-hero-note { color: rgba(255,255,255,.85); }
.lp-hero-inner { position: relative; z-index: 2; display: flex; width: 100%; padding-block: clamp(40px, 7vw, 90px); }
.lp-hero--cover .lp-hero-text { max-width: 820px; text-align: center; margin-inline: auto; }
.lp-al-bottom .lp-hero-inner { align-items: flex-end; }
.lp-al-center .lp-hero-inner { align-items: center; }
.lp-al-top .lp-hero-inner { align-items: flex-start; }
.lp-al-left .lp-hero-inner { align-items: center; }
.lp-al-left .lp-hero-text { text-align: left; margin-inline: 0; max-width: 620px; }
.lp-al-left .lp-hero-sub, .lp-al-left .lp-hero-price, .lp-al-left .lp-hero-actions { justify-content: flex-start; }
.lp-hero--cover.lp-al-left.lp-th-dark::after { background: linear-gradient(90deg, rgba(15,13,11,.62) 0%, rgba(15,13,11,0) 70%); }

/* ---------- Карусель «Главное» ---------- */
.lp-carousel { position: relative; }
.lp-track {
  display: flex; gap: clamp(14px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.lp-track::-webkit-scrollbar { display: none; }
.lp-hcard {
  position: relative; flex: 0 0 min(84vw, 1040px); aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  scroll-snap-align: center; background: var(--sand); isolation: isolate;
}
.lp-hcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.lp-hcard:hover .lp-hcard-img { transform: scale(1.04); }
.lp-hcard::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.lp-hcard.lp-th-dark { color: #fff; }
.lp-hcard.lp-th-dark::after { background: linear-gradient(180deg, rgba(15,13,11,.55) 0%, rgba(15,13,11,0) 55%); }
.lp-hcard.lp-th-light::after { background: linear-gradient(180deg, rgba(251,249,245,.7) 0%, rgba(251,249,245,0) 55%); }
.lp-hcard.no-img.lp-th-dark { background: #1d1b18; }
.lp-hcard-body { padding: clamp(24px, 3.4vw, 48px); max-width: 620px; }
.lp-hcard h3 { font-size: clamp(26px, 3vw, 42px); }
.lp-hcard p { margin-top: 12px; font-size: clamp(14.5px, 1.4vw, 17px); line-height: 1.6; opacity: .9; }
.lp-car-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.lp-car-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); transition: background .25s, transform .25s; }
.lp-car-btn:hover { background: var(--ink); color: var(--cream); }
.lp-car-btn svg { width: 20px; height: 20px; }
.lp-dots { display: flex; gap: 8px; }
.lp-dot { width: 8px; height: 8px; border-radius: 100px; background: var(--line); transition: width .35s var(--ease), background .3s; }
.lp-dot.active { width: 26px; background: var(--ink); }
.lp-carousel[data-count="1"] .lp-car-ctrl { display: none; }
.lp-carousel[data-count="1"] .lp-hcard { flex-basis: min(92vw, var(--container)); }
.lp-hl-video { text-align: center; margin-top: 30px; }
.lp-bg-dark .lp-car-btn { background: #2a2722; color: #f3efe7; }
.lp-bg-dark .lp-dot { background: #3a362f; } .lp-bg-dark .lp-dot.active { background: var(--gold-soft); }

/* ---------- Глава ---------- */
.lp-chapter { padding-block: clamp(80px, 12vw, 180px); text-align: center; overflow: hidden; }
.lp-chapter-word {
  font-family: var(--font-serif); font-size: clamp(96px, 22vw, 320px); line-height: .82; letter-spacing: -.03em; white-space: nowrap;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(231,207,156,.15) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-chapter h2 { position: relative; font-size: clamp(36px, 6vw, 84px); margin-top: -.18em; }
.lp-chapter p { max-width: 720px; margin: 22px auto 0; font-size: clamp(16px, 1.8vw, 20px); color: var(--ink-2); line-height: 1.65; }

/* ---------- Фото/видео + цифры ---------- */
.lp-media-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream-3); }
.lp-media-frame.lp-media-wide { border-radius: 0; aspect-ratio: 21 / 9; }
.lp-media-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-media-stats { margin-top: clamp(36px, 5vw, 64px); }

/* ---------- Крупные цифры ---------- */
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 36px 20px; text-align: center; }
.lp-stat b {
  display: block; font-family: var(--font-sans); font-weight: 600; font-size: clamp(36px, 4.8vw, 64px); line-height: 1; letter-spacing: -.025em;
  background: linear-gradient(120deg, var(--ink) 30%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.lp-bg-dark .lp-stat b { background-image: linear-gradient(120deg, #fff 30%, var(--gold-soft)); }

/* ---------- Полноэкранный баннер ---------- */
.lp-feature { position: relative; min-height: min(92vh, 780px); display: flex; overflow: hidden; color: #fff; isolation: isolate; }
.lp-feature-bg { position: absolute; inset: 0; z-index: -2; }
.lp-feature-bg img, .lp-feature-bg video { width: 100%; height: 110%; object-fit: cover; }
.lp-feature-bg video { height: 100%; }
.lp-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,13,11,.3), rgba(15,13,11,.6)); }
.lp-feature.lp-th-light { color: var(--ink); }
.lp-feature.lp-th-light::after { background: linear-gradient(180deg, rgba(251,249,245,.45), rgba(251,249,245,.72)); }
.lp-feature-inner { display: flex; width: 100%; padding-block: clamp(50px, 8vw, 110px); justify-content: center; align-items: center; text-align: center; }
.lp-feature.lp-al-top .lp-feature-inner { align-items: flex-start; }
.lp-feature.lp-al-bottom .lp-feature-inner { align-items: flex-end; }
.lp-feature.lp-al-left .lp-feature-inner { justify-content: flex-start; text-align: left; }
.lp-feature.lp-al-left.lp-th-dark::after { background: linear-gradient(90deg, rgba(15,13,11,.65), rgba(15,13,11,.05) 75%); }
.lp-feature-text { max-width: 780px; }
.lp-feature .lp-kick { color: var(--gold-soft); }
.lp-feature.lp-th-light .lp-kick { color: var(--gold-deep); }
.lp-feature h2 { font-size: clamp(36px, 6vw, 80px); line-height: 1.02; margin-top: 14px; }
.lp-feature p { font-size: clamp(16px, 2vw, 21px); line-height: 1.6; opacity: .92; max-width: 600px; margin: 18px auto 0; }
.lp-feature.lp-al-left p { margin-left: 0; }

/* ---------- Фото + текст ---------- */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 84px); }
.lp-split.no-media { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; text-align: center; }
.lp-split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 6; box-shadow: var(--shadow); background: var(--cream-3); }
.lp-split-media img, .lp-split-media video { width: 100%; height: 100%; object-fit: cover; }
.lp-split.reverse .lp-split-media { order: 2; }
.lp-split-text h2 { font-size: clamp(32px, 4.4vw, 56px); margin-top: 12px; line-height: 1.05; }
.lp-split-text p { margin-top: 18px; font-size: 17px; color: var(--ink-2); line-height: 1.7; }
.lp-points { margin-top: 24px; display: grid; gap: 12px; text-align: left; }
.lp-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.lp-points svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); flex-shrink: 0; margin-top: 1px; }

/* ---------- Сетка карточек ---------- */
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); grid-auto-flow: dense; }
.lp-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; min-height: 300px; display: flex; flex-direction: column; isolation: isolate; }
.lp-bg-white .lp-card.lp-th-light { background: var(--cream-2); }
.lp-card-body { padding: clamp(24px, 2.8vw, 40px); position: relative; z-index: 1; }
.lp-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.01em; }
.lp-card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.lp-card .lp-num b { font-size: clamp(38px, 4vw, 58px); background: linear-gradient(120deg, var(--ink) 30%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-card-img { width: 100%; margin-top: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.lp-sz-wide { grid-column: span 2; }
.lp-sz-tall { grid-row: span 2; }
.lp-sz-full { grid-column: 1 / -1; }
.lp-sz-full .lp-card-img { aspect-ratio: 21 / 9; }
.lp-sz-tall .lp-card-img { flex: 1; aspect-ratio: auto; min-height: 260px; }
.lp-card.lp-th-dark { background: #1d1b18; color: #f3efe7; }
.lp-card.lp-th-dark p { color: rgba(243,239,231,.72); }
.lp-card.lp-th-dark .lp-num b { background-image: linear-gradient(120deg, #fff 30%, var(--gold-soft)); }
.lp-card.lp-th-image { color: #fff; min-height: 420px; justify-content: flex-end; }
.lp-card.lp-th-image .lp-card-img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; z-index: -2; margin: 0; transition: transform 1.2s var(--ease); }
.lp-card.lp-th-image:hover .lp-card-img { transform: scale(1.04); }
.lp-card.lp-th-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,13,11,0) 35%, rgba(15,13,11,.72) 100%); }
.lp-card.lp-th-image p { color: rgba(255,255,255,.86); }
.lp-card.lp-th-image .lp-num b { background-image: linear-gradient(120deg, #fff 30%, var(--gold-soft)); }
.lp-bg-dark .lp-card.lp-th-light { background: #1f1d19; color: #f3efe7; }
.lp-bg-dark .lp-card.lp-th-light p { color: rgba(243,239,231,.72); }
.lp-bg-dark .lp-card.lp-th-light .lp-num b { background-image: linear-gradient(120deg, #fff 30%, var(--gold-soft)); }

/* ---------- Цвета ---------- */
.lp-colors { display: flex; flex-direction: column; align-items: center; }
.lp-colors-stage { width: min(560px, 100%); aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-3); }
.lp-colors-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s; }
.lp-colors-stage img.swap { opacity: 0; }
.lp-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 30px; }
.lp-swatch { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.lp-swatch i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .25s; }
.lp-swatch.active i { outline-color: var(--ink); }
.lp-swatch.active { color: var(--ink); font-weight: 600; }
.lp-bg-dark .lp-swatch { color: rgba(243,239,231,.72); } .lp-bg-dark .lp-swatch.active { color: #fff; } .lp-bg-dark .lp-swatch.active i { outline-color: var(--gold-soft); }

/* ---------- Сертификаты ---------- */
.lp-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.lp-badge { background: #fff; border-radius: var(--radius); padding: 28px 26px; text-align: center; }
.lp-bg-white .lp-badge { background: var(--cream-2); }
.lp-bg-dark .lp-badge { background: #1f1d19; }
.lp-badge img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 16px; }
.lp-badge h3 { font-family: var(--font-sans); font-weight: 700; font-size: 17px; }
.lp-badge p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Галерея ---------- */
.lp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-gal-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; display: block; padding: 0; background: var(--cream-3); }
.lp-gal-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.lp-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lp-gal-item:hover img { transform: scale(1.05); }
.lp-gal-cap { position: absolute; left: 14px; bottom: 14px; right: 60px; text-align: left; color: #fff; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.lp-gal-zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--ink); opacity: 0; transition: opacity .3s; }
.lp-gal-zoom svg { width: 18px; height: 18px; }
.lp-gal-item:hover .lp-gal-zoom { opacity: 1; }

/* ---------- Видео ---------- */
.lp-video { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow-lg); }
.lp-video iframe, .lp-video video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Блок покупки ---------- */
.lp-buy { scroll-margin-top: 140px; }
.lp-buy .lp-buy-title { font-size: clamp(34px, 5vw, 60px); line-height: 1; margin: 10px 0 14px; }

/* ---------- Характеристики ---------- */
.lp-specs-sec { scroll-margin-top: 140px; }
.lp-specs { max-width: 980px; margin: 0 auto; }
.lp-spec-group { padding: 6px 0; }
.lp-specs.grouped .lp-spec-group { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.lp-specs.grouped .lp-spec-group:first-child { border-top: none; }
.lp-spec-group h3 { font-family: var(--font-sans); font-weight: 700; font-size: 17px; padding-top: 12px; }
.lp-spec-row { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.lp-spec-row span:first-child { color: var(--muted); }
.lp-spec-row span:last-child { font-weight: 600; text-align: right; }
.lp-bg-dark .lp-spec-row, .lp-bg-dark .lp-spec-group { border-color: #2f2c27; }

/* ---------- Сноски ---------- */
.lp-foot { padding-block: 36px 56px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.lp-foot h3 { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; color: var(--ink-2); }
.lp-foot ol { padding-left: 18px; max-width: 980px; display: grid; gap: 6px; }

/* ---------- Модальное окно ---------- */
.lp-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,9,8,.88); display: grid; place-items: center; padding: 64px 20px 24px; animation: lpFade .25s ease; }
@keyframes lpFade { from { opacity: 0; } to { opacity: 1; } }
.lp-modal-box { width: min(1120px, 100%); }
.lp-modal-video .lp-modal-box { aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; }
.lp-modal-video iframe, .lp-modal-video video { width: 100%; height: 100%; border: 0; display: block; }
.lp-modal-img .lp-modal-box { width: auto; max-width: min(1200px, 100%); }
.lp-modal-img img { max-width: 100%; max-height: 84vh; border-radius: 14px; margin: 0 auto; }
.lp-modal-cap { color: #fff; text-align: center; margin-top: 12px; font-size: 14px; }
.lp-modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; }
.lp-modal-close:hover { background: rgba(255,255,255,.25); }
.lp-modal-close svg { width: 22px; height: 22px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .lp-cards { grid-template-columns: repeat(2, 1fr); }
  .lp-sz-wide, .lp-sz-full { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .lp-split, .lp-split.reverse { grid-template-columns: 1fr; }
  .lp-split.reverse .lp-split-media { order: 0; }
  .lp-specs.grouped .lp-spec-group { grid-template-columns: 1fr; gap: 4px; }
  .lp-gallery { grid-template-columns: repeat(2, 1fr); }
  .lp-gal-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .lp-hcard { aspect-ratio: 4 / 5; flex-basis: 82vw; }
  .lp-media-frame.lp-media-wide { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .lp-cards { grid-template-columns: 1fr; }
  .lp-sz-tall { grid-row: auto; }
  .lp-card { min-height: 0; }
  .lp-card.lp-th-image { min-height: 360px; }
  .lp-hero-sub { flex-direction: column; }
  .lp-sep { display: none; }
  .lp-feature.lp-al-left .lp-feature-inner { text-align: center; justify-content: center; }
  .lp-spec-row { flex-direction: column; gap: 2px; }
  .lp-spec-row span:last-child { text-align: left; }
  .lp-page .pp-subnav .pp-sn-price { display: none; }
}
@media (max-width: 680px) {
  .lp-page .pp-subnav .pp-sn-links { display: flex; gap: 16px; margin-left: 0; }
  .lp-page .pp-subnav .pp-sn-name { display: none; }
  .lp-page .pp-subnav .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  .buy-bar-inner { gap: 10px; }
  .buy-bar .bb-actions { flex: 1; width: auto; min-width: 0; }
  .buy-bar .qty button { width: 34px; height: 44px; }
  .buy-bar .qty input { width: 30px; }
  .buy-bar .bb-price { font-size: 14px; white-space: nowrap; }
}
