/* Страницы серий (e-series.html) и 404 (e-404.html) концепции E. Токены и общие блоки — в e.css */

/* ===== Список серий ===== */
.sl-jump { margin-bottom: 8px; }
.sl-g { padding-top: 40px; scroll-margin-top: 80px; }
.sl-g h2 { margin-bottom: 18px; }
.sl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sl-t { display: grid; align-content: start; gap: 4px; padding: 20px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
@media (hover: hover) and (pointer: fine) { .sl-t:hover { position: relative; z-index: 1; box-shadow: 0 22px 46px -18px rgb(29 31 30 / .24), 0 0 0 1px var(--line); } .sl-t:hover b { color: var(--olive); } }
.sl-t-img { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 12px; background: var(--soft); border-radius: var(--r); overflow: hidden; }
.sl-t-img img { width: 72%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .sl-t:hover .sl-t-img img { transform: translateY(-4px); } }
.sl-t b { font: 500 18px/1.25 var(--f-disp); color: var(--ink); transition: color .2s; }
.sl-t-line { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.sl-t-meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 1023px) { .sl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .sl-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 4px; padding: 0 var(--gut); }
  .sl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-t { padding: 12px 12px 16px; }
  .sl-t b { font-size: 16px; }
  .sl-t-line { font-size: 12.5px; }
}

