/* ============================================================
   VZOR — страницы: главная, каталог, товар, корзина, кабинет
   ============================================================ */

/* ================= ГЛАВНАЯ ================= */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.hero__in { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.hero__badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 18%, transparent); }
.hero .h1 { margin: 22px 0 20px; }
.hero .h1 .grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, var(--mint) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 470px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats { display: flex; gap: 36px; margin-top: 42px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; gap: 2px; }
.hero__stats b { font-size: 24px; letter-spacing: -.03em; }
.hero__stats span { font-size: 12.5px; color: var(--muted); }

.hero__visual { position: relative; min-height: 480px; }
.hero__glow {
  position: absolute; inset: 6% 0 6% 8%; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 62%),
    radial-gradient(circle at 75% 72%, color-mix(in srgb, var(--mint) 40%, transparent), transparent 60%);
  filter: blur(38px); opacity: .55;
}
.hero__card--main {
  position: relative; z-index: 1; height: 100%; min-height: 480px;
  border-radius: 42px; overflow: hidden;
  background:
    radial-gradient(90% 80% at 80% 10%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 60%),
    linear-gradient(150deg, #eef2ff, #dfe7ff 45%, #e7fbf4);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .hero__card--main {
  background:
    radial-gradient(90% 80% at 80% 10%, rgba(122, 92, 255, .35), transparent 60%),
    linear-gradient(150deg, #141a33, #0f1628 45%, #10241f);
  border-color: rgba(255, 255, 255, .06);
}
.hero__card--main .hero__art { width: 92%; transform: translateY(-2%) rotate(-2deg); filter: drop-shadow(0 24px 40px rgba(20, 30, 70, .18)); }
.hero__card-label {
  position: absolute; left: 26px; top: 26px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
}
.hero__card-label b { font-size: 14px; letter-spacing: -.01em; }
.hero__card-label span { font-size: 11.5px; color: var(--muted); }
.hero__card-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; }

.hero__float {
  position: absolute; z-index: 3; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 12px;
}
.hero__float--product { left: -14px; bottom: 34px; display: flex; align-items: center; gap: 11px; width: 250px; animation: float 7s ease-in-out infinite; }
.hero__float--product .thumb { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; padding: 3px; flex: none; }
.hero__float--product b { display: block; font-size: 12.5px; line-height: 1.25; }
.hero__float--product span { font-size: 10.5px; color: var(--muted); }
.hero__float--product .pr { font-size: 13px; font-weight: 700; margin-top: 2px; }
.hero__float--rating { right: 2px; top: 22px; display: flex; align-items: center; gap: 9px; animation: float 8s ease-in-out infinite reverse; }
.hero__float--rating .num { font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.hero__float--rating .stars { margin-top: 1px; }
.hero__float--rating small { display: block; font-size: 10.5px; color: var(--muted); }
.hero__float--ship {
  right: 20px; bottom: 26px; display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; padding: 11px 15px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 0; animation: float 6.5s ease-in-out infinite;
}
.hero__float--ship svg { color: var(--mint); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* bento категорий */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 208px; gap: 16px; }
.bento__tile {
  grid-column: span 2;
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.bento__tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: radial-gradient(90% 70% at 85% 15%, color-mix(in srgb, hsl(var(--h, 210) 88% 55%) 16%, transparent), transparent 70%);
}
.bento__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.bento__tile--lg { grid-column: span 3; grid-row: span 2; }
.bento__tile--wide { grid-column: span 3; }
.bento__tile--lg .bento__art { width: 64%; right: -4%; bottom: -2%; }
.bento__txt { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 5px; max-width: 78%; }
.bento__count { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, hsl(var(--h, 210) 70% 40%) 80%, var(--ink)); }
.bento__tile h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 700; }
.bento__tile--lg h3 { font-size: 27px; }
.bento__tile p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.bento__tile--lg p { font-size: 14px; max-width: 300px; }
.bento__link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.bento__link svg { transition: transform .25s; }
.bento__tile:hover .bento__link svg { transform: translateX(4px); }
.bento__art { position: absolute; z-index: 1; right: -12px; bottom: -14px; width: 58%; opacity: .95; pointer-events: none; transition: transform .5s var(--ease); }
.bento__art svg { width: 100%; height: auto; }
.bento__tile:hover .bento__art { transform: scale(1.05) rotate(-2deg); }

