/* =========================================================
   NARODNIY - ТЕМА «90-ТІ»: база (сітка, відступи, логіка),
   а наприкінці файлу - шар 90-х: VHS, ларьок, килим, «адідас».
   ========================================================= */
:root {
  --bg:       #E2DED6;   /* фон сторінки */
  --bg-2:     #D6D1C7;   /* підкладки, наведення */
  --tile:     #EAE3D6;   /* = фон фото товарів */
  --ink:      #0F0E0D;
  --ink-soft: #5E5952;
  --line:     rgba(15, 14, 13, .16);
  --dark:     #171614;   /* темні блоки й підвал */
  --dark-2:   #24221F;
  --on-dark:  #E2DED6;
  --on-dark-soft: rgba(226, 222, 214, .62);
  --accent:   #6E2B22;   /* глибокий бордо: наліпки, помилки */

  --serif: 'Gagalin', Impact, 'Arial Black', sans-serif;
  --sans:  'PT Sans', 'Arial', sans-serif;
  --mono:  'PT Mono', 'Courier New', monospace;

  --gutter: 32px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
em { font-style: normal; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* ---------- Типографіка ---------- */
.eyebrow, .caps {
  margin: 0 0 18px; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
}
.section__title, .hero__title, .modal__title, blockquote, .pp__name {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0;
}
.section__title em, .hero__title em, .modal__title em, blockquote em { font-weight: 500; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--ink); transition: background .3s, color .3s, border-color .3s;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { border-color: var(--on-dark); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--dark); }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; font-size: 15px; transition: opacity .2s; }
.icon-btn:hover { opacity: .55; }

/* Текстове посилання з підкресленням */
.link, .u-link {
  font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px;
  transition: background-size .45s var(--ease-out);
}
.link:hover, .u-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.u-link { font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 40; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header__row { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); justify-self: center; }
.logo__text { font-family: var(--serif); font-size: 23px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; line-height: 1; }

.nav { position: relative; display: flex; gap: 26px; }
.nav__link { position: relative; padding: 8px 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-soft); transition: color .25s; }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__ink {
  position: absolute; bottom: 2px; left: 0; height: 1px; width: 0; background: var(--ink); pointer-events: none;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}

.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.cart-btn { display: flex; align-items: center; gap: 4px; padding: 8px 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.cart-btn:hover { opacity: .6; }
.cart-btn__count { display: inline-block; }
.cart-btn__count::before { content: '('; } .cart-btn__count::after { content: ')'; }
.cart-btn__count.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: translateY(-4px); } }

