/* =========================================================
   One Way Logistic — допоміжні сторінки (privacy / thanks / 404)
   Підключається ПІСЛЯ style.css, використовує ті ж токени
   ========================================================= */

.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: var(--text-inv); }
.page main { flex: 1; }

/* ---------- header (спрощений) ---------- */
.page-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(20, 20, 20, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-inv); color: #fff; }
.page-header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.page-header__logo img { height: 40px; width: auto; display: block; }
.page-header__back { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; opacity: .8; transition: opacity .2s, color .2s; }
.page-header__back:hover { opacity: 1; color: var(--gold); }
.page-header__contacts { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
@media (max-width: 640px) {
    .page-header__back { display: none; }
    .page-header__contacts .site-header__phone { display: none; }
}

/* ---------- єдине меню на внутрішніх сторінках ---------- */
.site-header--solid { position: sticky; top: 0; background: rgba(20, 20, 20, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-inv); }
.site-nav__link[aria-current] { opacity: 1; color: var(--gold); }

/* ---------- спільні елементи ---------- */
.page-glow { position: relative; overflow: hidden; isolation: isolate; }
.page-glow::before {
    content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(225, 198, 80, .18), transparent 70%);
    pointer-events: none;
}
.page-glow::after {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background-image: linear-gradient(var(--line-inv) 1px, transparent 1px), linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
    background-size: 64px 64px; opacity: .35;
    -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 65%);
    pointer-events: none;
}
.page-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.page-eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.page-title { margin: 1rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.02em; }
.page-title em { font-style: normal; color: var(--gold); }
.page-lead { margin-top: 1.25rem; max-width: 46ch; font-size: var(--fs-lg); line-height: 1.55; color: var(--text-inv-2); }
.btn--ghost { border-color: var(--line-inv); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.page-footer { padding: 2rem 0; border-top: 1px solid var(--line-inv); font-size: var(--fs-xs); color: var(--text-inv-2); }
.page-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.page-footer a { color: var(--text-inv-2); text-decoration: none; }
.page-footer a:hover { color: var(--gold); }

/* =========================================================
   PRIVACY
   ========================================================= */
.legal-hero { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); }
.legal-hero__meta { margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--text-inv-2); }

.legal { padding-bottom: var(--space-section); }
.legal__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.25rem; border: 1px solid var(--line-inv); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.legal__toc p { margin: 0 0 .75rem; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-2); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: .15rem; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: .6rem; padding: .4rem .5rem; border-radius: 8px; font-size: var(--fs-xs); line-height: 1.4; text-decoration: none; color: var(--text-inv-2); transition: background-color .2s, color .2s; }
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--gold); opacity: .7; }
.legal__toc a:hover { background: rgba(255, 255, 255, .05); color: #fff; }

.legal__body { max-width: 760px; padding: clamp(1.5rem, 3vw, 3rem); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.legal__body section + section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.legal__body section { scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal__body h2 { display: flex; gap: .75rem; align-items: baseline; margin: 0 0 1rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
.legal__body h2 span { font-size: .75em; color: var(--gold-600); font-variant-numeric: tabular-nums; }
.legal__body p, .legal__body li { font-size: var(--fs-sm); line-height: 1.7; color: #3a3a3a; }
.legal__body p + p { margin-top: .75rem; }
.legal__body ul { margin: .75rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.legal__body ul li { position: relative; padding-left: 1.25rem; }
.legal__body ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal__body a { color: var(--ink); font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal__callout { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--bg-muted); border-left: 3px solid var(--gold); }

@media (max-width: 900px) {
    .legal__grid { grid-template-columns: 1fr; }
    .legal__toc { position: static; }
    .legal__toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .legal__toc ol { grid-template-columns: 1fr; }
    .legal__body { padding: 1.25rem; margin-inline: calc(var(--gutter) * -.5); }
}

/* =========================================================
   THANKS
   ========================================================= */
.thanks { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); }
.thanks__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.thanks__check { position: relative; width: 72px; height: 72px; margin-bottom: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); box-shadow: 0 0 0 10px var(--gold-soft), 0 0 60px rgba(225, 198, 80, .35); }
.thanks__check svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.thanks__tg { --btn-bg: #2AABEE; color: #fff; }
.thanks__tg:hover { --btn-bg: #1d97d6; }
.thanks__tg svg { width: 20px; height: 20px; fill: currentColor; }

/* таймлайн «що далі» */
.next { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-inv); }
.next__title { margin: 0 0 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); }
.next__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.next__item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 1rem; padding-bottom: 1.5rem; }
.next__item:last-child { padding-bottom: 0; }
.next__item::before { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 0; width: 1px; background: linear-gradient(var(--gold), var(--line-inv)); }
.next__item:last-child::before { display: none; }
.next__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-inv); font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--gold); background: var(--ink); }
.next__item.is-now .next__num { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 0 0 6px var(--gold-soft); }
.next__item h3 { margin: .45rem 0 0; font-size: var(--fs-base); font-weight: 800; }
.next__item p { margin-top: .3rem; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-inv-2); }
.next__time { display: inline-block; margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 800; vertical-align: 2px; }