/* табы */
.tabs { display: inline-flex; gap: 3px; padding: 4px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--line); }
.tab { height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: .2s; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: var(--bg); }
[data-tab-panel] { display: none; animation: fadeUp .4s var(--ease); }
[data-tab-panel].is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* промо-баннер */
.promo {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(125deg, #0b1024 0%, #121a3a 48%, #0d2b26 100%);
  color: #fff; padding: clamp(30px, 4.5vw, 58px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.promo::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 130px rgba(255, 255, 255, .025);
  pointer-events: none;
}
.promo__txt { position: relative; z-index: 2; }
.promo h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -.04em; margin: 16px 0 12px; }
.promo h2 em { font-style: normal; color: #b7c6ff; }
.promo p { color: rgba(255, 255, 255, .68); max-width: 430px; font-size: 15px; line-height: 1.6; }
.promo__timer { display: flex; gap: 10px; margin: 24px 0 26px; }
.promo__timer div {
  min-width: 66px; padding: 10px 8px; border-radius: 14px; text-align: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
}
.promo__timer b { display: block; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.promo__timer span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .55); margin-top: 6px; }
.promo .btn { background: #fff; color: #0b1024; }
.promo__art { position: relative; z-index: 1; display: flex; justify-content: center; }
.promo__art svg { width: min(100%, 340px); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }

/* бренды */
.brands { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.brands__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; flex: 1; }
.brands__row a { font-size: 17px; font-weight: 750; letter-spacing: -.03em; color: var(--ink); opacity: .55; transition: opacity .2s; }
.brands__row a:hover { opacity: 1; }

/* самовывоз */
.pickup { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pickup__txt { max-width: 460px; }
.pickup__cities { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; flex: 1; max-width: 660px; }
.pickup__city { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.pickup__city svg { color: var(--accent); }
.pickup__city--more { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }

/* наборы */
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.set-card {
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s;
}
.set-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.set-card__media { position: relative; aspect-ratio: 1.35; padding: 10px 20px 0; background: color-mix(in srgb, hsl(var(--h, 150) 80% 55%) 9%, var(--surface-2)); display: grid; place-items: center; }
.set-card__media svg { height: 100%; width: auto; max-width: 100%; }
.set-card__save { position: absolute; left: 16px; top: 16px; }
.set-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.set-card__body h3 { font-size: 18px; letter-spacing: -.02em; }
.set-card__body p { font-size: 13px; color: var(--muted); line-height: 1.5; min-height: 38px; }
.set-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }

/* преимущества */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.feat__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.feat h3 { font-size: 16px; letter-spacing: -.01em; }
.feat p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.review__txt { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent); }
.review__author b { display: block; font-size: 13.5px; }
.review__author span { font-size: 11.5px; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.acc__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.acc__item.is-open { border-color: var(--line-strong); }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: left; font-weight: 600; font-size: 15px; }
.acc__q svg { flex: none; transition: transform .3s var(--ease); color: var(--muted); }
.acc__item.is-open .acc__q svg { transform: rotate(180deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc__item.is-open .acc__a { max-height: 300px; }
.acc__a div { padding: 0 20px 18px; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* подписка */
.newsletter {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
}
.newsletter::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 0 0 50px rgba(255, 255, 255, .06); pointer-events: none;
}
.newsletter h2 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.035em; line-height: 1.1; }
.newsletter p { color: rgba(255, 255, 255, .78); font-size: 14.5px; margin-top: 8px; max-width: 420px; }
.newsletter form { position: relative; z-index: 2; display: flex; gap: 8px; padding: 6px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; backdrop-filter: blur(10px); }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; padding: 0 16px; font-size: 14px; height: 46px; font-weight: 500; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .88); }
.newsletter .btn { background: #fff; color: var(--accent); height: 46px; }

/* ================= КАТАЛОГ ================= */
.page-head { padding: 10px 0 26px; }
.page-head h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.05; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 620px; font-size: 15px; }
.page-head__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.page-head__meta span { display: inline-flex; align-items: center; gap: 6px; }

