/* =========================================================
   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; }
.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-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 { 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 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.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 { 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 { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/6; box-shadow: var(--shadow); }
.split-media img { 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 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.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; }
.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); }

/* ---------- 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%); transition: transform .4s var(--ease); display: flex; flex-direction: column; padding: 22px; overflow-y: auto; }
.drawer.open { transform: none; }
.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); }

/* ---------- 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; }
  .split, .pdp, .cart-layout { grid-template-columns: 1fr; }
  .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) {
  .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-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; }
}