.burger { display: none; width: 40px; height: 40px; position: relative; }
/* Обидві риски стоять у центрі кнопки й розходяться лише через transform - хрестик завжди рівний */
.burger span { position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; margin-top: -.5px; background: var(--ink); transition: transform .4s var(--ease-out); }
.burger span:first-child { transform: translateY(-4px); } .burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 820px) {
  .header__row { grid-template-columns: auto 1fr auto; height: 60px; }
  .burger { display: block; order: -1; margin-left: -10px; }
  .logo { justify-self: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 60px); flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px;
    background: var(--bg); border-top: 1px solid var(--line);
    -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease);
  }
  .nav.open { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
  .nav__link { font-family: var(--serif); font-size: 34px; text-transform: none; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav__ink { display: none; }
  .logo__text { font-size: 16px; letter-spacing: .2em; }
}

/* ---------- Сторінки ---------- */
.page[hidden] { display: none; }
/* Поява під час прокрутки: м'яко проявляється, фото відкриваються «шторкою» */
[data-anim] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 40ms);
}
[data-anim].in { opacity: 1; transform: none; }
.wipe[data-anim] { opacity: 1; transform: none; -webkit-clip-path: inset(100% 0 0 0); clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 40ms); }
.wipe[data-anim] .wipe__img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); transition-delay: inherit; }
.wipe[data-anim].in { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
.wipe[data-anim].in .wipe__img { transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.section { padding: 110px var(--gutter); }
.section--top { padding-top: 56px; }
@media (max-width: 600px) { .section { padding: 72px var(--gutter); } .section--top { padding-top: 36px; } }
.section__head { margin-bottom: 48px; max-width: 760px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__title { font-size: 38px; font-size: clamp(38px, 5vw, 68px); line-height: 1; }
.section__lead { font-size: 16px; color: var(--ink-soft); margin: 22px 0 0; max-width: 520px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); min-height: min(calc(100vh - 68px), 880px); }
.hero > * { min-width: 0; }
.hero__visual { position: relative; display: flex; flex-direction: column; background: var(--tile); }
.hero__frame { position: relative; display: block; flex: 1; min-height: 420px; overflow: hidden; }
.hero__slide {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 4% 6%;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.2s var(--ease), transform 6s var(--ease-out);
}
.hero__slide.is-active { opacity: 1; transform: none; }
.hero__caption {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--gutter); border-top: 1px solid var(--line);
}
.hero__tag { display: flex; gap: 10px; align-items: baseline; min-width: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.hero__tag-label { color: var(--ink-soft); white-space: nowrap; }
.hero__tag-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__dots { display: flex; gap: 8px; flex: none; }
.hero__dot { width: 40px; height: 16px; position: relative; }
.hero__dot::before, .hero__dot::after { content: ''; position: absolute; left: 0; top: 7px; height: 1px; }
.hero__dot::before { right: 0; background: var(--line); }
/* Заповнення через transform, а не width: браузер малює його плавно, без «сходинок» по пікселю */
.hero__dot::after { right: 0; background: var(--ink); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.hero__dot.is-active::after { animation: dotFill var(--slide-ms, 5000ms) linear forwards; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__text {
  background: var(--dark); color: var(--on-dark); padding: 56px 24px; padding: 56px clamp(24px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__title { font-size: 46px; font-size: clamp(46px, 5.6vw, 92px); line-height: .95; font-weight: 500; }
.hero__title em { font-weight: 500; }
.hero__lead { font-size: 15px; color: var(--on-dark-soft); max-width: 420px; margin: 28px 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn--primary { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.hero__cta .btn--primary:hover { background: transparent; color: var(--on-dark); }
.hero__note { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid rgba(226,222,214,.18); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__frame { min-height: 0; aspect-ratio: 1 / 1; flex: none; }
  .hero__text { padding: 48px var(--gutter) 44px; }
}

/* ---------- Плитки брендів ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1440px; margin: 0 auto; padding: 56px var(--gutter) 110px; }
.tile { display: block; }
.tile__media { position: relative; overflow: hidden; background: var(--tile); aspect-ratio: 3 / 2; }
.tile__media img { width: 100%; height: 100%; object-fit: contain; padding: 6% 10%; transition: transform 1s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.05) translateX(-2%); }
.tile__cap { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.tile__cap b { font-weight: 500; }
.tile__cap span { color: var(--ink-soft); transition: color .25s; }
.tile:hover .tile__cap span { color: var(--ink); }
@media (max-width: 760px) {
  .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; gap: 10px; padding-top: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }
}

/* ---------- Картки товарів ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 2px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; gap: 40px; } }

.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; background: var(--tile); overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 4%; }
.card__img { transition: opacity .6s var(--ease), transform 1.2s var(--ease-out); }
.card__img--alt { position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: 100%; opacity: 0; }
.card:hover .card__img--main { opacity: 0; }
.card:hover .card__img--alt { opacity: 1; }
.card__badge {
  position: absolute; top: 14px; left: 14px; padding: 4px 9px;
  background: var(--bg); color: var(--ink); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
.card__badge--Хіт { background: var(--accent); color: var(--on-dark); }
.card__body { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 2px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__name { font-size: 13px; font-weight: 500; line-height: 1.35; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
.card__name a:hover { opacity: .6; }
.card__color { font-size: 13px; color: var(--ink-soft); }
.price { font-size: 13px; font-weight: 500; white-space: nowrap; }
.price s { margin-right: 8px; color: var(--ink-soft); font-weight: 400; }
.card.is-filtered-out { display: none; }
.grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .grid--two { grid-template-columns: 1fr; } }

/* ---------- Цитата ---------- */
.quote { padding: 140px 0; text-align: center; border-top: 1px solid var(--line); }
blockquote { font-size: 34px; font-size: clamp(34px, 5vw, 72px); line-height: 1.02; font-weight: 500; max-width: 1000px; margin: 0 auto; }
.quote__cite { margin: 32px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 600px) { .quote { padding: 90px 0; } }

/* ---------- Фільтри ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 22px; }
.filter { padding: 4px 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-soft); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .4s var(--ease-out); }
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); background-size: 100% 1px; }

/* Порожній розділ (одяг, аксесуари - поки без товарів) */
.cat-empty { grid-column: 1 / -1; padding: 90px 0 60px; border-top: 1px solid var(--line); max-width: 560px; }
.cat-empty h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 0 0 14px; }
.cat-empty .muted { margin: 0 0 30px; }

/* ---------- Доставка ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.info-card { background: var(--dark); color: var(--on-dark); padding: 36px 32px 40px; min-height: 280px; display: flex; flex-direction: column; }
.info-card--blue { background: var(--dark-2); }
.info-card--red { background: var(--accent); }
.info-card__num { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--on-dark-soft); }
.info-card h3 { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1; margin: auto 0 14px; padding-top: 48px; }
.info-card p { margin: 0; color: var(--on-dark-soft); }
.faq { margin-top: 90px; max-width: 860px; }
.faq__title { font-family: var(--serif); font-weight: 600; font-size: 40px; margin: 0 0 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 20px; font-weight: 500; transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 640px; animation: rise .5s var(--ease-out); }

/* ---------- Підвал ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding: 80px 0 28px; font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 80px; }
.footer .logo { justify-self: start; color: var(--on-dark); }
.footer__about { color: var(--on-dark-soft); max-width: 300px; margin: 20px 0 0; }
.footer__col h4 { margin: 0 0 16px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-soft); }
.footer__col a, .footer__contacts a { display: block; padding: 3px 0; width: fit-content; transition: opacity .2s; }
.footer__col a:hover, .footer__contacts a:hover { opacity: .55; }
.footer__contacts:empty::before { content: 'Скоро тут з\2019 являться'; color: var(--on-dark-soft); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(226,222,214,.14); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-soft); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* =========================================================
   ПЕРЕХІД МІЖ ВКЛАДКАМИ: м'яке затемнення з назвою розділу
   ========================================================= */
.curtain {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; pointer-events: none; background: var(--dark); color: #F2EEE6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  opacity: 0; visibility: hidden; transition: opacity .4s ease-in-out, visibility 0s .4s;
}
.curtain.is-closing, .curtain.is-opening { visibility: visible; transition: opacity .4s ease-in-out; }
.curtain.is-closing { opacity: 1; }
.curtain__label { font-family: var(--serif); font-weight: 600; font-size: 44px; font-size: clamp(44px, 6.5vw, 88px); line-height: 1; letter-spacing: -.01em; }
.curtain__label { opacity: 0; transform: translateY(10px); transition: opacity .3s ease-out, transform .45s var(--ease-out); }
.curtain.is-closing .curtain__label { opacity: 1; transform: none; transition-delay: .08s; }

/* =========================================================
   Модалка, кошик, форма
   ========================================================= */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal__backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(15, 14, 13, .5); opacity: 0; transition: opacity .4s; }
.modal.open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg); padding: 40px 36px 36px;
  opacity: 0; transform: translateY(24px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
}
.modal.open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.modal__title { font-size: 46px; line-height: 1; margin-bottom: 10px; font-weight: 500; }
@media (max-width: 600px) { .modal__panel { padding: 34px 20px 24px; } }

/* =========================================================
   Сторінка товару
   ========================================================= */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

.pp { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.pp > * { min-width: 0; }
@media (max-width: 960px) { .pp { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Галерея */
.pg { position: sticky; top: 90px; }
@media (max-width: 960px) { .pg { position: static; } }
.pg__main {
  position: relative; aspect-ratio: 1; overflow: hidden; background: var(--tile);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
@media (hover: hover) and (pointer: fine) { .pg__main { cursor: zoom-in; } }
.pg__img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease-out);
}
.pg__img.is-active { opacity: 1; }
.pg__main.is-zoom .pg__img.is-active { transform: scale(2.2); transition: transform .35s var(--ease-out), opacity .7s var(--ease); }
.pg__label, .pg__count { position: absolute; bottom: 16px; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; transition: opacity .3s; }
.pg__label { left: 18px; }
.pg__count { right: 18px; color: var(--ink-soft); }
.pg__main.is-zoom .pg__label, .pg__main.is-zoom .pg__count, .pg__main.is-zoom .pg__arrow { opacity: 0; }
.pg__arrow {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px;
  background: var(--bg); font-size: 16px; display: grid; place-items: center;
  opacity: 0; transition: opacity .3s, background .2s, color .2s;
}
.pg__arrow--prev { left: 14px; } .pg__arrow--next { right: 14px; }
.pg__main:hover .pg__arrow { opacity: 1; }
.pg__arrow:hover { background: var(--ink); color: var(--bg); }
@media (hover: none) { .pg__arrow { opacity: 1; width: 38px; height: 38px; margin-top: -19px; } }
.pg__thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
.pg__thumb { aspect-ratio: 1; overflow: hidden; background: var(--tile); opacity: .5; transition: opacity .3s; position: relative; }
.pg__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg__thumb:hover { opacity: .85; }
.pg__thumb.is-active { opacity: 1; }
.pg__thumb.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
@media (max-width: 600px) {
  .pg__thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62px; overflow-x: auto; scrollbar-width: none; }
  .pg__thumbs::-webkit-scrollbar { display: none; }
}

/* Інформація */
.pp__info .eyebrow { color: var(--ink-soft); margin-bottom: 10px; }
.pp__name { font-size: 40px; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; margin: 0 0 12px; font-weight: 500; }
.pp__color { color: var(--ink-soft); font-size: 13px; margin: 0; }
.pp__price { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 30px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pp__price .price { font-size: 18px; }
.pp__price s { font-size: 14px; color: var(--ink-soft); }
.pp__story p { color: var(--ink-soft); margin: 0 0 14px; }
.specs { list-style: none; padding: 0; margin: 24px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.specs li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; }
.sizes-label { display: flex; align-items: baseline; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 12px; }
.sizes-label em { font-style: normal; color: var(--ink-soft); margin-left: 10px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); margin-bottom: 22px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.size { background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s, color .2s; }
.size:hover { background: var(--bg-2); }
.size.is-active { background: var(--ink); color: var(--bg); }
.pp__buy { display: flex; gap: 12px; }
.pp__buy .btn { flex: 1; padding: 19px 28px; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.perks li { display: flex; gap: 12px; align-items: baseline; }
.perks li::before { content: '-'; flex: none; }

.pp-block { margin-top: 130px; }
@media (max-width: 600px) { .pp-block { margin-top: 80px; } }
.pp-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.pp-details--one { grid-template-columns: minmax(0, 720px); }
@media (max-width: 700px) { .pp-details { grid-template-columns: 1fr; } }
.pp-details figure { margin: 0; }
.pp-details .frame { overflow: hidden; background: var(--tile); }
.pp-details img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pp-details figcaption { font-size: 13px; margin-top: 14px; padding: 0 16px; color: var(--ink-soft); }

/* =========================================================
   «Великим планом» на головній
   ========================================================= */
.closeups { background: var(--dark); color: var(--on-dark); padding: 120px 0 130px; }
@media (max-width: 600px) { .closeups { padding: 80px 0 90px; } }
.section__head--light .eyebrow { color: var(--on-dark-soft); }
.section__head--light .section__lead { color: var(--on-dark-soft); }
.closeups__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 2px; }
.closeup { position: relative; display: block; overflow: hidden; background: var(--tile); }
.closeup:first-child { grid-row: span 2; }
.closeup img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.closeup:hover img { transform: scale(1.05) !important; }
.closeup__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(15,14,13,.62)); color: var(--on-dark);
  font-size: 13px; line-height: 1.4;
}
.closeup__cap small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
@media (max-width: 860px) {
  .closeups__grid { grid-template-columns: 1fr 1fr; }
  .closeup:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .closeups__grid { grid-template-columns: 1fr; }
  .closeup:first-child { grid-column: auto; }
}

/* =========================================================
   Кошик
   ========================================================= */
.drawer-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; background: rgba(15, 14, 13, .45); opacity: 0; pointer-events: none; transition: opacity .4s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(460px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .6s var(--ease);
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.drawer__head h2 span { color: var(--ink-soft); }
.drawer__items { flex: 1; overflow-y: auto; padding: 0 24px; display: flex; flex-direction: column; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.drawer__foot[hidden] { display: none; }

.line-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); animation: rise .45s var(--ease-out); }
.line-item img { width: 96px; height: 120px; object-fit: contain; background: var(--tile); padding: 6px; }
.line-item__top { display: flex; justify-content: space-between; gap: 8px; }
.line-item__name { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; line-height: 1.35; }
.line-item__meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.line-item__remove { color: var(--ink-soft); font-size: 13px; min-width: 40px; min-height: 40px; margin: -10px -10px 0 0; display: grid; place-items: center; }
.line-item__remove:hover { color: var(--ink); }
.line-item__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 30px; height: 30px; transition: background .2s; }
@media (hover: none), (max-width: 600px) { .qty button { width: 40px; height: 40px; font-size: 16px; } }
.qty button:hover { background: var(--bg-2); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.line-item__price { font-size: 13px; font-weight: 500; }

.empty { margin: auto; text-align: center; padding: 40px 0; }
.empty h3 { font-family: var(--serif); font-weight: 500; font-size: 36px; margin: 0 0 6px; }
.empty .btn { margin-top: 22px; }

.sum-row { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 13px; }
.sum-row--total { color: var(--ink); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; margin: 6px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ship-bar { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.ship-bar b { color: var(--ink); font-weight: 500; }
.ship-bar__track { height: 2px; background: var(--line); overflow: hidden; margin-top: 10px; }
.ship-bar__fill { height: 100%; background: var(--ink); transition: width .6s var(--ease-out); }
.ship-bar--ok { color: var(--ink); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }

/* =========================================================
   Форма замовлення
   ========================================================= */
#orderForm { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.field input {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0; outline: none; transition: border-color .2s;
}
.field input::placeholder { color: #9A948A; }
.field input:focus { border-color: var(--ink); }
.field__err { display: none; font-style: normal; font-size: 12px; color: var(--accent); }
.field.invalid input { border-color: var(--accent); }
.field.invalid .field__err { display: block; }
.to-pay { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--ink); margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; font-weight: 500; }
.to-pay strong { font-size: 18px; font-weight: 500; }

.done { text-align: center; padding: 10px 0; }
.done[hidden] { display: none; }
.done__stamp {
  width: 72px; height: 72px; margin: 0 auto 24px; border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; animation: rise .6s var(--ease-out);
}
.done__stamp svg { width: 30px; height: 30px; }
.done .btn { margin-top: 24px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95; max-width: calc(100% - 32px);
  padding: 13px 22px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s .5s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out); }

/* =========================================================
   Переваги на головній
   ========================================================= */
.perks-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; padding-top: 110px; padding-bottom: 110px; }
@media (max-width: 860px) { .perks-row { grid-template-columns: 1fr; gap: 28px; padding-top: 72px; padding-bottom: 72px; } }
.perk { border-top: 1px solid var(--ink); padding-top: 18px; }
.perk h3 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 10px; }
.perk p { margin: 0; color: var(--ink-soft); max-width: 340px; }

/* =========================================================
   Перемикач «Чоловічі / Жіночі»
   ========================================================= */
.seg { display: inline-flex; gap: 18px; }
.seg__btn { padding: 4px 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-soft); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .4s var(--ease-out); }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { color: var(--ink); background-size: 100% 1px; }

/* =========================================================
   Розміри на сторінці товару
   ========================================================= */
.size-pick__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.size-pick__head .sizes-label { margin: 0; }
.size { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; }
.size__eu { font-size: 14px; font-weight: 500; line-height: 1.1; }
.size__price { font-size: 10.5px; color: var(--ink-soft); line-height: 1.1; }
.size.is-active .size__price { color: rgba(226, 222, 214, .7); }
.size-pick__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -6px 0 22px; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.size-pick__foot .link { font-size: 12px; }

/* =========================================================
   Сторінка «Розміри»
   ========================================================= */
.steps { list-style: none; padding: 0; margin: 0 0 90px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--bg-2); padding: 30px 28px 34px; }
.step__num { position: absolute; top: 24px; right: 26px; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.step__art { width: 120px; height: 90px; color: var(--ink); margin-bottom: 26px; }
.step__art text { font-family: var(--sans); }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.05; margin: 0 0 10px; }
.step p { margin: 0; color: var(--ink-soft); }

.size-guide { max-width: 860px; }
.size-guide__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.size-guide__head h3 { font-family: var(--serif); font-weight: 600; font-size: 40px; margin: 0; }
.table-wrap { border-top: 1px solid var(--ink); margin-bottom: 18px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table[hidden] { display: none; }
.size-table th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); padding: 14px 0; border-bottom: 1px solid var(--line); }
.size-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.size-table tbody tr { transition: background .2s; }
.size-table tbody tr:hover { background: var(--bg-2); }
.size-table td:first-child { font-weight: 500; }

