/* TRAVEL CASE — стилі магазину. Токени: docs/koffer-reference.md §6. Mobile-first, без фреймворків. */

@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --c-ink: #16181D; --c-primary: #0F4C4A; --c-primary-hover: #0B3A38; --c-primary-soft: #E3EFEE;
  --c-accent: #E2762B; --c-accent-hover: #CC6720; --c-sale: #D63A2F; --c-new: #2F6FD1; --c-gold: #D9B46A; --c-ok: #187A4C;
  --c-muted: #6B6F76; --c-line: #E6E3DE; --c-line-strong: #D5D1CA; --c-surface: #F6F4F1; --c-bg: #FFFFFF;
  --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-xl: 18px;
  --shadow: 0 1px 2px rgba(22,24,29,.06), 0 4px 16px rgba(22,24,29,.06); --shadow-lg: 0 12px 40px rgba(22,24,29,.16);
  --container: 1320px; --gutter: 16px; --header-h: 64px; --sticky-top: 84px; /* липкі блоки — під липкою шапкою */
  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 400 15px/1.55 var(--font); color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--c-ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.ok { color: var(--c-ok); }
.main { min-height: 50vh; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r); font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--accent { background: var(--c-accent); color: var(--c-ink); }
.btn--accent:hover { background: var(--c-accent-hover); color: var(--c-ink); }
.btn--outline { border-color: var(--c-line-strong); background: #fff; color: var(--c-ink); }
.btn--outline:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--ghost { color: var(--c-muted); font-weight: 600; }
.btn--ghost:hover { color: var(--c-ink); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.iconbtn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r); }
.iconbtn:hover { background: var(--c-surface); }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 700; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--c-line); border-top-color: var(--c-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: .32em; font-weight: 800; font-size: 18px; letter-spacing: .08em; color: var(--c-ink); line-height: 1; white-space: nowrap; }
.logo__word--light { font-weight: 500; color: var(--c-primary); margin-left: -.1em; }
.logo--light .logo__word--light { color: var(--c-accent); }
.logo:hover { color: var(--c-ink); }
.logo__o { flex: none; width: 1.15em; height: 1.15em; color: var(--c-primary); }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }
.logo--light .logo__o { color: #fff; }

/* ---------- шапка ---------- */
.announce { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px var(--gutter); background: var(--c-accent); color: var(--c-ink); font-size: 13px; font-weight: 700; text-align: center; }
.announce .icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 479px) { .announce { font-size: 12px; text-wrap: balance; } }
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--c-line); }
.topbar { display: none; background: var(--c-surface); font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { color: var(--c-muted); font-weight: 600; }
.topbar__links a:hover { color: var(--c-ink); }
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r); background: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.lang__globe { width: 20px; height: 20px; margin: 0 4px 0 6px; color: var(--c-primary); }
.lang__item { display: grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 8px; border-radius: calc(var(--r) - 3px); color: var(--c-muted); }
.lang__item:hover { color: var(--c-ink); background: var(--c-surface); }
.lang__item.is-on { color: #fff; background: var(--c-primary); }
.lang--desktop { display: none; }
.lang--drawer { display: flex; margin-bottom: 12px; }
.lang--drawer .lang__item { flex: 1; min-height: 42px; }
.langmenu { position: relative; margin-left: auto; }
@media (min-width: 480px) { .header__main > [data-search-toggle] { margin-left: auto; } .header__main > [data-search-toggle] ~ .langmenu { margin-left: 0; } } /* пошук — у правій групі іконок */
.langmenu__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 8px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r); font-size: 14px; font-weight: 800; }
.langmenu__btn > .icon:first-child { width: 20px; height: 20px; color: var(--c-primary); }
.langmenu__btn[aria-expanded="true"] { border-color: var(--c-primary); }
.pop.pop--lang { left: auto; right: 0; min-width: 210px; max-width: calc(100vw - 24px); padding: 6px; }
.pop__lang { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r); font-size: 15px; font-weight: 600; }
.pop__lang b { width: 26px; color: var(--c-muted); font-size: 13px; }
.pop__lang:hover { background: var(--c-surface); color: var(--c-ink); }
.pop__lang.is-on { background: var(--c-primary-soft); }
.pop__lang.is-on b { color: var(--c-primary); }
.pop__lang .icon { margin-left: auto; color: var(--c-primary); }
.header__main { display: flex; align-items: center; gap: 4px; min-height: var(--header-h); }
.header__logo { margin: 0 8px 0 2px; }
.search { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 10px var(--gutter); background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); }
.search.is-open { display: block; }
.search__input { width: 100%; height: 46px; padding: 0 48px 0 16px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r); background: #fff; font-size: 15px; -webkit-appearance: none; appearance: none; }
.search__input::-webkit-search-cancel-button, .search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search__input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.search__btn { position: absolute; right: calc(var(--gutter) + 2px); top: 10px; width: 44px; height: 46px; display: grid; place-items: center; color: var(--c-muted); }
.search__results { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 6px); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 5; }
.sres { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--c-line); }
.sres:hover, .sres.is-active { background: var(--c-surface); color: var(--c-ink); }
.sres img { width: 48px; height: 48px; object-fit: contain; }
.sres__name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sres__price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.sres__all { display: block; padding: 12px 14px; text-align: center; font-weight: 700; color: var(--c-primary); }
.sres__none { padding: 16px; color: var(--c-muted); text-align: center; }
.cartbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px; border-radius: var(--r); }
.cartbtn:hover { background: var(--c-surface); color: var(--c-ink); }
.cartbtn__icon { position: relative; display: grid; place-items: center; width: 32px; height: 32px; }
.cartbtn__count { position: absolute; top: -4px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--c-accent); color: var(--c-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.cartbtn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; flex-direction: column; line-height: 1.2; } /* на телефоні — лише для скрінрідерів */
.cartbtn__label { font-size: 12px; color: var(--c-muted); }
.cartbtn__sum { font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav { display: none; border-top: 1px solid var(--c-line); }
.nav__in { display: flex; align-items: center; gap: 4px; min-height: 50px; }
.nav__in > :first-child { margin-left: -12px; } .nav__in > :last-child { margin-right: -12px; } /* текст пунктів — по краю логотипа й контенту */
.nav__link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: var(--r); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
@media (max-width: 1279px) { .nav__in { gap: 2px; } .nav__link { padding: 0 8px; font-size: 14px; } .nav__in > :first-child { margin-left: -8px; } .nav__in > :last-child { margin-right: -8px; } }
.nav__link:hover, .nav__drop .nav__link[aria-expanded="true"] { background: var(--c-surface); color: var(--c-ink); }
.nav__link--all { color: var(--c-primary); }
.nav__link--sale { color: var(--c-sale); margin-left: auto; }
.nav__drop { position: relative; }
.pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 280px; padding: 16px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.pop--menu { min-width: 440px; }
.nav__drop .pop--menu { left: auto; right: 0; } /* «Бренди»/«Особливі» праворуч у меню — розкриваємо вліво, щоб не вилазити за край на 1024 px */
.pop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.pop__grid--1 { grid-template-columns: 1fr; }
.pop__grid a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; white-space: nowrap; padding: 9px 10px; border-radius: var(--r); font-weight: 600; font-size: 14px; }
.pop__grid a:hover { background: var(--c-surface); }
.pop__grid small { color: var(--c-muted); font-weight: 500; }

