/* Сайт «Європартнер»: белый фон, фиолетовый неоновый акцент (макеты 12.11.2026). Шрифты Onest + Unbounded (логотип). */
:root {
  --ink: #1B1A22;
  --ink-2: #45414F;
  --muted: #5E5A6B;
  --line: #ECEAF2;
  --line-2: #DAD6E3;
  --soft: #F8F7FB;
  --tint: #F1EDFF;
  --tint-2: #F4F0FF;
  --accent: #6D4AFF;
  --accent-ink: #5B3BEA;
  --accent-dark: #4326C9;
  --glow: #8B6CFF;
  --night: #17112E;
  --night-ink: #CFC9E3;
  --star: #E0A100;
  --r: 16px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
html.noscroll { overflow: hidden; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink); background: #fff; }
img, video { max-width: 100%; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-dark); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.h3 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-ink); color: #fff; box-shadow: 0 0 0 3px rgba(109, 74, 255, .18), 0 8px 26px rgba(109, 74, 255, .45); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--big { min-height: 56px; padding: 0 24px; font-size: 17px; box-shadow: 0 8px 24px rgba(109, 74, 255, .32); }
.linkbtn { background: none; border: 0; padding: 12px 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
}
.stars { color: var(--star); letter-spacing: 1px; }
.stars__off { color: #DDD8E6; }

/* ---------- шапка ---------- */
.topbar { background: var(--night); color: #E7E3F5; font-size: 14px; }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar__perks, .topbar__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar a { color: #E7E3F5; }
.head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 12px 36px; min-height: var(--head-h); }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.logo:hover { color: var(--ink); }
.logo__name { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.logo__sub { font-size: 12px; color: var(--muted); }
.menu { display: flex; flex-wrap: wrap; gap: 4px 26px; flex: 1; font-weight: 600; }
.menu a { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
.head__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.head__phone { display: flex; flex-direction: column; text-align: right; line-height: 1.25; }
.head__phone a { color: var(--ink); font-weight: 600; text-decoration: none; }
.head__phone span { font-size: 12px; color: var(--muted); }
.head__call, .head__burger { display: none; }
.cart-btn { background: var(--tint); color: var(--accent-ink); }
.cart-btn__n {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(109, 74, 255, .7);
}

/* ---------- главная ---------- */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding-top: 36px; padding-bottom: 36px; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero__lead { margin: 0; font-size: 18px; color: var(--ink-2); }
.hero__perks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: 15px; }
.perk { display: inline-flex; align-items: center; gap: 8px; }
.perk svg { color: var(--accent); }
.rating { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.rating b { color: var(--ink); }
.rating:hover { color: var(--accent-ink); }
.hero__img { flex: 1 1 320px; min-width: 0; max-width: 420px; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 50px rgba(109, 74, 255, .22); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-size: 15px;
  /* тонкая белая линия внутри: фиолетовый край → белый → фиолетовое тело */
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4.5px #fff, 0 4px 14px rgba(109, 74, 255, .3); transition: box-shadow .2s, background .2s;
}
.chip b { font-weight: 700; }
.chip span { color: rgba(255, 255, 255, .82); }
.chip:hover { background: var(--accent-ink); color: #fff;
  box-shadow: inset 0 0 0 3px var(--accent-ink), inset 0 0 0 4.5px #fff, 0 0 0 3px rgba(109, 74, 255, .18), 0 6px 22px rgba(109, 74, 255, .55); }

.sect { padding: 52px 0 4px; }
.sect__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.sect__title { display: flex; align-items: center; gap: 14px; margin-bottom: 0; }
.sect > .wrap > .sect__title { margin-bottom: 22px; }
.glow-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--glow); box-shadow: 0 0 12px 3px rgba(139, 108, 255, .65); flex-shrink: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 44%), 1fr)); gap: 20px; }