/* кейси */
.thanks-cases { padding: var(--space-section) 0; background: var(--bg-muted); color: var(--text); }
.thanks-cases__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.thanks-cases__head h2 { margin: .75rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em; }
.thanks-cases__head p { max-width: 38ch; color: var(--text-2); }
.thanks-cases .case__stats { margin-bottom: 0; }

@media (max-width: 960px) {
    .thanks__grid { grid-template-columns: 1fr; }
    .thanks-cases .cases__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .thanks-cases .cases__list { grid-template-columns: 1fr; }
    .page-actions .btn { width: 100%; }
}

/* =========================================================
   404
   ========================================================= */
.e404 { display: grid; align-items: center; min-height: calc(100vh - var(--header-h) - 80px); padding: clamp(3rem, 6vw, 5rem) 0; }
.e404__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }

/* «лот» — картка аукціону, знята з торгів */
.e404__lot { position: relative; padding: 1.5rem; border-radius: var(--radius); background: linear-gradient(160deg, #1c1c1c, #161616); border: 1px solid var(--line-inv); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); transform: rotate(-2deg); }
.e404__lot-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-inv-2); }
.e404__lot-top b { color: #ff6b5b; display: inline-flex; align-items: center; gap: .4rem; }
.e404__lot-top b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.e404__num { display: block; margin: 1.25rem 0 .5rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 4rem + 9vw, 11rem); line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--gold); background: linear-gradient(180deg, rgba(225, 198, 80, .35), transparent 85%); -webkit-background-clip: text; background-clip: text; }
.e404__road { position: relative; height: 34px; margin: .5rem 0 1rem; border-radius: 6px; background: #0f0f0f; overflow: hidden; }
.e404__road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, rgba(225, 198, 80, .55) 0 18px, transparent 18px 34px); animation: road 1.2s linear infinite; }
@keyframes road { to { background-position: -34px 0; } }
.e404__car { position: absolute; top: 50%; left: 0; width: 36px; color: var(--gold); transform: translateY(-50%); animation: lost 6s var(--ease) infinite; }
.e404__car svg { display: block; width: 100%; }
@keyframes lost {
    0% { left: -40px; }
    45% { left: 55%; transform: translateY(-50%) rotate(0); }
    55% { left: 55%; transform: translateY(-50%) rotate(180deg); }
    100% { left: -40px; transform: translateY(-50%) rotate(180deg); }
}
.e404__rows { display: grid; gap: .5rem; font-size: var(--fs-sm); }
.e404__rows div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; border-top: 1px dashed var(--line-inv); color: var(--text-inv-2); }
.e404__rows strong { color: #fff; font-weight: 700; }
.e404__stamp { position: absolute; right: 1.5rem; top: 22%; padding: .35rem .9rem; border: 2.5px solid #ff6b5b; border-radius: 8px; color: #ff6b5b; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; transform: rotate(-14deg); opacity: .9; mix-blend-mode: screen; }

.e404__links { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-inv); }
.e404__links p { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-2); }
.e404__links ul { margin: .75rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.e404__links a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line-inv); border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.e404__links a:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 900px) {
    .e404__grid { grid-template-columns: 1fr; }
    .e404__lot { order: -1; max-width: 460px; transform: rotate(-1.5deg); }
    .e404__stamp { top: 20%; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .e404__car, .e404__road::before, .e404__lot-top b::before { animation: none; }
    .thanks__check svg { animation: none; stroke-dashoffset: 0; }
}


/* =========================================================
   Спільне для кейсів і каталогу
   ========================================================= */
.page .section:not(.section--muted):not(.section--dark) { background: var(--bg); color: var(--text); }
.page .section--muted { color: var(--text); }

.page-header__nav { display: flex; gap: 1.5rem; margin-left: 1rem; }
.page-header__nav a { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; opacity: .78; transition: opacity .2s, color .2s; }
.page-header__nav a:hover, .page-header__nav a[aria-current] { opacity: 1; color: var(--gold); }
@media (max-width: 760px) { .page-header__nav { gap: 1rem; margin-left: 0; } .page-header__nav a:first-child { display: none; } }
@media (max-width: 420px) { .page-header__contacts .social:nth-child(2) { display: none; } }

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; font-size: var(--fs-xs); color: var(--text-inv-2); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs b { color: #fff; font-weight: 600; }

/* картки кейсів — посилання */
a.case__media { text-decoration: none; color: inherit; }
.case__title a { color: inherit; text-decoration: none; }
.case__title a:hover { color: var(--gold-600); }
.case__more { display: inline-block; margin: auto 0 1.25rem; font-size: var(--fs-xs); font-weight: 800; color: var(--gold-600); text-decoration: none; }
.case__more:hover { color: var(--ink); }

.page .cta__box .h2 { color: #fff; }
.page .lead-form .consent { margin-top: .1rem; }

/* =========================================================
   Сторінка кейсу
   ========================================================= */
.chero { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.chero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.chero .page-title { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.2rem); }
.chero__facts { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1rem 2rem; }
.chero__facts span { display: block; font-size: 12px; font-weight: 700; color: var(--text-inv-2); }
.chero__facts strong { display: block; margin-top: .3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; white-space: nowrap; }
.chero__facts s { color: var(--text-inv-2); text-decoration-thickness: 1.5px; }
.chero__save { color: #3ad07a; }
.chero__save small { font-family: var(--font-text); font-size: 12px; font-weight: 800; opacity: .8; }

/* до / після */
.ba { --pos: 50%; position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-inv); user-select: none; }
.ba__side { position: absolute; inset: 0; display: grid; place-items: center; }
.ba__side img { width: 82%; height: auto; }
.ba__side--before { background: repeating-linear-gradient(-45deg, #1d1d1d 0 14px, #191919 14px 28px); }
.ba__side--before img { filter: grayscale(.85) contrast(1.05) brightness(.8) sepia(.15); }
.ba__side--before::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 60%, rgba(255, 107, 91, .18), transparent 45%); pointer-events: none; }
.ba__side--after { background: radial-gradient(ellipse at 50% 70%, rgba(225, 198, 80, .22), transparent 60%), linear-gradient(180deg, #232323, #151515); clip-path: inset(0 0 0 var(--pos)); }
.ba__side--after img { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.ba__tag { position: absolute; top: 1rem; left: 1rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(20, 20, 20, .8); color: #fff; font-size: 12px; font-weight: 800; backdrop-filter: blur(6px); }
.ba__tag--gold { left: auto; right: 1rem; background: var(--gold); color: var(--ink); }
.ba__lot { position: absolute; left: 1rem; bottom: 1rem; font: 600 11px/1.5 ui-monospace, Menlo, monospace; letter-spacing: .04em; color: rgba(255, 255, 255, .55); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.ba__handle i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(225, 198, 80, .25), 0 8px 20px rgba(0, 0, 0, .4); }
.ba__handle i::before, .ba__handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.ba__handle i::before { left: 9px; border-right-color: var(--ink); }
.ba__handle i::after { right: 9px; border-left-color: var(--ink); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .45); pointer-events: none; }
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }

/* розрахунок */
.cost__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cost__grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.cost__grid .section-head .btn { margin-top: 1.75rem; }

/* живий лот у лівій колонці розрахунку кейсу */
.lot.lot--inline { position: relative; right: auto; top: auto; width: 100%; max-width: 360px; margin-top: 2rem; }
.cost__legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.5rem; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.cost__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cost__legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
[data-k="lot"] { --c: #141414; }
[data-k="ship"] { --c: #6b7f99; }
[data-k="tax"] { --c: #E1C650; }
[data-k="repair"] { --c: #c98a5a; }
[data-k="srv"] { --c: #b9b6aa; }

.cost { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cost__stack { display: flex; height: 14px; gap: 2px; border-radius: 999px; overflow: hidden; background: var(--bg-muted); margin-bottom: 1.5rem; }
.cost__stack i { width: 0; background: var(--c); transition: width 1s var(--ease), opacity .2s; }
.cost.is-on .cost__stack i { width: var(--w); }
.cost__stack i:nth-child(2) { transition-delay: .05s; } .cost__stack i:nth-child(3) { transition-delay: .1s; } .cost__stack i:nth-child(4) { transition-delay: .15s; }
.cost__stack i:nth-child(5) { transition-delay: .2s; } .cost__stack i:nth-child(6) { transition-delay: .25s; } .cost__stack i:nth-child(7) { transition-delay: .3s; } .cost__stack i:nth-child(8) { transition-delay: .35s; }
.cost__list { margin: 0; padding: 0; list-style: none; }
.cost__row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: baseline; padding: .85rem 0 .95rem; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.cost__name strong { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: 800; }
.cost__name strong::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.cost__name span { display: block; margin-top: .15rem; padding-left: 1rem; font-size: 12.5px; color: var(--text-2); }
.cost__row b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cost__bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--c); transition: width 1s .3s var(--ease); }
.cost.is-on .cost__bar { width: var(--w); }
.cost[data-hl]:not([data-hl=""]) .cost__row:not([data-k]) { opacity: 1; }
.cost[data-hl="lot"] [data-k]:not([data-k="lot"]), .cost[data-hl="ship"] [data-k]:not([data-k="ship"]), .cost[data-hl="tax"] [data-k]:not([data-k="tax"]),
.cost[data-hl="repair"] [data-k]:not([data-k="repair"]), .cost[data-hl="srv"] [data-k]:not([data-k="srv"]) { opacity: .35; }
.cost__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.25rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--ink); color: #fff; }
.cost__total span { font-weight: 800; }
.cost__total strong { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--gold); }
.cost__note { margin-top: .9rem; font-size: var(--fs-xs); color: var(--text-2); text-align: center; }

/* пошкодження + терміни */
.damage__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.damage__type { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: #fff; border-left: 3px solid #ff6b5b; }
.damage__type span { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); }
.damage__type strong { display: block; margin-top: .2rem; font-size: var(--fs-sm); }
.damage__list { margin: 1rem 0 0; padding: 0; list-style: none; }
.damage__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.damage__list b { font-variant-numeric: tabular-nums; }
.damage__list .damage__sum { border-bottom: 0; font-weight: 800; }
.damage__sum b { color: var(--gold-600); }
.damage__story { margin-top: 1.25rem; font-size: var(--fs-sm); line-height: 1.7; color: var(--text-2); }

.ctime { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); background: var(--ink); color: #fff; }
.ctime .h4 { margin-bottom: 1.5rem; }
.ctime__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.ctime__list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .75rem .9rem; border-radius: 10px; background: rgba(255, 255, 255, .04); position: relative; overflow: hidden; }
.ctime__list li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--d) / var(--total) * 100%); background: linear-gradient(90deg, rgba(225, 198, 80, .22), rgba(225, 198, 80, .06)); border-right: 2px solid var(--gold); }
.ctime__day { grid-column: 1 / -1; position: relative; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-inv-2); }
.ctime__list strong { position: relative; font-size: var(--fs-sm); }
.ctime__list em { position: relative; font-style: normal; font-weight: 800; font-size: var(--fs-sm); color: var(--gold); }

@media (max-width: 960px) {
    .chero__grid, .cost__grid, .damage__grid { grid-template-columns: 1fr; }
    .cost__grid .section-head { position: static; }
    .chero__facts { grid-template-columns: repeat(2, auto); }
}

/* =========================================================
   Каталог
   ========================================================= */
.cat-hero { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); }
.cat-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.cat-hero .page-eyebrow::before { display: none; }
.cat-hero .page-eyebrow .transit__live { display: inline-block; }
.cat-hero__stats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.cat-hero__stats li { padding: 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-inv); background: rgba(255, 255, 255, .03); }
.cat-hero__stats strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--gold); line-height: 1; }
.cat-hero__stats span { display: block; margin-top: .5rem; font-size: 12px; line-height: 1.4; color: var(--text-inv-2); }