.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 80px; }
@media (max-width: 960px) { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tips { grid-template-columns: 1fr; } }
.tip { border-top: 1px solid var(--line); padding-top: 18px; }
.tip h4 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 8px; }
.tip p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* =========================================================
   Склад замовлення у формі
   ========================================================= */
.co-items { list-style: none; padding: 0; margin: 20px 0 4px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.co-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-items b { font-weight: 500; }
.co-items span:last-child { white-space: nowrap; font-weight: 500; }
/* Довгий текст замість суми - на вузькому телефоні переноситься, а не обрізається */
.co-items .co-note { white-space: normal; text-align: right; }
.opt { font-style: normal; text-transform: none; letter-spacing: 0; }
.btn.is-loading { opacity: .6; pointer-events: none; }

/* Менше руху - для тих, кому так комфортніше */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-anim] { opacity: 1; transform: none; }
}

/* =========================================================
   ШАР «90-ТІ»
   Вигорілі шпалери, червоні титри, синій «адідас», жовтий
   ларьок, VHS-касета й бабусин килим. Шрифт заголовків - Gagalin
   (Iordanis Passas, безкоштовний, див. fonts/Gagalin-license.txt).
   ========================================================= */
@font-face {
  font-family: 'Gagalin';
  /* .woff - той самий шрифт, лише стиснутий (148 КБ замість 245; narodniy-tools/woff.ps1) */
  src: url('fonts/Gagalin-Regular.woff') format('woff'), url('fonts/Gagalin-Regular.otf') format('opentype');
  font-display: swap;
}