.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; transition: box-shadow .2s, border-color .2s; }
.card:hover { border-color: #CFC4FF; box-shadow: 0 10px 30px rgba(109, 74, 255, .16); }
.card__pic { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--ink); }
.card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600;
}
.badge__dot { width: 7px; height: 7px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 6px var(--glow); flex-shrink: 0; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; }
.card__name a { color: var(--ink); text-decoration: none; }
.card__name a:hover { color: var(--accent-ink); }
.card__line { font-size: 14px; color: var(--muted); }
/* плашки опций в плитке: свет (цвет по свечению), провод, LED (фиолетовая) */
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.tag .dot { width: 12px; height: 12px; border-radius: 6px; }
.tag--ww, .opt.tag--ww { background: #FFF2CC; color: #6B4A00; }
.tag--cw, .opt.tag--cw { background: #E6F1FF; color: #1E4C7A; }
.tag--fl, .opt.tag--fl { background: #E3F4FF; color: #134A66; }
.tag--ml, .opt.tag--ml { background: #FCEBF4; color: #7A1F4F; }
.tag--bl, .opt.tag--bl { background: #E2EBFF; color: #1D3F99; }
.tag--wire-g, .opt.tag--wire-g { background: #E3F3E6; color: #1F5A2B; }
.tag--wire-l, .opt.tag--wire-l {   /* «металл»: светлый блик посередине, по краям темнее */
  background: linear-gradient(135deg, #E9ECF0 0%, #C9CFD6 30%, #F8F9FB 50%, #C3C9D1 72%, #E4E8EC 100%);
  color: #3B4149; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .08);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.tag--wire-b, .opt.tag--wire-b { background: #E9E9EB; color: #222; }
.tag__wire { width: 16px; height: 6px; border-radius: 3px; background: currentColor; flex-shrink: 0; }
.tag--wire-g .tag__wire { background: #2F6B3A; }
.tag--wire-l .tag__wire { background: linear-gradient(180deg, #F2F4F6 0%, #9AA2AC 55%, #D5DADF 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.tag--led { background: var(--tint); color: var(--accent-ink); padding-left: 10px; }
.card__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.card__price { font-size: 21px; font-weight: 700; white-space: nowrap; }

/* ---------- отзывы ---------- */
.reviews { margin-top: 60px; padding: 48px 0; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.reviews__head p { margin: 6px 0 0; }
.rating-big { display: flex; align-items: center; gap: 12px; }
.rating-big__n { font-size: 44px; font-weight: 700; line-height: 1; }
.rating-big__s { display: flex; flex-direction: column; font-size: 14px; }
.rating-big__s .stars { font-size: 18px; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review { margin: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-size: 15px; }
.review figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.review figcaption b { color: var(--ink); }

/* ---------- вопросы ---------- */
.faq { padding: 56px 0 16px; }
.faq__in { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.faq__title { flex: 1 1 260px; }
.faq__list { flex: 999 1 560px; min-width: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq__item summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__a { padding-top: 10px; color: var(--ink-2); font-size: 15px; }
.faq__a p, .faq__a ul { margin: 6px 0; }
.faq__a ul { padding-left: 20px; }

.seo { padding: 40px 0 64px; }
.seo__in { max-width: 908px; color: var(--ink-2); font-size: 15px; }
.seo__in h2 { color: var(--ink); margin-bottom: 12px; }
.seo__in p { margin: 0 0 12px; }

/* ---------- подвал ---------- */
.foot { background: var(--night); color: var(--night-ink); font-size: 15px; }
.foot a { color: var(--night-ink); }
.foot a:hover { color: #fff; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__col b { color: #fff; }
.foot__logo { font-family: var(--display); font-weight: 600; font-size: 18px; color: #fff; text-shadow: 0 0 14px rgba(139, 108, 255, .8); }
.foot__phone { color: #fff !important; text-decoration: none; }
.foot__legal { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid #2E2650; font-size: 13px; color: #A49DBD; }

/* ---------- карточка товара ---------- */
.prod { padding-top: 18px; padding-bottom: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.prod__top { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 18px; }
.gal { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gal__main { position: relative; border-radius: 20px; overflow: hidden; background: var(--soft); }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; background: var(--soft); }
.gal__slide img, .gal__slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal__nav {
  position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 24px; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.gal__nav--prev { left: 12px; }
.gal__nav--next { right: 12px; }
.gal__count { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 8px; background: rgba(23, 17, 46, .7); color: #fff; font-size: 13px; }
.gal__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.gal__thumb {
  position: relative; flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: var(--ink); cursor: pointer;
}
.gal__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal__thumb[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 12px rgba(109, 74, 255, .5); }
.gal__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; text-shadow: 0 0 8px rgba(0, 0, 0, .6); }

.buy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.buy__title { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.22; }
.buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--muted); margin-top: -8px; }
.price-box { padding: 18px 20px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; }
.price-box__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.price-box__price { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; }
.price-box p { margin: 0; font-size: 14px; color: var(--ink-2); }
.price-box__left { color: #B4231A !important; font-weight: 600; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent-ink); }

.pick__label { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.pick__label span { font-weight: 400; color: var(--muted); }
.pick__opts { display: grid; gap: 8px; }
.pick__opts--light { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pick__opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick__opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.25;
  transition: border-color .15s, box-shadow .15s;
}
/* цвет свечения и провод в карточке — цветные «таблетки», как плашки в каталоге */
.opt--pill { border-radius: 999px; border-color: rgba(0, 0, 0, .08); font-weight: 600; }
.opt--pill .tag__wire { width: 26px; height: 8px; border-radius: 4px; }
.opt:hover { border-color: var(--accent); color: var(--ink); }
.opt--on { background: var(--tint-2); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 14px rgba(109, 74, 255, .25); }
.opt.opt--on { box-shadow: inset 0 0 0 1px var(--accent), 0 0 14px rgba(109, 74, 255, .35); }
.opt--no { background: var(--soft); border-style: dashed; color: #8C879A; }
.opt--no:hover { border-color: var(--line-2); color: #8C879A; }
.opt__s { display: none; }
.opt__col { display: flex; flex-direction: column; }
.opt__col small, .opt--len small { font-size: 12px; color: var(--muted); }
.opt--len { flex-direction: column; align-items: flex-start; gap: 2px; }
.opt--len b { font-size: 17px; }
.opt--len span { font-size: 14px; font-weight: 600; }
.dot { width: 18px; height: 18px; border-radius: 9px; flex-shrink: 0; border: 1px solid rgba(0, 0, 0, .15); }
.dot--ww { background: #FFC766; box-shadow: 0 0 8px rgba(255, 199, 102, .7); }
.dot--cw { background: #EAF3FF; box-shadow: 0 0 8px rgba(160, 200, 255, .7); }
.dot--fl { background: linear-gradient(90deg, #FFC766 50%, #6EC3FF 50%); }
.dot--ml { background: conic-gradient(#FF6B6B 0 25%, #52E08F 0 50%, #6AA8FF 0 75%, #FFD15C 0); }
.dot--bl { background: #4D8BFF; box-shadow: 0 0 8px rgba(77, 139, 255, .7); }
.wire { width: 34px; height: 12px; border-radius: 6px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .12); }
.flash-note { margin: 0; padding: 12px 16px; border-radius: 12px; background: #E8F4FD; color: #134A66; font-size: 14px; }

.buy__row { display: flex; gap: 10px; align-items: stretch; }
.buy__btn { flex: 1; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.qty button { width: 44px; min-height: 54px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty input { width: 40px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { min-height: 40px; font-size: 18px; }
.qty__n { min-width: 22px; text-align: center; font-weight: 600; }
.trust { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust svg { color: var(--accent); flex-shrink: 0; }

.tabs { position: sticky; top: var(--head-h); z-index: 5; margin-top: 48px; background: #fff; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 600; }
.tabs a { padding: 14px 0; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.prod__info { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 32px; }
.desc { flex: 999 1 600px; min-width: 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.desc .h2 { color: var(--ink); margin-bottom: 8px; }
.desc p { margin: 0 0 12px; }
.desc strong { color: var(--ink); }
.desc ul { padding-left: 22px; margin: 0 0 12px; }
.desc img { display: block; max-width: min(100%, 560px); height: auto; border-radius: 14px; margin: 8px 0 16px; }
.desc .ck-alert { margin: 8px 0 16px; padding: 12px 16px; border-radius: 12px; background: #E8F4FD; color: #134A66; font-size: 15px; }
.specs { flex: 1 1 360px; min-width: 0; }
.specs .h2 { margin-bottom: 12px; }
.specs dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); font-size: 15px; }
.specs dt { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.specs dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.prod + .reviews { margin-top: 40px; }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: none; align-items: center; gap: 10px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 18px rgba(23, 17, 46, .12);
  transform: translateY(110%); transition: transform .25s;
}
.buybar img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.buybar__info b { font-size: 17px; }
.buybar__info span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar--show { transform: none; }

.page404 { padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---------- служебные страницы ---------- */
.legal { padding-top: 24px; padding-bottom: 72px; }
.legal__in { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 24px; }
.legal__nav { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.legal__nav a { padding: 12px 16px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.legal__nav a:hover { background: var(--soft); }
.legal__nav a[aria-current="page"] { background: var(--tint); color: var(--accent-ink); font-weight: 600; }
.legal__text { flex: 999 1 600px; min-width: 0; max-width: 780px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.legal__text .h1 { color: var(--ink); margin-bottom: 16px; }
.legal__text h2 { color: var(--ink); font-size: 22px; margin: 28px 0 8px; }
.legal__text ul, .legal__text ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal__text b { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.facts div { padding: 18px; background: var(--soft); border-radius: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.facts b { font-size: 17px; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.contacts > div { padding: 18px; background: var(--soft); border-radius: 14px; display: flex; flex-direction: column; gap: 4px; }
.contacts__phone { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.callout { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); }

/* ---------- корзина (всплывающее окно) ---------- */
.cart {
  width: min(940px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: 0 24px 64px rgba(23, 17, 46, .35); overflow: auto;
}
.cart::backdrop { background: rgba(23, 17, 46, .6); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.cart__title { margin: 0; font-size: 22px; }
.cart__x {
  width: 44px; height: 44px; border: 0; border-radius: 22px; background: #F4F2F8; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cart__body { display: flex; flex-wrap: wrap; }
.cart__items { flex: 1 1 380px; min-width: 0; padding: 4px 24px 16px; }
.cart__list { list-style: none; margin: 0; padding: 0; }
.cline { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cline__pic img { display: block; width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--ink); }
.cline__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cline__name { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.cline__line { font-size: 13px; color: var(--muted); }
.cline__tags .tags { padding-top: 4px; gap: 4px; }
.cline__tags .tag, .dline .tag { font-size: 12px; padding: 3px 8px 3px 6px; gap: 5px; }
.cline__tags .tag .dot, .dline .tag .dot { width: 10px; height: 10px; }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.cline__sum { font-size: 17px; white-space: nowrap; }
.cline__del { align-self: flex-start; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart__empty { margin: 20px 0; color: var(--muted); }
.cart__sum { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.cart__row { display: flex; justify-content: space-between; gap: 12px; }
.cart__row--muted { font-size: 14px; color: var(--muted); }
.cart__row--total { padding-top: 6px; font-size: 20px; font-weight: 700; }
.cart__form { flex: 1 1 360px; min-width: 0; padding: 20px 24px 24px; background: var(--soft); display: flex; flex-direction: column; gap: 14px; }
.cart__form h3 { margin: 0; font-size: 18px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fld input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid #CFCAD9; border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
}
.fld input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.fld input[aria-invalid="true"] { border-color: #C0392B; }
.fld small { font-weight: 400; color: var(--muted); font-size: 13px; }
.fld__opt { font-weight: 400; }
.dlv { display: flex; flex-wrap: wrap; gap: 8px; }
.dlv__opt { flex: 1 1 170px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid #CFCAD9;
  border-radius: 10px; background: #fff; font-size: 15px; font-weight: 500; cursor: pointer; }
.fld .dlv__opt input { width: 20px; height: 20px; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
.dlv__opt:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.ac { position: relative; }
.ac__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 260px; overflow: auto; margin: 0; padding: 4px;
  list-style: none; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 30px rgba(23, 17, 46, .15);
}
.ac__list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 400; display: flex; flex-direction: column; }
.ac__list li small { color: var(--muted); }
.ac__list li:hover, .ac__list li[aria-selected="true"] { background: var(--tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #FFF4CC; color: #4A3B00; font-size: 13px; line-height: 1.5; }
.pay-note svg { flex-shrink: 0; }
.form-err { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FDECEA; color: #8E1F14; font-size: 14px; }
.cart__terms { font-size: 12px; color: var(--muted); text-align: center; }
.done { position: relative; }
.done__img { display: block; width: 100%; height: 300px; object-fit: cover; background: var(--ink); }
.done__x { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .92); }
.done__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; }
.done__title { margin: 0; font-size: 26px; display: flex; align-items: center; gap: 12px; }
.done__check { display: inline-flex; width: 36px; height: 36px; border-radius: 18px; background: var(--accent); color: #fff; align-items: center; justify-content: center; font-size: 19px; box-shadow: 0 0 18px rgba(109, 74, 255, .6); }
.done__body p { margin: 0; color: var(--ink-2); }
#doneText b { color: var(--ink); font-size: 17px; }
.done__what { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #F4F2F8; border-radius: 12px; font-size: 15px; }
.done__label { color: var(--muted); }
.dlist { list-style: none; margin: 0; padding: 0; }
.dline { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #E4E0EC; }
.dline__pic { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--ink); }
.dline__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dline__name { font-size: 15px; line-height: 1.3; }
.dline__qty { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; font-size: 14px; }
.dline__qty span { color: var(--muted); }
.done__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; }
.done__sum span { color: var(--ink-2); }
.done__sum b { font-size: 20px; white-space: nowrap; }

/* ---------- телефон ---------- */
@media (max-width: 959px) {
  :root { --head-h: 60px; }
  .topbar { font-size: 13px; }
  .topbar__links { display: none; }
  .head__in { gap: 8px; }
  .logo__name { font-size: 18px; }
  .logo__sub { display: none; }
  .head__phone { display: none; }
  .head__call, .head__burger { display: inline-flex; }
  .head__right { gap: 2px; }
  .cart-btn { margin-left: 4px; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(23, 17, 46, .12);
  }
  .menu--open { display: flex; }
  .menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .wrap { padding: 0 16px; }
  .hero__in { padding-top: 24px; padding-bottom: 24px; }
  .hero__img { display: none; }
  .hero__lead { font-size: 16px; }
  .h1 { font-size: 26px; }
  .buy__title { font-size: 22px; }
  /* на телефоне — ровная сетка 2 × 2: крупно длина, под ней подсказка */
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chip { flex-direction: column; justify-content: center; gap: 1px; min-height: 58px; padding: 8px 10px; border-radius: 14px; text-align: center; font-size: 13px; line-height: 1.25; }
  .chip b { font-size: 16px; }
  .price-box__price { font-size: 30px; }
  .sect { padding-top: 40px; }
  .grid { gap: 12px; }
  .card__body { padding: 10px 12px 12px; }
  .card__name { font-size: 15px; }
  .card__line { font-size: 13px; }
  .tags { gap: 4px; }
  .tag { font-size: 11.5px; padding: 3px 8px 3px 6px; gap: 5px; }
  .tag .dot { width: 10px; height: 10px; }
  .tag__wire { width: 12px; height: 5px; }
  .card__buy { flex-direction: column; align-items: stretch; gap: 8px; }
  .card__price { font-size: 18px; }
  .badge { top: 8px; left: 8px; padding: 4px 8px; font-size: 11px; }
  .pick__opts--light { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .pick__opts--light .opt { flex-direction: column; justify-content: center; gap: 4px; padding: 6px 4px; font-size: 12px; text-align: center; border-radius: 14px; }
  .opt__l { display: none; }
  .opt__s { display: inline; }
  .opt--len { padding: 6px 8px; }
  .buybar { display: flex; }
  .foot { padding-bottom: 80px; }
  .cart { width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
  .cart__items, .cart__form { padding-left: 16px; padding-right: 16px; }
  .done__img { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