@media (min-width: 1024px) {
  :root { --header-h: 76px; --sticky-top: 184px; }
  .topbar { display: block; }
  .header__burger, .header__search-toggle, .langmenu { display: none; }
  .header__main { gap: 18px; }
  .header__logo { margin: 0; font-size: 22px; }
  .search { position: relative; display: block; flex: 1; top: auto; padding: 0; border: 0; box-shadow: none; max-width: 640px; }
  .search__btn { right: 2px; top: 0; }
  .search__results { left: 0; right: 0; top: calc(100% + 6px); }
  .lang--desktop { display: inline-flex; margin-left: auto; }
  .cartbtn__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: flex; }
  .nav { display: block; }
}
@media (max-width: 1023px) { .header__main .cartbtn { margin-left: 2px; } .langmenu, .cartbtn { flex: none; } }
@media (max-width: 479px) { /* 360 px: бургер · лого ··· пошук · мова · кошик — без накладань і виходу за край */
  .header__main { gap: 4px; }
  .header__logo { font-size: 14px; margin: 0 auto 0 0; }
  .header__main .iconbtn { width: 40px; height: 40px; }
  .header__main .cartbtn { padding: 0 4px; margin-left: 0; }
  .langmenu { margin-left: 0; }
  .langmenu__btn { padding: 0 6px; }
  .langmenu__btn .icon--sm { display: none; }
}
@media (max-width: 359px) { .langmenu { display: none; } } /* мова є в меню */

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(22,24,29,.45); opacity: 0; transition: opacity .2s; }
.drawer.is-open { opacity: 1; }
.drawer:not(.is-open) { pointer-events: none; }
.drawer__panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); display: flex; flex-direction: column; background: #fff; transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); }
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--c-line); }
.drawer__title { font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); display: grid; gap: 8px; }
.mmenu { display: flex; flex-direction: column; }
.mmenu__link { display: flex; align-items: center; min-height: 46px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--c-line); }
.mmenu__link--strong { color: var(--c-primary); }
.mmenu__link--sale { color: var(--c-sale); }
.mmenu__link--sm { font-weight: 600; font-size: 15px; min-height: 42px; border: 0; color: var(--c-muted); }
.mmenu__group summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--c-line); cursor: pointer; list-style: none; }
.mmenu__group summary::-webkit-details-marker { display: none; }
.mmenu__group[open] summary .icon { transform: rotate(180deg); }
.mmenu__group .mmenu__link { padding-left: 14px; font-weight: 600; font-size: 15px; }
.mmenu hr { border: 0; height: 12px; }