/* ===== Первый экран серии ===== */
.ser-bc .bc { margin: 18px 0 14px; }
.ser-hero { position: relative; display: grid; min-height: clamp(420px, 38vw, 560px); overflow: hidden; border-radius: var(--r); background: var(--charcoal); color: #fff; isolation: isolate; }
.ser-hero-media { position: absolute; inset: 0; z-index: -1; }
.ser-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ser-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(14 15 15 / .78) 0%, rgb(14 15 15 / .45) 38%, transparent 70%); }
.ser-hero-txt { align-self: center; display: grid; justify-items: start; gap: 12px; max-width: 660px; padding: 40px clamp(28px, 4.5vw, 72px); }
.ser-tag { font: 600 11px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.ser-hero h1 { color: inherit; font-size: clamp(34px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; }
.ser-hero p { margin: 0; font-size: 17px; line-height: 1.5; opacity: .88; max-width: 40ch; }
.ser-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 10px 0 8px; padding: 0; list-style: none; }
.ser-facts li { display: grid; gap: 2px; }
.ser-facts b { font: 500 24px/1.1 var(--f-disp); letter-spacing: -.01em; }
.ser-facts span { font-size: 12.5px; opacity: .72; }
.ser-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--ghost { color: #fff; border-color: rgb(255 255 255 / .55); }
.btn--ghost:hover { border-color: #fff; }
/* Серия без своего фото: вырезка флагмана справа на светлом фоне */
.ser-hero--cut { background: var(--soft); color: var(--ink); }
/* Свой фон нужен для multiply: z-index -1 делает блок отдельным слоем, и без фона картинка смешивается с прозрачностью */
.ser-hero--cut .ser-hero-media { left: auto; width: 46%; display: grid; place-items: center; background: var(--soft); }
.ser-hero--cut .ser-hero-media::after { display: none; }
.ser-hero--cut .ser-hero-media img { width: 76%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 767px) {
  .ser-hero { min-height: 0; margin: 0 calc(var(--gut) * -1); border-radius: 0; background: var(--bg); color: var(--ink); }
  .ser-hero-media { position: relative; inset: auto; height: 62vw; }
  .ser-hero-media::after { display: none; }
  .ser-hero--cut .ser-hero-media { width: auto; }
  .ser-hero-txt { padding: 20px var(--gut) 4px; gap: 10px; }
  .ser-hero h1 { font-size: 32px; }
  .ser-hero p { font-size: 15px; }
  .ser-facts { gap: 6px 24px; margin: 4px 0; }
  .ser-facts b { font-size: 20px; }
  .ser-hero .btn--light { background: var(--btn); border-color: var(--btn); color: #fff; }
  .ser-hero .btn--ghost { color: var(--ink); border-color: var(--line-2); }
  .ser-hero-acts { width: 100%; }
  .ser-hero-acts .btn { flex: 1 1 auto; }
}

/* ===== Сравнительная таблица моделей ===== */
.ser-cmpbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; }
.btn.is-off { opacity: .45; }
.ser-cmpn { font-variant-numeric: tabular-nums; }
.ser-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); overscroll-behavior-x: contain; }
.ser-tw:focus-visible { outline-offset: 0; }
.ser-tbl { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
.ser-tbl th, .ser-tbl td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.ser-tbl thead th { position: sticky; top: 0; height: 44px; padding-block: 0; background: var(--soft); font: 600 11px/1.2 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ser-tbl tbody tr:last-child > * { border-bottom: 0; }
.ser-tbl tbody + tbody .ser-tg th { border-top: 1px solid var(--line); }
.ser-tbl tbody:last-child tr:last-child > * { border-bottom: 0; }
.ser-tbl tbody tr:not(.ser-tg):hover > * { background: #fafafb; }
.ser-tg th { padding: 14px 14px 8px; font: 500 15px/1.2 var(--f-disp); color: var(--ink); background: var(--bg); }

.ser-tbl .c-cmp { width: 44px; padding-right: 0; text-align: center; }
.ser-tbl .c-cmp .chk { justify-content: center; }
.ser-tbl thead .c-cmp i { font-size: 16px; vertical-align: -3px; }
.ser-tbl .c-m { min-width: 230px; font-weight: 400; }
.ser-tbl .c-m a { display: flex; align-items: center; gap: 12px; color: var(--ink); font: 500 15px/1.3 var(--f-disp); }
.ser-tbl .c-m a:hover { color: var(--olive); }
.ser-tbl .c-m img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.ser-tbl .c-m .lb { height: 18px; padding: 0 6px; font-size: 10px; vertical-align: 2px; margin-left: 4px; }
.ser-tbl .c-type { color: var(--text); min-width: 150px; }
.ser-tbl td.num { color: var(--ink); }
.ser-tbl .c-p { white-space: nowrap; text-align: right; }
.ser-tbl th.c-p { text-align: right; }
.ser-tbl .c-p .price { font-size: 16px; }
.ser-tbl .c-p .price-old { display: block; margin: 3px 0 0; }
.ser-tbl .c-p .price-req { font-size: 14px; }
.ser-tbl .c-buy { width: 1%; white-space: nowrap; }
.ser-sw { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 120px; }
.ser-sw span { width: 16px; height: 16px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.pc-cart.ser-buy { width: auto; height: 38px; gap: 8px; padding: 0 14px; display: inline-flex; align-items: center; font: 500 11px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; }
.pc-cart.ser-buy i { font-size: 17px; }
@media (max-width: 767px) {
  .ser-tw { margin: 0 calc(var(--gut) * -1); border-radius: 0; border-inline: 0; }
  .ser-tbl { min-width: 860px; font-size: 13.5px; }
  .ser-tbl .c-m { position: sticky; left: 0; z-index: 1; min-width: 172px; max-width: 172px; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
  .ser-tbl thead .c-m { z-index: 2; background: var(--soft); }
  .ser-tbl .c-m a { font-size: 14px; gap: 8px; }
  .ser-tbl .c-m img { width: 40px; height: 40px; }
  .ser-cmpbar > .muted { display: none; }
}

/* Якоря разделов под первым экраном */
.ser-nav { display: flex; gap: 28px; margin-top: 4px; padding: 0 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ser-nav a { position: relative; flex: none; display: flex; align-items: center; height: 52px; font: 700 11.5px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.ser-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .ser-nav a:hover::after { transform: scaleX(1); } }
@media (max-width: 767px) { .ser-nav { gap: 22px; margin: 16px calc(var(--gut) * -1) 0; padding: 0 var(--gut); border-top: 1px solid var(--line); } .ser-nav a { height: 48px; } }

/* ===== Технологии ===== */
.ser-tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ser-tech--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ser-tech--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; align-content: start; }
.tc-m { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--soft); margin-bottom: 6px; }
.tc-m img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .tc:hover .tc-m img { transform: scale(1.03); } }
.tc-m--ic { display: grid; place-items: center; background: linear-gradient(160deg, var(--soft) 0%, var(--soft-2) 100%); }
.tc-m--ic i { font-size: 64px; color: var(--btn); }
.tc h3 { font-size: 17px; font-weight: 500; }
.tc p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
@media (max-width: 1023px) { .ser-tech, .ser-tech--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .ser-tech, .ser-tech--3, .ser-tech--2 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: none; }
  .tc { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ===== Отделки ===== */
.ser-fin-sw { display: flex; flex-wrap: wrap; gap: 10px; }
.fs { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 18px 8px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); text-align: left; transition: border-color .15s, box-shadow .15s; }
.fs:hover { border-color: #9a9d9a; }
.fs[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fs-c { flex: none; width: 46px; height: 46px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.fs-n { display: grid; gap: 2px; font: 500 14.5px/1.25 var(--f-text); color: var(--ink); }
.fs-n small { font: 400 12.5px/1.2 var(--f-text); color: var(--muted); }
.ser-fin-out { margin: 22px 0 14px; font-size: 14px; color: var(--muted); }
.ser-fin-out b { color: var(--ink); font-weight: 500; }
.ser-fin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fm { display: grid; gap: 4px; align-content: start; padding: 14px 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fm-img { display: block; aspect-ratio: 1; margin-bottom: 8px; }
.fm-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .fm:hover .fm-img img { transform: translateY(-3px); } }
.fm b { font: 500 14.5px/1.3 var(--f-disp); color: var(--ink); transition: color .2s; }
.fm:hover b { color: var(--olive); }
.fm-p { font: 600 14px/1.2 var(--f-text); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .ser-fin-sw { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); }
  .fs { flex: none; min-height: 56px; padding-right: 14px; }
  .fs-c { width: 38px; height: 38px; }
  .ser-fin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm { padding: 10px 12px 14px; }
}

/* ===== Каталог серии ===== */
.ser-types { margin-bottom: 18px; }
.ser-types[hidden] { display: none; }
@media (max-width: 767px) { .ser-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 16px; padding: 0 var(--gut); } }

/* ===== Награды ===== */
.ser-aw { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.aw { display: grid; grid-template-columns: auto 1fr 88px; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.aw:hover { border-color: var(--ink); }
.aw > i { font-size: 36px; color: var(--bronze); }
.aw b { display: block; font: 500 16px/1.3 var(--f-disp); color: var(--ink); }
.aw small { font-size: 13px; color: var(--muted); }
.aw img { width: 88px; height: 88px; object-fit: contain; }
@media (max-width: 767px) { .ser-aw { grid-template-columns: 1fr; } .aw { grid-template-columns: auto 1fr 64px; padding: 14px 16px; } .aw img { width: 64px; height: 64px; } }

/* ===== Прослушивание ===== */
.ser-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 32px 36px; background: var(--soft); border-radius: var(--r); }
.ser-cta h2 { margin-bottom: 8px; }
.ser-cta p { margin: 0; color: var(--text); }
.ser-cta-acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 767px) { .ser-cta { padding: 24px 20px; } .ser-cta-acts, .ser-cta-acts .btn { width: 100%; } }

.sl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .sl-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sl-grid--3 > :nth-child(3) { display: none; } }
#grid-more[hidden] { display: none; }
/* На телефоне тип уже виден в заголовке группы строк */
@media (max-width: 767px) { .ser-tbl.is-grouped .c-type { display: none; } .ser-tbl.is-grouped { min-width: 700px; } }

/* ===== 404 ===== */
.nf { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; padding-block: 56px 8px; }
.nf-txt { display: grid; justify-items: start; gap: 14px; }
.nf-code { font: 300 clamp(72px, 9vw, 120px)/.9 var(--f-disp); letter-spacing: -.04em; color: var(--line-2); }
.nf-txt h1 { font-size: clamp(28px, 2.8vw, 38px); }
.nf-txt p { margin: 0; max-width: 52ch; color: var(--text); }
.nf-search { display: flex; gap: 8px; width: 100%; max-width: 520px; margin-top: 8px; }
.nf-search .in { flex: 1; min-width: 0; }
.nf-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.nf-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nf-links a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--ink); font: 500 15px/1.3 var(--f-disp); transition: color .15s; }
.nf-links a:hover { color: var(--olive); }
.nf-links i { font-size: 24px; color: var(--muted); }
.nf-links small { font: 400 13px/1 var(--f-text); color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .nf { grid-template-columns: 1fr; padding-block-start: 32px; }
  .nf-search .btn { padding: 0 16px; }
  .nf-acts { width: 100%; }
  .nf-acts .btn { flex: 1 1 0; }
}
.ser-tg-l { position: sticky; left: 14px; display: inline-block; }
.ser-tg-l small { margin-left: 6px; font: 400 12.5px/1 var(--f-text); color: var(--muted); }
@media (min-width: 768px) {
  .ser-hero--r .ser-hero-txt { justify-self: end; }
  .ser-hero--r .ser-hero-media::after { background: linear-gradient(270deg, rgb(14 15 15 / .78) 0%, rgb(14 15 15 / .45) 38%, transparent 70%); }
}