.catalog { padding-top: clamp(2rem, 4vw, 3.5rem); }
.catalog__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.catalog__filters { display: flex; flex-wrap: wrap; gap: .4rem; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.catalog__filters button { border: 0; padding: .6rem 1.1rem; border-radius: 999px; background: none; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); cursor: pointer; transition: background-color .2s, color .2s; }
.catalog__filters button b { margin-left: .25rem; font-size: 12px; opacity: .6; }
.catalog__filters button[aria-selected="true"] { background: var(--ink); color: #fff; }
.catalog__sort { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.catalog__sort .field__input { min-height: 44px; width: auto; padding-top: .5rem; padding-bottom: .5rem; font-size: var(--fs-sm); }
.catalog__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 1.75rem); }
.catalog__empty { padding: 3rem 1rem; text-align: center; color: var(--text-2); }
.catalog__empty a { color: var(--ink); font-weight: 800; }

.stock { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.stock[hidden] { display: none; }
.stock:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.stock__media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(180deg, #fbfaf6, #efede5); }
.stock__media img { width: 78%; height: auto; transition: transform .6s var(--ease); }
.stock:hover .stock__media img { transform: scale(1.04); }
.stock__status { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; font-size: 12px; font-weight: 800; }
.stock__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock__status--stock { background: #e3f6ea; color: var(--green); }
.stock__status--transit { background: var(--ink); color: var(--gold); }
.stock__status--transit::before { animation: blink 1.4s infinite; }
.stock__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.5rem; }
.stock__title { font-size: var(--fs-h4); font-weight: 800; line-height: 1.3; }
.stock__title span { color: var(--text-2); font-weight: 700; }
.stock__meta { margin-top: .3rem; font-size: var(--fs-xs); color: var(--text-2); }

.stock__track { margin: 1.1rem 0; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--bg-muted); }
.stock__track-top { display: flex; justify-content: space-between; gap: .5rem; font-size: 12px; }
.stock__track-top b { font-weight: 800; }
.stock__track-top span { color: var(--text-2); font-weight: 600; text-align: right; }
.stock__bar { position: relative; height: 4px; margin: .9rem 0 .5rem; border-radius: 4px; background: rgba(20, 20, 20, .1); }
.stock__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold)); }
.stock__car { position: absolute; top: 50%; left: var(--p); width: 26px; color: var(--ink); transform: translate(-60%, -50%); }
.stock__car svg { display: block; width: 100%; }
.stock__steps { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(20, 20, 20, .4); }