:root {
  --bg:       #D8CCAF;   /* вигорілі шпалери / газета */
  --bg-2:     #CBBC99;
  --tile:     #EAE3D6;   /* = фон фото товарів */
  --ink:      #1C1813;
  --ink-soft: #5B5244;
  --line:     rgba(28, 24, 19, .28);
  --dark:     #191512;   /* під'їзд увечері */
  --dark-2:   #2A231C;
  --on-dark:  #EFE6D2;
  --on-dark-soft: rgba(239, 230, 210, .66);
  --red:      #B11E1A;   /* титри */
  --blue:     #1C3B9C;   /* спортивний костюм */
  --yellow:   #F2C230;   /* ларьок, цінник */
  --carpet:   #6B1414;   /* килим на стіні */
  --vhs:      #1A2CC4;   /* синій екран відика */
  --accent:   var(--red);
  --shadow:   5px 5px 0 var(--ink);
}

body { font-size: 16px; letter-spacing: 0; }
/* Легке «зерно» плівки, нерухоме */
body::after {
  content: ''; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Заголовки - Gagalin, лише великі літери */
.section__title, .hero__title, .modal__title, blockquote, .pp__name,
.cat-empty h3, .info-card h3, .faq__title, .empty h3, .step h3, .size-guide__head h3, .curtain__label {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .01em;
}
.section__title { font-size: 40px; font-size: clamp(40px, 5.4vw, 76px); line-height: .95; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  background: var(--ink); color: var(--yellow); padding: 4px 10px; margin-bottom: 20px;
}

/* ---------- Кнопки: товсті, з тінню, як наліпки ---------- */
.btn {
  font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: .02em;
  padding: 15px 26px 13px; border: 3px solid var(--ink); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow); color: var(--ink); }
