:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --bg-muted: #ebebeb;
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --ink-3: #767676;
  --line: #e2e2e2;
  --accent: #0a0a0a;
  --sale: #d0021b;
  --ok: #1a7f37;
  --radius: 4px;
  --container: 1600px;
  --head-font: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 10px 40px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
.fh, .fh3, .sr-only + x, h1, h2, h3, h4 { font-family: var(--head-font); text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0; font-weight: 700; }
#app:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13px;
  transition: background .2s, color .2s, opacity .2s;
}
.btn:hover { background: #2a2a2a; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  transition: background .2s;
}
.icon-btn:hover { background: var(--bg-soft); }
.badge[hidden] { display: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}


/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { position: relative; display: flex; align-items: center; gap: 24px; height: 84px; }
.logo img { height: 72px; width: auto; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 32px; white-space: nowrap; }
.nav a { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a.active { border-color: var(--ink); }
.nav__sale { color: var(--sale); }
.header__actions { margin-left: auto; display: flex; gap: 4px; }
.burger { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__inner { gap: 8px; height: 64px; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .logo img { height: 48px; }
}

/* ---------- Search ---------- */
.search { display: none; border-top: 1px solid var(--line); background: #fff; }
.search.open { display: block; }
.search__inner { display: flex; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.search input { flex: 1; height: 48px; border: 0; border-bottom: 2px solid var(--ink); font-size: 18px; outline: none; background: transparent; }
.search__results { padding-bottom: 20px; display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.search__item { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius); }
.search__item:hover { background: var(--bg-soft); }
.search__item .thumb { width: 72px; flex: none; }
.search__item b { display: block; }
.search__empty { color: var(--ink-3); padding: 8px 0; }

/* ---------- Mobile nav ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav__panel { width: min(340px, 86vw); height: 100%; background: #fff; padding: 64px 24px 24px; display: flex; flex-direction: column; gap: 4px; transform: translateX(-100%); transition: transform .3s; overflow: auto; }
.mobile-nav.open .mobile-nav__panel { transform: none; }
.mobile-nav__panel a { font-family: var(--head-font); font-size: 22px; text-transform: uppercase; padding: 8px 0; }
.mobile-nav__panel hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; width: 100%; }
.mobile-nav__panel hr ~ a { font-family: var(--body-font); font-size: 15px; text-transform: none; padding: 6px 0; }
.mobile-nav__close { position: absolute; top: 12px; left: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100svh - 84px); min-height: 520px; max-height: 1100px; background: #0a0a0a; overflow: hidden; color: #fff; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.22) 45%, rgba(0,0,0,.50) 100%); }
.hero__title {
  position: absolute; left: 0; right: 0; top: 13%;
  display: grid; grid-template-columns: 1fr 28% 1fr; align-items: center;
  font-family: var(--head-font); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(64px, 11vw, 220px); line-height: 1; margin: 0;
  text-shadow: 0 6px 40px rgba(0,0,0,.35);
}
.hero__title span { display: block; transform: scaleY(1.28); transform-origin: center; }
.hero__title span:first-of-type { grid-column: 1; justify-self: center; }
.hero__title span:last-of-type { grid-column: 3; justify-self: center; }
.hero__cta { position: absolute; left: 0; right: 0; bottom: 7%; display: flex; justify-content: center; gap: 28px; padding: 0 16px; }
.hero__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; height: 80px; padding: 0 40px; border-radius: 14px;
  font-family: var(--head-font); font-weight: 600; font-size: 30px; text-transform: uppercase; letter-spacing: .01em;
  transition: transform .2s, background .2s, color .2s;
}
.hero__btn:hover { transform: translateY(-2px); }
.hero__btn--dark { background: #000; color: #fff; }
.hero__btn--dark:hover { background: #1c1c1c; }
.hero__btn--light { background: #fff; color: #000; }
.hero__btn--light:hover { background: #e9e9e9; }
@media (max-width: 900px) {
  .hero { height: calc(100svh - 64px); min-height: 480px; }
  .hero__title { top: 10%; grid-template-columns: 1fr 34% 1fr; font-size: clamp(44px, 12vw, 110px); }
  .hero__btn { min-width: 0; height: 60px; font-size: 22px; padding: 0 32px; border-radius: 12px; }
  .hero__cta { gap: 12px; }
}
@media (max-width: 600px) {
  .hero__video { object-position: 50% 30%; }
  .hero__title { display: flex; justify-content: center; gap: .22em; top: 6%; font-size: clamp(48px, 16vw, 90px); }
  .hero__cta { bottom: 5%; }
  .hero__btn { flex: 1; max-width: 170px; height: 56px; font-size: 20px; padding: 0 16px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head h2 { font-size: clamp(30px, 4vw, 48px); }
.link-arrow { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
@media (max-width: 600px) { .section { padding: 48px 0; } }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { position: relative; aspect-ratio: auto; height: clamp(300px, calc(100svh - 84px - 150px), 540px); background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.cat .sneaker { position: absolute; top: 50%; left: 50%; width: min(80%, 440px); translate: -50% -62%; transition: transform .4s; }
.cat:hover .sneaker { transform: rotate(-6deg) scale(1.05); }
.cat h2 { font-size: 34px; position: relative; }
.cat span { position: relative; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.cat--dark { background: var(--ink); color: #fff; }
@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .cat { height: auto; aspect-ratio: 1/1; }
  .cats .cat:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
}
@media (max-width: 500px) { .cat h2 { font-size: 24px; } .cat { padding: 16px; } }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brands a { display: flex; align-items: center; justify-content: center; height: 110px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--head-font); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; transition: background .2s, color .2s; text-align: center; padding: 0 8px; }
.brands a:hover { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .brands { grid-template-columns: repeat(3, 1fr); } .brands a { height: 84px; font-size: 18px; } }

/* Banner */
.banner { background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.banner__text { padding: 56px; }
.banner h2 { font-size: clamp(36px, 5vw, 64px); }
.banner p { color: #bdbdbd; margin: 16px 0 28px; max-width: 420px; }
.banner__visual { padding: 32px 48px; max-width: 560px; justify-self: center; width: 100%; }
.banner__visual .sneaker { transform: rotate(8deg); }
@media (max-width: 800px) { .banner { grid-template-columns: 1fr; } .banner__text { padding: 32px 24px 8px; } .banner__visual { padding: 0 24px 24px; } }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit { padding: 24px 0; border-top: 2px solid var(--ink); }
.benefit h3 { font-size: 20px; margin-bottom: 8px; }
.benefit p { margin: 0; color: var(--ink-3); font-size: 14px; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .benefits { grid-template-columns: 1fr; gap: 0; } }

/* Newsletter */
.newsletter { background: var(--bg-soft); text-align: center; }
.newsletter h2 { font-size: clamp(30px, 4vw, 48px); }
.newsletter p { color: var(--ink-3); margin: 12px 0 24px; }
.newsletter form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.newsletter input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
@media (max-width: 500px) { .newsletter form { flex-direction: column; } }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; } }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; background: var(--bg-soft); border-radius: var(--radius); aspect-ratio: 1/1; overflow: hidden; }
.card__media .sneaker { position: absolute; inset: 0; margin: auto; width: 86%; height: auto; top: 0; bottom: 0; transition: transform .35s; }
.card:hover .card__media .sneaker { transform: rotate(-8deg) scale(1.06); }
.card__tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; background: #fff; border-radius: 2px; }
.tag--sale { background: var(--sale); color: #fff; }
.tag--dark { background: var(--ink); color: #fff; }
.card__fav { position: absolute; top: 6px; right: 6px; background: #fff; }
.card__fav.on svg { fill: var(--ink); }
.card__body { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.card__brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.card__name { font-weight: 600; line-height: 1.3; }
.card__color { font-size: 13px; color: var(--ink-3); }
.price { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; font-weight: 700; }
.price s { color: var(--ink-3); font-weight: 400; font-size: .9em; }
.price--sale span { color: var(--sale); }

/* ---------- Catalog ---------- */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a:hover { color: var(--ink); }
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-bottom: 80px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.toolbar__count { color: var(--ink-3); font-size: 14px; }
.toolbar select { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filters-toggle { display: none; }
.filters { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.filters__head { display: none; }
.filter { border-bottom: 1px solid var(--line); padding: 18px 0; }
.filter:first-child { padding-top: 0; }
.filter .fh { font-family: var(--body-font); font-size: 13px; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.check small { color: var(--ink-3); margin-left: auto; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.size-chip { height: 40px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; display: flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s; }
.size-chip:hover { border-color: var(--ink); }
.size-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-chip:disabled { color: #c4c4c4; text-decoration: line-through; cursor: not-allowed; }
.size-chip:disabled:hover { border-color: var(--line); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.filters__reset { margin-top: 18px; font-size: 13px; text-decoration: underline; color: var(--ink-3); }
.empty { text-align: center; padding: 80px 16px; }
.empty h1, .empty h2 { font-size: 32px; margin-bottom: 12px; }
.empty p { color: var(--ink-3); margin: 0 0 24px; }
.empty img { width: 140px; margin: 0 auto 16px; opacity: .8; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-filters button { font-size: 12px; padding: 6px 10px; background: var(--bg-soft); border-radius: 20px; }
.active-filters button::after { content: " ✕"; }

@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; height: 42px; padding: 0 16px; font-size: 12px; }
  .filters { position: fixed; inset: 0; z-index: 95; background: #fff; max-height: none; padding: 0 16px 100px; transform: translateX(-100%); transition: transform .3s; }
  .filters.open { transform: none; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; height: 64px; position: sticky; top: 0; background: #fff; z-index: 1; margin-bottom: 8px; }
  .filters__head .fh3 { font-size: 22px; }
  .filters__apply { position: fixed; left: 16px; right: 16px; bottom: 16px; }
}
@media (min-width: 901px) { .filters__apply { display: none; } }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding-bottom: 80px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-self: start; }
.gallery__item { background: var(--bg-soft); border-radius: var(--radius); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 4/3; }
.gallery__item .sneaker { width: 82%; }
.gallery__item--flip .sneaker { transform: scaleX(-1); }
.gallery__item--top .sneaker { transform: rotate(-20deg); }
.pinfo { position: sticky; top: 96px; align-self: start; }
.pinfo__brand { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pinfo h1 { font-size: clamp(32px, 3.5vw, 46px); margin: 8px 0 12px; }
.pinfo .price { font-size: 22px; }
.pinfo__meta { color: var(--ink-3); font-size: 14px; margin: 6px 0 24px; }
.colorways { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.colorway { width: 72px; aspect-ratio: 1/1; background: var(--bg-soft); border: 1px solid transparent; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.colorway.on { border-color: var(--ink); }
.colorway .sneaker { width: 90%; }
.pinfo__label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.pinfo__label button { text-decoration: underline; color: var(--ink-3); font-weight: 400; font-size: 13px; }
.pinfo .sizes { grid-template-columns: repeat(5, 1fr); margin-bottom: 8px; }
.pinfo__err { color: var(--sale); font-size: 13px; min-height: 20px; }
.pinfo__buy { display: flex; gap: 8px; margin: 8px 0 24px; }
.pinfo__buy .btn { flex: 1; }
.pinfo__buy .icon-btn { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: var(--radius); flex: none; }
.pinfo__buy .icon-btn.on svg { fill: var(--ink); }
.perks { list-style: none; margin: 0 0 24px; padding: 16px; background: var(--bg-soft); border-radius: var(--radius); display: grid; gap: 8px; font-size: 14px; }
.perks li::before { content: "✓"; font-weight: 700; margin-right: 10px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; padding: 16px 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; line-height: 1; }
.acc[open] summary::after { content: "−"; }
.acc div { padding-bottom: 16px; color: var(--ink-2); font-size: 14px; }
.acc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acc td, .acc th { border: 1px solid var(--line); padding: 6px; text-align: center; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: repeat(4, 85%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; }
  .gallery__item, .gallery__item:first-child { grid-column: auto; aspect-ratio: 1/1; scroll-snap-align: start; }
  .pinfo { position: static; }
}

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer__overlay { opacity: 1; }
.drawer.open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head .fh3 { font-size: 24px; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__foot:empty { display: none; }
.progress { font-size: 13px; color: var(--ink-2); }
.progress__bar { height: 4px; background: var(--bg-muted); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: var(--ink); }

.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .thumb { background: var(--bg-soft); border-radius: var(--radius); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.line .thumb .sneaker { width: 88%; }
.line__name { font-weight: 600; line-height: 1.3; }
.line__meta { font-size: 13px; color: var(--ink-3); }
.line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__remove { font-size: 12px; color: var(--ink-3); text-decoration: underline; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 8px; }
.qty button { width: 32px; height: 32px; font-size: 16px; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.totals { display: grid; gap: 6px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 18px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; padding-bottom: 80px; align-items: start; }
.checkout__summary { background: var(--bg-soft); padding: 24px; border-radius: var(--radius); position: sticky; top: 96px; }
.checkout__summary h3, .checkout__summary .summary__title { font-size: 22px; margin-bottom: 8px; }
.fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.fieldset legend { font-family: var(--head-font); font-size: 24px; text-transform: uppercase; margin-bottom: 16px; padding: 0; display: flex; align-items: center; gap: 12px; }
.fieldset legend b { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; outline: none; transition: border-color .2s; }
.field textarea { height: 90px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field.invalid input, .field.invalid select { border-color: var(--sale); }
.field small { color: var(--sale); font-size: 12px; min-height: 0; }
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s; }
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input { accent-color: var(--ink); width: 18px; height: 18px; }
.option span { flex: 1; }
.option small { display: block; color: var(--ink-3); }
.option em { font-style: normal; font-weight: 600; font-size: 14px; }
.agree { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); margin: 8px 0 20px; }
.agree input { accent-color: var(--ink); }
@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; gap: 24px; }
  .checkout__summary { position: static; order: -1; }
  .fields { grid-template-columns: 1fr; }
}

/* Success */
.success { text-align: center; padding: 80px 16px 100px; max-width: 640px; margin: 0 auto; }
.success__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.success p { color: var(--ink-2); }
.success__box { text-align: left; background: var(--bg-soft); padding: 20px; border-radius: var(--radius); margin: 24px 0; font-size: 14px; display: grid; gap: 6px; }
.success__tg { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--ink); padding: 14px 18px; margin: 0 0 24px; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.success__tg:hover { background: var(--ink); color: #fff; }
.success__tg svg { flex: none; }
.success__tg b { display: block; font-size: 15px; }
.success__tg small { display: block; color: inherit; opacity: .7; font-size: 13px; margin-top: 2px; }

/* Info pages */
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 26px; margin: 32px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px; text-align: center; }
.prose th { background: var(--bg-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 64px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer .fh { font-family: var(--body-font); font-size: 13px; letter-spacing: .1em; color: #8a8a8a; margin-bottom: 16px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__grid a:hover { text-decoration: underline; }
.footer__goat { width: 90px; filter: invert(1); margin-bottom: 8px; }
.footer__name { font-family: var(--head-font); font-size: 32px; font-weight: 700; }
.footer__brand p { color: #a8a8a8; font-size: 14px; max-width: 280px; }
.socials { display: flex; gap: 8px; margin-top: 6px; }
.socials a { width: 38px; height: 38px; border: 1px solid #444; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.socials a:hover { background: #fff; color: var(--ink); text-decoration: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid #2a2a2a; font-size: 13px; color: #8a8a8a; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { border: 1px solid #3a3a3a; border-radius: 3px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--radius); font-size: 14px; z-index: 200; transition: transform .3s; max-width: calc(100vw - 32px); box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }

/* Sneaker svg */
.sneaker { display: block; width: 100%; height: auto; }

/* mobile tweaks */
@media (max-width: 600px) {
  .logo img { height: 42px; }
  .header__actions { gap: 0; }
  .header__actions .icon-btn { width: 38px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar__count { order: 3; width: 100%; }
  .toolbar select { flex: 1; min-width: 0; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .nav { position: static; transform: none; margin-left: 16px; gap: 20px; }
}

/* =====================================================================
   v3: Bebas Neue, гострі кнопки, прозорий хедер, sticky-hero, анімації
   ===================================================================== */
@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/fonts/BebasNeue-Cyrillic-unhinted.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root { --accent-font: "Bebas Neue", "Oswald", Impact, sans-serif; --radius: 0px; --ease: cubic-bezier(.2,.7,.2,1); }

/* --- Bebas Neue: кнопки, міні-заголовки, картки --- */
.btn, .hero__btn, .nav a, .mobile-nav__panel > a,
h4, .filter .fh, .footer .fh, .benefit h3,
.cat span, .link-arrow, .tag, .pinfo__label, .pinfo__brand, .fieldset legend,
.card__brand, .card__name, .price, .toolbar__count, .filters__reset, .active-filters button,
.size-chip, .crumbs, .drawer__head .fh3, .line__name, .totals .grand, .badge {
  font-family: var(--accent-font); font-weight: 400;
}
.mobile-nav__panel hr ~ a { font-family: var(--body-font); }
.btn { font-size: 20px; letter-spacing: .06em; height: 54px; padding-top: 3px; }
.nav a { font-size: 20px; letter-spacing: .06em; padding: 4px 0; }
.filter .fh, .footer .fh { font-size: 18px; letter-spacing: .08em; }
.benefit h3 { font-size: 26px; letter-spacing: .02em; }
.cat span { font-size: 18px; letter-spacing: .08em; }
.link-arrow { font-size: 18px; letter-spacing: .08em; }
.tag { font-size: 15px; letter-spacing: .08em; padding: 3px 8px 1px; }
.card__brand { font-size: 16px; letter-spacing: .1em; }
.card__name { font-size: 24px; line-height: 1; letter-spacing: .02em; margin-top: 2px; }
.price { font-size: 22px; letter-spacing: .03em; }
.pinfo .price { font-size: 30px; }
.pinfo__brand { font-size: 18px; }
.pinfo__label { font-size: 20px; letter-spacing: .04em; }
.pinfo__label button { font-family: var(--body-font); }
.size-chip { font-size: 19px; }
.crumbs { font-size: 17px; letter-spacing: .06em; }
.toolbar__count, .filters__reset { font-size: 18px; letter-spacing: .04em; }
.active-filters button { font-size: 16px; letter-spacing: .04em; }
.fieldset legend { font-size: 30px; font-weight: 400; }
.line__name { font-size: 22px; line-height: 1.05; }
.totals .grand { font-size: 26px; font-weight: 400; }
.drawer__head .fh3 { font-size: 32px; font-weight: 400; }
.badge { font-size: 13px; padding-top: 1px; }

/* --- гострі кнопки --- */
.btn, .hero__btn, .size-chip, .tag, .toolbar select, .field input, .field select, .field textarea,
.option, .newsletter input, .qty, .card__media, .cat, .banner, .gallery__item, .colorway,
.checkout__summary, .success__box, .perks, .line .thumb, .price-range input, .pinfo__buy .icon-btn { border-radius: 0; }
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .3s var(--ease), border-color .3s, background .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover { background: var(--ink); color: var(--ink); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { background: transparent; color: #fff; }
.btn--white::before { background: var(--ink); }
.btn--white:hover { background: #fff; color: #fff; border-color: #fff; }
.btn[disabled]::before { display: none; }

.hero__btn { font-family: var(--accent-font); font-weight: 400; font-size: 32px; letter-spacing: .05em; height: 72px; min-width: 210px; padding: 4px 44px 0; border: 2px solid transparent; }
.hero__btn--dark { background: #000; border-color: #000; color: #fff; }
.hero__btn--dark:hover { background: #fff; border-color: #fff; color: #000; }
.hero__btn--light { background: transparent; border-color: #fff; color: #fff; }
.hero__btn--light:hover { background: #fff; color: #000; }
@media (max-width: 900px) { .hero__btn { height: 58px; font-size: 26px; min-width: 0; padding: 3px 32px 0; } }
@media (max-width: 600px) { .hero__btn { flex: 1; max-width: 170px; height: 54px; font-size: 24px; padding: 3px 12px 0; } }

/* --- хедер: прозорий над hero --- */
.logo__light { display: none; }
.header { transition: background .4s var(--ease), border-color .4s, color .4s; }
.header--over { background: transparent; border-color: transparent; backdrop-filter: none; color: #fff; }
.header--over .logo__dark { display: none; }
.header--over .logo__light { display: block; }
.header--over .nav__sale { color: #ff5a68; }
.header--over .icon-btn:hover { background: rgba(255,255,255,.14); }
.header--over .badge { background: #fff; color: #000; }
.header--over:has(.search.open) { background: #fff; color: var(--ink); }
.header--over:has(.search.open) .logo__dark { display: block; }
.header--over:has(.search.open) .logo__light { display: none; }
.nav a { position: relative; border-bottom: 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* --- hero під хедером + липкий, наступна секція наїжджає зверху --- */
.hero { position: sticky; top: 0; z-index: 0; margin-top: -84px; height: 100svh; max-height: none; min-height: 560px; }
.hero__video { transform: scale(calc(1 + var(--hp, 0) * .08)); transform-origin: center 40%; will-change: transform; }
.hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 30%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.55) 100%); }
.hero__shade::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--hp, 0) * .6); }
.hero__title { top: 17%; }
.hero__title, .hero__cta { opacity: calc(1 - var(--hp, 0) * 1.4); translate: 0 calc(var(--hp, 0) * -70px); }
.home-rest { position: relative; z-index: 1; background: var(--bg); box-shadow: 0 -30px 60px rgba(0,0,0,.35); }
@media (max-width: 900px) {
  .hero { margin-top: -64px; min-height: 520px; }
  .hero__title { top: 13%; }
}
@media (max-width: 600px) { .hero__title { top: 11%; } }

/* вхід заголовка hero після завантаження */
.hero__title span { transition: opacity 1s var(--ease), translate 1s var(--ease); }
.hero__title span:first-of-type { translate: -60px 0; opacity: 0; }
.hero__title span:last-of-type { translate: 60px 0; opacity: 0; }
.hero__btn { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease) .35s, translate .8s var(--ease) .35s, background .3s, color .3s, border-color .3s; }
.hero__btn + .hero__btn { transition-delay: .45s, .45s, 0s, 0s, 0s; }
.hero--in .hero__title span { translate: 0 0; opacity: 1; }
.hero--in .hero__btn { opacity: 1; translate: 0 0; }
@media (max-width: 600px) {
  .hero__title span:first-of-type, .hero__title span:last-of-type { translate: 0 30px; }
  .hero--in .hero__title span { translate: 0 0; }
}

/* --- лоадер: козел стрибає по назві --- */
.loader { position: fixed; inset: 0; z-index: 1000; background: #fff; display: flex; align-items: center; justify-content: center; transition: opacity .5s var(--ease), visibility .5s; }
.loader--done { opacity: 0; visibility: hidden; }
.loader__stage { position: relative; padding-top: 70px; }
.loader__word { font-family: var(--accent-font); font-size: clamp(56px, 12vw, 128px); line-height: .8; letter-spacing: .02em; color: var(--ink); display: flex; }
.loader__word span { display: inline-block; animation: letterPop 1.5s var(--ease) both; }
.loader__word i { width: .28em; }
.loader__goat { position: absolute; top: 22px; left: -8%; width: clamp(44px, 7vw, 64px); animation: goatRun 1.5s linear both; }
.loader__goat svg { width: 100%; display: block; fill: var(--ink); overflow: visible; }
.loader__hop { animation: goatHop .375s infinite; transform-origin: 50% 90%; }
.loader__goat .leg { transform-box: fill-box; transform-origin: 50% 0; animation: legTuck .375s infinite; }
.loader__goat .leg--f { animation-name: legTuckF; }
@keyframes goatRun { from { left: -8%; } to { left: 100%; } }
@keyframes goatHop {
  0%   { transform: translateY(0) rotate(0); animation-timing-function: cubic-bezier(.25,.6,.4,1); }
  50%  { transform: translateY(-46px) rotate(-8deg); animation-timing-function: cubic-bezier(.6,0,.75,.4); }
  100% { transform: translateY(0) rotate(4deg); }
}
@keyframes legTuck { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(35deg); } }
@keyframes legTuckF { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-35deg); } }
@keyframes letterPop { 0% { opacity: 0; transform: translateY(14px); } 18% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
.loader__word span:nth-child(1)  { animation-delay: 0s; }
.loader__word span:nth-child(2)  { animation-delay: .06s; }
.loader__word span:nth-child(3)  { animation-delay: .12s; }
.loader__word span:nth-child(4)  { animation-delay: .18s; }
.loader__word span:nth-child(5)  { animation-delay: .24s; }
.loader__word span:nth-child(7)  { animation-delay: .30s; }
.loader__word span:nth-child(8)  { animation-delay: .36s; }
.loader__word span:nth-child(9)  { animation-delay: .42s; }
.loader__word span:nth-child(10) { animation-delay: .48s; }
.loader__word span:nth-child(11) { animation-delay: .54s; }
body.is-loading { overflow: hidden; }

/* --- плавні появи при скролі --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms), background .25s, color .25s; }
.reveal.in { opacity: 1; transform: none; }
#app.page-in > :not(.hero) { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.cat .sneaker { transition: transform .5s var(--ease); }
.icon-btn svg { transition: transform .25s var(--ease); }
.icon-btn:hover svg { transform: scale(1.08); }
.badge { animation: badgePop .35s var(--ease); }
@keyframes badgePop { from { transform: scale(.4); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   v4: Norguba у hero, Bebas без хінтингу, хедер «бургер · лого · іконки», новий пошук
   ===================================================================== */
@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/fonts/BebasNeue-Cyrillic-unhinted.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TBJ Norguba";
  src: url("../assets/fonts/TbjNorguba-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* hero: GOATY / STORE шрифтом TBJ Norguba */
.hero__title { font-family: "TBJ Norguba", var(--accent-font); font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
.hero__title span { transform: none; }

/* хедер однаковий на всіх пристроях: бургер зліва, лого по центру, іконки справа */
.burger { display: inline-flex; }
.logo { position: absolute; left: 50%; transform: translateX(-50%); }
.header__inner { gap: 8px; }
.mobile-nav__panel { width: min(400px, 86vw); padding-top: 72px; }

/* пошук */
.hsearch { position: relative; display: flex; align-items: center; }
.hsearch__btn { position: relative; z-index: 2; }
.hsearch__btn .i-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); }
.hsearch__btn .i-search, .hsearch__btn .i-close { transition: opacity .3s var(--ease), transform .4s var(--ease); }
.hsearch.open .hsearch__btn .i-search { opacity: 0; transform: rotate(90deg) scale(.6); }
.hsearch.open .hsearch__btn .i-close { opacity: 1; transform: none; }
.hsearch__field {
  position: absolute; right: 0; top: 50%; z-index: 1;
  width: 42px; height: 44px; translate: 0 -50%;
  background: #fff; color: var(--ink);
  border: 1px solid transparent; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: width .55s var(--ease), opacity .25s, border-color .3s, box-shadow .3s;
}
.hsearch.open .hsearch__field {
  width: min(440px, calc(100vw - 32px));
  opacity: 1; pointer-events: auto;
  border-color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35);
}
.hsearch__field input {
  width: 100%; height: 100%; border: 0; outline: none; background: transparent;
  padding: 0 48px 0 16px; font-size: 15px; color: var(--ink);
}
.hsearch__field input::placeholder { color: var(--ink-3); }
.hsearch__field input::-webkit-search-cancel-button { display: none; }
.hsearch.open .hsearch__btn { color: var(--ink); }
.hsearch.open .hsearch__btn:hover { background: transparent; }

.hsearch__drop {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 3;
  width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); padding: 16px;
  display: grid; gap: 6px;
  opacity: 0; translate: 0 -8px; pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease), translate .35s var(--ease), visibility .3s;
}
.hsearch.open .hsearch__drop { opacity: 1; translate: 0 0; pointer-events: auto; visibility: visible; transition-delay: .2s; }
.hsearch__drop:empty { display: none; }
.hsearch__label { font-family: var(--accent-font); font-size: 17px; letter-spacing: .08em; color: var(--ink-3); }
.hsearch__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hsearch__chips button { font-family: var(--accent-font); font-size: 18px; letter-spacing: .04em; padding: 6px 12px 4px; border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s; }
.hsearch__chips button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hsearch__all { justify-self: start; margin-top: 6px; }
.hsearch .search__item { padding: 6px; }
.hsearch .search__item .thumb { width: 64px; }
.hsearch .search__item b { font-family: var(--accent-font); font-weight: 400; font-size: 20px; letter-spacing: .02em; }
.hsearch .search__empty { font-size: 14px; }
@media (max-width: 600px) {
  .hsearch.open .hsearch__field { width: calc(100vw - 32px - 76px); }
  .hsearch__drop { width: calc(100vw - 32px); right: -76px; }
}
.hero__title { font-size: clamp(84px, 14.5vw, 300px); }
@media (max-width: 600px) { .hero__title { font-size: clamp(56px, 19vw, 110px); } }

/* =====================================================================
   v5: реальні фото товарів
   ===================================================================== */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__media { background: #efefef; }
.card__media .photo { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.card:hover .card__media .photo { transform: scale(1.05); }

.cat { background: #efefef; }
.cat .photo { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.cat:hover .photo { transform: scale(1.04); }
.cat:has(.photo)::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, rgba(239,239,239,0), rgba(239,239,239,.92)); }
.cat:has(.photo) h2, .cat:has(.photo) span { z-index: 1; }
.cat--sale h2 { color: var(--sale); }

.gallery--photo { grid-template-columns: 1fr; }
.gallery--photo .gallery__item, .gallery--photo .gallery__item:first-child { aspect-ratio: 1 / 1; background: #efefef; }
.gallery--photo .gallery__item:only-child { max-height: calc(100svh - 120px); }
@media (max-width: 900px) { .gallery--photo { grid-template-columns: 1fr; overflow: visible; margin: 0; padding: 0; } }

.colorway { overflow: hidden; }
.colorway .photo, .line .thumb .photo, .search__item .thumb .photo { aspect-ratio: 1 / 1; height: auto; }
.line .thumb { overflow: hidden; }

/* v6: однаковий масштаб взуття на фото різних джерел */
.photo { scale: var(--z, 1); }
.banner__visual { padding: 0; align-self: stretch; overflow: hidden; min-height: 320px; position: relative; }
.banner__visual .photo { position: absolute; inset: 0; }
.banner__visual { max-width: none; width: 100%; justify-self: stretch; }

/* =====================================================================
   v7: Нова Пошта, промокод, кабінет, cookies
   ===================================================================== */
.hint { font-size: 14px; color: var(--ink-2); margin: -4px 0 16px; }
.hint a, .auth__form p a { text-decoration: underline; text-underline-offset: 3px; }

.options--row { grid-template-columns: repeat(3, 1fr); }
.options--row .option { padding: 14px; }
@media (max-width: 640px) { .options--row { grid-template-columns: 1fr; } }

/* автодоповнення */
.field.np { position: relative; }
.field input:disabled { background: var(--bg-soft); color: var(--ink-3); cursor: not-allowed; }
.np__drop {
  position: absolute; z-index: 30; left: 0; right: 0; top: 78px;
  background: #fff; border: 1px solid var(--ink); max-height: 300px; overflow-y: auto;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.np__drop button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  padding: 11px 14px; text-align: left; font-size: 14px; line-height: 1.35; background: none; border: 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.np__drop button:last-child { border-bottom: 0; }
.np__drop button span { font-size: 12px; color: var(--ink-3); }
.np__drop button:hover, .np__drop button.on { background: var(--bg-soft); }
.np__empty { padding: 12px 14px; font-size: 14px; color: var(--ink-3); }
#checkoutForm:not(.is-courier) .courier-only { display: none; }
#checkoutForm.is-courier #whField { display: none; }

/* промокод */
.promo { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.promo input { height: 46px; padding: 0 14px; border: 1px solid var(--line); outline: none; text-transform: uppercase; min-width: 0; }
.promo input:focus { border-color: var(--ink); }
.promo .btn { height: 46px; padding: 0 18px; }
.promo small { grid-column: 1 / -1; color: var(--sale); font-size: 12px; }
.promo small:empty { display: none; }
.promo__ok { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--ink); font-size: 14px; }
.promo__ok button { background: none; border: 0; font-size: 13px; color: var(--ink-3); text-decoration: underline; cursor: pointer; }

.success__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.oitem { display: flex; justify-content: space-between; gap: 12px; text-align: left; }
.oitem small { display: block; color: var(--ink-3); font-size: 12px; }

/* меню: кабінет */
.mobile-nav__account { display: flex !important; align-items: center; gap: 10px; }
.mobile-nav__account::before {
  content: ""; width: 20px; height: 20px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* кабінет: вхід */
.account-loading { padding: 40px 0 120px; color: var(--ink-3); }
.auth { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 64px; padding-bottom: 100px; align-items: start; }
.auth__form { display: grid; gap: 14px; }
.auth__form h2 { font-size: 30px; }
.auth__form p { color: var(--ink-2); font-size: 14px; margin: -4px 0 4px; }
.auth__perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.auth__perks li { padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.auth__perks b { display: block; font-family: var(--accent-font); font-weight: 400; font-size: 24px; letter-spacing: .02em; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; gap: 32px; } }

/* кабінет: замовлення */
.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-bottom: 100px; align-items: start; }
.account__side { position: sticky; top: 96px; display: grid; gap: 20px; }
.account__card { display: grid; gap: 4px; padding: 20px; background: var(--bg-soft); font-size: 14px; color: var(--ink-2); }
.account__card b { font-size: 16px; color: var(--ink); }
.account__tabs { display: grid; border-top: 1px solid var(--line); }
.account__tabs button {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer; font-family: var(--accent-font); font-size: 22px; letter-spacing: .02em; color: var(--ink-3);
  transition: color .2s;
}
.account__tabs button:hover, .account__tabs button.on { color: var(--ink); }
.account__tabs small { font-family: inherit; font-size: 15px; background: var(--ink); color: #fff; min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.account__main { display: grid; gap: 16px; }
.order { border: 1px solid var(--line); }
.order__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.order__head div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.order__head b { font-family: var(--accent-font); font-weight: 400; font-size: 24px; letter-spacing: .03em; }
.order__head span { font-size: 13px; color: var(--ink-3); }
.order__items { display: grid; gap: 10px; padding: 16px 20px; font-size: 14px; }
.order__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 16px 20px; background: var(--bg-soft); }
.order__meta { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.order__meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.order__total { font-family: var(--accent-font); font-size: 28px; white-space: nowrap; }
.status { display: inline-block; padding: 5px 10px; font-family: var(--accent-font); font-size: 15px !important; letter-spacing: .06em; border: 1px solid currentColor; color: var(--ink) !important; white-space: nowrap; }
.status--new { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.status--shipped { background: #fff4d6; border-color: #e0b84a; }
.status--delivered { background: #e3f4e8; border-color: #4f9d69; }
.status--cancelled { color: var(--ink-3) !important; text-decoration: line-through; }
@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; gap: 24px; }
  .account__side { position: static; }
  .account__tabs { grid-auto-flow: column; grid-auto-columns: max-content; gap: 24px; border-top: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .account__tabs button { border-bottom: 2px solid transparent; padding: 10px 0; }
  .account__tabs button.on { border-bottom-color: var(--ink); }
  .order__foot { flex-direction: column; align-items: flex-start; }
}

/* cookie-банер */
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto;
  background: #fff; border: 1px solid var(--ink); padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.18);
  display: grid; gap: 14px; animation: cookieIn .5s var(--ease) both;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 14px; color: var(--ink-2); }
.cookie p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cookie__btns .btn { height: 44px; padding: 0 20px; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } }
@media (max-width: 480px) { .cookie__btns .btn { flex: 1; } }
.account__tabs small { margin-left: 8px; }

/* =====================================================================
   v8: паролі, згода з офертою, реквізити
   ===================================================================== */
.auth__switch { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth__switch button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 0 10px; margin-bottom: -1px; cursor: pointer; font-family: var(--accent-font); font-size: 28px; letter-spacing: .02em; color: var(--ink-3); transition: color .2s, border-color .2s; }
.auth__switch button.on { color: var(--ink); border-bottom-color: var(--ink); }
.auth__note { font-size: 13px !important; color: var(--ink-3) !important; margin: 0 !important; }
.auth__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.account-opt { margin: 8px 0 4px; }
.account-opt .agree { margin: 0 0 12px; }
.account-opt__pw { max-width: 420px; margin-bottom: 12px; }
.account-opt:not(:has(input[name="createAccount"]:checked)) .account-opt__pw { display: none; }

.field--check { margin: 0 0 20px; }
.field--check .agree { margin: 0; font-weight: 400; font-size: 13px; }
.field--check .agree a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.field--check.invalid .agree { color: var(--sale); }

.footer__contacts { display: grid; gap: 10px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 28px; padding-bottom: 4px; font-size: 13px; }
.footer__legal a { color: inherit; opacity: .7; transition: opacity .2s; }
.footer__legal a:hover { opacity: 1; }
.socials:empty { display: none; }

.prose .muted { color: var(--ink-3); font-size: 13px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose mark { background: #fff4d6; padding: 0 4px; }
.prose table.req { max-width: 620px; }
.prose table.req th, .prose table.req td { text-align: left; }
.prose table.req th { width: 200px; font-weight: 600; }
.footer__legal { margin-top: 40px; border-top: 1px solid #2a2a2a; }
.footer__legal + .footer__bottom { margin-top: 20px; border-top: 0; padding-top: 4px; }
.field--check .agree { align-items: center; }
.field--check input[type=checkbox] { height: 16px; width: 16px; padding: 0; flex: none; margin: 0; }

/* v9: бренди — завжди повні ряди при будь-якій кількості */
.brands { display: flex; flex-wrap: wrap; }
.brands a { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 6px; height: 128px; position: relative; overflow: hidden; }
.brands a b { font-weight: inherit; position: relative; z-index: 1; }
.brands a small { font-family: var(--body-font); font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--ink-3); position: relative; z-index: 1; transition: color .2s; }
.brands a::after { content: "→"; position: absolute; right: 16px; bottom: 12px; font-size: 18px; opacity: 0; transform: translateX(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.brands a:hover small { color: rgba(255,255,255,.6); }
.brands a:hover::after { opacity: 1; transform: none; }
@media (max-width: 1100px) { .brands a { flex: 1 1 25%; } }
@media (max-width: 560px) { .brands a { flex: 1 1 50%; height: 96px; } }

/* v10: розмірні сітки брендів */
.sc__wrap { overflow-x: auto; margin-top: 8px; }
table.sc { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
table.sc th, table.sc td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
table.sc th { background: var(--bg-soft); font-weight: 600; }
table.sc td:first-child, table.sc th:first-child { font-weight: 700; }
table.sc tr.on td { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.sc__title { margin: 18px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.sc__legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }
.sc__legend i { width: 14px; height: 14px; background: #0a0a0a; display: inline-block; }
.sc__note { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.sc__src { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.sc__src a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sc__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 8px; }
.sc__tabs button { height: 38px; padding: 0 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: var(--accent-font); font-size: 18px; letter-spacing: .03em; transition: background .2s, color .2s, border-color .2s; }
.sc__tabs button:hover { border-color: var(--ink); }
.sc__tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.prose table.sc { margin-top: 0; }
.prose table.sc td, .prose table.sc th { padding: 9px 10px; }

/* v11: плавний скрол робить Lenis — нативний smooth вимикаємо, щоб перехід між сторінками був миттєвим */
html.lenis { scroll-behavior: auto; }

/* =====================================================================
   v6: Telegram замість обраного, мобільні правки
   ===================================================================== */
/* hero на телефоні: назва між шиєю козла й кросівками */
@media (max-width: 600px) {
  .hero__title { top: 57%; font-size: clamp(46px, 15vw, 84px); }
}

/* плитки категорій на телефоні/планшеті: фото зверху, підпис окремою смугою під ним */
@media (max-width: 900px) {
  .cats .cat:has(.photo) { aspect-ratio: auto; height: auto; padding: 0; justify-content: flex-start; background: #efefef; }
  .cat:has(.photo)::after { display: none; }
  .cat .photo { position: relative; inset: auto; height: auto; aspect-ratio: 1 / 1; }
  .cats .cat:first-child .photo { aspect-ratio: 16 / 9; }
  .cat:has(.photo) h2 { background: #fff; padding: 12px 14px 0; margin: 0; }
  .cat:has(.photo) span { background: #fff; padding: 2px 14px 12px; margin: 0; }
}

/* фото товару: слайдер на телефонах і планшетах */
.gallery-wrap { position: relative; align-self: start; min-width: 0; }
.gallery-dots, .gallery-count { display: none; }
@media (max-width: 1024px) {
  .gallery--photo { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin: 0; padding: 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gallery--photo::-webkit-scrollbar { display: none; }
  .gallery--photo .gallery__item, .gallery--photo .gallery__item:first-child { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 1 / 1; max-height: none; }
  .gallery-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0 0; }
  .gallery-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c8c8c8; cursor: pointer; transition: background .2s, transform .2s; }
  .gallery-dots button.on { background: var(--ink); transform: scale(1.25); }
  .gallery-count { display: block; position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.9); padding: 3px 8px 1px; font-family: var(--accent-font); font-size: 15px; letter-spacing: .08em; pointer-events: none; }
}
@media (max-width: 767px) { .gallery-wrap { margin: 0 -16px; } }

/* на телефоні/планшеті великою зверху — «Новинки» (або Sale), а не «Чоловікам» */
@media (max-width: 900px) {
  .cats .cat:first-child { grid-column: auto; }
  .cats .cat:first-child .photo { aspect-ratio: 1 / 1; }
  .cats .cat--feature { order: -1; grid-column: 1 / -1; }
  .cats .cat--feature .photo { aspect-ratio: 16 / 9; }
}

/* =====================================================================
   Захист від копіювання: виділяти й копіювати можна лише в полях форм
   ===================================================================== */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* назви кросівок і дрібний текст можна виділити й скопіювати */
.card__brand, .card__name, .pinfo__brand, .pinfo h1, .line__name, .search__item b, .oitem > span,
p, li, td, th, dd, dt, small, address, .card__color, .price, .pinfo__meta, .acc div, .prose, .crumbs, .perks, .success__box, .footer, .line__meta, .sc__note, .sc__legend, .hint, .empty p { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, video, svg { -webkit-user-drag: none; user-drag: none; }
img { pointer-events: auto; }

/* текст лише для пошуковиків і скрінрідерів */
.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; }
.fh, .fh3 { margin: 0; }
.filter .fh { margin-bottom: 12px; }
.footer .fh { margin-bottom: 16px; }
.sc__title { font-family: var(--accent-font); font-weight: 400; }

/* стабільна розкладка (CLS): футер не «стрибає», поки сторінка домальовується */
#app { min-height: 100vh; min-height: 100svh; }

/* роботи й скріншоти Search Console: вміст видно одразу */
.no-anim .loader { display: none !important; }
.no-anim .reveal, .no-anim .hero__title span, .no-anim .hero__btn { opacity: 1 !important; transform: none !important; translate: none !important; transition: none !important; }
/* hero не розтягується на дуже високих екранах (і на «високому» вікні Googlebot) */
.hero { max-height: 1200px; }
.hero__video { background: #0a0a0a url("../assets/hero-poster.jpg") center 30% / cover no-repeat; }