.cat-layout { display: grid; grid-template-columns: 274px minmax(0, 1fr); gap: 34px; align-items: start; padding-bottom: 70px; }
.filters-veil { display: none; }
.filters {
  position: sticky; top: calc(var(--hdr-h) + 14px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; max-height: calc(100dvh - var(--hdr-h) - 28px); overflow-y: auto;
  scrollbar-width: thin;
}
.filters__head { display: none; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters__head b { font-size: 17px; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:first-of-type { padding-top: 0; }
.fgroup:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.fgroup__t { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 13.5px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.01em; }
.fgroup__t svg { color: var(--muted); transition: transform .3s; }
.fgroup.is-collapsed .fgroup__t svg { transform: rotate(-90deg); }
.fgroup.is-collapsed .fgroup__body { display: none; }
.fcheck { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.fcheck input { appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--line-strong); border-radius: 5px; flex: none; display: grid; place-items: center; transition: .15s; background: var(--surface); }
.fcheck input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5 11-12'/%3E%3C/svg%3E") center / 11px no-repeat;
  border-color: var(--ink);
}
.fcheck input[type="radio"] { border-radius: 50%; }
.fcheck input[type="radio"]:checked {
  background: var(--surface);
  border: 5px solid var(--ink);
}
.fcheck__n { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.fcheck:hover { color: var(--ink); }
.frange { display: flex; align-items: center; gap: 8px; }
.frange input { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding: 0 10px; font-size: 13px; outline: none; }
.frange input:focus { border-color: var(--ink); }
.frange span { color: var(--muted); font-size: 12px; }
.filters__foot { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }

.cat-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-bar__count { font-size: 13px; color: var(--muted); }
.cat-bar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.select {
  appearance: none; height: 42px; padding: 0 38px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 13.5px; font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d7482' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  cursor: pointer; outline: none;
}
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.chips-row:empty { display: none; }
.chip-x { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
.chip-x button { display: inline-flex; color: var(--muted); }
.chip-x button:hover { color: var(--coral); }
.filters-open { display: none; }
.cat-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.cat-empty b { display: block; color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.load-more { display: flex; justify-content: center; margin-top: 36px; }

/* ================= ТОВАР ================= */
.product { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 4vw, 60px); padding-bottom: 40px; align-items: start; }
.product__gallery { position: sticky; top: calc(var(--hdr-h) + 18px); }
.pg-main {
  position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(80% 80% at 30% 20%, color-mix(in srgb, hsl(var(--h, 210) 90% 55%) 17%, var(--surface-2)), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--line); display: grid; place-items: center; padding: 5%;
}
.pg-main svg { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.pg-main:hover svg { transform: scale(1.03); }
.pg-main__badges { position: absolute; top: 18px; left: 18px; display: flex; flex-direction: column; gap: 6px; }
.pg-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.pg-thumb {
  aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--line);
  background: var(--surface-2); padding: 4px; transition: border-color .2s, transform .2s;
}
.pg-thumb:hover { transform: translateY(-2px); }
.pg-thumb.is-active { border-color: var(--ink); }
.pg-thumb svg { width: 100%; height: 100%; }

.product__info { padding-top: 6px; }
.product__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.product__brand:hover { color: var(--accent); }
.product h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.06; letter-spacing: -.04em; margin: 10px 0 12px; }
.product__rating { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.product__rating a { color: var(--ink-2); border-bottom: 1px dashed var(--line-strong); }
.product__short { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 18px 0 22px; }
.product__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.product__price .price { font-size: 30px; letter-spacing: -.04em; }
.product__price .price-old { font-size: 15px; }
.product__price .chip { margin-left: auto; }
.product__price-note { width: 100%; font-size: 12px; color: var(--muted); }
.product__price-note b { color: var(--mint); }

.variant { margin-top: 22px; }
.variant__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.variant__label { font-size: 13.5px; font-weight: 650; }
.variant__hint { font-size: 12px; color: var(--muted); }
.variant__hint a { color: var(--accent); text-decoration: underline; }
.opts { display: flex; flex-wrap: wrap; gap: 7px; }
.opt {
  min-width: 62px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: .18s;
}
.opt:hover { border-color: var(--ink); }
.opt.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt.is-off { opacity: .38; pointer-events: none; text-decoration: line-through; }

.buybox { display: flex; gap: 10px; align-items: stretch; margin-top: 22px; flex-wrap: wrap; }
.buybox .stepper { height: 52px; border-radius: 999px; padding: 0 6px; }
.buybox .stepper button { width: 36px; height: 36px; }
.buybox .stepper span { min-width: 28px; font-size: 15px; }
.buybox .btn { flex: 1; min-width: 200px; height: 52px; }
.buybox__fav { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: .2s; }
.buybox__fav:hover { border-color: var(--coral); color: var(--coral); }
.buybox__fav.is-on { background: var(--coral-soft); color: var(--coral); border-color: transparent; }
.buybox__fav.is-on svg { fill: currentColor; }

.perks { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; padding: 18px; border-radius: var(--r); background: var(--surface-2); }
.perk { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.perk svg { color: var(--mint); flex: none; margin-top: 1px; }
.perk b { display: block; color: var(--ink); font-size: 13px; }

.product-tabs { margin-top: 54px; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs-line::-webkit-scrollbar { display: none; }
.tabs-line button { position: relative; padding: 14px 18px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs-line button.is-active { color: var(--ink); }
.tabs-line button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.tabs-line__count { font-size: 11px; background: var(--surface-2); padding: 1px 6px; border-radius: 999px; margin-left: 5px; }
.tab-body { padding: 28px 0 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; max-width: 820px; }
.tab-body h3 { font-size: 17px; color: var(--ink); margin: 0 0 8px; }
.tab-body p + h3 { margin-top: 22px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs tr { border-bottom: 1px solid var(--line); }
.specs td { padding: 11px 0; vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 46%; }
.specs td:last-child { font-weight: 500; color: var(--ink); }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.review-item__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-item__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.review-item__head b { font-size: 14px; display: block; }
.review-item__head span { font-size: 11.5px; color: var(--muted); }
.review-item p { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin-top: 6px; }
.related { margin-top: 56px; }
.related .sec-head { margin-bottom: 22px; }

/* ================= КОРЗИНА ================= */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 396px; gap: 30px; align-items: start; padding-bottom: 70px; }
.cart-main { grid-column: 1; grid-row: 1; min-width: 0; }
.cart-upsell { grid-column: 1; grid-row: 2; min-width: 0; }
.cart-layout > .cart-summary { grid-column: 2; grid-row: 1 / span 2; }
.cart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cart-card__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-card__head h2 { font-size: 18px; letter-spacing: -.02em; }
.cart-item { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item__img { width: 104px; height: 104px; border-radius: 16px; display: grid; place-items: center; padding: 6px; background: color-mix(in srgb, hsl(var(--h, 210) 85% 55%) 9%, var(--surface-2)); }
.cart-item__img svg { width: 100%; height: 100%; }
.cart-item__info { min-width: 0; }
.cart-item__brand { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cart-item__name { font-size: 16px; font-weight: 650; line-height: 1.3; margin: 2px 0 4px; display: block; }
.cart-item__name:hover { color: var(--accent); }
.cart-item__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.cart-item__meta span { background: var(--surface-2); padding: 2px 8px; border-radius: 5px; }
.cart-item__tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cart-item__link { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.cart-item__link:hover { color: var(--coral); }
.cart-item__sum { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.cart-item__sum b { font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.cart-item__sum s { font-size: 12px; color: var(--muted); }

.cart-summary { position: sticky; top: calc(var(--hdr-h) + 18px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.cart-summary h2 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); padding: 7px 0; }
.sum-row b { font-weight: 600; color: var(--ink); }
.sum-row--sale b { color: var(--coral); }
.sum-row--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; color: var(--ink); font-weight: 700; }
.sum-row--total b { font-size: 22px; letter-spacing: -.03em; }
.promo-form { display: flex; gap: 8px; margin: 16px 0; }
.promo-form input { flex: 1; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); padding: 0 12px; font-size: 13px; outline: none; min-width: 0; }
.promo-form input:focus { border-color: var(--ink); }
.promo-form input::placeholder { color: var(--muted); }
.promo-ok { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--mint); background: var(--mint-soft); padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; }
.promo-ok button { color: currentColor; text-decoration: underline; font-size: 12px; }
.promo-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.promo-hint { font-size: 11px; padding: 4px 9px; border: 1px dashed var(--line-strong); border-radius: 7px; color: var(--muted); background: none; }
.promo-hint:hover { color: var(--ink); border-color: var(--ink); }
.bonus-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; margin: 14px 0; font-size: 13px; }
.bonus-toggle small { display: block; color: var(--muted); font-size: 11.5px; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); transition: .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .25s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch.is-on { background: var(--accent); }
.switch.is-on::after { transform: translateX(18px); }
.cart-summary .btn { margin-top: 8px; }
.summary-note { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 14px; }
.summary-note svg { flex: none; margin-top: 1px; }

/* ================= ИЗБРАННОЕ ================= */
.fav-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 8px 0 28px; }
.fav-head__actions { display: flex; gap: 10px; }

/* ================= ОФОРМЛЕНИЕ ================= */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 30px; align-items: start; padding-bottom: 70px; }
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); font-weight: 600; }
.step__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 12px; border: 1px solid var(--line); }
.step.is-active { color: var(--ink); }
.step.is-active .step__n { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.step.is-done .step__n { background: var(--mint); color: #fff; border-color: var(--mint); }
.steps__line { flex: 1; min-width: 20px; height: 1px; background: var(--line); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
.panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.panel__head h2 { font-size: 17px; letter-spacing: -.02em; }
.panel__num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.panel__hint { font-size: 12px; color: var(--muted); margin-left: auto; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); padding: 0 14px; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 6%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field.is-error input, .field.is-error select { border-color: var(--coral); }
.field__err { font-size: 11.5px; color: var(--coral); display: none; }
.field.is-error .field__err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.radio-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: 14px; cursor: pointer; transition: .18s; margin-bottom: 10px; background: var(--surface);
}
.radio-card:hover { border-color: var(--line-strong); }
.radio-card input { appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; margin-top: 1px; display: grid; place-items: center; transition: .15s; }
.radio-card input:checked { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); }
.radio-card.is-on { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.radio-card__body { flex: 1; }
.radio-card__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.radio-card__desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.radio-card__price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.radio-card__price.is-free { color: var(--mint); }
.card-fields { display: none; padding-top: 4px; }
.card-fields.is-on { display: block; }

.pay-logos { display: flex; gap: 6px; margin-left: auto; }
.pay-logos span { font-size: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; color: var(--muted); }

.checkout-summary { position: sticky; top: calc(var(--hdr-h) + 18px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.checkout-summary h2 { font-size: 17px; margin-bottom: 14px; }
.co-lines { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; margin-bottom: 14px; padding-right: 4px; }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; }
.co-line__img { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; padding: 3px; background: color-mix(in srgb, hsl(var(--h, 210) 85% 55%) 9%, var(--surface-2)); }
.co-line__img svg { width: 100%; height: 100%; }
.co-line b { font-size: 12.5px; line-height: 1.3; display: block; }
.co-line span { font-size: 11px; color: var(--muted); }
.co-line__price { font-size: 13px; font-weight: 600; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 8px; }
.co-total span { font-size: 13px; color: var(--muted); }
.co-total b { font-size: 24px; letter-spacing: -.03em; }
.secure { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: 11.5px; color: var(--muted); margin-top: 14px; }

.success { max-width: 620px; margin: 40px auto 80px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 48px 32px; }
.success__ic { width: 84px; height: 84px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); display: grid; place-items: center; margin: 0 auto 22px; animation: pop .5s var(--ease); }
.success h1 { font-size: 30px; letter-spacing: -.03em; }
.success p { color: var(--muted); margin: 10px 0 22px; line-height: 1.6; }
.success__num { display: inline-flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 12px 18px; font-weight: 700; margin-bottom: 8px; }
.success__bonus { color: var(--mint); font-size: 13px; font-weight: 600; }
.success__actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.success__next { margin-top: 26px; text-align: left; border-top: 1px solid var(--line); padding-top: 20px; }

/* ================= ЛИЧНЫЙ КАБИНЕТ ================= */
.account { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 70px; }
.acc-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; position: sticky; top: calc(var(--hdr-h) + 18px); }
.acc-user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.acc-user__ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; }
.acc-user b { display: block; font-size: 14px; line-height: 1.2; }
.acc-user span { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.acc-nav__list { display: flex; flex-direction: column; gap: 2px; }
.acc-nav__list a, .acc-nav__list button {
  display: flex; align-items: center; gap: 11px; padding: 12px 12px; border-radius: 11px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); width: 100%; text-align: left; transition: .18s;
}
.acc-nav__list a:hover, .acc-nav__list button:hover { background: var(--surface-2); color: var(--ink); }
.acc-nav__list a.is-active, .acc-nav__list button.is-active { background: var(--ink); color: var(--bg); }
.acc-nav__list svg { flex: none; }
.acc-nav__list .grow { margin-left: auto; font-size: 11px; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.acc-nav__list .is-active .grow { background: rgba(255, 255, 255, .15); color: inherit; }
.acc-nav__logout { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.acc-panel { min-height: 400px; }
.acc-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.acc-title h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.035em; }
.acc-title p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 3px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { font-size: 26px; letter-spacing: -.03em; }
.stat--accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0; color: #fff; }
.stat--accent span { color: rgba(255, 255, 255, .8); }

.bonus-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 26px; color: #fff;
  background: linear-gradient(125deg, #101731, #1b2550 60%, #0e2a25);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
}
.bonus-card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 0 0 40px rgba(255, 255, 255, .04); }
.bonus-card__num { font-size: 40px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.bonus-card__num small { font-size: 15px; font-weight: 600; opacity: .7; margin-left: 4px; }
.bonus-card p { font-size: 12.5px; color: rgba(255, 255, 255, .62); margin-top: 6px; max-width: 330px; }
.bonus-card__bar { height: 6px; width: 220px; border-radius: 999px; background: rgba(255, 255, 255, .16); margin-top: 14px; overflow: hidden; }
.bonus-card__bar span { display: block; height: 100%; background: linear-gradient(90deg, #9db0ff, var(--mint)); border-radius: 999px; }

.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 16px; }
.acc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.acc-card__head h2 { font-size: 16.5px; letter-spacing: -.02em; }

.order { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; background: var(--surface); }
.order__head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; cursor: pointer; }
.order__num { font-weight: 700; font-size: 14px; }
.order__date { font-size: 12px; color: var(--muted); }
.order__status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.order__status--ok { background: var(--mint-soft); color: var(--mint); }
.order__status--cancel { background: var(--coral-soft); color: var(--coral); }
.order__status--wait { background: var(--accent-soft); color: var(--accent); }
.order__total { margin-left: auto; font-weight: 700; font-size: 15px; }
.order__toggle { color: var(--muted); transition: transform .3s; }
.order.is-open .order__toggle { transform: rotate(180deg); }
.order__body { display: none; border-top: 1px solid var(--line); padding: 16px 18px; background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.order.is-open .order__body { display: block; }
.order__items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.order__item { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; }
.order__item .thumb { width: 46px; height: 46px; border-radius: 9px; background: var(--surface); display: grid; place-items: center; padding: 3px; }
.order__item b { font-size: 13px; font-weight: 600; display: block; }
.order__item span { font-size: 11.5px; color: var(--muted); }
.order__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 14px; }
.order__meta b { color: var(--ink); font-weight: 600; display: block; font-size: 12.5px; margin-top: 2px; }
.order-track { display: flex; gap: 6px; margin-top: 16px; }
.order-track__step { flex: 1; font-size: 10.5px; color: var(--muted); text-align: center; position: relative; padding-top: 14px; }
.order-track__step::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 3px; border-radius: 999px; background: var(--surface-3); }
.order-track__step.is-done { color: var(--ink); }
.order-track__step.is-done::before { background: var(--mint); }
.order__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr { border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: relative; background: var(--surface); }
.addr__title { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.addr__title .chip { height: 20px; font-size: 10px; padding: 0 7px; }
.addr p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.addr__rm { position: absolute; top: 10px; right: 10px; color: var(--muted); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.addr__rm:hover { background: var(--coral-soft); color: var(--coral); }
.addr--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-style: dashed; color: var(--muted); font-size: 13px; font-weight: 600; min-height: 120px; cursor: pointer; background: none; }
.addr--add:hover { border-color: var(--ink); color: var(--ink); }

/* авторизация */
.auth-wrap { padding: 24px 0 80px; }
.auth { display: grid; grid-template-columns: 1.02fr .98fr; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.auth__promo {
  position: relative; padding: clamp(28px, 4vw, 48px); color: #fff; overflow: hidden;
  background: linear-gradient(150deg, #0c1226 0%, #17204a 55%, #0d2a26 100%);
  display: flex; flex-direction: column; gap: 14px;
}
.auth__promo::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -140px; bottom: -160px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 50px rgba(255, 255, 255, .03); }
.auth__promo h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.08; margin-top: 4px; }
.auth__promo .chip { align-self: flex-start; }
.auth__promo p { color: rgba(255, 255, 255, .65); font-size: 14px; line-height: 1.6; }
.auth__list { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; position: relative; z-index: 1; }
.auth__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.auth__list svg { color: var(--mint); flex: none; margin-top: 1px; }
.auth__demo { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .7); position: relative; z-index: 1; }
.auth__demo b { color: #fff; }
.auth__demo button { color: #a9b9ff; font-weight: 600; text-decoration: underline; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.auth__form { padding: clamp(26px, 3.6vw, 46px); display: flex; flex-direction: column; }
.auth__tabs { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; margin-bottom: 24px; align-self: flex-start; }
.auth__tabs button { height: 36px; padding: 0 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.auth__tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth h1 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 4px; }
.auth__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.auth__form form { display: flex; flex-direction: column; }
.auth__form .btn { margin-top: 6px; }
.auth__note { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 14px; }
.auth__note a { color: var(--accent); text-decoration: underline; }
.auth__err { background: var(--coral-soft); color: var(--coral); font-size: 12.5px; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; display: none; }
.auth__err.is-on { display: block; }
.auth__alt { margin-top: auto; padding-top: 26px; font-size: 12px; color: var(--muted); }
.auth__alt button { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* пустые состояния страниц */
.page-empty { padding: 60px 0 90px; }

/* ================= АДАПТИВ СТРАНИЦ ================= */
@media (max-width: 1180px) {
  .bento { grid-auto-rows: 190px; }
  .bento__tile--lg h3 { font-size: 23px; }
  .bento__tile p { display: none; }
  .bento__tile--lg p { display: block; }
  .hero__visual { min-height: 420px; }
  .hero__card--main { min-height: 420px; }
  .cat-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 1024px) {
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { min-height: 380px; max-width: 620px; }
  .hero__card--main { min-height: 380px; }
  .hero__stats { margin-top: 28px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile, .bento__tile--wide { grid-column: span 1; }
  .bento__tile--lg { grid-column: span 2; grid-row: span 1; }
  .bento__art { width: 46%; }
  .bento__tile--lg .bento__art { width: 46%; }
  .promo { grid-template-columns: 1fr; }
  .promo__art { display: none; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .sets { grid-template-columns: 1fr; }
  .set-card { flex-direction: row; }
  .set-card__media { width: 190px; flex: none; aspect-ratio: auto; }
  .set-card__body { padding: 20px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .newsletter { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product__gallery { position: static; max-width: 560px; }
  .cart-layout, .checkout { grid-template-columns: 1fr; }
  .cart-main, .cart-upsell, .cart-layout > .cart-summary { grid-column: 1; grid-row: auto; }
  .cart-summary, .checkout-summary { position: static; }
  .account { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .account > * { min-width: 0; }
  .acc-nav { position: static; min-width: 0; overflow: hidden; }
  .acc-panel { min-width: 0; }
  .acc-nav__list { flex-direction: row; flex-wrap: wrap; overflow: visible; gap: 4px; padding-bottom: 4px; scrollbar-width: none; min-width: 0; }
  .acc-nav__list a, .acc-nav__list button { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 9px 11px; font-size: 13px; gap: 7px; }
  .acc-nav__list svg { width: 16px; height: 16px; }
  .acc-nav__list .acc-nav__logout { flex: 1 0 100%; justify-content: flex-start; margin-top: 4px; padding-top: 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--coral); }
  .acc-nav__list .grow { display: none; }
  .acc-user { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth__promo { display: none; }
  .filters {
    position: fixed; z-index: 125; inset: 0 0 0 auto; width: min(360px, 92vw); max-height: none; border-radius: 0;
    transform: translateX(103%); transition: transform .4s var(--ease); padding: 20px; top: 0;
    display: flex; flex-direction: column;
  }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; }
  .filters-open { display: inline-flex; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters-veil { display: block; position: fixed; inset: 0; background: rgba(6, 8, 14, .44); backdrop-filter: blur(3px); z-index: 124; opacity: 0; visibility: hidden; transition: .3s; }
  .filters-veil.is-on { opacity: 1; visibility: visible; }
}
@media (max-width: 720px) {
  .hero { padding-top: 18px; }
  .hero__stats { gap: 22px; }
  .hero__stats b { font-size: 20px; }
  .hero__float--product { left: 4px; bottom: -14px; width: 216px; transform: scale(.92); transform-origin: left bottom; animation: none; }
  .hero__float--rating { top: 10px; right: 0; transform: scale(.9); transform-origin: right top; animation: none; }
  .hero__float--ship { display: none; }
  .hero__card--main { min-height: 320px; border-radius: 30px; }
  .hero__visual { min-height: 330px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .bento__tile { grid-column: span 1; padding: 16px; border-radius: 20px; }
  .bento__tile h3 { font-size: 15px; }
  .bento__tile--lg { grid-column: span 2; grid-auto-rows: 180px; }
  .bento__tile--lg h3 { font-size: 20px; }
  .bento__count { font-size: 9.5px; }
  .bento__link { display: none; }
  .bento__tile p { display: none; }
  .bento__art { width: 54%; right: -16px; bottom: -18px; }
  .bento__tile--lg .bento__art { width: 50%; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab { flex: 1; padding: 0 8px; font-size: 13px; }
  .promo { padding: 26px 20px; border-radius: 26px; }
  .promo__timer div { min-width: 56px; padding: 8px 4px; }
  .promo__timer b { font-size: 20px; }
  .feats { grid-template-columns: 1fr; }
  .set-card { flex-direction: column; }
  .set-card__media { width: 100%; aspect-ratio: 1.5; }
  .brands__row a { font-size: 14px; }
  .pickup__cities { justify-content: flex-start; max-width: none; }
  .newsletter form { flex-direction: column; border-radius: 20px; padding: 10px; background: transparent; border: 0; }
  .newsletter input { background: rgba(255, 255, 255, .15); border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); }
  .page-head { padding: 4px 0 18px; }
  .cat-bar__right { width: 100%; margin-left: 0; }
  .select { flex: 1; }
  .product__gallery { max-width: none; }
  .product h1 { font-size: 26px; }
  .product__price .price { font-size: 25px; }
  .product__price .chip { margin-left: 0; }
  .buybox .btn { min-width: 0; }
  .buybox__fav { width: 52px; }
  .tab-body { font-size: 14px; }
  .cart-item { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .cart-item__img { width: 76px; height: 76px; }
  .cart-item__sum { grid-column: 2; text-align: left; flex-direction: row; align-items: baseline; gap: 8px; }
  .acc-stats { grid-template-columns: 1fr; }
  .addr-grid { grid-template-columns: 1fr; }
  .order__meta { grid-template-columns: 1fr; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .auth-wrap { padding-top: 8px; }
  .auth { border-radius: 24px; }
  .auth__form { padding: 22px; }
  .success { padding: 32px 20px; }
  .success h1 { font-size: 24px; }
  .bonus-card { padding: 20px; }
  .bonus-card__num { font-size: 32px; }
  .order-track__step { font-size: 9px; }
  .product-tabs { margin-top: 36px; }
  .related { margin-top: 40px; }
}

/* ---------- дополнительные элементы ---------- */
.bonus-card .btn { background: #fff; color: #0b1024; border: 0; }
.bonus-card .btn:hover { background: #e8ecff; box-shadow: none; }
.acc-nav__list .acc-nav__logout { color: var(--coral); }
.acc-nav__list .acc-nav__logout:hover { background: var(--coral-soft); color: var(--coral); }
@media (min-width: 1025px) { #filters-apply { display: none; } }
@media (max-width: 720px) {
  .bonus-card__bar { width: 100%; }
}

/* ---------- финальные правки интерфейса ---------- */
@media (min-width: 900px) {
  body:has(.drawer--cart.is-open) .toasts { right: calc(min(440px, 100vw) + 20px); }
}
@media (max-width: 1024px) {
  .filters__head { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: 8px 0 12px; margin-bottom: 4px; }
  .filters__foot { position: sticky; bottom: 0; z-index: 3; background: var(--surface); padding-top: 14px; }
}
@media (max-width: 720px) {
  .tabs-line button { padding: 12px 9px; font-size: 12.5px; }
  .tabs-line__count { display: none; }
}

/* ---------- страница 404 ---------- */
.errpage { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 70px 20px 100px; }
.errpage__code {
  font-size: clamp(90px, 15vw, 180px); font-weight: 800; letter-spacing: -.06em; line-height: .9;
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.errpage h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.errpage p { color: var(--muted); max-width: 440px; line-height: 1.6; }
.errpage__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- SEO-текст ---------- */
.seo-block { max-width: 940px; }
.seo-block h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; margin-bottom: 14px; }
.seo-block p { color: var(--muted); font-size: 14.5px; line-height: 1.75; margin: 0 0 12px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; }
.seo-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--surface); transition: border-color .2s, color .2s; }
.seo-links a:hover { border-color: var(--accent); color: var(--accent); }

.cat-seo { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 780px; }
.cat-seo h2 { font-size: clamp(20px, 2.1vw, 26px); letter-spacing: -.03em; margin-bottom: 10px; }
.cat-seo p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