.btn--ghost { background: var(--bg); }
.btn--ghost:hover { background: var(--ink); color: var(--yellow); }
.btn--light { background: transparent; border-color: var(--on-dark); color: var(--on-dark); box-shadow: 5px 5px 0 rgba(0,0,0,.45); }
.btn--light:hover { background: var(--on-dark); color: var(--red); }
.link { color: var(--blue); font-weight: 700; background-size: 100% 2px; }
.link:hover { color: var(--red); }

/* ---------- Шапка: вивіска ларька ---------- */
.header { background: var(--dark); color: var(--on-dark); border-bottom: 4px solid var(--red); }
.header.is-scrolled { border-color: var(--red); }
.logo { color: var(--yellow); }
.logo__text { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: .06em; text-shadow: 3px 3px 0 var(--red); }
.nav__link { font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--on-dark-soft); letter-spacing: .03em; }
.nav__link:hover, .nav__link.is-active { color: var(--yellow); }
.nav__ink { height: 3px; bottom: 0; background: var(--yellow); }
.cart-btn { font-family: var(--serif); font-size: 16px; background: var(--yellow); color: var(--ink); padding: 8px 14px 6px; box-shadow: 3px 3px 0 var(--red); }
.cart-btn:hover { opacity: 1; transform: translate(-1px, -1px); }
.burger span { background: var(--on-dark); height: 3px; margin-top: -1.5px; }
@media (max-width: 820px) {
  .nav { background: var(--dark); border-top: 0; }
  .nav__link { font-size: 40px; color: var(--on-dark); border-bottom: 1px solid rgba(239,230,210,.15); }
  .logo__text { font-size: 24px; }
}

/* ---------- Hero ---------- */
.hero__visual { background: var(--tile); border-right: 4px solid var(--ink); }
.hero__caption { background: var(--ink); color: var(--on-dark); border-top: 0; }
.hero__tag { font-family: var(--mono); font-size: 14px; }
.hero__tag-label { color: var(--yellow); }
.hero__dot::before { background: rgba(239,230,210,.25); height: 3px; }
.hero__dot::after { background: var(--yellow); height: 3px; }

.hero__text { background: var(--red); color: var(--on-dark); }
.hero__text .eyebrow { background: var(--ink); color: var(--yellow); }
.hero__title { font-size: 50px; font-size: clamp(50px, 6vw, 104px); line-height: .9; text-shadow: 4px 4px 0 var(--ink); }
.hero__lead { color: rgba(239,230,210,.9); font-size: 17px; }
.hero__cta .btn--primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.hero__cta .btn--primary:hover { background: var(--yellow); color: var(--ink); }
.hero__note { font-family: var(--mono); font-size: 13px; color: rgba(239,230,210,.85); border-top: 2px dashed rgba(239,230,210,.35); }
@media (max-width: 900px) { .hero__visual { border-right: 0; border-bottom: 4px solid var(--ink); } }
/* Телефон: 8 смужок не влазять поруч із підписом - підпис зверху, смужки на всю ширину під ним */
@media (max-width: 600px) {
  .hero__caption { flex-wrap: wrap; gap: 10px; padding-top: 14px; padding-bottom: 6px; }
  .hero__tag { flex: 1 1 100%; }
  .hero__dots { flex: 1 1 100%; gap: 6px; }
  .hero__dot { flex: 1; width: auto; min-width: 0; height: 28px; }
  .hero__dot::before, .hero__dot::after { top: 12px; }
}

/* ---------- Плитки брендів: вкладиші з жуйки ---------- */
.tiles { padding-top: 70px; gap: 28px; }
.tile { background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 10px 10px 0; transition: transform .25s; }
.tile:nth-child(1) { transform: rotate(-2deg); }
.tile:nth-child(2) { transform: rotate(1.4deg); }
.tile:nth-child(3) { transform: rotate(-1deg); }
.tile:hover { transform: rotate(0) translateY(-6px); }
.tile:hover .tile__media img { transform: scale(1.06); }
.tile__media { border: 2px solid var(--ink); }
.tile__cap { padding: 12px 4px 12px; font-family: var(--serif); font-size: 22px; }
.tile__cap b { font-weight: 400; color: var(--red); }
.tile__cap span { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--yellow); padding: 2px 8px; }
@media (max-width: 760px) { .tile, .tile:nth-child(n) { transform: none; } .tiles { padding-left: var(--gutter); padding-bottom: 80px; } }