.stock__price { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: auto 0 1rem; }
.stock__price span { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); }
.stock__price strong { display: block; margin-top: .15rem; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; }
.stock__market { text-align: right; }
.stock__market s { display: block; margin-top: .15rem; font-size: var(--fs-sm); color: var(--text-2); }
.stock__market em { display: block; font-style: normal; font-size: 12px; font-weight: 800; color: var(--green); }

.howbuy { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: hb; }
.howbuy li { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.howbuy b { font-family: var(--font-display); font-weight: 600; color: var(--gold-600); }
.howbuy h3 { margin-top: 1rem; font-size: var(--fs-h4); font-weight: 800; }
.howbuy p { margin-top: .4rem; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); }

/* діалог бронювання */
.book { width: min(440px, calc(100vw - 2rem)); padding: 2rem; border: 1px solid var(--line-inv); border-radius: calc(var(--radius) + 4px); background: var(--ink); color: var(--text-inv); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8); }
.book::backdrop { background: rgba(10, 10, 10, .7); backdrop-filter: blur(6px); }
.book[open] { animation: bookIn .35s var(--ease); }
@keyframes bookIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.book .eyebrow { color: var(--gold); }
.book__title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.book__meta { margin: .5rem 0 1.5rem; font-size: var(--fs-sm); color: var(--text-inv-2); }
.book__meta strong { color: var(--gold); }
.book .lead-form__fields { grid-template-columns: 1fr; }
.book .field__input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.book .field__input::placeholder { color: rgba(255, 255, 255, .5); }
.book__note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--text-inv-2); text-align: center; }
.book__close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.book__close:hover { background: var(--gold); color: var(--ink); }