/* ---------- хлібні крихти, заголовки секцій ---------- */
.crumbs { padding: 14px 0 10px; font-size: 13px; color: var(--c-muted); overflow-x: auto; scrollbar-width: none; }
.crumbs ol { display: flex; gap: 6px; list-style: none; white-space: nowrap; min-width: 0; }
.crumbs li:last-child { min-width: 0; overflow: hidden; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--c-line-strong); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-ink); }
.crumbs [aria-current] { color: var(--c-ink); display: block; overflow: hidden; text-overflow: ellipsis; }
.section { padding: 28px 0; }
.section--tight { padding: 12px 0; }
.section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section__title { font-size: 22px; }
.section__more { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 700; color: var(--c-primary); font-size: 14px; }
.section__more .icon { width: 18px; height: 18px; }
.catalog__head, .woocommerce-NoticeGroup { scroll-margin-top: calc(var(--sticky-top) - 4px); } /* після фільтра / помилки — не під липкою шапкою */
@media (min-width: 768px) { .section { padding: 40px 0; } .section__title { font-size: 28px; } }

/* ---------- картка товару ---------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); transition: box-shadow .2s; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 1; padding: 10px; border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; image-rendering: auto; }
.card__img--alt { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; }
@media (hover: none) { .card__img--alt { display: none; } } /* на сенсорних екранах наведення немає — друге фото не вантажиться (loading=lazy + display:none) */
.card__noimg { display: grid; place-items: center; height: 100%; color: var(--c-line-strong); }
.card__noimg .icon { width: 64px; height: 64px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 6px 4px 0; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--c-muted); }
.card__brand { flex: none; max-width: 100%; font-weight: 700; color: var(--c-ink); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__sku { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; } /* звужується — бренд лишається цілим */
@media (max-width: 479px) { .card__sku { display: none; } }
.card__title { margin: 4px 0 8px; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__colors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; position: relative; z-index: 2; }
.swatch { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.swatch.is-on { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.card__buy { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-top: auto; min-height: 47px; } /* = ціна зі старою ціною: ряд купівлі однаковий у всіх картках */
.card__cart { position: relative; z-index: 2; }
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price__now { font-weight: 800; font-size: 17px; white-space: nowrap; }
.price--sale .price__now { color: var(--c-sale); }
.price__old { color: var(--c-muted); font-size: 13px; white-space: nowrap; }
.card .price { flex-direction: column; align-items: flex-start; gap: 0; } /* стара ціна завжди під новою */
.price--lg .price__now { font-size: 30px; }
.price--lg .price__old { font-size: 16px; }
.badges { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; pointer-events: none; }
.badges .badge--video { margin-left: auto; }
@media (max-width: 639px) { .card .badge { padding: 2px 6px; font-size: 11px; } } /* «Відео» — завжди в правому куті, знижка й «Хіт» — в один рядок зліва */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.4; }
.badge .icon { width: 11px; height: 11px; }
.badge--sale { background: var(--c-sale); color: #fff; }
.badge--hit { background: var(--c-accent); color: var(--c-ink); }
.badge--new { background: var(--c-new); color: #fff; }
.badge--premium { background: var(--c-ink); color: var(--c-gold); }
.badge--video { background: #fff; color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-line); }
@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow); }
  .card:hover .card__img--alt { opacity: 1; }
  .card:hover .card__img:not(.card__img--alt) { opacity: 0; }
  .card:hover .card__media:not(:has(.card__img--alt)) .card__img { opacity: 1; }
}
@media (min-width: 768px) { .card__body { padding: 8px 12px 12px; } .card__title { font-size: 14.5px; } }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .catalog__body--full .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; margin: 0 -2px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail__nav { display: none; gap: 6px; margin-left: 12px; }
.rail__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line-strong); background: #fff; }
.rail__btn:hover { border-color: var(--c-ink); }
.rail__btn[disabled] { opacity: .35; }
.section__more + .rail__nav { margin-left: 12px; }
@media (min-width: 640px) { .rail { grid-auto-columns: calc((100% - 28px) / 2.6); gap: 14px; } }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 56px) / 5); } .rail__nav { display: flex; } .section:not(:has(.rail > :nth-child(6))) .rail__nav { display: none; } /* усе влазить — стрілки зайві */ .section__head:not(:has(.section__more)) .rail__nav { margin-left: auto; } }