/* ---------- Картки товарів: вітрина ларька з цінниками ---------- */
.grid { gap: 48px 28px; }
.card { background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.card__media { border-bottom: 3px solid var(--ink); }
.card__badge { font-family: var(--serif); font-weight: 400; font-size: 15px; background: var(--blue); color: #fff; padding: 5px 10px 3px; transform: rotate(-4deg); }
.card__badge--Хіт { background: var(--red); }
.card__body { padding: 16px 16px 18px; }
.card__row { flex-direction: column; align-items: flex-start; gap: 10px; }
.card__name { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.05; }
.card__color { font-family: var(--mono); font-size: 13px; }
.card .price {
  order: 2; font-family: var(--serif); font-size: 22px; background: var(--yellow); padding: 5px 12px 3px;
  border: 2px solid var(--ink); transform: rotate(-2deg);
}
.card .price::before { content: 'ЦІНА: '; font-family: var(--mono); font-size: 12px; font-weight: 700; vertical-align: 3px; }

/* ---------- «Великим планом»: килим на стіні ---------- */
.closeups {
  background-color: var(--carpet);
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 9px, rgba(242,194,48,.22) 9px 11px, transparent 11px),
    linear-gradient(45deg, rgba(0,0,0,.18) 25%, transparent 25% 75%, rgba(0,0,0,.18) 75%),
    linear-gradient(-45deg, rgba(0,0,0,.18) 25%, transparent 25% 75%, rgba(0,0,0,.18) 75%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 46px);
  background-size: 46px 46px, 46px 46px, 46px 46px, auto;
  border-top: 10px double var(--yellow); border-bottom: 10px double var(--yellow);
}
.closeups .section__title { color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); }
.closeups .section__lead { color: var(--on-dark); background: rgba(25,21,18,.7); padding: 10px 14px; display: inline-block; }
.closeups__grid { gap: 14px; }
.closeup { border: 4px solid var(--on-dark); }
.closeup__cap { background: var(--yellow); color: var(--ink); left: 12px; right: auto; bottom: 12px; max-width: calc(100% - 24px); padding: 8px 12px; font-weight: 700; font-size: 14px; }
.closeup__cap small { font-family: var(--serif); font-weight: 400; font-size: 14px; color: var(--red); opacity: 1; }

/* ---------- Переваги: смужки «адідас» ---------- */
.perk { border-top: 0; background: var(--bg); border: 3px solid var(--ink); padding: 0 22px 24px; box-shadow: var(--shadow); }
.perk::before { content: ''; display: block; height: 22px; margin: 0 -22px 20px; background: var(--blue) repeating-linear-gradient(to bottom, transparent 0 4px, #fff 4px 7px, transparent 7px 9px) center / 100% 18px no-repeat; }
.perk h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; }
.perk p { color: var(--ink); }

/* ---------- Цитата: вирізка з газети ---------- */
.quote { border-top: 0; padding: 120px 0; }
.quote blockquote {
  background: #EFE7D3; color: var(--ink); max-width: 900px; padding: 50px 40px; border: 1px solid rgba(0,0,0,.2);
  box-shadow: 0 14px 30px rgba(0,0,0,.18); transform: rotate(-1.5deg);
  font-size: 32px; font-size: clamp(32px, 4.6vw, 64px); line-height: 1;
}
.quote blockquote em { color: var(--red); }
.quote__cite { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--ink); margin-top: 40px; }

/* ---------- Фільтри й перемикачі ---------- */
.filters { gap: 10px; }
.filter, .seg__btn {
  font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 2px solid var(--ink); padding: 7px 14px 5px; background-image: none;
}
.filter:hover, .seg__btn:hover { background: var(--yellow); }
.filter.is-active, .seg__btn.is-active { background: var(--ink); color: var(--yellow); }
/* Рядок моделей під брендами: з'являється, коли в обраного бренду кілька моделей */
.filters-wrap { display: flex; flex-direction: column; gap: 10px; }
.filters--models:empty { display: none; }
/* Блок «Скоро» для бренду без товарів і його кнопки */
.cat-empty[hidden], .cat-empty [hidden] { display: none !important; }
.filters--models { gap: 8px; }
.filters--models .filter { font-size: 14.5px; padding: 6px 12px 4px; }
.seg { gap: 8px; }
.cat-empty { border-top: 0; background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 44px 40px; }
.cat-empty h3 { color: var(--red); }