@media (max-width: 1100px) {
    .catalog__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .howbuy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .cat-hero__grid { grid-template-columns: 1fr; }
    .catalog__list, .howbuy { grid-template-columns: 1fr; }
    .catalog__filters { width: 100%; justify-content: space-between; }
    .catalog__filters button { flex: 1; padding-inline: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .cost__stack i, .cost__bar { transition: none; }
}

/* =========================================================
   Кейси: фільтр
   ========================================================= */
.cases--all { padding-top: clamp(2rem, 4vw, 3rem); }
.cfilter { display: grid; gap: 1rem; margin-bottom: 1.75rem; padding: clamp(1rem, 2.5vw, 1.5rem); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.cfilter__row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.cfilter__label { flex: none; width: 140px; font-size: var(--fs-xs); font-weight: 800; color: var(--text-2); }
.cfilter__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.cfilter__chips label { position: relative; cursor: pointer; }
.cfilter__chips input { position: absolute; opacity: 0; pointer-events: none; }
.cfilter__chips span { display: inline-block; padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: var(--fs-sm); font-weight: 700; transition: background-color .2s, border-color .2s, color .2s; }
.cfilter__chips label:hover span { border-color: var(--ink); }
.cfilter__chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.cfilter__chips input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold-soft); }
.cfilter__row--inputs { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.cfilter__row--inputs .field__input { min-height: 46px; font-size: var(--fs-sm); }
.cfilter__count { font-size: var(--fs-xs); color: var(--text-2); }
.cfilter__count b { color: var(--ink); }
.cfilter__more { display: flex; justify-content: center; margin-top: 2rem; }
.cfilter__more .btn[hidden] { display: none; }
.cases--all .case[hidden] { display: none; }
.case__img[src$=".svg"] { width: 80%; opacity: .9; }

@media (max-width: 760px) {
    .cfilter__label { width: 100%; }
    .cfilter { gap: .9rem; padding: 1.1rem 1rem 1rem; }
    .cfilter__row { gap: .5rem; }
    .cfilter__chips { flex-wrap: wrap; gap: .4rem; }
    .cfilter__chips span { white-space: nowrap; padding: .42rem .8rem; font-size: .875rem; }
    .cfilter__row--inputs { grid-template-columns: 1fr 1fr; gap: .5rem; padding-top: .9rem; }
    .cfilter__row--inputs .field__input { min-height: 44px; padding: .55rem 2rem .55rem .8rem; font-size: .875rem; background-position: right .75rem center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
    .cfilter__row--inputs input[type="search"] { grid-column: 1 / -1; }
}
.cfilter, .cfilter__row, .cfilter__chips { min-width: 0; }
.cfilter { grid-template-columns: minmax(0, 1fr); }
.photo-credit { grid-column: 2; margin-top: .5rem; font-size: 11px; color: var(--text-2); opacity: .7; text-align: right; }
.photo-credit a { color: inherit; text-decoration: underline; }
@media (max-width: 960px) { .photo-credit { grid-column: auto; text-align: left; } }

/* футер внутрішніх сторінок: логотипи аукціонів */
.page-footer .site-footer__auctions { width: 100%; justify-content: flex-start; }
.page-footer .auctions img { height: 16px; }

/* ============================================================
   Огляд моделей (models/)
   ============================================================ */
.mcards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.mcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mcard[hidden] { display: none; }
.mcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(180deg, #fbfaf6 0%, #efede5 100%); }
.mcard__media img { width: 88%; height: auto; transition: transform .6s var(--ease); }
.mcard:hover .mcard__media img { transform: scale(1.04); }
.mcard__gen { position: absolute; left: .75rem; top: .75rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(20, 20, 20, .78); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.mcard__body { display: flex; flex-direction: column; gap: .9rem; flex: 1; padding: 1.25rem; }
.mcard__meta { margin: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.mcard__title { margin: -.5rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.mcard__title a { color: inherit; text-decoration: none; }
.mcard__title a:hover { color: var(--gold-600); }
.mcard__row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-block: 1px solid var(--line); }
.mcard__row span { display: block; margin-bottom: .3rem; font-size: 12px; font-weight: 700; color: var(--text-2); }
.mcard__row strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.mcard__tags { margin: 0 0 auto; padding: 0; list-style: none; display: grid; gap: .4rem; }
.mcard__tag { position: relative; padding-left: 1.4rem; font-size: var(--fs-sm); line-height: 1.35; }
.mcard__tag::before { position: absolute; left: 0; top: 0; width: 1rem; font-weight: 800; text-align: center; }
.mcard__tag--plus::before { content: "+"; color: var(--green); }
.mcard__tag--minus::before { content: "!"; color: #d9822b; }

.rel { display: inline-flex; gap: 4px; vertical-align: middle; }
.rel i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.rel i.on { background: var(--gold); }
.chero .rel i { background: rgba(255, 255, 255, .18); width: 12px; height: 12px; }
.chero .rel i.on { background: var(--gold); }

.mfilter__inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.models__soon { margin: 2rem 0 0; font-size: var(--fs-sm); color: var(--text-2); text-align: center; }

.brands__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.brand { padding: 1.25rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.brand__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .9rem; }
.brand__head h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.brand__scores { display: flex; gap: 1.25rem; font-size: 12px; font-weight: 700; color: var(--text-2); }
.brand__scores span { display: inline-flex; align-items: center; gap: .45rem; }
.brand__scores b { letter-spacing: .05em; color: var(--ink); }
.brand__scores em { font-style: normal; color: var(--line); }
.brand p { position: relative; margin: .4rem 0 0; padding-left: 1.6rem; font-size: var(--fs-sm); line-height: 1.45; }
.brand p b { position: absolute; left: 0; top: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1; }
.brand__plus b { background: rgba(10, 155, 79, .12); color: var(--green); }
.brand__minus b { background: rgba(217, 130, 43, .14); color: #c06d17; }

/* сторінка моделі */
.mfacts { grid-template-columns: repeat(3, auto); }
.mhero__photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: radial-gradient(120% 90% at 50% 20%, #fbfaf6 0%, #e9e6dc 100%); display: grid; grid-template-rows: 1fr auto; }
.mhero__photo img { display: block; width: 86%; height: auto; margin: 1.5rem auto .5rem; }
.mhero__photo figcaption { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; padding: 1rem 1.25rem; background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 600; }
.mhero__photo figcaption span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding-top: .15rem; }

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pc__col { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); border: 1px solid var(--line); }
.pc__col h3 { margin: 0 0 1rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); }
.pc__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.pc__col li { position: relative; padding-left: 2rem; line-height: 1.45; }
.pc__col li::before { position: absolute; left: 0; top: .05em; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.pc__col--plus { background: linear-gradient(180deg, rgba(10, 155, 79, .06), transparent 60%); }
.pc__col--plus li::before { content: "✓"; background: rgba(10, 155, 79, .14); color: var(--green); }
.pc__col--minus { background: linear-gradient(180deg, rgba(217, 130, 43, .07), transparent 60%); }
.pc__col--minus li::before { content: "−"; background: rgba(217, 130, 43, .16); color: #c06d17; }

.issues { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.issue { --c: #d9822b; position: relative; padding: 1.25rem 1.4rem 1.25rem 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.issue::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.issue--high { --c: #d64545; }
.issue--low { --c: var(--gold); }
.issue__head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.issue__head h3 { margin: 0; font-size: var(--fs-lg); font-weight: 800; line-height: 1.25; }
.issue__sev { flex: none; padding: .25rem .6rem; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.issue p { margin: .6rem 0 1rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.issue dl { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.issue dt { font-size: 12px; font-weight: 700; color: var(--text-2); }
.issue dd { margin: .15rem 0 0; font-weight: 800; }

.mcheck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.mcheck .btn { margin-top: 1.5rem; }
.mcheck__list { margin: 0; padding: 0; list-style: none; counter-reset: ck; display: grid; gap: .75rem; }
.mcheck__list li { counter-increment: ck; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--bg-muted); font-weight: 600; line-height: 1.4; }
.mcheck__list li::before { content: counter(ck, decimal-leading-zero); flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-family: var(--font-display); font-size: 13px; font-weight: 600; }

@media (max-width: 1024px) {
    .mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcheck { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .mcards, .brands__list, .pc, .issues { grid-template-columns: 1fr; }
    .mfacts { grid-template-columns: repeat(3, auto); gap: 1rem 1.25rem; }
    .mfacts strong { font-size: 1.1rem; }
    .issue__head h3 { font-size: var(--fs-base); }
}

/* ---------- Сторінка моделі: конверсійна версія ---------- */
.mhero .chero__grid { align-items: center; }
.mhero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.mhero__photo .mhero__live { position: absolute; z-index: 2; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(20, 20, 20, .85); color: #fff; font-size: 12px; font-weight: 800; }
.mhero__live i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 0 0 rgba(255, 107, 107, .6); animation: mlive 1.6s infinite; }
@keyframes mlive { 70% { box-shadow: 0 0 0 7px rgba(255, 107, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); } }

.msec { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }

/* перевірка лоту — темна плашка всередині секції болячок */
.mcheck { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); background: var(--ink); color: #fff; }
.mcheck .eyebrow { color: var(--gold); }
.mcheck .h3 { margin: .6rem 0 1.25rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; color: #fff; }
.mcheck__list { gap: .5rem; }
.mcheck__list li { padding: .65rem .9rem; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .88); font-size: var(--fs-sm); }
.mcheck__list li::before { width: 2rem; height: 2rem; background: var(--gold); color: var(--ink); font-size: 11px; }
.mcheck__form { display: grid; gap: .65rem; padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-inv); }
.mcheck__form-title { margin: 0 0 .25rem; font-weight: 800; }
.mcheck__form .field__input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.mcheck__form .field__input::placeholder { color: rgba(255, 255, 255, .5); }
.mcheck__form .consent { color: rgba(255, 255, 255, .5); }

/* квіз моделі */
.mquiz__case { display: grid; gap: .15rem; margin-top: 1.75rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid rgba(225, 198, 80, .3); background: rgba(225, 198, 80, .06); color: #fff; text-decoration: none; max-width: 420px; transition: border-color .2s, background-color .2s; }
.mquiz__case:hover { border-color: var(--gold); background: rgba(225, 198, 80, .12); }
.mquiz__case span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.mquiz__case em { font-style: normal; font-size: var(--fs-sm); font-weight: 700; color: #3ad07a; }
.mmatch { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: center; margin-top: .5rem; padding-top: 1.1rem; border-top: 1px dashed rgba(225, 198, 80, .28); }
.mmatch img { width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.mmatch .quiz-match__count strong { font-size: 1.4rem; }
.mmatch.is-bump .quiz-match__count strong { color: var(--gold); }

/* інші моделі — компактна стрічка */
.mother { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.mother__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.mother__head .h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); }
.mother__head a { font-weight: 800; color: var(--gold-600); text-decoration: none; white-space: nowrap; }
.mother__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.mother__list a { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; padding: .75rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.mother__list a:hover { border-color: var(--gold); transform: translateY(-2px); }
.mother__list img { grid-row: span 2; width: 72px; height: auto; }
.mother__list span { font-weight: 800; font-size: var(--fs-sm); }
.mother__list b { font-size: var(--fs-xs); color: var(--text-2); font-weight: 700; }

/* липка панель на мобільному */
.mbar { display: none; }
@media (max-width: 767px) {
    .mbar { position: fixed; z-index: 60; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .6rem .6rem 1rem; border-radius: 16px; background: rgba(20, 20, 20, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); color: #fff; transform: translateY(150%); transition: transform .35s var(--ease); }
    .mbar.is-on { transform: none; }
    .mbar b { display: block; font-size: var(--fs-sm); }
    .mbar span { font-size: 12px; color: var(--gold); font-weight: 700; }
    .mbar .btn { min-height: 44px; padding-inline: 1.25rem; }
    .mhero__cta .btn { flex: 1 1 100%; }
    .mcheck { grid-template-columns: 1fr; }
    .mother__list { grid-template-columns: 1fr 1fr; }
    .mother__list a { grid-template-columns: 1fr; text-align: center; }
    .mother__list img { grid-row: auto; width: 100%; }
    .mmatch { grid-template-columns: 84px 1fr; }
}
@media (min-width: 768px) and (max-width: 1024px) { .mother__list { grid-template-columns: 1fr 1fr; } }
.mfilter__more { display: flex; margin: 2rem auto 0; min-width: 240px; }
.mfilter__more[hidden] { display: none; }

/* ---------- Огляд моделей: верх блоку фільтра + рейка праворуч ---------- */
.models#models { padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.models .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 1100px) {
    .models.has-lot .section-head { min-height: 250px; }
    .models.has-lot .lot { top: -.5rem; }
}

/* =========================================================================
   Сторінка «Договір»
   ========================================================================= */
.dg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.dg-dl { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.dg-dl .btn small { margin-left: .4rem; font-size: 12px; font-weight: 600; opacity: .65; }
.btn--light { border-color: var(--line-inv); color: #fff; }
.btn--light:hover { border-color: var(--gold); background: transparent; color: var(--gold); }
.dg-hero__facts { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); margin: 2rem 0 0; padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--text-inv-2); }
.dg-hero__facts b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: #fff; }

.dg-doc { position: relative; display: block; width: min(100%, 340px); aspect-ratio: 210 / 280; margin-inline: auto; text-decoration: none; perspective: 1200px; }
.dg-doc__sheet { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem 1.5rem; border-radius: 10px; background: #fbfaf6; color: var(--text);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transform: rotate(-3deg); transition: transform .5s var(--ease); }
.dg-doc__sheet--back { background: #d9d6cc; transform: rotate(4deg) translate(14px, 6px); }
.dg-doc:hover .dg-doc__sheet:not(.dg-doc__sheet--back) { transform: rotate(0) translateY(-8px); }
.dg-doc__brand { padding-bottom: .6rem; border-bottom: 2px solid var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.dg-doc__title { margin-top: .4rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-align: center; }
.dg-doc__sub { font-size: 10px; line-height: 1.4; text-align: center; color: var(--text-2); }
.dg-doc__lines { display: grid; gap: 9px; margin-top: .8rem; }
.dg-doc__lines i { height: 5px; border-radius: 3px; background: #e7e4da; }
.dg-doc__lines i:nth-child(3n) { width: 72%; }
.dg-doc__lines i:nth-child(4n+1) { width: 88%; }
.dg-doc__sign { display: flex; justify-content: space-between; margin-top: auto; font-size: 9px; color: var(--text-2); }
.dg-doc__sign i { font-style: normal; width: 42%; padding-top: .4rem; border-top: 1px solid #bdb9ad; }
.dg-doc__stamp { position: absolute; right: 1.2rem; bottom: 3.4rem; padding: .3rem .7rem; border: 2px solid rgba(201, 60, 45, .7); border-radius: 6px; font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: rgba(201, 60, 45, .75); transform: rotate(-12deg); }
.dg-doc__badge { position: absolute; top: -12px; right: -10px; z-index: 2; padding: .35rem .7rem; border-radius: 8px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; }

.dg-main__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.dg-secs { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.dg-sec details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.dg-sec details[open] { border-color: rgba(205, 177, 60, .55); box-shadow: var(--shadow); }
.dg-sec summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.dg-sec summary::-webkit-details-marker { display: none; }
.dg-sec summary > b { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-muted); font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.dg-sec details[open] summary > b { background: var(--gold); }
.dg-sec summary span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dg-sec summary strong { font-size: var(--fs-base); }
.dg-sec summary em { font-style: normal; font-size: var(--fs-xs); color: var(--text-2); }
.dg-sec summary > i { flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; opacity: .5; }
.dg-sec details[open] summary > i { transform: rotate(-135deg); }
.dg-sec ol { margin: 0; padding: 0 1.25rem 1.25rem 4.6rem; display: grid; gap: .6rem; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); }
.dg-sec ol li::marker { color: var(--gold-600); font-weight: 700; }
.dg-sub { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; list-style: none; }
.dg-sub li { position: relative; }
.dg-sub li::before { content: ''; position: absolute; left: -1rem; top: .7em; width: .4rem; height: 2px; background: var(--gold); }

.dg-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.dg-aside__card { padding: 1.5rem; border-radius: var(--radius); background: var(--ink); color: var(--text-inv-2); }
.dg-keys { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; gap: 1rem; }
.dg-keys li { display: flex; flex-direction: column; padding-left: 1.1rem; border-left: 2px solid var(--gold); }
.dg-keys b { color: #fff; font-size: var(--fs-sm); }
.dg-keys span { font-size: var(--fs-xs); }
.dg-aside__link { display: block; margin-top: .85rem; font-size: var(--fs-xs); text-align: center; color: var(--gold); }

@media (max-width: 960px) {
    .dg-hero__grid, .dg-main__grid { grid-template-columns: 1fr; }
    .dg-doc { width: min(70%, 260px); margin-top: 1rem; }
    .dg-aside { position: static; }
    .dg-sec ol { padding-left: 1.25rem; }
}
