:root {
  --bg: #0a0b10;
  --bg-2: #11131b;
  --card: #151824;
  --line: rgba(255,255,255,.08);
  --text: #eef0f6;
  --muted: #8b90a3;
  /* Covenant13 · схема A «Covenant Night» */
  --accent: #5b6cff;        /* primary: кнопки, фокус, активные элементы */
  --accent-2: #a06bff;      /* secondary: вторая точка градиентов */
  --accent-rgb: 91,108,255; /* тот же primary для прозрачных подложек */
  --accent-2-rgb: 160,107,255;
  --accent-hover: #6f7eff;
  --highlight: #4fd1ff;     /* фирменная «13» и мелкие акценты */
  --new: #ff5a6a;           /* метка «Новинка» */
  --ok: #3ddc97;
  --warn: #ffb547;
  --radius: 18px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -10px var(--accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: rgba(255,255,255,.2); }
.btn--block { width: 100%; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,11,16,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.logo__num { color: var(--accent); }
.logo__mark { width: 31px; height: 38px; flex: none; display: block; }
.logo__r { transition: fill .2s; }
.logo:hover .logo__r { fill: var(--accent-hover); }
.nav { display: flex; gap: 26px; margin-right: auto; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb),.28), transparent 70%),
              radial-gradient(closest-side at 30% 70%, rgba(var(--accent-2-rgb),.22), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow { display: inline-block; margin: 0 0 20px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.hero__title { font-size: clamp(28px, 3.7vw, 50px); line-height: 1.12; }
.hero__title .ln { display: block; white-space: nowrap; }
@media (max-width: 1100px) { .hero__title { font-size: clamp(28px, 6.4vw, 56px); } }
@media (max-width: 420px) { .hero__title { font-size: 6.5vw; } }
.hero__alt { color: #c3c7d6; font-weight: 600; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 52ch; margin: 24px 0 32px; font-size: 18px; color: var(--muted); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 48px; margin: 56px 0 0; flex-wrap: wrap; }
.stats dt { font-family: var(--display); font-size: 32px; font-weight: 700; }
.stats dd { margin: 0; color: var(--muted); font-size: 14px; }

.hero__art { position: absolute; right: 118px; top: 50%; width: 300px; height: 400px; transform: translateY(-50%); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tile {
  position: absolute; left: 50%; top: 50%; width: 240px; margin: -120px 0 0 -120px; border-radius: 22px; cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.9,.25,1.15), opacity .3s; -webkit-tap-highlight-color: transparent;
}
.tile .cover {
  border-radius: 22px; border: 0; outline: 1px solid rgba(255,255,255,.1); outline-offset: -1px;
  box-shadow: 0 26px 50px -24px rgba(0,0,0,.95), 0 0 0 0 transparent;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
/* 3D-наклон только при наведении/перетаскивании — в покое картинка рисуется без 3D и остаётся чёткой */
.tile.is-peek .cover, .tile.is-top:hover .cover { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tile.is-top .cover { box-shadow: 0 28px 56px -24px rgba(0,0,0,.95), 0 0 48px -14px var(--glow); }
.tile.is-drag { transition: none; cursor: grabbing; }
.tile.is-drag .cover { transform: perspective(700px) scale(1.04); }
.tile.is-fly { transition: transform .3s cubic-bezier(.4,0,.9,.6), opacity .3s; opacity: 0 !important; }
.tile .badges { z-index: 3; }
.tile__glare {
  position: absolute; inset: 0; border-radius: 22px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.35), transparent 55%); mix-blend-mode: overlay;
}
.tile.is-drag .tile__glare, .tile.is-peek .tile__glare { opacity: 1; }
.tile.is-peek { cursor: pointer; }
.tile.is-peek .cover { box-shadow: 0 28px 56px -24px rgba(0,0,0,.95), 0 0 52px -12px var(--glow); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
@media (max-width: 1100px) {
  .hero__art { position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 420px; height: 330px; margin: 40px auto 8px; }
  .tile { width: 180px; margin: -120px 0 0 -90px; transform-origin: 50% 165%; } /* веер вращается вокруг точки под колодой */
  .tile .badges { top: 8px; left: 8px; } .tile .badge { font-size: 11px; padding: 4px 8px; }

}

/* Sections */
section { padding: 72px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.toolbar__right { display: flex; gap: 12px; margin-left: auto; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 100%; }
.seg { display: flex; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.seg button { border: 0; background: none; padding: 0 14px; height: 36px; border-radius: 10px; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 600; }
.seg button.is-active { background: rgba(255,255,255,.08); color: var(--text); }
.chips { display: flex; gap: 6px; }
.chip { height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip.is-active { border-color: var(--accent); color: var(--text); background: rgba(var(--accent-rgb),.12); }
select {
  height: 46px; padding: 0 40px 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2);
  appearance: none; cursor: pointer; font-size: 14px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238b90a3' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select option { background: var(--bg-2); }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; padding: 0;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)) scale(var(--s, 1));
  transition: transform .45s cubic-bezier(.2,.9,.25,1.2), border-color .25s, box-shadow .35s;
  animation: rise .5s both; -webkit-tap-highlight-color: transparent; will-change: transform;
}
.card.is-live { --lift: -6px; transition: transform .12s ease-out, border-color .25s, box-shadow .35s; border-color: rgba(255,255,255,.18);
  box-shadow: 0 28px 50px -26px rgba(0,0,0,.9), 0 16px 44px -22px var(--glow); }
.card.is-pressed { --lift: 0px; --s: .97; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.22), transparent 50%); mix-blend-mode: overlay;
}
.card.is-live::after { opacity: 1; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }

.cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate; }
.cover__img { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; pointer-events: none; -webkit-user-drag: none; user-select: none; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .35s ease; }
.cover__img.is-ready { opacity: 1; }
.card.is-live .cover__img { transform: scale(1.04); }
.cover--gen { display: flex; align-items: flex-end; padding: 18px; }
.cover--gen::after { /* лёгкое зерно */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cover__title { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; text-shadow: 0 2px 20px rgba(0,0,0,.35); word-break: break-word; }
.cover__mark { position: absolute; top: 14px; right: 16px; font-family: var(--display); font-size: 64px; line-height: 1; opacity: .16; font-weight: 700; }
.card.is-live .cover__mark { opacity: .26; }

.badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(10,11,16,.66); backdrop-filter: blur(8px);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--out { color: var(--ok); }
.badge--pre { color: var(--warn); }
.badge--tba { color: #b9bed0; }
.badge--new { color: var(--new); }
.card, .tile, .tile .cover { border-radius: var(--radius); }
.tile { border-radius: 22px; }
.mhero__cover, .modal__cover { position: relative; }
.modal__cover .cover { height: 100%; }
.badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badges .badge { position: static; }
.badges--static { position: static; }
.badges--inline { position: static; inset: auto; z-index: auto; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
.badges--inline .badge { background: rgba(255,255,255,.05); backdrop-filter: none; font-size: 11px; line-height: 1; padding: 6px 9px; gap: 5px; }
.badges--inline .badge::before { width: 6px; height: 6px; }
.card__when { white-space: nowrap; }
.price__val small { white-space: nowrap; }
@media (max-width: 560px) { .card .badges--inline { gap: 4px; } .card .badge { font-size: 10px; padding: 3px 7px; gap: 4px; } .card .badge::before { width: 5px; height: 5px; } }

/* информационная часть: таблетки сверху справа, ниже — цена и дата слева, платформа и стрелка справа */
.card__meta {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "pills pills" "price end" "when end";
  align-items: center; column-gap: 12px; row-gap: 4px; padding: 12px 16px 16px; flex: 1; align-content: start;
}
.card__meta > .badges--inline { margin-bottom: 10px; }
.card__when { grid-area: when; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.card__meta > .badges--inline { grid-area: pills; margin: 0; }
.card__meta > .price__val { grid-area: price; }
.card__end { grid-area: end; display: flex; align-items: center; gap: 10px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.plats { display: flex; gap: 4px; }
.plat { padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; font-size: 10.5px; line-height: 1; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.price { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price__val { font-weight: 700; font-size: 16px; line-height: 1.2; }
.price__val small { color: #c3c7d6; font-weight: 600; font-size: 13.5px; }
.price__go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); transition: background .2s; }
.card.is-live .price__go { background: var(--accent); }
.price__go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }

.empty { padding: 48px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Hot */
.hot { padding-bottom: 8px; }
.hot__fire { display: inline-block; animation: flick 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flick { 50% { transform: scale(1.12) rotate(-6deg); } }
.link:hover { color: var(--text); }
.hot__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card--hot { border-color: rgba(255,255,255,.12); }
.card--hot .card__meta { grid-template-columns: 1fr; grid-template-areas: "pills" "title" "when" "cta"; row-gap: 4px; padding: 12px 18px 18px; }
.card--hot .hot__cta { margin-top: 14px; }
.card--hot .hot__title { min-height: 0; }
.card--hot .hot__title { grid-area: title; }
.card--hot .hot__cta { grid-area: cta; }
.hot__title { font-weight: 700; font-size: 16px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot .section-head h2 { white-space: nowrap; }
.hot__cta {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); font-size: 13px; font-weight: 700; transition: background .2s;
}
.hot__cta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.card--hot.is-live .hot__cta { background: var(--accent); }
@media (max-width: 900px) {
  .hot__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; gap: 14px; margin: 0 -24px; padding: 6px 24px 18px; scrollbar-width: none; }
  .hot__row::-webkit-scrollbar { display: none; }
  .card--hot { flex: 0 0 74%; scroll-snap-align: start; }
}
@media (max-width: 560px) { .hot__row { margin: 0 -16px; padding: 6px 16px 18px; scroll-padding-inline: 16px; } .hot .section-head .link { display: none; } }

@media (max-width: 560px) {
  .card__meta { padding: 10px 12px 12px; column-gap: 8px; }
  .card__meta > .badges--inline { margin-bottom: 8px; }
  .price__val small { font-size: 12.5px; }
}

/* How */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.steps__n { font-family: var(--display); color: var(--accent); font-size: 14px; }
.steps h3 { font-size: 19px; margin: 18px 0 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Tariffs */
.tariff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tariff { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(var(--accent-rgb),.10), transparent 60%), var(--bg-2); }
.tariff__name { font-family: var(--display); font-size: 40px; font-weight: 700; }
.tariff h3 { font-size: 18px; margin: 6px 0 10px; }
.tariff p { margin: 0; color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Modal */
.modal {
  width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line);
  border-radius: 24px; background: var(--bg-2); color: var(--text); overflow: auto;
}
.modal::backdrop { background: rgba(5,6,10,.7); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .25s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(10,11,16,.6); font-size: 24px; line-height: 1; cursor: pointer;
}
.modal__body { display: grid; grid-template-columns: 300px 1fr; }
.modal__body .cover { aspect-ratio: auto; min-height: 100%; }
.modal__body .modal__cover { min-height: 100%; }
.modal__body .cover__title { font-size: 26px; }
.modal__info { padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.modal__info h2 { font-size: 26px; line-height: 1.15; padding-right: 36px; }
.modal__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.modal__facts b { color: var(--text); font-weight: 600; }
.opts { display: grid; gap: 10px; }
.opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.opt:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.opt__t { font-weight: 700; }
.opt__d { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.opt__p { font-weight: 700; white-space: nowrap; display: grid; gap: 4px; justify-items: end; }
.opt__line { display: flex; align-items: baseline; gap: 10px; }
.opt__line small { font-size: 12px; font-weight: 500; color: var(--muted); }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.modal__actions .btn--primary { flex: 1; }

/* Modal with media */
.modal__body.has-media { display: block; }
.mhero { position: relative; aspect-ratio: 16 / 8; max-height: 440px; width: 100%; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; }
/* смена кадра: старый мягко гаснет, новый проявляется следом */
.mhero__track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; pointer-events: none; will-change: transform, opacity; }
.mhero__track img.is-on { opacity: 1; transition: opacity .8s ease .3s; }
.mhero__fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,19,27,0) 35%, rgba(17,19,27,.65) 72%, var(--bg-2) 100%); pointer-events: none; }
.mhero__head { position: absolute; left: 32px; right: 32px; bottom: 22px; display: flex; align-items: flex-end; gap: 18px; pointer-events: none; }
.mhero__cover { width: 172px; flex: none; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px -14px rgba(0,0,0,.9); border: 1px solid rgba(255,255,255,.15); }
.mhero__cover .cover__title, .mhero__cover .cover__mark { display: none; }
.modal__body .mhero__cover .cover { aspect-ratio: 1 / 1; min-height: 0; }
.mhero__title { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mhero__title h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.1; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 32px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 132px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #000; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; scroll-snap-align: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb:hover { opacity: .9; }
.thumb.is-on { opacity: 1; border-color: var(--accent); }
/* превью кадра, который ещё грузится: мягкое мерцание и тонкая полоска прогресса */
.thumb { position: relative; }
.thumb.is-loading img, .thumb.is-queued img { filter: saturate(.4) brightness(.55); }
.thumb.is-loading::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.18) 50%, transparent 80%);
  background-size: 220% 100%; animation: shimmer 1.3s ease-in-out infinite;
}
.thumb.is-loading::before {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 7px; height: 2px; border-radius: 2px; z-index: 1;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; animation: loadbar 1.6s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes loadbar { 0% { transform: scaleX(.05); opacity: .9; } 70% { transform: scaleX(.9); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.thumb img { transition: filter .4s ease; }
.has-media .modal__info { padding-top: 20px; }
.has-media .modal__info .modal__facts { margin-top: 4px; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .topbar__in { justify-content: space-between; }
  .steps { grid-template-columns: 1fr; }
  .modal__body { grid-template-columns: 1fr; }
  .modal__body .cover { aspect-ratio: 16 / 9; min-height: 0; }
  .toolbar__right { margin-left: 0; width: 100%; }
  .toolbar__right select { flex: 1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 48px; }
  .stats { gap: 20px; flex-wrap: nowrap; justify-content: space-between; margin-top: 40px; }
  .stats dt { font-size: 26px; }
  .stats dd { font-size: 13px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cover__title { font-size: 15px; }
  .cover__mark { font-size: 44px; }
  .card__meta { padding: 12px; }
  .price__val { font-size: 15px; }
  .price__go { display: none; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 6px; }
  .modal__info { padding: 24px 20px; }
  .mhero { aspect-ratio: 4 / 3; }
  .mhero__head { left: 20px; right: 20px; bottom: 16px; gap: 14px; }
  .mhero__cover { width: 112px; border-radius: 14px; }
  .thumbs { padding: 12px 20px 2px; }
  .thumb { flex-basis: 104px; }
  .opt { grid-template-columns: auto 1fr; row-gap: 6px; }
  .opt__p { grid-column: 2; font-size: 14px; color: var(--accent); justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