/* ---------- Сторінка товару ---------- */
.crumbs { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); }
.crumbs a:hover { color: var(--red); }
.pg__main { border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--blue); }
.pg__label, .pg__count { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: .06em; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.55); z-index: 2; }
.pg__label::before { content: '▶ '; }
.pg__arrow { background: var(--yellow); border: 3px solid var(--ink); z-index: 3; font-weight: 700; }
.pg__arrow:hover { background: var(--ink); color: var(--yellow); }
.pg__thumbs { gap: 8px; margin-top: 14px; }
.pg__thumb { border: 2px solid var(--ink); opacity: .6; }
.pg__thumb.is-active::after { height: 5px; background: var(--red); }
.pp__info .eyebrow { color: var(--yellow); }
.pp__name { font-size: 42px; font-size: clamp(42px, 4.8vw, 72px); line-height: .92; color: var(--red); text-shadow: 3px 3px 0 var(--ink); }
.pp__color { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.pp__price { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.pp__price .price { font-family: var(--serif); font-size: 34px; background: var(--yellow); padding: 4px 14px 2px; border: 2px solid var(--ink); transform: rotate(-2deg); }
.pp__story p { color: var(--ink); }
.specs li { font-family: var(--mono); font-size: 13px; font-weight: 700; border-top: 2px dashed var(--line); }
.sizes-label { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.sizes-label em { font-family: var(--mono); font-size: 13px; color: var(--red); }
.sizes { gap: 6px; border: 0; }
.size { border: 2px solid var(--ink); background: #fff; }
.size:hover { background: var(--yellow); }
.size.is-active { background: var(--blue); color: #fff; }
.size__eu { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.size__price { font-family: var(--mono); }
.size-pick__foot { font-family: var(--mono); font-weight: 700; }
.pp__buy .btn { font-size: 22px; padding: 18px 28px 15px; }
.perks { font-family: var(--mono); color: var(--ink); }
.perks li::before { content: '■'; color: var(--red); }
.pp-details .frame { border: 4px solid var(--ink); }
.pp-details figcaption { font-family: var(--mono); font-weight: 700; color: var(--ink); padding: 0; }

/* ---------- Доставка, розміри ---------- */
.cards3 { gap: 22px; }
.info-card { border: 3px solid var(--ink); box-shadow: var(--shadow); background: var(--dark); }
.info-card--blue { background: var(--blue); }
.info-card--red { background: var(--red); }
.info-card__num { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--yellow); }
.info-card h3 { font-size: 40px; }
.info-card p { color: rgba(239,230,210,.88); }
.faq__title { color: var(--red); }
.faq details { border-top: 2px dashed var(--line); }
.faq details:last-child { border-bottom: 2px dashed var(--line); }
.faq summary { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.faq summary::after { color: var(--red); font-family: var(--serif); font-size: 28px; }
.faq details p { color: var(--ink); }
.step { background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.steps { gap: 22px; }
.step__num { font-family: var(--serif); font-size: 34px; color: var(--red); }
.step__art { color: var(--blue); }
.step p, .tip p { color: var(--ink); }
.size-guide__head h3 { color: var(--red); }
.table-wrap { border: 3px solid var(--ink); background: #fff; box-shadow: var(--shadow); }
.size-table th { background: var(--blue); color: #fff; font-family: var(--serif); font-weight: 400; font-size: 15px; padding: 12px 18px; }
.size-table td { padding: 11px 18px; font-family: var(--mono); font-weight: 700; }
.size-table tbody tr:hover { background: var(--yellow); }
.tip { border-top: 4px solid var(--red); }
.tip h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; }

/* ---------- Підвал: під'їзд + «адідас» ---------- */
.footer { border-top: 0; position: relative; padding-top: 110px; }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 34px; background: var(--blue) repeating-linear-gradient(to bottom, transparent 0 7px, #fff 7px 11px, transparent 11px 15px) center 3px / 100% 30px no-repeat; }
.footer .logo__text { font-size: 34px; }
.footer__col h4 { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--yellow); }
.footer__col a, .footer__contacts a { font-family: var(--mono); font-size: 14px; }
.footer__col a:hover, .footer__contacts a:hover { opacity: 1; color: var(--yellow); }
.footer__bottom { font-family: var(--mono); font-size: 13px; }

/* =========================================================
   ПЕРЕХІД: синій екран відика «▶ PLAY» (м'яке проявлення)
   ========================================================= */
.curtain { background: var(--vhs); color: #fff; gap: 18px; }
.curtain__osd { font-family: var(--mono); font-weight: 700; font-size: 22px; letter-spacing: .08em; opacity: 0; transition: opacity .3s ease-out; text-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.curtain.is-closing .curtain__osd { opacity: 1; transition-delay: .06s; }
.curtain__label { font-size: 48px; font-size: clamp(48px, 7vw, 100px); text-shadow: 4px 4px 0 rgba(0,0,0,.35); }
/* На телефоні найдовша назва («Конфіденційність») виходила за край екрана - там шрифт трохи менший */
@media (max-width: 600px) { .curtain__label { font-size: min(48px, 10vw); text-align: center; padding: 0 16px; } }

/* ---------- Кошик, форма, модалка ---------- */
.drawer { background: var(--bg); border-left: 4px solid var(--ink); }
.drawer__head { background: var(--dark); color: var(--yellow); border-bottom: 4px solid var(--red); }
.drawer__head h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.drawer__head h2 span { color: var(--on-dark-soft); }
.drawer__head .icon-btn { color: var(--on-dark); }
.line-item { border-bottom: 2px dashed var(--line); }
.line-item img { border: 2px solid var(--ink); }
.line-item__name { font-family: var(--serif); font-weight: 400; font-size: 17px; }
.line-item__meta, .sum-row, .ship-bar { font-family: var(--mono); color: var(--ink); }
.qty { border: 2px solid var(--ink); background: #fff; }
.line-item__price { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.sum-row--total { font-family: var(--serif); font-weight: 400; font-size: 24px; border-top: 3px solid var(--ink); }
.ship-bar__track { height: 10px; border: 2px solid var(--ink); background: #fff; }
.ship-bar__fill { background: repeating-linear-gradient(-45deg, var(--red) 0 8px, var(--yellow) 8px 16px); }
.drawer__foot { border-top: 3px solid var(--ink); }
.empty h3 { color: var(--red); }
.modal__panel { background: var(--bg); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--blue); }
.modal__title { color: var(--red); font-size: 48px; }
.field > span { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); }
.field input { background: #fff; border: 2px solid var(--ink); padding: 11px 12px; font-family: var(--mono); font-size: 16px; /* менше 16px - iPhone сам збільшує сторінку при натисканні на поле */ }
.field input:focus { border-color: var(--blue); box-shadow: 3px 3px 0 var(--blue); }
.co-items li { font-family: var(--mono); border-bottom: 2px dashed var(--line); }
.to-pay { font-family: var(--serif); font-weight: 400; font-size: 18px; border-top: 3px solid var(--ink); }
.to-pay strong { font-size: 28px; background: var(--yellow); padding: 2px 10px 0; }
.done__stamp { border: 4px solid var(--red); color: var(--red); transform: rotate(-8deg); }
.toast { font-family: var(--serif); font-weight: 400; font-size: 16px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); }

/* Пастка для спам-ботів у формі замовлення: поле сховане від людей */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Перевірка «я не робот» (Cloudflare Turnstile) у формі замовлення */
.captcha { display: flex; justify-content: center; min-height: 65px; margin: 14px 0 4px; }
.captcha[hidden] { display: none; }

/* Справжні написи брендів (brands.js): векторні, кольору тексту довкола.
   Усі однакової висоти; розмір задає font-size (ширина = пропорція логотипа × 1em) */
.bm { display: inline-block; vertical-align: -.1em; font-size: .85em; overflow: visible; }
.filter .bm { font-size: 1.05em; vertical-align: -.15em; }

/* Відгуки: сторінка «Відгуки», блок на сторінці пари, форма */
.stars { color: var(--red); letter-spacing: 2px; font-size: 18px; line-height: 1; white-space: nowrap; }
.stars i { font-style: normal; color: rgba(28, 24, 19, .22); }
.rv-avg { display: flex; align-items: center; gap: 14px; background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 10px 18px; }
.rv-avg b { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; }
.rv-avg div { display: flex; flex-direction: column; gap: 4px; }
.rv-avg div > span:not(.stars) { font-family: var(--mono); font-size: 13px; }
.rv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.rv-list, .rv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rv-card { background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.rv-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rv-card__head time { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.rv-card__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.rv-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--mono); font-size: 14px; }
.rv-card__product { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
a.rv-card__product:hover { color: var(--blue); }
.rv-card__product img { width: 36px; height: 36px; object-fit: cover; border: 2px solid var(--ink); }
.rv-card__reply { background: var(--bg); border-left: 4px solid var(--yellow); padding: 10px 12px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.rv-empty, .rv-more { grid-column: 1 / -1; }
.rv-empty { background: #fff; border: 3px dashed var(--ink); padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.rv-empty p { margin: 0; max-width: 560px; }
.rv-write { position: sticky; top: 110px; background: var(--bg); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--blue); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.rv-write .eyebrow { margin: 0; }
.rv-write form { display: flex; flex-direction: column; gap: 14px; }
.rv-write [hidden] { display: none !important; }
.rv-write__title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; margin: 0; }
.rv-write .muted, .rv-step { margin: 0; }
.rv-step { font-family: var(--mono); }
.rv-error { margin: 0; color: var(--red); font-weight: 700; }
.rv-items { display: flex; flex-direction: column; gap: 8px; }
.rv-item { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 2px solid var(--ink); padding: 10px 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.rv-item input { accent-color: var(--ink); margin-top: 4px; }
.rv-item.is-done { opacity: .5; cursor: default; }
.rv-item em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.rv-stars { display: flex; gap: 2px; }
.rv-stars button { font-size: 36px; line-height: 1; color: rgba(28, 24, 19, .25); padding: 0 2px; background: none; border: 0; cursor: pointer; transition: transform .15s, color .15s; }
.rv-stars button.is-on { color: var(--red); }
.rv-stars button:hover { transform: scale(1.15); }
.field textarea { background: #fff; border: 2px solid var(--ink); padding: 11px 12px; font-family: var(--mono); font-size: 16px; resize: vertical; min-height: 120px; color: var(--ink); }
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 3px 3px 0 var(--blue); }
.field.invalid textarea { border-color: var(--accent); }
.pp__rating { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; padding: 0; background: none; border: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); cursor: pointer; }
.pp__rating[hidden] { display: none; }
.pp__rating:hover span { text-decoration: underline; }
@media (max-width: 1100px) { .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* На телефоні форма - над відгуками: вона коротка, а відгуків може бути багато */
@media (max-width: 960px) { .rv-layout { grid-template-columns: minmax(0, 1fr); } .rv-write { position: static; order: -1; } }
@media (max-width: 640px) {
  .rv-list, .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-write { box-shadow: 6px 6px 0 var(--blue); padding: 22px 16px; }
  .rv-avg b { font-size: 38px; }
}

/* ---------- Конфіденційність ---------- */
.legal { max-width: 760px; }
.legal__lead { font-size: 19px; margin: 0 0 8px; }
.legal h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--red); margin: 36px 0 10px; }
.legal p, .legal li { line-height: 1.6; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.consent { margin-top: 8px; }
@media (max-width: 640px) { .legal h3 { font-size: 21px; margin-top: 28px; } .legal__lead { font-size: 17px; } }
/* «Дзвінки - з 10:00 до 18:00» замість телефону поза робочими годинами */
.footer__contacts span { display: block; padding: 3px 0; font-family: var(--mono); font-size: 14px; color: var(--on-dark-soft); }

/* ---------- Старі iPhone (iOS 12-14): немає aspect-ratio - квадрат через padding ---------- */
@supports not (aspect-ratio: 1 / 1) {
  .pg__main { height: 0; padding-top: 100%; }
  .tile__media { height: 0; padding-top: 66.667%; }
  .tile__media img { position: absolute; top: 0; left: 0; }
}
@media (max-width: 900px) {
  @supports not (aspect-ratio: 1 / 1) { .hero__frame { height: 0; padding-top: 100%; } }
}

/* «Зерно» плівки - лише на комп'ютерах: на телефонах шар поверх усього сайту гальмує прокрутку */
@media (hover: none) { body::after { display: none; } }