/* ---------- каталог ---------- */
.catalog { padding-bottom: 40px; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 4px 0 18px; }
.catalog__title { font-size: 26px; }
.catalog__count { font-size: 15px; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.sort { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
@media (max-width: 767px) { .sort { max-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); } }
.sort__label { color: var(--c-muted); font-size: 14px; margin-right: 4px; white-space: nowrap; }
.sort__opt { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 18px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--c-muted); border: 1px solid transparent; }
.sort__opt:hover { color: var(--c-ink); }
.sort__opt.is-on { background: var(--c-ink); color: #fff; }
.catalog__body { display: grid; gap: 16px; }
.catalog__filters-btn { justify-self: start; }
.catalog__main { min-width: 0; position: relative; }
.catalog.is-loading .catalog__main { opacity: .45; pointer-events: none; transition: opacity .15s; }
@media (min-width: 768px) { .catalog__title { font-size: 32px; } }
@media (min-width: 1024px) {
  .catalog__body { grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; }
  .catalog__body--full { grid-template-columns: 1fr; }
  .catalog__filters-btn { display: none; }
  .drawer--desktop-static, .drawer--desktop-static:not(.is-open) { pointer-events: auto; }
  .drawer--desktop-static { position: sticky; top: var(--sticky-top); display: block !important; inset: auto; z-index: 1; background: none; opacity: 1; max-height: calc(100vh - var(--sticky-top) - 16px); overflow-y: auto; scrollbar-width: thin; }
  .drawer--desktop-static .drawer__panel { position: static; width: auto; transform: none; box-shadow: none; }
  .drawer--desktop-static .drawer__head, .drawer--desktop-static .filters__foot { display: none; }
  .drawer--desktop-static .drawer__body { padding: 0 6px 0 0; overflow: visible; }
}
.fgroup { border-bottom: 1px solid var(--c-line); padding: 14px 0; }
.fgroup:first-child { padding-top: 4px; }
.fgroup__title { display: flex; align-items: center; justify-content: space-between; min-height: 40px; font-size: 15px; font-weight: 700; margin: 0 0 4px; cursor: pointer; list-style: none; }
details.fgroup:not([open]) .fgroup__title { margin: 0; }
.fgroup__title::-webkit-details-marker { display: none; }
.fgroup__title .icon { width: 18px; height: 18px; color: var(--c-muted); transition: transform .2s; }
details[open] > .fgroup__title .icon { transform: rotate(180deg); }
.fopts { list-style: none; display: grid; gap: 2px; }
.fopts--many:not(.is-all) .fopts__more { display: none; }
.fopts__toggle { margin-top: 6px; color: var(--c-primary); font-weight: 700; font-size: 14px; min-height: 32px; }
.fopt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 3px 4px; border-radius: var(--r-sm); font-size: 14px; }
.fopt:hover { background: var(--c-surface); color: var(--c-ink); }
.fopt__box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--c-line-strong); background: #fff; }
.fopt__box .icon { width: 14px; height: 14px; color: #fff; opacity: 0; stroke-width: 2.6; }
.fopt.is-on .fopt__box { background: var(--c-primary); border-color: var(--c-primary); }
.fopt.is-on .fopt__box .icon { opacity: 1; }
.fopt__name { flex: 1; line-height: 1.3; }
.fopt__count { color: var(--c-muted); font-size: 12.5px; }
.fopt.is-dis { opacity: .4; pointer-events: none; }
.fopts--swatch .fopt__box { border-radius: 50%; background: var(--sw, #ddd); border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.fopts--swatch .fopt.is-on .fopt__box { background: var(--sw); outline: 2px solid var(--c-ink); outline-offset: 2px; }
.fopts--swatch .fopt__box .icon { color: #fff; filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.fprice__row { display: flex; align-items: center; gap: 6px; }
.fprice__row label { flex: 1; min-width: 0; }
.fprice__row input { width: 100%; height: 40px; padding: 0 10px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r); font-size: 14px; -moz-appearance: textfield; }
.fprice__row input::-webkit-outer-spin-button, .fprice__row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fprice__row input:focus { outline: none; border-color: var(--c-primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 14px; border-radius: 17px; background: var(--c-primary-soft); color: var(--c-primary); font-size: 13.5px; font-weight: 700; }
.chip:hover { background: #d3e6e4; }
.chips__reset { display: inline-flex; align-items: center; min-height: 34px; padding: 0 8px; font-size: 13.5px; font-weight: 700; color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }
.pager { display: grid; justify-items: center; gap: 16px; margin-top: 32px; }
.pager__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager__page { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--r); font-weight: 700; border: 1px solid var(--c-line); }
.pager__page.is-on { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; }
.empty > .icon { width: 64px; height: 64px; color: var(--c-line-strong); }
.empty h1, .empty h2 { font-size: 24px; }
.empty p { color: var(--c-muted); max-width: 480px; text-wrap: balance; }
.empty--page { padding: 80px 16px; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 479px) { .empty__actions:has(> :nth-child(3)) { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } }

/* ---------- SEO-текст, FAQ, prose ---------- */
.seo { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.seo__text { max-width: 900px; max-height: 210px; overflow: hidden; position: relative; }
.seo__text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #fff); }
.seo__text.is-open { max-height: none; }
.seo__text.is-open::after { display: none; }
.seo__toggle { margin-top: 8px; font-weight: 700; color: var(--c-primary); min-height: 40px; }
.seo__faq-title { font-size: 22px; margin: 32px 0 12px; }
.prose { font-size: 15.5px; line-height: 1.7; color: #2B2E35; }
.prose h2, .prose h3 { margin: 1.4em 0 .5em; font-size: 19px; color: var(--c-ink); }
.prose h4 { margin: 1.2em 0 .4em; font-size: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 14px; }
.prose td, .prose th { border: 1px solid var(--c-line); padding: 8px 10px; text-align: left; }
.prose a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose > :first-child { margin-top: 0; }
.faq { display: grid; gap: 8px; max-width: 900px; }
.faq__item { border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--c-primary); transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__a { padding: 0 18px 4px; color: #2B2E35; }

/* ---------- товар ---------- */
.product { padding-bottom: 24px; }
.product__top { display: grid; gap: 20px; }
.gallery { min-width: 0; }
.gallery__main { position: relative; background: #fff; border-radius: var(--r-xl); border: 1px solid var(--c-line); overflow: hidden; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-in; min-width: 0; }
.gallery__slide--empty { color: var(--c-line-strong); cursor: default; }
.gallery__slide--empty .icon { width: 96px; height: 96px; }
.gallery__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; } /* фото ≈390 px — не розтягуємо */
.gallery__brand { position: absolute; top: 14px; right: 16px; z-index: 2; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--c-muted); }
.gallery__main .badges { top: 14px; left: 14px; right: auto; }
.gallery__main .badges .badge--video { margin-left: 0; } /* правий кут — назва бренду */
.gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery__dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--c-line-strong); transition: width .2s, background .2s; }
.gallery__dots span.is-on { width: 18px; background: var(--c-ink); }
.gallery__thumbs { display: none; }
.buybox { min-width: 0; }
.buybox__title { font-size: 21px; font-weight: 700; line-height: 1.3; }
.buybox__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 10px 0 16px; font-size: 13.5px; color: var(--c-muted); }
.buybox__reviews { text-decoration: underline; text-underline-offset: 3px; }
.stock { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.stock--in { color: var(--c-ok); }
.stock--out { color: var(--c-sale); }
.buybox__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.buybox__save { display: inline-flex; padding: 3px 10px; border-radius: 14px; background: #FDECEA; color: var(--c-sale); font-weight: 700; font-size: 13px; }
.pick { margin-bottom: 18px; }
.pick__label { margin: 0 0 10px; font-size: 14px; color: var(--c-muted); }
.pick__label strong { color: var(--c-ink); }
.pick__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizebtn { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r); line-height: 1.25; }
.sizebtn:hover { border-color: var(--c-ink); color: var(--c-ink); }
.sizebtn.is-on { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.sizebtn__name { font-weight: 700; font-size: 14px; }
.sizebtn__price { font-size: 12.5px; opacity: .75; }
.pick__colors { display: flex; flex-wrap: wrap; gap: 8px; }
.colorbtn { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 4px; border-radius: var(--r); border: 1.5px solid var(--c-line); background: #fff; overflow: hidden; }
.colorbtn:hover { border-color: var(--c-ink); }
.colorbtn.is-on { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.colorbtn img { width: 100%; height: 100%; object-fit: contain; } /* фіксований розмір — без зсуву макета, поки фото вантажиться */
.buybox__actions { display: flex; gap: 10px; margin: 6px 0 20px; }
.buybox__buy { flex: 1; }
.buybox__actions.is-stuck { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 24px rgba(22,24,29,.12); }
.assure { list-style: none; display: grid; gap: 2px; padding: 6px 16px; border-radius: var(--r-lg); background: var(--c-surface); }
.assure li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 14px; line-height: 1.4; }
.assure li + li { border-top: 1px solid var(--c-line); }
.assure .icon { color: var(--c-primary); margin-top: 1px; }
.assure strong { display: block; }
.assure span { color: var(--c-muted); }
.assure a { text-decoration: underline; text-underline-offset: 3px; }
.product__info { display: grid; gap: 16px; margin-top: 28px; }
.panel { padding: 20px; border: 1px solid var(--c-line); border-radius: var(--r-xl); background: #fff; min-width: 0; }
.panel__title { font-size: 20px; margin-bottom: 14px; }
@media (max-width: 639px) { .panel { padding: 18px 16px; } }
.specs { margin: 0; }
.specs__row { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--c-line); font-size: 14.5px; }
.specs__row:last-child { border-bottom: 0; }
.specs dt { color: var(--c-muted); }
.specs dd { margin: 0; font-weight: 600; }
.specs dd a { color: var(--c-primary); text-decoration: underline; text-decoration-color: rgba(15,76,74,.35); text-underline-offset: 3px; }
.videos { display: grid; gap: 12px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt__play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 12px; background: #E62117; display: grid; place-items: center; color: #fff; }
.yt__play .icon { width: 24px; height: 24px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 640px) { .videos { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (min-width: 900px) {
  .product__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; position: sticky; top: var(--sticky-top); }
  .gallery__main { order: 2; }
  .gallery__thumbs { order: 1; display: flex; flex-direction: column; gap: 8px; height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: none; } /* висота — як у головного фото */
  .gallery__thumb { flex: none; display: grid; place-items: center; width: 76px; height: 76px; padding: 4px; border-radius: var(--r); border: 1.5px solid var(--c-line); background: #fff; }
  .gallery__thumb.is-on, .gallery__thumb:hover { border-color: var(--c-ink); }
  .gallery__thumb { overflow: hidden; }
  .gallery__thumb img { width: 100%; height: 100%; object-fit: contain; } /* max-height:100% у grid-комірці не працював — фото вилазило на сусідню мініатюру */
  .gallery__thumb--video { font-size: 11px; font-weight: 700; gap: 2px; align-content: center; }
  .gallery__thumb--video .icon { width: 20px; height: 20px; color: #E62117; }
  .gallery__arrow { display: grid; }
  .gallery__dots { display: none; }
  .buybox__title { font-size: 26px; }
  .product__info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .panel--wide { grid-column: 1 / -1; }
  #specs { position: sticky; top: var(--sticky-top); }
  .panel { padding: 28px; }
}
@media (max-width: 899px) { .gallery__main { margin: 0 calc(var(--gutter) * -1); border-radius: 0; border-left: 0; border-right: 0; } .gallery__main .badges { left: var(--gutter); } .gallery__brand { right: var(--gutter); } }
@media (min-width: 600px) and (max-width: 899px) { .gallery__track { aspect-ratio: auto; height: min(100vw, 62vh); } }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 90; background: #fff; display: flex; flex-direction: column; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-weight: 700; }
.lightbox__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; scroll-snap-align: center; overflow: auto; display: grid; place-items: center; }
.lightbox__slide img { max-width: 100%; max-height: calc(100vh - 70px); object-fit: contain; cursor: zoom-in; }
.lightbox__slide.is-zoom img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; display: none; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--c-line), var(--shadow); color: var(--c-ink); }
.lightbox__nav--prev { left: 24px; } .lightbox__nav--next { right: 24px; }
@media (min-width: 768px) {
  .lightbox__nav { display: grid; }
  .lightbox__nav:hover { background: var(--c-surface); }
  .lightbox__nav:disabled { opacity: .35; }
  .lightbox__slide img { height: min(calc(100vh - 90px), 640px); width: auto; } /* фото постачальника ~390 px — помірне збільшення, не на весь екран */
}

/* відгуки (WooCommerce) */
#reviews .woocommerce-Reviews-title, #reviews #reply-title { font-size: 20px; margin-bottom: 12px; display: block; }
#reviews .commentlist { list-style: none; display: grid; gap: 16px; margin-bottom: 20px; }
#reviews .comment_container { display: flex; gap: 12px; }
#reviews .avatar { display: none; }
#reviews .star-rating { color: var(--c-accent); font-size: 14px; }
#reviews .meta { color: var(--c-muted); font-size: 13px; }
#reviews .woocommerce-noreviews { color: var(--c-muted); }
.comment-form { display: grid; gap: 14px; max-width: 640px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea, .comment-form select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r); background: #fff; }
.comment-form textarea { min-height: 120px; }
.comment-form .submit { background: var(--c-primary); color: #fff; border: 0; border-radius: var(--r); min-height: 46px; padding: 0 24px; font-weight: 700; cursor: pointer; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- головна ---------- */
.hero { position: relative; overflow: hidden; }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; }
/* світлі тони: фото koffer на білому фоні «розчиняються» через multiply */
.hero__slide--petrol { background: linear-gradient(120deg, #DCEBE9 0%, #EEF5F4 100%); color: var(--c-ink); }
.hero__slide--graphite { background: linear-gradient(120deg, #E6E8EC 0%, #F4F5F7 100%); color: var(--c-ink); }
.hero__slide--sand { background: linear-gradient(120deg, #F3E7D8 0%, #F9F3EB 100%); color: var(--c-ink); }
.hero__kicker { color: var(--c-primary); opacity: 1 !important; }
.hero__in { display: grid; gap: 12px; align-items: center; min-height: 420px; padding-top: 28px; padding-bottom: 44px; }
.hero__kicker { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hero__title { font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; max-width: 13em; }
.hero__lead { margin: 12px 0 22px; font-size: 16px; opacity: .88; max-width: 34em; }
.hero__pics { position: relative; height: 210px; }
.hero__pic { position: absolute; bottom: 0; height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.hero__pic--0 { left: 50%; transform: translateX(-50%); z-index: 2; height: 100%; }
.hero__pic--1 { left: 8%; height: 80%; z-index: 1; }
.hero__pic--2 { right: 8%; height: 70%; z-index: 1; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.hero__dot { width: 28px; height: 28px; display: grid; place-items: center; }
.hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(128,128,128,.55); transition: width .2s; }
.hero__dot.is-on::before { width: 22px; background: var(--c-accent); }
@media (min-width: 768px) {
  .hero__in { grid-template-columns: 1.1fr 1fr; min-height: 440px; padding-top: 40px; padding-bottom: 48px; }
  .hero__title { font-size: 46px; }
  .hero__lead { font-size: 18px; }
  .hero__pics { height: 360px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .hero__title { font-size: 36px; } .hero__pics { height: 300px; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 639px) { /* 7 плиток у 2 колонки: остання — на всю ширину, фото збоку */
  .tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 96px 1fr; justify-items: start; align-items: center; column-gap: 14px; text-align: left; padding: 10px 16px; }
  .tiles > .tile:last-child:nth-child(odd) .tile__img { grid-row: span 2; }
  .tiles > .tile:last-child:nth-child(odd) .tile__name { margin-top: 0; align-self: end; }
  .tiles > .tile:last-child:nth-child(odd) .tile__count { align-self: start; }
}
.tile { display: grid; justify-items: center; gap: 2px; padding: 16px 10px 14px; border-radius: var(--r-lg); background: var(--c-surface); text-align: center; transition: background .15s, transform .15s; }
.tile:hover { background: #EFEBE5; color: var(--c-ink); transform: translateY(-2px); }
.tile__img { display: block; width: 100%; aspect-ratio: 1; max-width: 150px; }
.tile__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tile__name { font-weight: 700; font-size: 15px; margin-top: 6px; }
.tile__count { font-size: 12.5px; color: var(--c-muted); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 640px) and (max-width: 1099px) { .tiles > .tile:last-child:nth-child(4n+3) { grid-column: span 2; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.brands { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--c-line); }
.brands__title { font-size: 18px; }
.brands__list { display: flex; flex-wrap: wrap; gap: 8px; }
.brands__item { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--r); background: var(--c-surface); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.brands__item:hover { background: var(--c-ink); color: #fff; }

/* ---------- переваги, підвал ---------- */
.perks { margin-top: 16px; background: var(--c-surface); }
.perks__in { display: grid; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.perk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.perk .icon { width: 28px; height: 28px; color: var(--c-primary); }
.perk strong { display: block; font-size: 14.5px; }
.perk span { color: var(--c-muted); font-size: 13px; }
@media (min-width: 640px) { .perks__in { grid-template-columns: repeat(3, 1fr); padding-top: 28px; padding-bottom: 28px; } }
.footer { background: var(--c-ink); color: #C9CBD0; font-size: 14px; }
.footer__in { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer__brand p { margin: 14px 0 0; max-width: 300px; }
.footer__social { display: flex; gap: 6px; margin-top: 14px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 2px; }
.footer__col a { padding: 6px 0; }
.footer a:hover { color: #fff; }
.footer__store { display: flex; gap: 8px; align-items: flex-start; }
.footer__store .icon { width: 18px; height: 18px; color: var(--c-accent); margin-top: 2px; }
.lang--footer { align-self: flex-start; margin-top: 14px; border-color: rgba(255,255,255,.18); background: transparent; }
.lang--footer .lang__item { color: #C9CBD0; }
.lang--footer .lang__item:hover { color: #fff; background: rgba(255,255,255,.08); }
.lang--footer .lang__item.is-on { color: var(--c-ink); background: var(--c-accent); }
.lang--footer .lang__globe { color: var(--c-accent); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; padding-bottom: 24px; position: relative; font-size: 13px; }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255,255,255,.1); }
.paylogos { display: flex; flex-wrap: wrap; gap: 6px; }
.paylogo { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 52px; padding: 0 8px; border-radius: 5px; background: #fff; color: var(--c-ink); font-weight: 800; font-size: 11.5px; }
.paylogo--visa { color: #1A1F71; font-style: italic; font-size: 14px; letter-spacing: .02em; }
.paylogo--mc i { width: 16px; height: 16px; border-radius: 50%; background: #EB001B; display: block; }
.paylogo--mc i + i { background: #F79E1B; margin-left: -7px; mix-blend-mode: multiply; }
@media (min-width: 768px) { .footer__in { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }

/* ---------- сторінка ---------- */
.page { padding-bottom: 40px; }
.page__body { max-width: 820px; }
.page__title { font-size: 28px; margin: 6px 0 20px; }
@media (min-width: 768px) { .page__title { font-size: 36px; } }

/* ---------- швидкість: блоки нижче першого екрана рендеряться, коли до них доскролили ---------- */
.main .section + .section { content-visibility: auto; contain-intrinsic-size: auto 560px; } /* підвал — без: інакше хибні помилки контрасту в Lighthouse */
