:root {
  --bg: #070707;
  --panel: #101010;
  --panel-soft: #171717;
  --text: #f5f1ec;
  --muted: #a49d96;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #df1f2d;
  --accent-dark: #8e111c;
  --accent-soft: rgba(223, 31, 45, .16);
  --ink: #050505;
  --glass: rgba(255,255,255,.075);
  --cream: #f5f1ec;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (min-width: 900px) {
  /* The CRM retains its existing density; the storefront uses real viewport sizes. */
  html:has(body.admin-page) { zoom: .8; }
}
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 16%, rgba(255,255,255,.035), transparent 34%),
    radial-gradient(circle at 12% 46%, rgba(255,255,255,.02), transparent 30%),
    linear-gradient(180deg, #050505 0, #070707 580px, var(--bg)),
    var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}

.site-header, main, footer {
  width: min(1420px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: 100%;
  height: 92px;
  padding-inline: max(28px, calc((100% - 1680px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 340px; height: 70px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 40px; margin: 0 auto; color: rgba(255,255,255,.74); font-size: 17px; font-weight: 700; }
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-link { padding: 10px 5px; color: #fff; font-size: 13px; font-weight: 800; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 800;
  transition: 180ms ease;
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(0,0,0,.28); }
.button-primary { background: linear-gradient(135deg, #ff3443, var(--accent)); color: #fff; box-shadow: 0 14px 30px rgba(223,31,45,.24); }
.button-primary:hover { background: #f33a45; }
.button-outline { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.07); }
.button-ghost { color: #fff; background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.22); }
.button span { font-size: 22px; line-height: 1; }

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(24px, calc((100vw - 1420px) / 2));
  background:
    linear-gradient(90deg, rgba(5,5,5,.99) 0%, rgba(5,5,5,.94) 25%, rgba(5,5,5,.44) 52%, rgba(5,5,5,.22) 78%, rgba(5,5,5,.55) 100%),
    linear-gradient(180deg, rgba(5,5,5,0) 40%, rgba(5,5,5,.5) 76%, rgba(5,5,5,.9) 92%, var(--bg) 100%),
    url("/assets/hero-iphone-camera-bw.webp") right center / auto 100% no-repeat;
}
.hero::before {
  position: absolute;
  inset: 0;
  height: 100%;
  content: "";
  background:
    /* маскируем красную дугу, зашитую в само фото */
    radial-gradient(ellipse 30% 42% at 33% 26%, rgba(5,5,5,.97) 0 42%, rgba(5,5,5,.55) 64%, transparent 80%),
    radial-gradient(ellipse 24% 30% at 26% 66%, rgba(5,5,5,.85), transparent 72%),
    linear-gradient(90deg, rgba(5,5,5,.08) 0%, transparent 24%, rgba(5,5,5,.34) 72%, var(--bg) 100%),
    linear-gradient(180deg, transparent 0 62%, rgba(5,5,5,.78) 88%, var(--bg) 100%),
    radial-gradient(circle at 78% 38%, rgba(255,255,255,.04), transparent 30%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 54px 0 44px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.eyebrow span { width: 26px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(58px, 5.8vw, 92px);
  font-weight: 900;
  letter-spacing: -3.4px;
  line-height: .92;
}
h1 em, h2 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; letter-spacing: -2.5px; }
.hero-text {
  max-width: 640px;
  color: #c8c0b8;
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; margin: 30px 0 28px; }
.hero-actions .button { gap: 10px; }
.hero-action-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero-action-icon-plane { fill: currentColor; stroke: none; }
.hero-facts { display: grid; width: min(740px, calc(100vw - 128px)); max-width: 100%; grid-template-columns: repeat(3, minmax(178px, 1fr)); gap: 12px; }
.hero-facts div { display: grid; min-width: 0; align-content: center; justify-items: center; gap: 0; min-height: 118px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.026)); box-shadow: 0 18px 40px rgba(0,0,0,.28); text-align: center; backdrop-filter: blur(16px); }
.hero-facts div:nth-child(2) { padding-right: 24px; }
.hero-facts div + div { position: static; }
.hero-facts div + div::before { content: none; }
.hero-facts b { display: none; }
.hero-facts p { display: grid; grid-template-rows: minmax(39px, auto) auto; width: 100%; margin: 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { display: grid; min-height: 39px; place-items: center; color: var(--cream); font-size: 18px; line-height: 1.08; letter-spacing: 0; text-align: center; }
.hero-facts span { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.28; letter-spacing: 0; text-transform: none; }
.hero-visual { position: relative; min-height: 640px; overflow: hidden; }
.hero-visual { pointer-events: none; }
.hero-visual::before {
  position: absolute;
  inset: 70px -30px 72px 60px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(223,31,45,.2), rgba(223,31,45,.055) 48%, transparent 70%);
  filter: blur(14px);
}
.hero-visual::after { position: absolute; inset: auto -160px -1px -130px; height: 180px; content: ""; background: linear-gradient(180deg, transparent, var(--bg) 76%); pointer-events: none; }
.hero-visual img {
  position: absolute;
  inset: -50px -210px -70px -210px;
  width: calc(100% + 420px);
  height: calc(100% + 120px);
  object-fit: cover;
  object-position: right center;
  filter: saturate(1.08) contrast(1.05) drop-shadow(0 32px 68px rgba(0,0,0,.38));
  mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 91%, transparent 100%);
}
.hero-visual::before, .hero-visual::after, .hero-visual img { display: none; }
.category-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  padding: 0 0 22px;
  position: relative;
  z-index: 2;
}
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
  padding: 0;
  color: #1f1f1f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: #f3f3f1;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  text-align: left;
  transition: 180ms ease;
  overflow: hidden;
}
.category-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(247,247,245,.98) 0%, rgba(247,247,245,.9) 28%, rgba(247,247,245,.18) 60%, rgba(247,247,245,0) 100%);
  pointer-events: none;
}
.category-card::after {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 3px;
  height: auto;
  content: "";
  background: var(--accent);
  opacity: 0;
  transform: scaleY(.55);
  transition: 180ms ease;
}
.category-card:hover, .category-card.active { border-color: rgba(223,31,45,.48); transform: translateY(-3px); box-shadow: 0 26px 52px rgba(0,0,0,.34); }
.category-card:hover::after, .category-card.active::after { opacity: .95; transform: scaleY(1); }
.category-card-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; overflow: hidden; border: 0; border-radius: 0; background: #f3f3f1; }
.category-card img { display: block; width: 100%; height: 100%; padding: 8px; object-fit: contain; object-position: center; filter: none; opacity: .98; }
.category-cover { background:#050505; }
.category-cover img { padding: 0; object-fit: cover; object-position: center; }
.category-card[data-brand="Apple"] img,
.category-card[data-brand="Dyson"] img,
.category-card[data-section="PlayStation"] img { filter: none; opacity: .98; }
.category-card[data-brand="Xiaomi"]:not(.category-card--image) img { width: 38px; height: 38px; padding: 4px; border-radius: 9px; background: #ff6900; filter: none; }
.category-card-copy { position: relative; z-index: 3; display: grid; gap: 8px; width: min(46%, 260px); min-width: 0; margin-top: auto; padding: 0 0 30px 32px; }
.category-card strong, .category-card small { display: block; min-width: 0; }
.category-card strong { font-size: 34px; line-height: .98; letter-spacing: 0; color: #202020; }
.category-card small { color: #777; font-size: 15px; line-height: 1.25; font-weight: 800; }
.catalog-section { position: relative; margin-bottom: 18px; padding: 34px 28px 44px; border:1px solid rgba(255,255,255,.1); border-radius: 24px; color: var(--cream); background: linear-gradient(180deg, #101010, #070707); box-shadow:0 24px 70px rgba(0,0,0,.32); overflow: hidden; }
.catalog-section::before { position: absolute; inset: 0 0 auto; height: 3px; content: ""; background: linear-gradient(90deg, var(--accent), transparent 72%); opacity: .9; }
.catalog-section .eyebrow { color: var(--accent); }
.promo-offers { position:relative; display:block; width:min(100%, 860px); aspect-ratio:65 / 42; height:auto; margin:0 auto 24px; overflow:hidden; border-radius:8px; background:#111; box-shadow:0 20px 60px rgba(0,0,0,.22); }
.promo-track { position:absolute; inset:0; }
.promo-offer { position:absolute; inset:0; display:block; overflow:hidden; border:0; background:#111; opacity:0; transform:translateX(12px); transition:opacity .45s ease, transform .45s ease; pointer-events:none; }
.promo-offer.is-active { opacity:1; transform:translateX(0); pointer-events:auto; }
.promo-offer img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
.promo-offer span { position:absolute; left:26px; bottom:22px; max-width:min(460px,70%); color:#111; font-size:clamp(24px,3.2vw,52px); font-weight:900; line-height:.95; letter-spacing:0; text-shadow:0 1px 14px rgba(255,255,255,.7); }
.promo-arrow { position:absolute; z-index:2; top:50%; display:grid; width:42px; height:42px; place-items:center; padding:0; color:#fff; border:1px solid rgba(255,255,255,.22); border-radius:50%; background:rgba(0,0,0,.42); box-shadow:0 12px 28px rgba(0,0,0,.28); font-size:32px; line-height:1; transform:translateY(-50%); }
.promo-arrow:hover { background:rgba(0,0,0,.62); }
.promo-prev { left:16px; }
.promo-next { right:16px; }
.promo-dots { position:absolute; z-index:2; right:18px; bottom:16px; display:flex; gap:7px; }
.promo-dots button { width:9px; height:9px; padding:0; border:0; border-radius:999px; background:rgba(255,255,255,.52); transition:width .2s ease, background .2s ease; }
.promo-dots button.is-active { width:24px; background:#fff; }
.section-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:22px 0 20px; }
.section-card { display:flex; min-height:250px; flex-direction:column; align-items:flex-start; padding:0; color:#202020; border:1px solid rgba(255,255,255,.08); border-radius:8px; background:#f3f3f1; text-align:left; box-shadow:0 18px 40px rgba(0,0,0,.28); transition:180ms ease; overflow:hidden; position:relative; }
.section-card::before { position:absolute; inset:0; z-index:1; content:""; background:linear-gradient(90deg, rgba(247,247,245,.98) 0%, rgba(247,247,245,.9) 30%, rgba(247,247,245,.18) 62%, rgba(247,247,245,0) 100%); pointer-events:none; }
.section-card .category-card-image { position:absolute; inset:0; width:100%; height:100%; margin:0; border-radius:0; background:#f3f3f1; }
.section-card .category-card-image img { width:100%; height:100%; padding:10px; object-fit:contain; object-position:center; filter:none; }
.section-card:hover { border-color:rgba(223,31,45,.42); transform:translateY(-2px); box-shadow:0 24px 52px rgba(0,0,0,.32); }
.section-card strong, .section-card small { display:block; }
.section-card strong { font-size:34px; line-height:.98; letter-spacing:0; color:#202020; }
.section-card small { color:#777; font-size:15px; font-weight:800; }
.category-card--image,
.section-card--image {
  aspect-ratio: 2 / 1;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: #050505;
  box-shadow: none;
  overflow: hidden;
}
.category-card--image:hover,
.category-card--image.active,
.section-card--image:hover {
  border: 0;
  box-shadow: none;
  transform: none;
}
.category-card--image::before,
.category-card--image::after,
.section-card--image::before,
.section-card--image::after,
.category-card--image .category-card-copy,
.section-card--image .category-card-copy { display: none; }
.category-card--image .category-card-image,
.section-card--image .category-card-image {
  border-radius: inherit;
  background: #050505;
  overflow: hidden;
}
.category-card--image .category-card-image img,
.section-card--image .category-card-image img {
  padding: 0;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transform: scale(1.025);
}

/* ===== Карточки брендов и категорий по 123.html ===== */
#brand-grid.category-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 22px 0 40px; padding: 0; }
.brand-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  min-height: 170px; padding: 30px 22px 22px;
  background: linear-gradient(180deg, #17171a 0%, #121214 100%);
  border: 1px solid rgba(245,241,236,0.08); border-radius: 16px;
  color: var(--cream); cursor: pointer; position: relative; overflow: hidden; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.6); }
.brand-card::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.brand-card:hover::after { transform: scaleX(1); }
.brand-logo { height: 42px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--cream); }
.brand-logo svg { height: 34px; width: auto; display: block; }
.brand-logo .word { font-weight: 700; line-height: 1; white-space: nowrap; }
.brand-logo .apple { font-size: 27px; letter-spacing: -0.01em; }
.brand-logo .tracked { font-size: 20px; letter-spacing: 0.18em; }
.brand-logo .lower { font-size: 30px; letter-spacing: -0.02em; }
.brand-logo .plain { font-size: 24px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.brand-logo .box { width: 38px; height: 38px; border: 2px solid var(--cream); border-radius: 11px; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-align: center; color: var(--muted); }

#section-grid.section-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 22px 0 40px; }
.cat-card {
  display: grid; grid-template-columns: 1fr 116px; gap: 16px; align-items: center;
  min-height: 132px; padding: 22px 24px;
  background: linear-gradient(180deg, #17171a 0%, #121214 100%);
  border: 1px solid rgba(245,241,236,0.08); border-radius: 16px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.55); }
.cat-card::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.cat-card:hover::after { transform: scaleX(1); }
.cat-info { min-width: 0; }
.cat-info .cat-name { font-size: 18px; font-weight: 700; color: var(--cream); letter-spacing: -0.01em; line-height: 1.25; }
.cat-info .cat-count { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 8px; }
.cat-media { justify-self: end; width: 100%; height: 90px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, #f4f1ec, #ebe7e0); }
.cat-media img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }

@media (max-width: 760px) {
  #brand-grid.category-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #section-grid.section-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { grid-template-columns: 1fr 92px; padding: 18px; }
}

.shop-path { display:flex; flex-wrap:wrap; align-items:center; gap:9px; min-height:34px; margin-top:10px; color:var(--muted); font-size:15px; }
.shop-path button { padding:7px 10px; color:var(--cream); border:1px solid rgba(255,255,255,.12); border-radius:999px; background:#151515; font-weight:800; }
.shop-path button:hover { border-color:rgba(223,31,45,.65); color:#fff; }
.shop-path i { color:rgba(255,255,255,.25); font-style:normal; }
.shop-path span { color:var(--accent); font-weight:900; }
.benefits-section { padding: 78px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h2 { margin-bottom: 0; font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -2.2px; line-height: .98; }
.global-search { margin:0 0 24px; min-height:58px; }
.catalog-toolbar { display: grid; grid-template-columns:minmax(260px,1.4fr) repeat(5,minmax(130px,1fr)) auto; gap: 10px; margin: 24px 0 14px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background:#0d0d0d; box-shadow: none; }
.catalog-toolbar select, .catalog-toolbar input, .catalog-toolbar button { min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: var(--cream); background: #16161a; outline: 0; transition: 160ms ease; box-shadow: none; }
.catalog-toolbar input::placeholder { color: #8a857f; }
.catalog-toolbar select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23a49d96' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.catalog-toolbar select:hover, .catalog-toolbar input:hover, .catalog-toolbar button:hover { border-color: rgba(255,255,255,.28); box-shadow: none; }
.catalog-toolbar select:focus, .catalog-toolbar input:focus { border-color: rgba(255,255,255,.42); box-shadow: none; }
.catalog-toolbar input[type="number"]::-webkit-outer-spin-button,
.catalog-toolbar input[type="number"]::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.catalog-toolbar input[type="number"] { appearance: textfield; }
.catalog-toolbar .reset-filters { display: flex; align-items: center; justify-content: center; gap: 8px; padding-inline: 22px; color: #fff; border-color: var(--accent); background: var(--accent); font-weight: 900; }
/* Поле поиска в тулбаре — тоже чёрное (через #id, чтобы перебить .catalog-section .search-field ниже) */
#catalog-toolbar .search-field { min-height: 52px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: #16161a; }
#catalog-toolbar .search-field input { color: var(--cream); height: 52px; }
#catalog-toolbar .search-field input::placeholder { color: #8a857f; }
.section-heading > .reset-filters { display: inline-flex; width: auto; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #f5f1ec; background: rgba(255,255,255,.06); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.24); font-weight: 850; }
.section-heading > .reset-filters::before { content: "←"; color: var(--accent); font-size: 18px; line-height: 1; }
.reset-filters span { font-size: 20px; font-weight: 400; line-height: 1; }
.catalog-section .search-field {
  display: flex;
  width: auto;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(18,18,18,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.92);
}
.search-field span { color: var(--accent); font-size: 22px; }
.catalog-section .search-field input {
  width: 100%;
  height: 46px;
  color: #202020;
  border: 0;
  outline: 0;
  background: transparent;
}
/* Чёрный глобальный поиск (только он, тулбар-поиск оставляем светлым) */
.catalog-section .global-search { border: 1px solid rgba(255,255,255,.14); background: #0d0d0d; }
.catalog-section .global-search input { color: var(--cream); }
.catalog-section .global-search input::placeholder { color: #8a857f; }
.sync-note { margin: 21px 0 24px; color: #727272; font-size: 12px; }
.sync-note.warning { color: #ffbc71; }
.catalog-result-line { display: flex; align-items: center; justify-content: space-between; min-height: 22px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
.product-card {
  display: grid;
  grid-template-rows: auto minmax(78px, auto) minmax(58px, auto) auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  transition: 180ms ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-open { display: contents; }
.product-media {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0 66%, #f3f1ed 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 16px 34px rgba(0,0,0,.22);
}
.product-icon {
  display: grid;
  width: 94px; height: 94px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  color: var(--accent);
  background: rgba(255,255,255,.04);
  font-family: Georgia, serif;
  font-size: 34px;
}
.product-thumb { width: 100%; height: 100%; padding: 6px; object-fit: contain; object-position: center; transition: transform 220ms ease; }
.product-thumb.is-fallback { width: 54%; height: 54%; padding: 0; opacity: .48; }
.product-card:hover .product-thumb { transform: scale(1.035); }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 7px 10px; color: #fff; background: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.product-category { margin-top: 16px; color: #858585; font-size: 11px; text-transform: uppercase; }
.product-card h3 { display:-webkit-box; min-height:60px; margin: 16px 0 15px; overflow:hidden; color: #f4f4f4; font-size: 17px; font-weight: 750; letter-spacing: 0; line-height: 1.28; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.color-picker { display: flex; min-height: 54px; align-content: flex-start; flex-wrap: wrap; gap: 5px 6px; margin: 0 0 12px; overflow: visible; }
.color-picker-empty { visibility: hidden; }
.color-picker button { display: flex; max-width: calc(50% - 3px); min-width: 0; align-items: center; gap: 5px; padding: 5px 7px; overflow: hidden; color: #666; border: 1px solid #d5d5d5; border-radius: 999px; background: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.color-picker button b { min-width:0; overflow:hidden; font:inherit; text-overflow:ellipsis; white-space:nowrap; }
.color-picker button.active { border-color: var(--accent); color: #222; }
.color-picker span, .detail-variants span { width: 12px; height: 12px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.14); border-radius: 50%; }
.variant-picker { display: grid; gap: 7px; margin: 5px 0 17px; }
.variant-picker span { color: #777; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.variant-select-shell { position: relative; display: block; }
.variant-picker select {
  width: 100%;
  min-height: 44px;
  padding: 0 39px 0 12px;
  color: #333;
  border: 1px solid #d1d1d1;
  border-radius: 13px;
  background: #fff;
  font-size: 12px;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
}
.variant-picker select:focus { border-color: rgba(223,31,45,.78); outline: 0; }
.variant-select-shell i { position: absolute; top: 50%; right: 13px; color: var(--accent); font-size: 19px; font-style: normal; line-height: 1; pointer-events: none; transform: translateY(-58%); }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 10px; align-self: end; min-height:54px; }
.product-price { min-width: 0; }
.product-price small, .product-price strong { display: block; }
.product-price small { margin-bottom: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.product-price s { color: #8b8580; text-decoration-color: rgba(223,31,45,.7); }
.product-price strong { color: #fff; font-size: 24px; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-price.fx-price-flip { animation: fx-priceflip .46s cubic-bezier(.22,.72,.24,1); transform-origin: center center; will-change: transform, opacity; }
.variant-status { display: block; margin-top: 5px; color: var(--accent) !important; font-weight: 800; }
.product-buy {
  min-height: 42px;
  min-width: 112px;
  padding: 0 16px;
  color: white;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff3443, var(--accent));
  font-size: 12px;
  font-weight: 800;
}
.product-buy:hover { background: #f33a45; }
.product-request { min-height: 42px; min-width: 112px; padding: 0 14px; border: 1px solid rgba(223,31,45,.45); border-radius: 13px; color: #fff; background: rgba(223,31,45,.12); font-size: 12px; font-weight: 800; }
.catalog-more {
  display: block;
  min-height: 46px;
  margin: 34px auto 0;
  padding: 0 20px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff3443, var(--accent));
  font-weight: 800;
}
.empty-state { margin-top: 22px; color: #727272; }

.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 18px; margin-top: 36px; }
.benefit-grid article { display: grid; min-height: 210px; align-content: start; grid-template-rows: auto 1fr auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.benefit-grid b { color: var(--accent); font-size: 15px; }
.benefit-grid h3 { margin: 44px 0 12px; font-size: 24px; line-height: 1.08; letter-spacing: -.4px; }
.benefit-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.contact-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  padding: 78px 0;
  border-top: 1px solid var(--line);
}
.contact-section h2 { margin-bottom: 20px; }
.contact-section > div > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.6; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.contact-card p { display: flex; justify-content: space-between; margin: 0; padding: 8px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.contact-card p strong { color: var(--cream); }
.contact-card a { padding-top: 8px; color: var(--cream); font-size: 18px; font-weight: 800; transition: color .18s ease, transform .18s ease; }
.contact-card a:hover { color: var(--accent); transform: translateX(3px); }
footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(150px, 1fr));
  align-items: start;
  gap: 26px;
  padding: 34px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.site-footer h2 { margin: 0 0 12px; color: var(--cream); font-size: 13px; letter-spacing: 1.1px; line-height:1.2; text-transform: uppercase; }
.site-footer p { margin: 0 0 9px; line-height:1.55; }
.site-footer a { display:block; margin:0 0 9px; color: var(--cream); font-weight:800; transition: color .18s ease; }
.site-footer a:hover { color: var(--accent); }
.benefit-grid article { transition: border-color .2s ease, transform .2s ease; }
.benefit-grid article:hover { border-color: rgba(255,255,255,.18); transform: translateY(-3px); }
.contact-card { transition: border-color .2s ease; }
.contact-card:hover { border-color: rgba(255,255,255,.16); }
.footer-brand .brand img { width:220px; height:48px; }
.footer-brand p { max-width:360px; margin-top:14px; }
.footer-links { display: contents; }
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 15px;
  color: #fff;
  border: 1px solid rgba(223,31,45,.56);
  border-radius: 14px;
  background: linear-gradient(135deg, #ff3443, var(--accent));
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.cart-button span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 8px;
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
  font-size: 12px;
  line-height: 1;
}
.cart-open { overflow: hidden; }
.cart-overlay {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}
.cart-overlay[hidden], [hidden] { display: none !important; }
.cart-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(560px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 26px 28px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 4%, rgba(255,255,255,.045), transparent 38%),
    #070707;
  box-shadow: -24px 0 75px rgba(0,0,0,.36);
}
.cart-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-panel-header h2 { margin: 0; font-size: 44px; line-height: .95; letter-spacing: -2px; }
.icon-button {
  display: grid;
  width: 44px; height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  font-size: 26px;
}
.cart-items { display: grid; gap: 10px; }
.cart-empty {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.cart-item img { width: 64px; height: 64px; padding: 6px; object-fit: contain; border-radius: 13px; background: #f8f7f4; }
.cart-item-copy { min-width: 0; }
.cart-item h3 { margin-bottom: 5px; overflow-wrap: anywhere; font-size: 15px; line-height: 1.25; }
.cart-item p, .cart-empty, .payment-note { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cart-item p { overflow-wrap: anywhere; }
.quantity-control { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #111; }
.quantity-control button { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.06); }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 18px; padding: 16px 18px; color: var(--muted); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.04); }
.cart-total strong { color: var(--cream); font-size: 25px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-form { display: grid; gap: 11px; padding-top: 2px; }
.order-form h3 { margin: 0 0 3px; font-size: 19px; letter-spacing: -.3px; }
.order-form input, .order-form select, .order-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  background: rgba(255,255,255,.045);
}
.cart-select-field { display: grid; gap: 7px; }
.checkout-recipient { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:3px 0; }
.checkout-recipient span { color:var(--muted); font-size:12px; font-weight:750; }
.checkout-recipient button { max-width:70%; padding:7px 0; color:var(--cream); border:0; background:none; font:inherit; font-size:12px; font-weight:800; line-height:1.3; text-align:right; text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:4px; cursor:pointer; }
.checkout-recipient button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.checkout-recipient-fields { display:grid; gap:11px; }
.checkout-recipient-fields[hidden] { display:none; }
.cart-select-field span { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.cart-select-field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.order-form textarea { resize: vertical; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.07); }
.order-form .button { width: 100%; margin-top: 2px; }
.legal-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 12px; line-height: 1.45; }
.legal-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.legal-check a { color: #ff4a45; text-decoration: none; }
.legal-check a:hover { color: #fff; }
.order-success { padding-top: 80px; }
.order-success b { color: var(--accent); font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; }
.order-success h3 { margin: 17px 0 11px; font-size: 28px; }
.order-success p { margin-bottom: 22px; color: var(--muted); line-height: 1.6; }
.order-success .button { width: 100%; margin-top: 9px; }
.success-items { margin: -8px 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); text-align: left; }
.success-items p { margin: 0 0 6px; color: var(--text); font-size: 14px; line-height: 1.45; }
.success-items p:last-child { margin-bottom: 0; }
.success-payment-amount, .qr-payment-amount { display: block; margin: 0 0 14px; color: #fff; font-size: 20px; letter-spacing: -.5px; }

.account-header, .account-main { width: min(1060px, calc(100% - 36px)); margin-inline: auto; }
.account-header { display: flex; height: 78px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.account-header > a:last-child { color: var(--muted); font-size: 14px; }
.account-header .brand img { width: 150px; height: 32px; object-fit: contain; object-position: left center; }
:where(a, button, input, select, textarea, .cart-button, .color-picker button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-main { padding: 64px 0; }
.account-intro { max-width: 760px; }
.account-intro h1, .payment-stub h1 { margin-bottom: 15px; }
.account-intro > p:last-child, .payment-stub > p { color: var(--muted); line-height: 1.6; }
.account-note { margin: 20px 0; color: var(--muted); font-size: 14px; }
.account-note.is-error { color: var(--accent); }
.account-note.is-success { color: #8fdcaa; }
.auth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 30px; }
.account-card { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.account-card h2, .account-orders-heading h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -1.5px; }
.account-card input {
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: var(--panel-soft);
}
.account-card input:focus { border-color: rgba(223,31,45,.76); }
.account-orders { margin-top: 32px; }
.account-orders-heading, .account-order header, .account-order footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.account-orders-list { display: grid; gap: 11px; margin-top: 18px; }
.account-order { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.account-order header { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.account-order header small, .account-order-items small { display: block; margin-top: 5px; color: var(--muted); }
.account-order header b { color: var(--accent); }
.account-order-items { padding: 14px 0; }
.account-order-items p { margin-bottom: 8px; }
.account-order footer { flex-wrap: wrap; padding-top: 13px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.account-order footer a { color: var(--accent); font-weight: 800; }
.account-empty { color: var(--muted); }
.payment-stub { width: min(620px, calc(100% - 36px)); margin: 0 auto; padding: 60px 0; }
.payment-stub .brand { margin-bottom: 80px; }
.payment-stub h1 { overflow-wrap: anywhere; font-size: clamp(42px, 7vw, 72px); letter-spacing: -4px; }
.payment-stub-card { display: grid; gap: 13px; margin-top: 27px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.payment-stub-card small { color: var(--muted); text-transform: uppercase; }
.payment-stub-card strong { margin-bottom: 12px; color: var(--cream); font-size: 23px; }
.qr-card { justify-items: center; text-align: center; }
.qr-card img { width: min(330px, 100%); aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: white; }
.qr-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.qr-placeholder { display: grid; width: min(330px, 100%); aspect-ratio: 1; place-content: center; gap: 10px; padding: 24px; border: 1px dashed var(--accent); border-radius: 16px; color: var(--muted); background: rgba(223,31,45,.08); }
.qr-placeholder strong { margin: 0; color: var(--cream); font-size: 22px; }
.product-page { padding: 28px 0 80px; }
.product-back { color: var(--muted); font-size: 14px; }
.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.85fr); gap: 44px; margin-top: 22px; }
.detail-gallery, .detail-copy { min-width: 0; }
.detail-image { display: grid; aspect-ratio: 1; place-items: center; border-radius: 22px; background: #f8f7f4; box-shadow: 0 18px 42px rgba(0,0,0,.26); cursor: pointer; }
.detail-image img { width: 100%; height: 100%; padding: 28px; object-fit: contain; }
.detail-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.detail-thumbs button { width: 82px; height: 82px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 14px; background: #f8f7f4; }
.detail-thumbs button.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.detail-thumbs img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.detail-skeleton { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.85fr); gap: 44px; margin-top: 22px; }
.detail-skeleton .sk-image { aspect-ratio: 1; border-radius: 22px; }
.detail-skeleton .sk-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.detail-skeleton .sk-thumbs span { width: 82px; height: 82px; flex: 0 0 auto; border-radius: 14px; }
.detail-skeleton .sk-copy { display: flex; flex-direction: column; gap: 16px; }
.detail-skeleton .sk-line { height: 18px; border-radius: 8px; }
.detail-skeleton .sk-title { height: 54px; width: 82%; }
.detail-skeleton .sk-sub { height: 20px; width: 46%; }
.detail-skeleton .sk-chips { display: flex; gap: 10px; }
.detail-skeleton .sk-chips span { width: 118px; height: 44px; border-radius: 999px; }
.detail-skeleton .sk-price { height: 40px; width: 210px; margin: 6px 0; }
.detail-skeleton .sk-specs { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.detail-skeleton .sk-specs span { height: 16px; border-radius: 6px; }
.detail-skeleton .sk-specs span:nth-child(odd) { width: 92%; }
.detail-skeleton .sk-specs span:nth-child(even) { width: 76%; }
.sk-shimmer { position: relative; overflow: hidden; background: #16161a; }
.sk-shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05) 40%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.05) 60%, transparent); animation: sk-slide 1.4s ease-in-out infinite; }
@keyframes sk-slide { 100% { transform: translateX(100%); } }
@media (max-width: 880px) { .detail-skeleton { grid-template-columns: 1fr; gap: 24px; } }
.detail-kicker { margin-bottom: 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.detail-copy h1 { margin-bottom: 18px; font-size: clamp(40px,5vw,68px); letter-spacing: -4px; }
.detail-description { color: var(--muted); line-height: 1.6; white-space: pre-line; }
.detail-variants { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.detail-variants > b { width: 100%; margin-bottom: 4px; font-size: 13px; }
.detail-variants button { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.detail-variants button.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(223,31,45,.1); }
.detail-variants small { color: var(--muted); }
.detail-buy { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-block: 1px solid var(--line); }
.detail-buy > strong { font-size: 31px; letter-spacing: -1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-price-stack { display:grid; gap:3px; }
.detail-price-stack s { color:var(--muted); font-size:18px; text-decoration-color:rgba(223,31,45,.75); }
.detail-price-stack strong { color:#fff; font-size:31px; letter-spacing:-1px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.detail-price-stack small { color:#ffd18a; font-size:13px; font-weight:800; }
.detail-extra { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.detail-extra summary { color: var(--cream); font-weight: 900; cursor: pointer; }
.detail-extra p { margin: 14px 0 0; color: var(--muted); line-height: 1.6; white-space: pre-line; }
.detail-specs { margin-top: 27px; }
.detail-specs h2 { margin-bottom: 13px; font-size: 27px; letter-spacing: -1px; }
.detail-specs p { display: grid; grid-template-columns: minmax(130px, .48fr) minmax(0, 1fr); gap: 14px; margin: 0; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.detail-specs span { color: var(--muted); }
.detail-specs strong { min-width:0; overflow-wrap:anywhere; line-height:1.35; }

@media (max-width: 1100px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 0; padding-top: 54px; }
  .hero { background-position: 66% center; }
  .hero-copy { max-width: 780px; padding-bottom: 0; }
  .hero-facts { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 100%; }
  .hero-facts div { padding: 24px 24px; }
  .hero-facts div:nth-child(2) { padding-right: 28px; }
  .hero-visual { min-height: 450px; margin-top: -10px; }
  .hero-visual img {
    inset: -24px -115px -26px -120px;
    width: calc(100% + 235px);
    height: calc(100% + 50px);
    object-position: 72% center;
    mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 90%, transparent 100%);
  }
  .category-strip { grid-template-columns: repeat(3, 1fr); padding-top: 34px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-toolbar { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
  main, footer { width: min(100% - 24px, 640px); }
  .site-header { width: 100%; height: 68px; padding-inline: 13px; }
  .brand img { width: 172px; height: 38px; }
  .main-nav, .header-cta { display: none; }
  .header-actions { min-width:0; gap:6px; }
  .cart-button { min-height:44px; max-width:104px; padding:0 9px; border-radius:13px; font-size:0; }
  .cart-button::before { content:"Корзина"; font-size:12px; }
  .cart-button span { min-width:20px; height:20px; margin-left:6px; font-size:11px; }
  .hero { min-height: auto; padding: 18px 0 0; }
  .hero {
    margin-inline: -13px;
    padding-inline: 13px;
    background:
      radial-gradient(circle at 82% 4%, rgba(223,31,45,.14), transparent 42%),
      linear-gradient(180deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.9) 58%, rgba(5,5,5,1) 100%);
  }
  .hero::before { background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.05), transparent 40%); }
  .hero-copy { padding: 12px 0 0; }
  h1 { max-width: 100%; font-size: clamp(39px, 11vw, 52px); letter-spacing: -1.8px; line-height: .96; }
  h1 em { letter-spacing: -1.4px; }
  .hero-text { font-size: 15px; line-height: 1.5; }
  .hero-actions { flex-direction: column; align-items: stretch; margin: 18px 0 18px; }
  .button { width: 100%; min-height: 52px; padding-inline: 18px; border-radius: 14px; }
  .hero-facts { grid-template-columns: 1fr; gap: 8px; max-width: 100%; }
  .hero-facts div { grid-template-columns: 1fr; align-content: center; gap: 0; min-height: 92px; padding: 16px; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .hero-facts div:nth-child(2) { padding-right: 20px; }
  .hero-facts b { display: none; }
  .hero-facts div:first-child { border-top: 0; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div + div::before { display: none; }
  .hero-facts strong { font-size: 18px; }
  .hero-facts span { margin-top:5px; font-size: 14px; }
  .hero-visual { display: none; min-height: 0; margin: 0; }
  .hero-visual img {
    inset: -12px -96px -18px -88px;
    width: calc(100% + 184px);
    height: calc(100% + 30px);
    object-position: 73% center;
    mask-image: linear-gradient(90deg, transparent 0, #000 17%, #000 91%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 17%, #000 91%, transparent 100%);
  }
  .category-strip { grid-template-columns: 1fr; padding: 18px 0 34px; gap: 12px; }
  .category-card { min-height: 168px; border-radius: 8px; }
  .category-card-copy { width: 48%; padding: 0 0 20px 20px; gap: 6px; }
  .category-card strong { font-size: 24px; }
  .category-card small { font-size: 12px; }
  .section-grid { grid-template-columns: 1fr; gap: 12px; }
  .section-card { min-height: 168px; border-radius: 8px; }
  .section-card strong { font-size: 24px; }
  .section-card small { font-size: 12px; }
  .catalog-section { padding: 28px 15px 34px; }
  .promo-offers { height:auto; margin-bottom: 20px; }
  .promo-offer span { left: 16px; bottom: 14px; max-width: 76%; font-size: 24px; }
  .promo-arrow { width:34px; height:34px; font-size:25px; }
  .promo-prev { left:9px; }
  .promo-next { right:9px; }
  .promo-dots { right:12px; bottom:10px; }
  .benefits-section { padding: 58px 0; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 9px; }
  .catalog-toolbar select, .catalog-toolbar input, .catalog-toolbar button { min-height: 48px; padding: 0 10px; font-size: 13px; }
  .catalog-toolbar .search-field, .catalog-toolbar .reset-filters { grid-column: 1 / -1; }
  .product-card { grid-template-rows:auto minmax(54px, auto) 30px auto; }
  .product-thumb { padding:8px; transform:scale(1.06); }
  .product-card:hover .product-thumb { transform:scale(1.08); }
  .product-card h3 { min-height: 54px; font-size: 14px; margin: 10px 0 10px; }
  .color-picker { height:28px; max-height:28px; min-height:28px; margin:0 0 8px; gap:6px; flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
  .color-picker::-webkit-scrollbar { display:none; }
  .color-picker-empty { display:flex; visibility:hidden; }
  .product-bottom { display:grid; grid-template-rows:auto 38px; align-items:end; justify-content:stretch; gap: 8px; min-height:76px; }
  .product-price { min-height:28px; }
  .product-price strong { font-size: 18px; }
  .product-buy, .product-request { width: 100%; min-height: 38px; padding: 0 10px; font-size: 11px; }
  .color-picker button { width:24px; height:24px; justify-content:center; padding:0; border-radius:50%; font-size:0; }
  .color-picker button b { display:none; }
  .color-picker span, .detail-variants span { width:15px; height:15px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .detail-copy h1 { font-size: 34px; letter-spacing: -2px; line-height: 1; }
  .detail-buy { align-items: stretch; flex-direction: column; }
  .detail-buy > strong { font-size: 28px; }
  .detail-specs p { grid-template-columns: minmax(96px, .42fr) minmax(0, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 190px; }
  .benefit-grid h3 { margin-top: 40px; }
  .contact-section { grid-template-columns: 1fr; padding: 58px 0; }
  footer { grid-template-columns: 1fr; gap: 18px; }
  .cart-panel { width:100%; padding: 16px; }
  .cart-panel-header { align-items: center; margin-bottom: 16px; }
  .cart-panel-header h2 { font-size: 32px; letter-spacing: -1.2px; }
  .cart-item { grid-template-columns: 52px minmax(0, 1fr); }
  .cart-item img { width: 52px; height: 52px; }
  .cart-item .quantity-control { grid-column: 1 / -1; justify-content: flex-end; }
  .account-link { display: none; }
  .auth-grid { grid-template-columns: 1fr; }
  .account-orders-heading { align-items: stretch; flex-direction: column; }
}
.topline { padding: 8px 18px; color: rgba(255,255,255,.9); background: #df1f2d; font-size: 14px; font-weight: 800; letter-spacing: .7px; text-align: center; text-transform: uppercase; }

body {
  background:
    radial-gradient(circle at 67% 22%, rgba(96,12,20,.14), transparent 32%),
    #050505;
}

/* ===== FX: анимации и микро-взаимодействия (2026-07) ===== */
::selection { background: var(--accent); color: #fff; }
html { scroll-behavior: smooth; }

/* Шапка: тень появляется при прокрутке */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(0,0,0,.5); }

/* Подчёркивание пунктов меню */
.main-nav a { position: relative; transition: color .18s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px; background: rgba(255,255,255,.85); transform: scaleX(0); transform-origin: left; transition: transform .24s ease; }
.main-nav a:hover::after { transform: scaleX(1); }

/* Появление блоков при скролле */
.fx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1); }
.fx-reveal.fx-in { opacity: 1; transform: none; }

/* Вход hero при загрузке */
@keyframes fx-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: fx-rise .7s cubic-bezier(.22,.61,.36,1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-copy > *:nth-child(4) { animation-delay: .34s; }
.hero-copy > *:nth-child(5) { animation-delay: .46s; }

/* Кнопки: стрелка сдвигается, по primary пробегает блик */
.button span { transition: transform .2s ease; }
.button:hover span { transform: translateX(4px); }
.button-primary { position: relative; overflow: hidden; }
.button-primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-130%) skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent); pointer-events: none; }
.button-primary:hover::after { transform: translateX(130%) skewX(-18deg); transition: transform .65s ease; }

/* Карточки товара: рамка и тень на наведении (подъём уже есть) */
.product-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.product-card:hover { border-color: rgba(255,255,255,.2); box-shadow: 0 20px 44px rgba(0,0,0,.38); }

/* Бегущая строка брендов */
.brand-ticker { overflow: hidden; margin-top: 6px; padding: 14px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brand-ticker > div { display: flex; width: max-content; animation: fx-ticker 38s linear infinite; }
.brand-ticker:hover > div { animation-play-state: paused; }
.brand-ticker span { margin-right: 48px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 2.6px; text-transform: uppercase; white-space: nowrap; }
.brand-ticker b { margin-right: 48px; color: #565656; font-weight: 800; }
@keyframes fx-ticker { to { transform: translateX(-50%); } }

/* Корзина: панель выезжает, фон затемняется мягче */
.cart-overlay:not([hidden]) .cart-panel { animation: fx-cart .38s cubic-bezier(.22,.61,.36,1); }
@keyframes fx-cart { from { opacity: 0; transform: translateX(56px); } }

/* Уважение reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .brand-ticker > div, .cart-overlay:not([hidden]) .cart-panel { animation: none !important; }
  .fx-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .button-primary::after { display: none; }
}

/* ===== FX2: полный анимационный слой «вау» (2026-07) ===== */

/* Киношное зерно поверх тёмных страниц (не админка) */
body:not(.admin-page)::after {
  content: ""; position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

/* Прогресс-бар чтения страницы */
#fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #2e2e2e, #efeae4); pointer-events: none; }

/* Кнопка «наверх» */
#fx-top { position: fixed; right: 26px; bottom: 26px; z-index: 8; display: grid; place-items: center; width: 48px; height: 48px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(12,12,12,.72); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .28s ease, transform .28s ease, visibility .28s, border-color .2s ease, box-shadow .2s ease; }
#fx-top.is-visible { opacity: 1; visibility: visible; transform: none; }
#fx-top:hover { border-color: rgba(255,255,255,.55); box-shadow: 0 10px 28px rgba(0,0,0,.5); }

/* Кинематографичная виньетка по краям экрана */
body:not(.admin-page)::before { content: ""; position: fixed; inset: -2px; z-index: 6; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, transparent 60%, rgba(0,0,0,.34) 100%); }

/* Подсказка «листайте» внизу hero */
.hero-cue { position: absolute; left: max(24px, calc((100vw - 1420px) / 2)); bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 10px; color: #8f8a85; font-size: 11px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; transition: opacity .3s ease; }
.hero-cue::before { content: ""; width: 34px; height: 1px; background: rgba(255,255,255,.35); }
.hero-cue svg { animation: fx-cue 1.7s ease-in-out infinite; }
.hero-cue.is-hidden { opacity: 0; }
@keyframes fx-cue { 50% { transform: translateY(4px); } }

/* Мерцающая линия по верху подвала */
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1; background: linear-gradient(90deg, transparent, rgba(255,255,255,.32) 50%, transparent); background-size: 220% 100%; animation: fx-sheen 9s linear infinite; pointer-events: none; }

/* Переливающийся акцент в заголовке hero */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em { background: linear-gradient(90deg, var(--accent) 0 42%, #ff8992 48%, #ffdadd 50%, #ff8992 52%, var(--accent) 58% 100%); background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .hero h1 em.is-price-sweeping { animation: hero-price-sweep 11s linear infinite; }
}
@keyframes hero-price-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes fx-sheen { to { background-position: -220% 0; } }
.hero .eyebrow span { transform-origin: left; animation: fx-line .9s .15s cubic-bezier(.22,.61,.36,1) backwards; }
@keyframes fx-line { from { transform: scaleX(0); } }

/* Спотлайт-подсветка карточек за курсором */
.fx-lit { position: relative; }
.fx-glare { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.11), transparent 62%); }
.fx-lit > .fx-glare { opacity: 1; }
.product-card > .fx-glare { border-radius: 18px; }

/* Пульс кнопки корзины при добавлении товара */
.cart-button.fx-pop { animation: fx-pop .45s cubic-bezier(.22,.61,.36,1); }
@keyframes fx-pop { 30% { transform: scale(1.14); } }

/* Плавная смена фото при выборе цвета на странице товара */
.detail-image img.fx-swap { animation: fx-imgfade .38s ease; }
@keyframes fx-imgfade { from { opacity: 0; transform: scale(.98); } }
.detail-thumbs button { transition: transform .18s ease, border-color .18s ease; }
.detail-thumbs button:hover { transform: translateY(-2px); }

/* Поиск: красное свечение при фокусе */
.search-field:focus-within { border-color: rgba(255,255,255,.5) !important; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.search-field { transition: border-color .2s ease, box-shadow .2s ease; }

/* Номера преимуществ — крупные градиентные */
.benefit-grid b { font-size: 44px; font-weight: 900; letter-spacing: -2px; background: linear-gradient(180deg, #ffffff, #575757); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }


/* Гигантский водяной знак в подвале */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: "АЙСТОР.ЕНК"; position: absolute; left: 50%; bottom: -.16em; z-index: 0; transform: translateX(-50%); font-size: clamp(110px, 15vw, 230px); font-weight: 900; letter-spacing: -.04em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05); pointer-events: none; }
.site-footer > * { position: relative; z-index: 1; }

/* Фирменный скроллбар (кроме админки) */
:root:not(:has(body.admin-page)) { scrollbar-color: #2c2c2c #0a0a0a; scrollbar-width: thin; }
:root:not(:has(body.admin-page))::-webkit-scrollbar { width: 11px; }
:root:not(:has(body.admin-page))::-webkit-scrollbar-track { background: #0a0a0a; }
:root:not(:has(body.admin-page))::-webkit-scrollbar-thumb { border: 3px solid #0a0a0a; border-radius: 8px; background: #2c2c2c; }
:root:not(:has(body.admin-page))::-webkit-scrollbar-thumb:hover { background: #4c4c4c; }

/* Мягкий кросс-фейд между страницами (прогрессивно, только поддерживающие браузеры) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* Reduced motion: всё статично */
@media (prefers-reduced-motion: reduce) {
  .hero h1 em, .hero .eyebrow span, .hero-cue svg, .site-footer::after, .cart-button.fx-pop, .detail-image img.fx-swap, .fx-loader img, .fx-loader-bar i { animation: none !important; }
  .fx-glare { display: none; }
  body:not(.admin-page)::after { display: none; }
}

/* ===== FX4: лоадер, возврат, категории v2, карточка товара (2026-07) ===== */

/* Брендовый лоадер страницы товара */
.fx-loader { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 56vh; }
.fx-loader img { width: 250px; height: auto; animation: fx-loader-pulse 1.7s ease-in-out infinite; }
.fx-loader-bar { position: relative; width: 210px; height: 3px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.09); }
.fx-loader-bar i { position: absolute; top: 0; bottom: 0; left: -35%; width: 35%; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: fx-loader-slide 1.15s cubic-bezier(.45,.05,.55,.95) infinite; }
.fx-loader small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
@keyframes fx-loader-pulse { 50% { opacity: .55; transform: scale(.985); } }
@keyframes fx-loader-slide { to { left: 100%; } }

/* Кнопка возврата — пилюля со стрелкой */
.product-back { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; margin-bottom: 8px; color: var(--cream); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); font-size: 14px; font-weight: 700; transition: border-color .2s ease, background .2s ease; }
.product-back:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.07); }
.product-back svg { transition: transform .2s ease; }
.product-back:hover svg { transform: translateX(-3px); }

/* Карточки категорий v2 — крупнее, медиа с зумом, стрелка */
.cat-card { grid-template-columns: 1fr 128px; min-height: 158px; padding: 26px; border-radius: 20px; }
.cat-card:hover { border-color: rgba(255,255,255,.18); }
.cat-info .cat-name { font-size: 24px; letter-spacing: -.02em; }
.cat-name::after { content: "→"; display: inline-block; margin-left: 10px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .22s ease, transform .22s ease; }
.cat-card:hover .cat-name::after { opacity: 1; transform: none; }
.cat-info .cat-count { display: inline-flex; margin-top: 12px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; }
.cat-card .cat-media { width: 128px; height: 128px; border-radius: 16px; box-shadow: 0 16px 32px rgba(0,0,0,.35); }
.cat-media img { padding: 12px; transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.cat-card:hover .cat-media img { transform: scale(1.12); }
@media (max-width: 760px) {
  .cat-card { grid-template-columns: 1fr 104px; min-height: 128px; padding: 18px; }
  .cat-card .cat-media { width: 104px; height: 104px; }
  .cat-info .cat-name { font-size: 19px; }
}

/* Карточка товара: липкая галерея, стеклянный блок покупки, живые характеристики */
@media (min-width: 901px) {
  .detail-gallery { position: sticky; top: 112px; align-self: start; }
}
.detail-buy { margin-top: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.detail-variants button { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.detail-variants button:hover { transform: translateY(-2px); }
.detail-specs p { margin: 0 -10px; padding: 12px 10px; border-radius: 8px; transition: background .15s ease; }
.detail-specs p:hover { background: rgba(255,255,255,.04); }

/* Первое появление карточки товара (одноразово — гасится классом fx-done из fx.js) */
#product-detail:not(.fx-done) .detail-gallery { animation: fx-rise .6s .05s cubic-bezier(.22,.61,.36,1) backwards; }
#product-detail:not(.fx-done) .detail-copy { animation: fx-rise .6s .16s cubic-bezier(.22,.61,.36,1) backwards; }
@media (prefers-reduced-motion: reduce) {
  #product-detail:not(.fx-done) .detail-gallery, #product-detail:not(.fx-done) .detail-copy { animation: none !important; }
}

/* ===== FX5: корзина и оформление заказа (2026-07) ===== */

/* Каскадное появление позиций при открытии корзины */
.cart-overlay:not([hidden]) .cart-item { animation: fx-rise .45s cubic-bezier(.22,.61,.36,1) backwards; }
.cart-overlay:not([hidden]) .cart-item:nth-child(1) { animation-delay: .10s; }
.cart-overlay:not([hidden]) .cart-item:nth-child(2) { animation-delay: .16s; }
.cart-overlay:not([hidden]) .cart-item:nth-child(3) { animation-delay: .22s; }
.cart-overlay:not([hidden]) .cart-item:nth-child(4) { animation-delay: .28s; }
.cart-overlay:not([hidden]) .cart-item:nth-child(n+5) { animation-delay: .34s; }

/* Позиции: живее на наведении */
.cart-item { transition: border-color .2s ease, transform .2s ease; }
.cart-item:hover { border-color: rgba(255,255,255,.22); transform: translateX(-2px); }
.cart-item img { transition: transform .25s ease; }
.cart-item:hover img { transform: scale(1.07); }

/* Степпер количества */
.quantity-control button { cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.quantity-control button:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.quantity-control button:active { transform: scale(.88); }
.quantity-control span { min-width: 18px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Кнопка закрытия — поворот */
.icon-button { transition: border-color .2s ease, transform .25s ease; cursor: pointer; }
.icon-button:hover { border-color: rgba(255,255,255,.35); transform: rotate(90deg); }

/* Итого — весомее */
.cart-total span { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.cart-total strong { font-size: 28px; letter-spacing: -1px; }

/* Пустая корзина — сцена, а не строчка */
.cart-empty { padding: 38px 18px; text-align: center; border-style: dashed; }
.cart-empty::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 14px; opacity: .75; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8a85' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1.4'/%3E%3Ccircle cx='19' cy='21' r='1.4'/%3E%3Cpath d='M2.5 3h2l2.6 12.6a2 2 0 0 0 2 1.6h9.2a2 2 0 0 0 2-1.6L22 7H6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Экран успеха: чек-марка с пружинкой */
.order-success::before { content: ""; display: block; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: linear-gradient(135deg, #ff3443, var(--accent)) padding-box; box-shadow: 0 14px 34px rgba(223,31,45,.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.6 4.5L19 7.5'/%3E%3C/svg%3E"), linear-gradient(135deg, #ff3443, var(--accent)); background-size: 30px 30px, cover; background-position: center, center; background-repeat: no-repeat; animation: fx-check-pop .5s cubic-bezier(.34,1.56,.64,1) backwards; }
.order-success:not([hidden]) > * { animation: fx-rise .5s cubic-bezier(.22,.61,.36,1) backwards; }
.order-success:not([hidden]) > *:nth-child(2) { animation-delay: .08s; }
.order-success:not([hidden]) > *:nth-child(3) { animation-delay: .14s; }
.order-success:not([hidden]) > *:nth-child(n+4) { animation-delay: .2s; }
@keyframes fx-check-pop { from { opacity: 0; transform: scale(.4); } }
.order-success { padding-top: 46px; }

@media (prefers-reduced-motion: reduce) {
  .cart-overlay:not([hidden]) .cart-item, .order-success::before, .order-success:not([hidden]) > * { animation: none !important; }
}
/* Позиция без фото: текст занимает колонки изображения+текста, степпер не растягивается */
.cart-item > .cart-item-copy:first-child { grid-column: 1 / 3; }

/* ===== FX6: тосты, полёт в корзину, поиск, лайтбокс, похожие, ЛК, 404 (2026-07) ===== */

/* Тосты — вместо системного alert() */
#fx-toasts { position: fixed; left: 50%; bottom: 26px; z-index: 60; display: flex; flex-direction: column; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.fx-toast { display: flex; align-items: center; gap: 10px; max-width: min(480px, calc(100vw - 40px)); padding: 13px 18px; color: var(--cream); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(14,14,15,.92); backdrop-filter: blur(12px); box-shadow: 0 18px 44px rgba(0,0,0,.5); font-size: 14px; font-weight: 600; animation: fx-toast-in .35s cubic-bezier(.22,.61,.36,1); }
.fx-toast.is-error { border-color: rgba(223,31,45,.55); }
.fx-toast.is-hide { animation: fx-toast-out .3s ease forwards; }
@keyframes fx-toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes fx-toast-out { to { opacity: 0; transform: translateY(10px); } }

/* Летящая в корзину миниатюра */
.fx-fly { position: fixed; z-index: 70; border-radius: 12px; object-fit: contain; background: #f8f7f4; pointer-events: none; box-shadow: 0 14px 34px rgba(0,0,0,.45); transition: transform .7s cubic-bezier(.3,.7,.4,1), opacity .7s ease; }

/* Скелетоны первой загрузки каталога */
.fx-skel-card { min-height: 128px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: linear-gradient(180deg, #141416, #101012); position: relative; overflow: hidden; }
.fx-skel-card::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05) 50%, transparent); animation: sk-slide 1.4s ease-in-out infinite; }

/* Оверлей-поиск */
#fx-search { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: center; padding: 12vh 20px 20px; background: rgba(0,0,0,.74); backdrop-filter: blur(8px); }
#fx-search[hidden] { display: none; }
.fx-search-panel { width: min(680px, 100%); max-height: 72vh; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: #0d0d0e; box-shadow: 0 40px 120px rgba(0,0,0,.6); overflow: hidden; animation: fx-rise .35s cubic-bezier(.22,.61,.36,1); }
.fx-search-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.fx-search-input svg { flex: 0 0 auto; color: var(--muted); }
.fx-search-input input { flex: 1; min-width: 0; padding: 0; color: var(--cream); border: 0; background: transparent; font-size: 18px; outline: none; }
.fx-search-input kbd { flex: 0 0 auto; padding: 4px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; font-size: 11px; font-family: inherit; }
.fx-search-results { overflow-y: auto; padding: 8px; }
.fx-search-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 13px; align-items: center; width: 100%; padding: 10px 12px; color: var(--cream); border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; transition: background .12s ease; }
.fx-search-row:hover, .fx-search-row.is-active { background: rgba(255,255,255,.06); }
.fx-search-row img { width: 52px; height: 52px; padding: 5px; object-fit: contain; border-radius: 10px; background: #f8f7f4; }
.fx-search-row h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-search-row small { color: var(--muted); font-size: 12px; }
.fx-search-row strong { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-search-empty { padding: 26px 16px; color: var(--muted); font-size: 14px; text-align: center; }
.icon-round { display: grid; width: 44px; height: 44px; place-items: center; color: var(--cream); border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.icon-round:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.09); }

/* Лайтбокс галереи товара */
.fx-lightbox { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(0,0,0,.9); backdrop-filter: blur(6px); animation: fx-toast-in .25s ease; }
.fx-lightbox[hidden] { display: none; }
.fx-lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; border-radius: 18px; background: #f8f7f4; object-fit: contain; padding: 20px; animation: fx-check-pop .3s ease; }
.fx-lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(10,10,10,.6); cursor: pointer; transition: border-color .2s, background .2s; }
.fx-lightbox button:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); }
.fx-lightbox .lb-close { top: 22px; right: 22px; }
.fx-lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.fx-lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.fx-lightbox .lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
.detail-image { cursor: zoom-in; }

/* Похожие товары */
.detail-related { margin-top: 34px; }
.detail-related h2 { margin-bottom: 14px; font-size: 24px; letter-spacing: -.8px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.related-card { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035); transition: border-color .2s ease, transform .2s ease; }
.related-card:hover { border-color: rgba(255,255,255,.24); transform: translateY(-2px); }
.related-card img { width: 56px; height: 56px; padding: 5px; object-fit: contain; border-radius: 10px; background: #f8f7f4; }
.related-card h4 { margin: 0 0 3px; font-size: 13px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card strong { font-size: 13px; color: var(--cream); }

/* Недавно смотрели (главная) */
#recent-section { margin: 8px 0 26px; }
#recent-section h2 { margin-bottom: 14px; font-size: 26px; letter-spacing: -1px; }
.recent-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.recent-strip::-webkit-scrollbar { display: none; }
.recent-card { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); transition: border-color .2s ease, transform .2s ease; }
.recent-card:hover { border-color: rgba(255,255,255,.24); transform: translateY(-2px); }
.recent-card img { width: 58px; height: 58px; padding: 5px; object-fit: contain; border-radius: 11px; background: #f8f7f4; }
.recent-card h4 { margin: 0 0 3px; font-size: 13px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-card strong { font-size: 13px; }

/* Кнопка «поделиться» на товаре */
.detail-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: 12px; }
.detail-title-row h1 { margin-bottom: 18px; }
.detail-share { margin-top: 0; }

/* Мобильный бар покупки */
.mobile-buybar { display: none; }
@media (max-width: 760px) {
  .mobile-buybar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(12,12,13,.9); backdrop-filter: blur(14px); box-shadow: 0 18px 44px rgba(0,0,0,.55); animation: fx-rise .4s .3s cubic-bezier(.22,.61,.36,1) backwards; }
  .mobile-buybar strong { font-size: 21px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mobile-buybar .button { min-height: 46px; padding: 0 20px; }
  .product-page { padding-bottom: 110px; }
  #fx-top { bottom: 92px; }
}

/* ЛК: чипы статусов и полировка */
.acc-chip { display: inline-flex; padding: 5px 10px; margin: 2px 4px 2px 0; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--cream); font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.acc-chip.is-ready, .acc-chip.is-completed, .acc-chip.is-paid { background: rgba(255,255,255,.14); }
.acc-chip.is-cancelled, .acc-chip.is-refunded { color: #ff8189; background: rgba(223,31,45,.16); }
.account-card { transition: border-color .2s ease; }
.account-card:hover { border-color: rgba(255,255,255,.18); }

/* Страница 404 */
.fx-404 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 88vh; padding: 24px; text-align: center; }
.fx-404-logo { width: 220px; margin-bottom: 26px; }
.fx-404-code { margin: 0; font-size: clamp(120px, 22vw, 230px); font-weight: 900; line-height: .9; letter-spacing: -8px; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.14); animation: fx-loader-pulse 2.4s ease-in-out infinite; }
.fx-404 h1 { margin: 10px 0 6px; font-size: 30px; letter-spacing: -1px; }
.fx-404-text { max-width: 420px; color: var(--muted); line-height: 1.55; }
.fx-404-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .fx-toast, .fx-fly, .fx-skel-card::after, .fx-search-panel, .fx-lightbox, .fx-lightbox img, .mobile-buybar, .fx-404-code { animation: none !important; transition: none !important; }
}

/* ===== FX10: шапка — единый ряд действий (2026-07) ===== */
.header-actions { gap: 10px; }
.header-actions .icon-round { width: 46px; height: 46px; }

/* Кабинет — пилюля с иконкой (иконка через ::before: JS меняет textContent) */
.account-link { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; max-width: 210px; padding: 0 18px 0 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--cream); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); font-family: "Manrope", Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 800; transition: border-color .2s ease, background .2s ease; }
.account-link:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.07); }
.account-link::before { content: ""; width: 15px; height: 15px; flex: 0 0 auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f1ec' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.6-4 5-6 8-6s6.4 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Telegram-бот — та же пилюля, с иконкой */
.header-actions .button-outline { min-height: 46px; padding: 0 19px; gap: 9px; border-radius: 999px; font-family: "Manrope", Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 800; border-color: var(--line); background: rgba(255,255,255,.04); }
.header-actions .button-outline:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); transform: none; box-shadow: none; }
.header-actions .button-outline::before { content: ""; width: 16px; height: 16px; flex: 0 0 auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5f1ec'%3E%3Cpath d='M20.8 3.7 3.9 10.2c-.9.4-.9 1.6.1 1.9l4.2 1.3 1.6 5c.3.9 1.5 1.1 2 .3l2.4-2.6 4.2 3.1c.7.5 1.6.1 1.8-.7l2.2-13.8c.2-.8-.8-1.4-1.6-1Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Корзина — фирменная красная пилюля с иконкой и чётким бейджем */
.cart-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 17px; color: #fff; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff3443, var(--accent)); font-family: "Manrope", Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 26px rgba(223,31,45,.28); transition: transform .18s ease, box-shadow .18s ease; }
.cart-button:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(223,31,45,.38); }
.cart-button::before { content: ""; width: 17px; height: 17px; flex: 0 0 auto; font-size: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1.3'/%3E%3Ccircle cx='19' cy='21' r='1.3'/%3E%3Cpath d='M2.5 3h2l2.6 12.6a2 2 0 0 0 2 1.6h9.2a2 2 0 0 0 2-1.6L22 7H6'/%3E%3C/svg%3E") center / contain no-repeat; }
.cart-button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin: 0; border-radius: 999px; background: #fff; color: var(--accent); font-size: 12px; font-weight: 900; line-height: 1; }

@media (max-width: 760px) {
  .cart-button { max-width: none; padding: 0 13px; border-radius: 999px; font-size: 0; gap: 7px; }
  .cart-button::before { content: ""; width: 18px; height: 18px; }
  .cart-button span { min-width: 20px; height: 20px; font-size: 11px; }
  .header-actions .icon-round { width: 42px; height: 42px; }
}

/* ===== FX11: Quick View, избранное, конфетти (2026-07) ===== */
.product-card { position: relative; }

/* Кнопка быстрого просмотра — всплывает над фото при наведении */
.qv-button { position: absolute; left: 50%; top: 30%; z-index: 4; transform: translate(-50%, 8px); padding: 10px 16px; color: #111; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 10px 26px rgba(0,0,0,.32); }
.product-card:hover .qv-button { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (pointer: coarse) { .qv-button { display: none; } }

/* Сердечко избранного на карточке */
.fav-button { position: absolute; right: 10px; top: 10px; z-index: 4; display: grid; box-sizing: border-box; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(0,0,0,.08); border-radius: 50%; background: rgba(255,255,255,.93); line-height: 0; cursor: pointer; transition: transform .15s ease; }
.fav-button:hover { transform: scale(1.1); }
.fav-button svg { display: block; width: 19px; height: 19px; margin: 0; overflow: visible; fill: none; stroke: #777b83; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: fill .15s ease, stroke .15s ease; }
.fav-button.is-active svg { fill: var(--accent); stroke: var(--accent); }
.fav-button.is-active { animation: fx-pop .4s cubic-bezier(.22,.61,.36,1); }

/* Сердечко на странице товара */
.detail-fav.is-active { border-color: rgba(223,31,45,.55); color: var(--accent); }
.detail-fav.is-active svg { fill: var(--accent); }
.detail-title-row > .icon-round { box-sizing: border-box; padding: 0; place-items: center; line-height: 0; }
.detail-title-row > .icon-round svg { display: block; width: 20px; height: 20px; margin: 0; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Quick View модалка */
#fx-quickview { position: fixed; inset: 0; z-index: 42; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.74); backdrop-filter: blur(8px); }
#fx-quickview[hidden] { display: none; }
.qv-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; width: min(880px, 100%); max-height: 86vh; overflow-y: auto; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: #0d0d0e; box-shadow: 0 40px 120px rgba(0,0,0,.6); animation: fx-rise .3s cubic-bezier(.22,.61,.36,1); }
.qv-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; color: var(--cream); border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); cursor: pointer; transition: border-color .2s, transform .25s; }
.qv-close:hover { border-color: rgba(255,255,255,.4); transform: rotate(90deg); }
.qv-media { display: grid; gap: 8px; align-content: start; }
.qv-image { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #f8f7f4; }
.qv-image img { width: 100%; height: 100%; padding: 18px; object-fit: contain; }
.qv-thumbs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.qv-thumbs::-webkit-scrollbar { display: none; }
.qv-thumbs button { width: 56px; height: 56px; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #f8f7f4; }
.qv-thumbs button.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.qv-thumbs img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.qv-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-right: 30px; }
.qv-info h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.8px; line-height: 1.18; }
.qv-variants { display: flex; flex-wrap: wrap; gap: 7px; }
.qv-variants button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.05); color: var(--cream); font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .15s; }
.qv-variants button.active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(223,31,45,.35); }
.qv-variants i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); font-style: normal; }
.qv-price { font-size: 30px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.qv-price s { display: block; color: var(--muted); font-size: 15px; font-weight: 600; }
.qv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qv-link { margin-top: auto; align-self: flex-start; color: var(--muted); font-size: 13px; font-weight: 700; transition: color .18s ease; }
.qv-link:hover { color: var(--accent); }
@media (max-width: 720px) { .qv-panel { grid-template-columns: 1fr; } .qv-info { padding-right: 0; } }

/* Конфетти */
#fx-confetti { position: fixed; inset: 0; z-index: 75; pointer-events: none; }

#fav-section { margin: 8px 0 26px; }
#fav-section h2 { margin-bottom: 14px; font-size: 26px; letter-spacing: -1px; }

@media (prefers-reduced-motion: reduce) {
  .qv-panel, .fav-button.is-active { animation: none !important; }
}

/* ===== FX12: конфигуратор моделей + QV-полировка (2026-07) ===== */
/* Супер-карточка: flex-раскладка (появляется блок конфигуратора) */
.product-card.is-super { display: flex; flex-direction: column; }
.product-card.is-super .product-bottom { margin-top: auto; }

/* Ряды конфигуратора: Память / SIM */
.cfg-rows { display: grid; gap: 7px; margin: 2px 0 10px; }
.cfg-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cfg-label { flex: 0 0 auto; color: #777; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.cfg-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cfg-chip { display: inline-flex; align-items: center; padding: 6px 11px; color: var(--cream); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.045); font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .12s ease; }
.cfg-chip:hover { border-color: rgba(255,255,255,.36); }
.cfg-chip:active { transform: scale(.95); }
.cfg-chip.active { color: #fff; border-color: var(--accent); background: rgba(223,31,45,.14); box-shadow: 0 0 0 1px rgba(223,31,45,.25); }

/* Конфигуратор на странице товара — крупнее */
.detail-copy .cfg-rows { margin: 0 0 16px; gap: 9px; }
.detail-copy .cfg-chip { padding: 9px 15px; font-size: 13px; }

/* QV: стрелки листания на фото */
.qv-image { position: relative; }
.qv-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; transform: translateY(-50%); color: #fff; border: 0; border-radius: 50%; background: rgba(10,10,10,.55); cursor: pointer; transition: background .15s ease; }
.qv-nav:hover { background: rgba(10,10,10,.8); }
.qv-prev { left: 10px; }
.qv-next { right: 10px; }
.qv-image img.fx-swap { animation: fx-imgfade .3s ease; }
.qv-cfg { display: grid; gap: 8px; }
.qv-cfg:empty { display: none; }

/* Перелистывание цены при смене варианта */
.fx-price-pop { animation: fx-priceflip .46s cubic-bezier(.22,.72,.24,1); display: inline-block; transform-origin: center center; will-change: transform, opacity; }
@keyframes fx-priceflip {
  0% { opacity: .18; transform: translateY(-12px) rotateX(72deg); }
  58% { opacity: 1; transform: translateY(2px) rotateX(-8deg); color: #ff6b76; }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .qv-image img.fx-swap, .fx-price-pop, .fx-price-flip, .product-thumb.fx-swap { animation: none !important; }
}

/* ===== FX14: характеристики и описание — структура (2026-07) ===== */
/* Плитки-хайлайты */
.spec-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.spec-hero-tile { display: grid; gap: 6px; justify-items: start; padding: 15px 15px 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 15px; background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); transition: border-color .2s ease; }
.spec-hero-tile:hover { border-color: rgba(255,255,255,.24); }
.spec-hero-tile svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spec-hero-tile strong { font-size: 14px; line-height: 1.25; letter-spacing: -.2px; overflow-wrap: anywhere; }
.spec-hero-tile span { color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
@media (max-width: 760px) { .spec-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* «О товаре» */
.detail-about { margin-top: 26px; }
.detail-about h2 { margin-bottom: 12px; font-size: 27px; letter-spacing: -1px; }
.about-body { position: relative; color: #c9c2ba; font-size: 15px; line-height: 1.7; }
.about-body p { margin: 0 0 13px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body ul { margin: 0 0 13px; padding: 0; list-style: none; }
.about-body li { position: relative; margin-bottom: 7px; padding-left: 18px; }
.about-body li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.about-body.is-collapsed { max-height: 154px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent 98%); mask-image: linear-gradient(#000 45%, transparent 98%); }
.about-toggle { margin-top: 10px; padding: 10px 18px; color: var(--cream); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.about-toggle:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.07); }

/* Группы характеристик */
.spec-group { margin-top: 18px; }
.spec-group:first-of-type { margin-top: 4px; }
.spec-group-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.14); color: var(--cream); font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.spec-group-head svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spec-group p:first-of-type { border-top: 0; }

@media (prefers-reduced-motion: reduce) { .about-body.is-collapsed { mask-image: none; -webkit-mask-image: none; } }

/* ===== FX15: полка «Сейчас выгодно» ===== */
#deals-section { margin: 8px 0 26px; }
#deals-section h2 { margin-bottom: 14px; font-size: 26px; letter-spacing: -1px; }
.deal-card strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; }
.deal-card s { color: var(--muted); font-size: 11px; font-weight: 600; }
.deal-card em { display: block; margin-top: 3px; color: #ff6b76; font-size: 11px; font-weight: 800; font-style: normal; letter-spacing: .3px; }

/* ===== FX16: единый язык чипов конфигуратора ===== */
.color-picker button { padding: 6px 10px; color: var(--cream); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.045); font-size: 11px; font-weight: 700; transition: border-color .15s ease, background .15s ease, transform .12s ease; }
.color-picker button:hover { border-color: rgba(255,255,255,.36); }
.color-picker button:active { transform: scale(.95); }
.color-picker button.active { color: #fff; border-color: var(--accent); background: rgba(223,31,45,.14); box-shadow: 0 0 0 1px rgba(223,31,45,.25); }
.color-picker span, .detail-variants span { width: 13px; height: 13px; border-color: rgba(255,255,255,.35); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }

.product-card.is-super h3 { min-height: 0; margin: 12px 0; }
.product-card.is-super .cfg-rows { margin: 0 0 14px; gap: 8px; }
.product-card.is-super .cfg-label { flex: 0 0 54px; }
.cfg-row .color-picker { flex: 1; min-height: 0; margin: 0; }
.cfg-row-colors .color-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfg-row .color-picker button { width: 100%; max-width: 100%; }
.cfg-row-colors { align-items: flex-start; }
.cfg-row-colors .cfg-label { margin-top: 7px; }

.detail-variants button { color: var(--cream); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.05); font-size: 13px; font-weight: 700; }
.detail-variants button.active { border-color: var(--accent); background: rgba(223,31,45,.14); box-shadow: 0 0 0 1px rgba(223,31,45,.3); }

@media (max-width: 760px) {
  .cfg-row-colors .color-picker { display: flex; }
  .color-picker button { width: 24px; height: 24px; justify-content: center; padding: 0; font-size: 0; border-radius: 50%; }
  .product-card.is-super h3 { margin: 8px 0; }
  .product-card.is-super .cfg-label { flex-basis: 50px; }
  .cfg-row-colors .cfg-label { margin-top: 5px; }
}

/* ===== FX17: фирменная типографика ===== */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
body { font-family: "Manrope", Inter, "Segoe UI", Arial, sans-serif; }
body:not(.admin-page) h1, body:not(.admin-page) h2 { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 550; letter-spacing: -0.4px; }
body:not(.admin-page) h1 { font-weight: 600; letter-spacing: -0.8px; }
.site-footer h2, .qv-info h2 { font-family: "Manrope", Inter, sans-serif; letter-spacing: 0; font-weight: 750; }
body:not(.admin-page) .hero h1 { font-family: "Manrope", Inter, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -3.4px; }

/* ===== FX17: view transitions ===== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fx-vt-out .16s ease both; }
::view-transition-new(root) { animation: fx-vt-in .26s ease both; }
@keyframes fx-vt-out { to { opacity: 0; } }
@keyframes fx-vt-in { from { opacity: 0; transform: translateY(7px); } }
.detail-image img { view-transition-name: product-hero; }
::view-transition-group(product-hero) { animation-duration: .32s; animation-timing-function: cubic-bezier(.3,.9,.3,1); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-image-pair(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ===== FX17: отклик кнопки «В корзину» ===== */
.fx-added { animation: fx-added-pop .32s ease; }
@keyframes fx-added-pop { 40% { transform: scale(.93); } }

/* ===== FX17: пустое состояние каталога ===== */
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 46px 20px 42px; margin: 6px 0 10px; color: var(--muted); border: 1px dashed rgba(255,255,255,.16); border-radius: 18px; text-align: center; }
.empty-state svg { width: 44px; height: 44px; margin-bottom: 8px; color: #8f8a85; opacity: .8; }
.empty-state strong { color: var(--cream); font-size: 17px; font-weight: 750; }
.empty-state p { margin: 0; font-size: 13px; }
.empty-state .button { margin-top: 14px; }

/* ===== FX17: промо-полоса ===== */
.promo-bar { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 46px; border-bottom: 1px solid var(--line); background: #0d0e11; font-size: 12.5px; font-weight: 650; letter-spacing: .2px; }
.promo-bar a, .promo-bar span { color: var(--cream); text-decoration: none; }
.promo-bar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.promo-bar button { position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 27px; height: 27px; padding: 0; transform: translateY(-50%); color: var(--muted); border: 0; border-radius: 50%; background: transparent; font-size: 12px; cursor: pointer; }
.promo-bar button:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ===== Светлая витрина: главная остаётся тёмной, каталог и товар — белые ===== */
.catalog-section {
  color: #171717;
  border-color: #e5e5e7;
  background: #fff;
  box-shadow: 0 22px 64px rgba(0,0,0,.2);
}
.catalog-section .global-search,
#catalog-toolbar .search-field,
.catalog-toolbar {
  border-color: #dedee2;
  background: #f7f7f8;
}
.catalog-section .global-search input,
#catalog-toolbar .search-field input { color: #171717; }
.catalog-section .global-search input::placeholder,
#catalog-toolbar .search-field input::placeholder { color: #76767d; }
.catalog-toolbar select,
.catalog-toolbar input,
.catalog-toolbar button {
  color: #202024;
  border-color: #d9d9de;
  background-color: #fff;
}
.catalog-toolbar select:hover,
.catalog-toolbar input:hover,
.catalog-toolbar button:hover,
.catalog-toolbar select:focus,
.catalog-toolbar input:focus { border-color: #aaaab2; }
.section-heading > .reset-filters {
  color: #222;
  border-color: #d8d8dc;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.07);
}
.shop-path button { color: #222; border-color: #dedee2; background: #f7f7f8; }
.shop-path i { color: #aaa; }
.brand-card,
.cat-card {
  color: #202020;
  border-color: #e2e2e5;
  background: #f7f7f8;
  box-shadow: 0 15px 34px rgba(0,0,0,.07);
}
.brand-logo,
.brand-logo .box,
.cat-info .cat-name { color: #202020; }
.brand-logo .box { border-color: #202020; }
.brand-name,
.cat-info .cat-count,
.catalog-result-line { color: #73737a; }
.product-card h3,
.product-price strong { color: #181818; }
.color-picker button,
.detail-variants button {
  color: #333;
  border-color: #d4d4d8;
  background: #fff;
}
.color-picker button:hover { border-color: #aaaab2; }
.color-picker button.active,
.detail-variants button.active { color: #171717; background: #fff5f5; }
.color-picker span,
.detail-variants span { border-color: rgba(0,0,0,.2); }
.product-request { color: var(--accent); background: #fff5f5; }
.empty-state { border-color: #d9d9dd; }
.empty-state strong { color: #222; }

.product-page-body {
  color: #181818;
  background: #fff;
}
.product-page-body .product-back { color: #65656c; }
.product-page-body .detail-copy h1,
.product-page-body .detail-price-stack strong,
.product-page-body .detail-buy > strong,
.product-page-body .detail-extra summary,
.product-page-body .detail-specs strong,
.product-page-body .spec-group-head { color: #181818; }
.product-page-body .detail-description,
.product-page-body .detail-extra p,
.product-page-body .detail-specs span { color: #6c6c73; }
.product-page-body .detail-extra { border-color: #e1e1e4; background: #f8f8f9; }
.product-page-body .detail-buy,
.product-page-body .detail-specs p,
.product-page-body .spec-group-head { border-color: #e1e1e4; }
.product-page-body .detail-thumbs button { border-color: #dedee2; }
.product-page-body .sk-shimmer { background: #ededf0; }
.product-page-body .sk-shimmer::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.45) 40%, rgba(255,255,255,.8) 50%, rgba(255,255,255,.45) 60%, transparent); }
.product-page-body button:focus-visible,
.product-page-body a:focus-visible { outline-color: rgba(223,31,45,.5); }

/* ===== Светлая витрина v2: чистые изображения и читаемые контролы ===== */
.site-header .brand img { mix-blend-mode: screen; }

.catalog-section .cfg-chip {
  color: #343438;
  border-color: #d5d5da;
  background: #fff;
}
.catalog-section .cfg-chip:hover { border-color: #a9a9b1; }
.catalog-section .cfg-chip.active {
  color: #202024;
  border-color: var(--accent);
  background: #fff5f5;
  box-shadow: 0 0 0 1px rgba(223,31,45,.18);
}

.product-page-body .detail-image {
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.product-page-body .detail-image img { padding: 0; }
.product-page-body .detail-thumbs button {
  border-color: transparent;
  background: #fff;
}
.product-page-body .detail-thumbs button.active { border-color: var(--accent); }
.product-page-body .about-body { color: #66666d; }
.product-page-body .about-toggle {
  color: #242428;
  border-color: #d9d9de;
  background: #fff;
}
.product-page-body .about-toggle:hover { border-color: #aaaab2; background: #f7f7f8; }

.catalog-section .cat-card .cat-media {
  border-radius: 14px;
  border: 1px solid #dfe1e5;
  background: #fff;
  box-shadow: none;
}
.catalog-section .cat-media img { padding: 10px; object-fit: contain; }
.catalog-section .cat-card:hover,
.catalog-section .cat-card:focus-visible { border-color: #df1f2d; }

.product-page-body .detail-title-row h1 {
  flex: 1;
  min-width: 0;
  font-size: clamp(26px, 2.5vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
  hyphens: manual;
}
.product-page-body .detail-title-row > button {
  flex-shrink: 0;
  color: #555963;
  border-color: #cdd1d7;
  background: #fff;
}
.product-page-body .detail-title-row > .is-active { color: var(--accent); border-color: var(--accent); }
.product-page-body .mobile-buybar strong { color: #fff; }
@media (max-width: 640px) {
  .product-page-body .detail-title-row { display: grid; grid-template-columns: 1fr 40px 40px; gap: 10px; }
  .product-page-body .detail-title-row h1 { grid-column: 1 / -1; margin-bottom: 0; hyphens: auto; }
  .product-page-body .detail-fav { grid-column: 2; }
  .product-page-body .detail-share { grid-column: 3; margin-top: 0; }
  .product-page-body .site-header { gap: 12px; }
  .product-page-body .site-header .brand { width: 130px; min-width: 0; flex: 0 1 130px; }
  .product-page-body .header-actions .button-outline { width: 40px; min-width: 40px; padding: 0; font-size: 0; gap: 0; }
}

/* ===== Светлая витрина v3: мягкий серый, спокойные состояния ===== */
.site-header .brand { width: 278px; height: 56px; overflow: visible; padding-inline: 4px; }
.site-header .brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 59%;
  clip-path: polygon(0 0, 35% 0, 35% 28%, 70% 28%, 70% 0, 100% 0, 100% 100%, 0 100%);
  mix-blend-mode: normal;
}
.color-picker button[aria-label*="Burgundy" i] span { background: #672d40 !important; }
.color-picker button[aria-label*="Glacier" i] span { background: #c3d4e1 !important; }

.catalog-section {
  border-color: #cfd3da;
  background: linear-gradient(145deg, #f2f3f5 0%, #e4e6ea 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
.catalog-section .global-search,
#catalog-toolbar .search-field,
.catalog-toolbar { border-color: #d2d5db; background: #e9ebef; }
.catalog-toolbar select,
.catalog-toolbar input,
.catalog-toolbar button,
.section-heading > .reset-filters,
.shop-path button { border-color: #cfd2d8; background-color: #f6f7f8; }
.brand-card,
.cat-card { border-color: #d2d5da; background: #eef0f3; box-shadow: 0 12px 28px rgba(31,35,41,.08); }
.product-media { background: #f4f5f7; box-shadow: inset 0 0 0 1px rgba(31,35,41,.05); }

.catalog-section .product-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.catalog-section .product-card:hover .product-thumb { transform: none; }
.catalog-section .product-card > .fx-glare,
.catalog-section .qv-button { display: none; }

.catalog-section .fx-skel-card {
  border-color: #d2d5da;
  background: #dde0e5;
}
.catalog-section .fx-skel-card::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.58) 50%, transparent);
}

.product-page-body { background: #e7e9ed; }
.product-page-body .detail-image,
.product-page-body .detail-thumbs button { background: #f4f5f7; }
.product-page-body .detail-buy,
.product-page-body .detail-extra,
.product-page-body .spec-hero-tile { border-color: #d2d5db; background: #f1f2f4; }
.product-page-body .spec-hero-tile:hover { border-color: #b9bdc5; }
.product-page-body .fx-loader-bar { background: #cfd2d8; }

/* Фирменная загрузочная сцена: один точный wordmark, без обрезки квадратного логотипа. */
.catalog-loader,
.product-page-body .fx-loader {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  color: #202126;
  background: #fff;
  box-shadow: none;
}
.catalog-loader {
  grid-column: 1 / -1;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 28px;
}
.catalog-loader::before,
.product-page-body .fx-loader::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(25,28,34,.018) 35px 36px);
  pointer-events: none;
}
.catalog-loader::after,
.product-page-body .fx-loader::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24%;
  z-index: -1;
  width: 18%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(223,31,45,.04), transparent);
  transform: skewX(-14deg);
  animation: loader-sweep 2.8s ease-in-out infinite;
}
.loader-wordmark {
  display: block;
  width: min(430px, 76vw);
  height: min(86px, 15.2vw);
  margin: 2px 0 8px;
  object-fit: cover;
  object-position: center 60%;
  clip-path: polygon(0 0, 35% 0, 35% 26%, 70% 26%, 70% 0, 100% 0, 100% 100%, 0 100%);
  animation: loader-wordmark-in .7s cubic-bezier(.2,.78,.22,1) both;
}
.catalog-loader-kicker {
  color: #ff525d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.catalog-loader strong,
.product-page-body .fx-loader strong {
  color: #202126;
  font-size: clamp(17px, 2vw, 23px);
  letter-spacing: -.02em;
}
.catalog-loader .fx-loader-bar,
.product-page-body .fx-loader .fx-loader-bar {
  width: min(330px, 64vw);
  height: 4px;
  background: #e3e5e9;
  box-shadow: none;
}
.catalog-loader-status,
.product-page-body .fx-loader small {
  color: #666b75;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.product-page-body .fx-loader {
  min-height: 58vh;
  gap: 18px;
  padding: 48px 28px;
}
.product-page-body .fx-loader .loader-wordmark { width: min(390px, 72vw); height: min(78px, 14.4vw); }
.catalog-loader .loader-wordmark, .product-page-body .fx-loader .loader-wordmark { filter: brightness(0); }
@keyframes loader-sweep { 0%, 20% { left: -24%; } 78%, 100% { left: 112%; } }
@keyframes loader-wordmark-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); filter: brightness(0) blur(7px); }
  to { opacity: 1; transform: none; filter: brightness(0); }
}

.catalog-card-enter {
  animation: catalog-card-enter .62s var(--catalog-enter-delay, 0ms) cubic-bezier(.2,.72,.22,1) both;
}
.catalog-card-pending { opacity: 0; transform: translateY(24px) scale(.975); }
@keyframes catalog-card-enter {
  from { opacity: 0; transform: translateY(24px) scale(.975); filter: blur(7px); }
  62% { filter: blur(0); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: minmax(110px, 1fr) auto; gap: 8px; padding-inline: 12px; }
  .site-header .brand { width: 100%; max-width: 150px; height: 32px; min-width: 0; padding-inline: 0; }
  .site-header .brand img { width: 100%; height: 100%; }
  .header-actions { flex: 0 0 auto; gap: 6px; }
  .header-actions .icon-round { display: grid; width: 42px; min-width: 42px; height: 42px; padding: 0; place-items: center; line-height: 0; }
  .header-actions .icon-round svg { display: block; width: 20px; height: 20px; margin: 0; }
  .header-actions .account-link { display: inline-flex; width: 86px; min-width: 86px; max-width: 86px; min-height: 42px; padding: 0 10px; gap: 7px; justify-content: center; font-size: 12px; }
  .header-actions .account-link::before { width: 15px; height: 15px; }
  .header-actions .cart-button { width: 68px; min-width: 68px; max-width: 68px; min-height: 42px; padding: 0 8px; gap: 6px; }
  .header-actions .cart-button::before { width: 17px; height: 17px; }
  .header-actions .cart-button span { min-width: 20px; height: 20px; padding: 0 5px; }
  .hero { overflow: visible; padding-bottom: 18px; }
  .brand-ticker { display: none; }
  .catalog-section { margin-top: 96px; }
  .fav-button { right: 8px; top: 8px; width: 36px; height: 36px; }
  .product-page-body .detail-title-row > .icon-round { width: 40px; min-width: 40px; height: 40px; padding: 0; }
  .catalog-loader { min-height: 300px; padding: 38px 18px; border-radius: 20px; }

  /* Mobile catalog: every visual sits in a predictable frame. */
  #brand-grid.category-strip { align-items: stretch; }
  .brand-card { min-height: 148px; gap: 12px; padding: 22px 12px 18px; }
  .brand-logo { width: 100%; height: 46px; gap: 8px; }
  .brand-logo svg { width: 30px; height: 30px; flex: 0 0 30px; }
  .brand-logo .apple { font-size: 24px; }
  .brand-logo .tracked { font-size: 17px; letter-spacing: .14em; }
  .brand-logo .lower { font-size: 26px; }
  .brand-logo .plain { max-width: calc(100% - 42px); font-size: 21px; }
  .brand-logo .box { width: 34px; height: 34px; border-radius: 9px; }
  .brand-name { display: grid; min-height: 36px; place-items: center; line-height: 1.25; }

  .cat-card { grid-template-columns: minmax(0, 1fr) 94px; min-height: 140px; gap: 14px; padding: 18px; }
  .cat-media { width: 94px; height: 94px; }
  .cat-media img { width: 100%; height: 100%; padding: 8px; object-fit: contain; object-position: center; }

  .product-media { width: 100%; aspect-ratio: 1; }
  .product-thumb,
  .product-card:hover .product-thumb { width: 100%; height: 100%; padding: 11px; object-fit: contain; object-position: center; transform: none; }
  .product-card.is-super h3 { min-height: 36px; margin: 10px 0; -webkit-line-clamp: 2; }
  .product-card.is-super .cfg-rows { gap: 11px; margin-bottom: 14px; }
  .product-card.is-super .cfg-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: start; }
  .product-card.is-super .cfg-label,
  .product-card.is-super .cfg-row-colors .cfg-label { margin: 0; line-height: 1; }
  .product-card.is-super .cfg-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 5px; }
  .product-card.is-super .cfg-chip { width: 100%; min-width: 0; min-height: 28px; justify-content: center; padding: 5px 4px; font-size: 11px; }
  .product-card.is-super .cfg-row-colors .color-picker { display: grid; grid-template-columns: repeat(4, 24px); width: 100%; height: auto; min-height: 24px; max-height: none; gap: 6px; margin: 0; overflow: visible; }
  .product-card.is-super .cfg-row-colors .color-picker button { width: 24px; min-width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-card-enter,
  .catalog-loader::after,
  .product-page-body .fx-loader::after,
  .loader-wordmark { animation: none; }
}

/* Storefront responsive layout: intrinsic sizing, without page-wide scaling. */
body:not(.admin-page) { --page-gutter: clamp(12px, 3vw, 24px); }
body:not(.admin-page) > main,
body:not(.admin-page) > .site-footer {
  width: min(1420px, calc(100% - 2 * var(--page-gutter)));
}
body:not(.admin-page) > .account-main,
body:not(.admin-page) > .account-header { width: min(1060px, calc(100% - 2 * var(--page-gutter))); }
body:not(.admin-page) > .payment-stub { width: min(620px, calc(100% - 2 * var(--page-gutter))); }
.hero { width: auto; margin-inline: calc(-1 * max(var(--page-gutter), (100vw - 1420px) / 2)); padding-inline: max(var(--page-gutter), calc((100vw - 1420px) / 2)); }
.hero-copy { min-width: 0; }
.hero-actions { flex-wrap: wrap; }
.hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-facts div { padding-inline: 14px; }
.hero-facts div:nth-child(2) { padding-right: 14px; }
.site-header { gap: clamp(12px, 2vw, 24px); }
.site-header .brand { flex: 0 1 278px; min-width: 140px; }
.main-nav { gap: clamp(16px, 2.5vw, 40px); white-space: nowrap; }
.header-actions { flex-shrink: 0; }
.catalog-toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-toolbar .search-field { grid-column: span 2; width: 100%; min-width: 0; }
.catalog-toolbar select { text-overflow: ellipsis; padding-right: 32px; }
.benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-section { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.site-footer { grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr)); }
.site-footer > *, .benefit-grid > *, .contact-section > *, .account-card > *,
.auth-grid > *, .spec-hero > * { min-width: 0; }
.account-card { grid-template-columns: minmax(0, 1fr); }
.account-card input:not([type="checkbox"]) { width: 100%; min-width: 0; }
.account-intro h1, .legal-page h2, .account-order, .contact-card, .site-footer { overflow-wrap: anywhere; }
.account-intro h1 { font-size: clamp(30px, 5.5vw, 64px); line-height: 1.12; }
.legal-page .account-intro { margin-top: 32px; }
.legal-page h2 { font-size: clamp(21px, 3vw, 30px); line-height: 1.25; }
.legal-page .account-card p { line-height: 1.65; }
.account-header { gap: 16px; }
.account-header > a:last-child { text-align: right; }
.account-order header { flex-wrap: wrap; }
.account-order footer { width: 100%; margin: 0; }
.detail-buy { flex-wrap: wrap; gap: 16px; }
.detail-buy .button { white-space: normal; text-align: center; }
.spec-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-variants button { max-width: 100%; }
.detail-variants strong { min-width: 0; overflow-wrap: anywhere; }
.cart-panel { overscroll-behavior: contain; padding-bottom: max(26px, env(safe-area-inset-bottom)); }
.cart-total { flex-wrap: wrap; gap: 8px; }
.order-form, .order-form > *, .order-form input, .order-form select, .order-form textarea { min-width: 0; }
.order-form .button, .order-success .button { white-space: normal; padding-block: 12px; }
.legal-check { grid-template-columns: 20px minmax(0, 1fr); }
#fx-search { padding-top: min(12vh, 80px); padding-top: min(12dvh, 80px); }
.fx-search-panel { max-height: calc(100dvh - 110px); }
#fx-toasts { width: max-content; max-width: calc(100% - 24px); bottom: max(26px, env(safe-area-inset-bottom)); }
.fx-toast { overflow-wrap: anywhere; }
.fx-404-actions { flex-wrap: wrap; justify-content: center; }
body:not(.admin-page) :is(#catalog, #benefits, #contacts) { scroll-margin-top: 108px; }

@media (max-width: 1279px) and (min-width: 761px) {
  .site-header .brand { flex-basis: 220px; height: 44px; }
  .main-nav { font-size: 14px; gap: 18px; }
  .header-cta { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 32px; }
  .hero-copy { max-width: 780px; padding: 24px 0 48px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(52px, 6.5vw, 76px); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-bottom { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .site-header { flex-wrap: wrap; height: auto; min-height: 92px; padding: 12px 24px; gap: 10px 18px; }
  .site-header .brand { margin-right: auto; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .catalog-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-section { grid-template-columns: 1fr; gap: 24px; }
  .product-detail, .detail-skeleton { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .detail-gallery { width: min(580px, 100%); margin-inline: auto; }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header .brand { min-width: 0; }
  .product-page-body .site-header .brand { width: 100%; }
  .hero { margin-inline: calc(-1 * var(--page-gutter)); padding-inline: var(--page-gutter); overflow: hidden; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  body:not(.admin-page) .hero h1 { font-size: clamp(34px, 9vw, 52px); letter-spacing: -1.5px; line-height: 1.05; }
  .hero h1 em { letter-spacing: -1px; }
  .catalog-section { margin-top: 40px; padding-inline: 12px; }
  .catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar .search-field { grid-column: 1 / -1; }
  .product-card.is-super .cfg-row-colors .color-picker { grid-template-columns: repeat(auto-fit, 24px); }
  .product-buy, .product-request { min-width: 0; min-height: 44px; }
  .product-bottom { grid-template-rows: auto 44px; }
  .benefit-grid, .contact-section { grid-template-columns: minmax(0, 1fr); }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .section-heading h2, .benefits-section h2, .contact-section h2 { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
  .contact-card p { flex-wrap: wrap; gap: 8px; }
  .account-main { padding-block: 32px; }
  .account-card { padding: 18px; }
  .account-header .brand { min-width: 0; flex: 0 1 150px; }
  .account-header .brand img { max-width: 100%; }
  .account-header > a:last-child { max-width: 48%; font-size: 12px; }
  .account-card input:not([type="checkbox"]), .order-form input, .order-form select,
  .order-form textarea, .catalog-toolbar input, .catalog-toolbar select, .search-field input { font-size: 16px; }
  .detail-specs h2, .detail-about h2 { font-size: clamp(23px, 6.5vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
  .mobile-buybar { gap: 10px; padding-inline: 12px; }
  .mobile-buybar strong { font-size: clamp(16px, 4.5vw, 21px); }
  .mobile-buybar .button { width: auto; min-width: 0; padding-inline: 12px; white-space: normal; }
  .product-page { padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
  .fx-search-input { padding: 14px; gap: 8px; }
  .fx-search-row { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .fx-search-row img { width: 44px; height: 44px; grid-row: span 2; }
  .fx-search-row strong { grid-column: 2; }
  body:not(.admin-page) :is(#catalog, #benefits, #contacts) { scroll-margin-top: 84px; }
}
@media (max-width: 359px) {
  .header-actions .account-link { width: 72px; min-width: 72px; max-width: 72px; padding-inline: 7px; gap: 4px; }
  .header-actions .cart-button { width: 58px; min-width: 58px; max-width: 58px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card.is-super .cfg-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-logo .tracked { font-size: 14px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Desktop density matches the approved Mac reference at normal browser zoom. */
@media (min-width: 1100px) {
  html:has(body:not(.admin-page)) { --desktop-density: .85; zoom: var(--desktop-density); }
  .hero {
    width: calc(100vw / var(--desktop-density));
    margin-inline: calc(50% - 50vw / var(--desktop-density));
    padding-inline: max(28px, calc((100vw / var(--desktop-density) - 1420px) / 2));
    padding-top: 0;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    min-height: 720px;
    background-size: auto, auto, auto 88%;
    background-position: center, center, right top;
  }
  .hero-copy { max-width: 720px; padding: 54px 0 44px; }
  .hero-visual { display: block; min-height: 640px; }
  body:not(.admin-page) .hero h1 { font-size: clamp(58px, 5.8vw, 76px); }
  .site-header .brand { flex-basis: 278px; height: 56px; }
  .main-nav { font-size: 17px; gap: clamp(16px, 2.5vw, 40px); }
  .header-cta { display: inline-flex; }
}

/* ===== Home v2 (2026-11-10): капсульная шапка, «Сейчас выбирают», блок контактов ===== */
body.home-v2 { --ease: cubic-bezier(.2,.7,.2,1); }

/* Шапка-капсула */
body.home-v2 .site-header {
  z-index: 20; top: 12px; width: min(1320px, calc(100% - 24px)); height: 64px; margin: 12px auto 0; gap: 20px;
  padding: 0 10px 0 22px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(12,12,13,.62); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  transition: transform .45s var(--ease), box-shadow .3s ease;
}
body.home-v2 .site-header.is-hidden { transform: translateY(-140%); }
body.home-v2 .site-header .brand { flex: 0 0 auto; width: auto; height: auto; min-width: 0; padding: 0; }
body.home-v2 .site-header .brand img { width: auto; height: 26px; object-fit: contain; object-position: left center; clip-path: none; mix-blend-mode: normal; }
body.home-v2 .main-nav { gap: 4px; font-size: 14px; font-weight: 700; color: #c9c3bc; }
body.home-v2 .main-nav a { padding: 9px 16px; border-radius: 999px; transition: color .2s ease, background .2s ease; }
body.home-v2 .main-nav a::after { display: none; }
body.home-v2 .main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
body.home-v2 .header-actions .icon-round { width: 44px; height: 44px; }
body.home-v2 .header-actions .account-link { min-height: 44px; padding: 0 18px; }
body.home-v2 .header-actions .cart-button { min-height: 44px; }
@media (min-width: 761px) {
  body.home-v2 .header-actions .account-link::before,
  body.home-v2 .header-actions .cart-button::before { display: none; }
  body.home-v2 .header-actions .header-cta { width: 44px; min-width: 44px; min-height: 44px; padding: 0; gap: 0; justify-content: center; font-size: 0; }
}
@media (max-width: 1000px) {
  body.home-v2 .site-header { display: flex; flex-wrap: nowrap; height: 64px; min-height: 0; padding: 0 10px 0 18px; gap: 10px; }
  body.home-v2 .main-nav { display: none; }
  body.home-v2 .header-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  body.home-v2 .site-header { width: calc(100% - 16px); height: 60px; padding: 0 8px 0 16px; }
  body.home-v2 .site-header .brand img { height: 20px; }
}

/* Сейчас выбирают */
body.home-v2 .pick-section { margin: 56px 0 44px; scroll-margin-top: 108px; }
.pick-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(270px, auto)); gap: 16px; margin-top: 34px; }
.pick-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 270px; padding: 26px; overflow: hidden;
  color: var(--cream); border: 1px solid rgba(245,241,236,.08); border-radius: 24px; background: linear-gradient(180deg, #17171a, #101012);
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .4s var(--ease);
}
.pick-tile::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.pick-tile:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); box-shadow: 0 28px 50px -28px rgba(0,0,0,.85); }
.pick-tile:hover::after { transform: scaleX(1); }
.pick-tile h3 { position: relative; margin: 0; font-family: "Unbounded", "Manrope", sans-serif; font-size: 20px; font-weight: 560; letter-spacing: -.02em; line-height: 1.12; }
.pick-tile p { position: relative; max-width: 52%; margin: 8px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.45; }
.pick-img { position: absolute; right: 18px; bottom: 18px; display: grid; width: 44%; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 50% 42%, #fff 0 66%, #f1eee9); transition: transform .6s var(--ease); }
.pick-img img { width: 88%; height: 88%; object-fit: contain; }
.pick-tile:hover .pick-img { transform: scale(1.04) rotate(-1deg); }
.pick-go { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transition: background .3s ease, border-color .3s ease, transform .3s var(--ease); }
.pick-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pick-tile:hover .pick-go { border-color: var(--accent); background: var(--accent); transform: rotate(-45deg); }
.pick-xl { grid-row: span 2; background: linear-gradient(165deg, #1b1417 0%, #101012 55%); }
.pick-xl h3 { font-size: clamp(26px, 2.6vw, 38px); }
.pick-xl p { margin-top: 12px; max-width: none; color: var(--cream); font-size: 15px; }
.pick-xl .pick-img { right: 22px; bottom: 22px; width: 50%; aspect-ratio: 542 / 658; }
.pick-xl .pick-img img { position: absolute; inset: 6%; width: 88%; height: 88%; opacity: 0; transition: opacity .6s ease; }
.pick-xl .pick-img img.on { opacity: 1; }
.pick-badge { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pick-dots { display: flex; gap: 8px; margin-top: 12px; }
.pick-dots b { width: 16px; height: 16px; border: 2px solid #101012; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.3); transition: box-shadow .3s ease; }
.pick-dots b.on { box-shadow: 0 0 0 2px var(--cream); }
.pick-ask { background: linear-gradient(145deg, rgba(223,31,45,.2), #101012 70%); }
.pick-ask p { max-width: 78%; }

/* Блок контактов */
.home-cta { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; margin: 20px 0 80px; padding: 56px; border: 1px solid var(--line); border-radius: 40px; background: radial-gradient(700px circle at 0% 0%, rgba(223,31,45,.24), transparent 60%), #0e0e10; }
.home-cta > * { min-width: 0; }
.home-cta h2 { margin: 0 0 4px; font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -.025em; line-height: 1.08; }
.home-cta h2 em { color: #ff3d4b; font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.home-cta-addr { margin: 22px 0 28px; color: #c3bcb4; font-size: 18px; line-height: 1.6; }
.home-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.home-cta .button { min-height: 60px; padding: 0 30px; border-radius: 999px; font-size: 16px; }
.home-cta-rows a { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 800; transition: padding .35s var(--ease), color .2s ease; }
.home-cta-rows a small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-cta-rows a::after { content: "↗"; font-size: 22px; transition: transform .3s var(--ease); }
.home-cta-rows a:hover { padding-inline: 14px; color: #ff3d4b; }
.home-cta-rows a:hover::after { transform: translate(4px, -4px); }

/* Появление блоков (home.js ставит .in) */
html.home-js .hr:not(.in) { opacity: 0; }
html.home-js .hr.in { animation: home-in .9s calc(var(--i, 0) * 90ms) var(--ease) backwards; }
@keyframes home-in { from { opacity: 0; transform: translateY(34px); } }

@media (max-width: 980px) {
  .pick-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .pick-tile { min-height: 240px; }
  .pick-xl { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .pick-ask { grid-column: 1 / -1; min-height: 200px; }
  .home-cta { grid-template-columns: minmax(0, 1fr); padding: 28px; border-radius: 28px; }
}
@media (max-width: 560px) {
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
  .pick-xl { min-height: 400px; }
  .pick-tile p { max-width: 50%; }
  .home-cta-btns .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html.home-js .hr:not(.in) { opacity: 1; }
  html.home-js .hr.in { animation: none; }
  body.home-v2 .site-header { transition: none; }
}

/* Home v2: логотип и «Покупать проще» — типографичный список без карточек, иконок и цифр */
body.home-v2 .site-header .brand img { height: 30px; }
@media (max-width: 760px) { body.home-v2 .site-header .brand img { height: 23px; } }
body.home-v2 .benefit-grid { display: block; margin-top: 40px; border-bottom: 1px solid var(--line); }
body.home-v2 .benefit-grid article { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 0; padding: 38px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; transform: none; }
body.home-v2 .benefit-grid article::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
body.home-v2 .benefit-grid article:hover { border-color: var(--line); transform: none; }
body.home-v2 .benefit-grid article:hover::before { transform: scaleX(1); }
body.home-v2 .benefit-grid h3 { margin: 0; color: var(--cream); font-family: "Unbounded", "Manrope", sans-serif; font-size: clamp(22px, 2.8vw, 38px); font-weight: 560; letter-spacing: -.025em; line-height: 1.1; transition: transform .5s var(--ease), color .3s ease; }
body.home-v2 .benefit-grid p { max-width: 440px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; transition: color .3s ease; }
body.home-v2 .benefit-grid article:hover h3 { color: #ff3d4b; transform: translateX(16px); }
body.home-v2 .benefit-grid article:hover p { color: #d6cfc7; }
@media (max-width: 760px) {
  body.home-v2 .benefit-grid article { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 26px 0; }
  body.home-v2 .benefit-grid p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { body.home-v2 .benefit-grid article::before, body.home-v2 .benefit-grid h3 { transition: none; } }

/* Home v2: юридическая строка подвала */
body.home-v2 .site-footer { padding-bottom: clamp(70px, 9vw, 150px); }
body.home-v2 .footer-legal { grid-column: 1 / -1; display: grid; gap: 16px; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
body.home-v2 .footer-legal-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 28px; }
body.home-v2 .footer-copy { margin: 0; color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
body.home-v2 .footer-copy i { color: var(--accent); font-style: normal; }
body.home-v2 .footer-legal-row a { display: inline; margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
body.home-v2 .footer-legal-row a:hover { color: var(--cream); text-decoration-color: var(--accent); }
body.home-v2 .footer-note { max-width: 860px; margin: 0; padding-left: 16px; border-left: 2px solid var(--accent); color: #8b857f; font-size: 12px; line-height: 1.7; }

/* Home v2: hero — три факта под кнопками без карточек (фото hero как раньше) */
body.home-v2 .hero-copy { padding-bottom: 84px; }
/* Три факта под кнопками — без карточек */
body.home-v2 .hero-facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: min(780px, 100%); margin-top: 8px; border-top: 1px solid var(--line); }
body.home-v2 .hero-facts::before { content: ""; position: absolute; left: 0; top: -1px; width: 96px; height: 1px; background: var(--accent); transform-origin: left; animation: facts-line 1.1s .9s var(--ease) both; }
@keyframes facts-line { from { transform: scaleX(0); } }
body.home-v2 .hero-facts > div:nth-child(n) { display: block; min-height: 0; padding: 20px 22px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; text-align: left; }
body.home-v2 .hero-facts > div:nth-child(n+2) { padding-left: 22px; border-left: 1px solid var(--line); }
body.home-v2 .hero-facts p { display: block; }
body.home-v2 .hero-facts strong { display: block; min-height: 0; margin-bottom: 6px; color: var(--cream); font-size: 16px; font-weight: 800; line-height: 1.25; text-align: left; }
body.home-v2 .hero-facts span { display: block; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 760px) {
  body.home-v2 .hero-facts { grid-template-columns: minmax(0, 1fr); }
  body.home-v2 .hero-facts > div:nth-child(n) { padding: 16px 0; border-left: 0; }
  body.home-v2 .hero-facts > div:nth-child(n+2) { padding-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { body.home-v2 .hero-facts::before { animation: none !important; } }
