/* Coatlane — «Знайди свою лінію». Чорно-біла система, токени в DESIGN.md */
:root {
  --bg: #000;
  --bg-2: #0b0b0b;
  --bg-3: #141414;
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, .72);
  --fg-3: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .28);
  --ok: #9ef0b8;
  --err: #ff9d9d;

  --f-wide: "Unbounded", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1520px;
  --gut: clamp(18px, 4.6vw, 80px);
  --hdr-h: 88px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 300 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
b, strong { font-weight: 500; }
:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
::selection { background: #fff; color: #000; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; }
.skip:focus { left: 8px; }

/* Типографіка */
.label { font: 400 11px/1.4 var(--f-body); letter-spacing: .32em; text-transform: uppercase; color: var(--fg-2); }
.h1 { font: 300 clamp(36px, 5.6vw, 84px)/1.02 var(--f-wide); letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.h2 { font: 300 clamp(28px, 3.6vw, 52px)/1.05 var(--f-wide); letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.h3 { font: 400 17px/1.3 var(--f-wide); text-transform: uppercase; letter-spacing: .02em; }
.textlink { position: relative; display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; padding-bottom: 6px; white-space: nowrap; }
.textlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .4s var(--ease); }
.textlink:hover::after { transform: scaleX(.3); }

/* Кнопки */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 56px; padding: 0 34px; border-radius: 999px; border: 1px solid #fff; background: transparent; color: #fff;
  font: 400 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover { color: #000; }
.btn:hover::before { transform: none; }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn[disabled]::before { display: none; }
.btn[disabled]:hover { color: #fff; }
.btn--solid { background: #fff; color: #000; }
.btn--solid::before { background: #000; }
.btn--solid:hover { color: #fff; }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: 11px; }
.btn--lg { min-height: 62px; }
.btn--block { width: 100%; }

/* Шапка */
.hdr { position: sticky; top: 0; z-index: 40; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.hdr--over { position: fixed; inset: 0 0 auto; }
.hdr.is-solid, .hdr:not(.hdr--over) { background: rgba(0, 0, 0, .82); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.hdr__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: var(--hdr-h); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
.hdr__rule { flex: 1; height: 1px; background: var(--line); min-width: 20px; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 44px); }
.nav a { position: relative; font: 400 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; padding: 8px 0; color: var(--fg-2); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr__tools { display: flex; align-items: center; gap: 6px; }
.icon { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: #fff; opacity: .9; transition: opacity .2s; }
.icon:hover { opacity: 1; }
.icon__n { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #fff; color: #000; font: 500 10px/17px var(--f-body); text-align: center; }
.hdr__sep { width: 1px; height: 28px; background: var(--line-2); margin: 0 10px; }
.searchbar { max-width: 820px; margin: 0 auto; padding: 4px var(--gut) 22px; display: flex; gap: 12px; align-items: center; }
.searchbar input { flex: 1; height: 52px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; font: 300 20px var(--f-body); color: #fff; padding: 0 2px; }
.searchbar input::placeholder { color: var(--fg-3); }
.searchbar input:focus { outline: none; border-bottom-color: #fff; }

/* Меню-шухляда */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(520px, 100vw); background: #000; border-left: 1px solid var(--line); padding: 0 clamp(24px, 4vw, 48px) 40px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto; animation: drawer .45s var(--ease); }
@keyframes drawer { from { transform: translateX(40px); opacity: 0; } }
.drawer__top { height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin: 0 calc(clamp(24px, 4vw, 48px) * -1); padding: 0 clamp(24px, 4vw, 48px); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { display: flex; justify-content: space-between; align-items: baseline; font: 300 clamp(26px, 3vw, 36px)/1.1 var(--f-wide); text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease); }
.drawer__nav a small { font: 400 11px var(--f-body); letter-spacing: .2em; color: var(--fg-3); }
.drawer__nav a:hover { padding-left: 12px; }
.drawer__small { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.drawer__small a { color: var(--fg-2); font-size: 14px; }
.drawer__small a:hover { color: #fff; }
.drawer__contact { color: var(--fg-3); font-size: 14px; }
.drawer__contact a { color: #fff; }

/* Повідомлення */
.flashes { max-width: var(--wrap); margin: 18px auto 0; padding: 0 var(--gut); }
.flash { padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; }
.flash--error { color: var(--err); border-color: rgba(255, 157, 157, .4); }

/* ========== Головний екран ========== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #000; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 34%, transparent 56%); }
.hero__in { position: relative; width: 100%; padding-top: var(--hdr-h); }
.hero__text { max-width: min(760px, 56vw); }
.hero__label { margin-bottom: clamp(16px, 3.2vh, 28px); }
.hero__title { font: 300 clamp(40px, min(7vw, 11.5vh), 104px)/1.02 var(--f-wide); letter-spacing: -.015em; text-transform: uppercase; }
.hero__lead { margin-top: clamp(14px, 3vh, 26px); max-width: 26em; font-size: clamp(15px, 1.3vw, 19px); color: var(--fg-2); }
.hero__cta { margin-top: clamp(22px, 4.6vh, 42px); }

/* Скляний знак праворуч: лінії видно крізь нього розмитими */
.hero__glass { position: absolute; z-index: -2; right: calc(var(--gut) * .4); top: 50%; width: min(48vw, 820px); aspect-ratio: 81.06 / 58.5; translate: 0 -50%; pointer-events: none; }
.hero__glass-in { position: absolute; inset: 0; transform: translate(var(--gx, 0px), var(--gy, 0px)) rotate(var(--gr, 0deg)); transition: transform 1.2s var(--ease); animation: glass-float 14s ease-in-out infinite alternate; }
@keyframes glass-float { from { translate: 0 -10px; } to { translate: 0 10px; } }
.hero__frost { position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .06) 42%, rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .18) 100%);
  -webkit-backdrop-filter: blur(14px) brightness(2.4); backdrop-filter: blur(14px) brightness(2.4);
  -webkit-mask: url("../img/brand-mark.svg") center / contain no-repeat; mask: url("../img/brand-mark.svg") center / contain no-repeat; }
.hero__glass::before { content: ""; position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .07), transparent); filter: blur(30px); }
.hero__edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__edge path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1px; vector-effect: non-scaling-stroke; }

.hero__foot { position: absolute; left: 0; right: 0; bottom: 0; }
.hero__foot .wrap { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: clamp(20px, 4.4vh, 40px); }
.hero__est { border-left: 1px solid var(--line-2); padding: 6px 0 6px 30px; font: 400 11px/1.8 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--fg-2); }
.hero__style { display: flex; align-items: center; gap: 22px; font: 400 11px var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--fg-2); }
.hero__style i { display: block; width: 70px; height: 1px; background: var(--line-2); }
.hero__star { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .3s, transform .6s var(--ease); }
.hero__style:hover .hero__star { border-color: #fff; transform: rotate(90deg); }
.hero__star img { width: 24px; height: auto; }

/* ========== Секції ========== */
.section { padding-top: clamp(96px, 11vw, 168px); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head .label { margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.filters a { font: 400 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.filters a:hover { color: #fff; }
.filters a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

/* Картка товару */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(12px, 1.4vw, 24px); }
.card { position: relative; }
.card__img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.card__img2 { opacity: 0; }
.card:hover .card__img img { transform: scale(1.04); }
.card:hover .card__img2 { opacity: 1; }
.card.is-out .card__img img { filter: grayscale(1) brightness(.6); }
.card__sizes { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 16px 18px; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); font: 400 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; transform: translateY(100%); transition: transform .5s var(--ease); }
.card:hover .card__sizes, .card:focus-within .card__sizes { transform: none; }
.card__tag { position: absolute; top: 14px; left: 14px; z-index: 1; font: 400 10px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; background: #fff; color: #000; }
.card__tag--line { background: transparent; color: #fff; border: 1px solid var(--line-2); }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.card__title { font: 300 14px/1.45 var(--f-body); letter-spacing: .02em; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__price { font: 400 14px/1.4 var(--f-body); white-space: nowrap; text-align: right; }
.card__price s { display: block; font-size: 12px; color: var(--fg-3); }
.card__meta { font-size: 12px; color: var(--fg-3); margin-top: 4px; letter-spacing: .04em; }

/* Слайдер «Обрано для тебе» */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 28vw, 440px); gap: clamp(14px, 1.6vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gut); scroll-padding-inline: var(--gut); cursor: grab; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail__track.is-drag a { pointer-events: none; }
@media (min-width: 1520px) { .rail__track { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gut)); scroll-padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gut)); } }
.rail .card { scroll-snap-align: start; }
.rail__no { display: block; font: 300 13px var(--f-wide); color: var(--fg-3); margin-bottom: 12px; }
.rail__bar { display: flex; align-items: center; gap: 28px; margin-top: 40px; }
.rail__progress { position: relative; flex: 1; height: 1px; background: var(--line); }
.rail__progress i { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: #fff; transition: transform .2s linear; }
.rail__count { font: 300 13px var(--f-wide); letter-spacing: .06em; color: var(--fg-2); white-space: nowrap; }
.rail__btns { display: flex; gap: 8px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.round:hover { background: #fff; color: #000; border-color: #fff; }
.round:disabled { opacity: .3; cursor: default; background: none; color: #fff; }

/* Банер */
.banner__in { position: relative; display: block; overflow: hidden; }
.banner__in img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; filter: grayscale(.2); transition: transform 1.4s var(--ease); }
.banner__in:hover img { transform: scale(1.03); }
.banner__in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .8), transparent 65%); }
.banner__text { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 1; padding: 0 clamp(24px, 5vw, 80px); max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.banner__text b { font: 300 clamp(30px, 4.4vw, 64px)/1.05 var(--f-wide); text-transform: uppercase; }
.banner__text span { color: var(--fg-2); }

/* Заголовки сторінок */
.pagehead { padding-top: clamp(48px, 7vw, 110px); }
.pagehead .label { margin-bottom: 20px; }
.pagehead__pre { margin-bottom: 18px; }
.pagehead__lead { color: var(--fg-2); max-width: 40em; margin-top: 22px; font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.crumbs a + a::before { content: "/"; margin-right: 14px; color: var(--line-2); }

/* Каталог */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 44px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.tabs a { font: 400 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.toolbar__right { display: flex; align-items: center; gap: 28px; font: 400 11px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.sort { display: flex; align-items: center; gap: 10px; }
.sort select { appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='white' stroke-width='1.2'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") right center no-repeat; padding: 6px 18px 6px 0; color: #fff; font: 400 11px var(--f-body); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.sort select option { background: #000; }
.listing { padding-top: 44px; padding-bottom: clamp(96px, 11vw, 160px); }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 72px; }
.pager a { min-width: 46px; height: 46px; display: grid; place-items: center; font: 300 13px var(--f-wide); color: var(--fg-3); border-bottom: 1px solid transparent; }
.pager a:hover { color: #fff; }
.pager a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.empty { padding: 72px 0 40px; max-width: 36em; }
.empty p { color: var(--fg-2); margin: 18px 0 32px; }

/* ========== Сторінка товару ========== */
.pdp { padding-top: calc(var(--hdr-h) * .25); padding-bottom: clamp(96px, 11vw, 160px); }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.gallery { position: relative; user-select: none; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gallery__slide { position: relative; flex: 0 0 100%; aspect-ratio: 3 / 4; max-height: calc(100vh - var(--hdr-h) - 40px); scroll-snap-align: start; overflow: hidden; background: var(--bg-2); margin: 0; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); pointer-events: none; }
.gallery__slide.is-on img { transform: scale(1); }
.gallery__ui { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.gallery__count { font: 300 13px var(--f-wide); letter-spacing: .06em; white-space: nowrap; }
.gallery__count b { font-weight: 300; }
.gallery__count span { color: var(--fg-3); }
.gallery__bar { position: relative; flex: 1; height: 1px; background: var(--line); }
.gallery__bar i { position: absolute; left: 0; top: -1px; height: 3px; background: #fff; transition: transform .5s var(--ease), width .5s var(--ease); }
.gallery__btns { display: flex; gap: 8px; }
.gallery__zoom { position: absolute; right: 18px; top: 18px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s; }
.gallery__zoom:hover { background: #fff; color: #000; }
.gallery__tag { position: absolute; left: 18px; top: 18px; z-index: 2; font: 400 10px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; background: #fff; color: #000; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 16px; }
.gallery__thumbs button { width: 64px; aspect-ratio: 3 / 4; padding: 0; border: 0; background: var(--bg-2); cursor: pointer; opacity: .4; transition: opacity .3s; }
.gallery__thumbs button[aria-current="true"], .gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s; cursor: zoom-in; }
.lightbox.is-zoom img { transform: scale(2); cursor: zoom-out; }
.lightbox__close { position: absolute; right: 20px; top: 20px; z-index: 2; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }
.lightbox__count { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font: 300 13px var(--f-wide); color: var(--fg-2); }

.pdp__panel { position: relative; height: 100%; }
.pdp__sticky { position: sticky; top: calc(var(--hdr-h) + 24px); }
.pdp__label { margin-bottom: 22px; }
.pdp__title { font: 300 clamp(28px, 2.8vw, 44px)/1.08 var(--f-wide); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.pdp__price { display: flex; align-items: baseline; gap: 16px; margin-top: 26px; }
.pdp__price span { font: 300 clamp(26px, 2.2vw, 34px)/1 var(--f-wide); }
.pdp__price s { font-size: 16px; color: var(--fg-3); }
.pdp__sku { font: 400 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-top: 14px; }
.buy { margin-top: 40px; }
.opts { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.opts legend { display: flex; width: 100%; gap: 10px; padding: 0; margin-bottom: 16px; font: 400 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }
.opts legend b { color: #fff; font-weight: 400; }
.opts legend a { margin-left: auto; color: #fff; border-bottom: 1px solid var(--line-2); }
.opts__row, .opts__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.opts__single { font: 400 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 26px; }
.opts__single b { color: #fff; font-weight: 400; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: grid; place-items: center; min-width: 58px; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font: 400 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.opt:hover span { border-color: #fff; }
.opt input:checked + span { background: #fff; color: #000; border-color: #fff; }
.opt input:focus-visible + span { outline: 1px solid #fff; outline-offset: 3px; }
.opt.is-na span { color: var(--fg-3); border-color: var(--line); text-decoration: line-through; }
.opt.is-na input:checked + span { background: var(--bg-3); color: var(--fg-2); border-color: var(--line-2); }
.avail { display: flex; align-items: center; gap: 10px; margin-top: 18px; font: 400 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.avail--out_of_stock::before { background: transparent; border: 1px solid var(--fg-3); box-shadow: none; }
.pdp__short { margin-top: 30px; color: var(--fg-2); }
.pdp__terms { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.pdp__terms li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.pdp__terms b { font: 400 11px/1.9 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.accs { margin-top: 10px; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font: 400 12px var(--f-body); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 12px; height: 12px; background: linear-gradient(#fff, #fff) center / 12px 1px no-repeat, linear-gradient(#fff, #fff) center / 1px 12px no-repeat; transition: transform .35s var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc > p, .acc > .prose { padding-bottom: 22px; font-size: 15px; color: var(--fg-2); }
.acc > p + p { margin-top: -8px; }
.acc a { color: #fff; border-bottom: 1px solid var(--line-2); }
.specs { padding-bottom: 18px; }
.specs > div { display: grid; grid-template-columns: minmax(110px, 42%) 1fr; gap: 16px; padding: 9px 0; font-size: 14px; }
.specs dt { color: var(--fg-3); }
.specs a { border-bottom: 1px solid var(--line-2); }

/* Текстові сторінки */
.prose { line-height: 1.8; color: var(--fg-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 300 clamp(20px, 2vw, 26px)/1.2 var(--f-wide); text-transform: uppercase; color: #fff; margin-top: 2em; }
.prose h3 { font: 400 13px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-top: 1.8em; }
.prose b, .prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose a { color: #fff; border-bottom: 1px solid var(--line-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: #fff; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.prose blockquote { margin: 0; padding: 4px 0 4px 26px; border-left: 1px solid #fff; color: #fff; font: 300 clamp(18px, 1.6vw, 21px)/1.5 var(--f-body); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: space-between; gap: 64px; padding-top: 40px; padding-bottom: clamp(96px, 11vw, 160px); }
.prose--doc > :first-child { margin-top: 0; }
.doc-updated { color: var(--fg-3); font: 400 11px var(--f-body) !important; letter-spacing: .2em; text-transform: uppercase; }
.reqs { padding-left: 26px; border-left: 1px solid var(--line-2); }
.doc__nav { order: -1; position: sticky; top: calc(var(--hdr-h) + 30px); align-self: start; display: flex; flex-direction: column; }
.doc__nav a { padding: 10px 0; font: 400 11px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line); transition: color .2s, padding .3s var(--ease); }
.doc__nav a:hover { color: #fff; padding-left: 6px; }
.doc__nav a[aria-current="page"] { color: #fff; }

/* Кошик і оформлення */
.checkout-wrap { padding-top: 40px; padding-bottom: clamp(96px, 11vw, 160px); }
.cart, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(32px, 6vw, 110px); align-items: start; }
.cart__lines { border-top: 1px solid var(--line); }
.cline { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 130px; grid-template-rows: auto auto; gap: 6px 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cline__img { grid-row: 1 / 3; }
.cline__img img { width: 110px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-2); }
.cline__title { font: 300 15px/1.4 var(--f-body); }
.cline__title:hover { text-decoration: underline; text-underline-offset: .25em; }
.cline__var, .cline__sku { font: 400 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-top: 8px; }
.cline .qty { grid-column: 3; grid-row: 1; align-self: start; }
.cline__sum { grid-column: 4; grid-row: 1; text-align: right; font: 300 16px var(--f-wide); }
.cline__sum small { display: block; font: 400 11px var(--f-body); color: var(--fg-3); margin-top: 8px; }
.cline__rm { grid-column: 2; grid-row: 2; justify-self: start; align-self: end; background: none; border: 0; padding: 0; font: 400 11px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); cursor: pointer; }
.cline__rm:hover { color: #fff; }
.cline.is-out { opacity: .55; }
.cart__lines > .btn { margin-top: 24px; }
.qty { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); }
.qty button { width: 40px; height: 100%; border: 0; background: none; color: #fff; font-size: 16px; cursor: pointer; }
.qty input { width: 30px; height: 100%; border: 0; text-align: center; background: none; color: #fff; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.summary { position: sticky; top: calc(var(--hdr-h) + 24px); padding-left: clamp(0px, 3vw, 48px); border-left: 1px solid var(--line); }
.summary__title { font: 300 22px/1.2 var(--f-wide); text-transform: uppercase; margin-bottom: 24px; }
.summary dl { margin-bottom: 28px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; }
.summary dt { color: var(--fg-2); }
.summary dd { text-align: right; }
.summary__total { margin-top: 10px; padding-top: 18px !important; border-top: 1px solid var(--line-2); }
.summary__total dt { color: #fff; font: 400 11px/2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; }
.summary__total dd { font: 300 26px/1 var(--f-wide); }
.summary__hint { font-size: 13px; color: var(--fg-3); margin-top: 18px; }
.summary__back { margin-top: 26px; }
.summary__items { list-style: none; padding: 0; margin: 0 0 22px; }
.summary__items li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary__items img { width: 52px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-2); }
.summary__items span { flex: 1; min-width: 0; }
.summary__items small { display: block; color: var(--fg-3); font-size: 12px; }
.summary__items b { font-weight: 400; white-space: nowrap; }
.step { border: 0; padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid var(--line); min-width: 0; }
.step legend { font: 300 22px/1.2 var(--f-wide); text-transform: uppercase; padding: 0; margin-bottom: 28px; }
.field { display: block; margin-bottom: 22px; }
.field > span { display: block; font: 400 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.field > span small { text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; padding: 10px 0; font: 300 17px var(--f-body); color: #fff; transition: border-color .25s; }
.field textarea { resize: vertical; }
.field input::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: #fff; }
.field.has-err input, .field.has-err textarea { border-bottom-color: var(--err); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.err { color: var(--err); font-size: 13px; margin-top: 8px; }
.hint { color: var(--fg-3); font-size: 13px; }
.radios { display: grid; margin-bottom: 26px; border-top: 1px solid var(--line); }
.radio { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.radio input { appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; cursor: pointer; }
.radio input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.radio input:checked { border-color: #fff; }
.radio input:checked::after { transform: scale(1); }
.radio b { font-weight: 400; }
.radio small { display: block; color: var(--fg-3); font-size: 13px; margin-top: 4px; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 13px; color: var(--fg-2); margin: 4px 0 24px; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: #fff; border-color: #fff; }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid #000; border-bottom: 1.5px solid #000; transform: translateY(-1px) rotate(-45deg); }
.check a { color: #fff; border-bottom: 1px solid var(--line-2); }
.check.has-err span { color: var(--err); }

.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(32px, 6vw, 110px); align-items: start; padding-top: 40px; padding-bottom: clamp(96px, 11vw, 160px); }
.order__box { border-top: 1px solid var(--line); padding-top: 28px; }
.order__box .summary { position: static; padding: 0; border: 0; }
.payform { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.payform .hint { margin-top: 16px; }
.order__side { border-left: 1px solid var(--line); padding-left: clamp(0px, 3vw, 48px); }
.order__side .hint a { color: #fff; border-bottom: 1px solid var(--line-2); }

/* 404 */
.notfound { position: relative; min-height: 86vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.notfound canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 75%, transparent); }
.notfound .label { margin-bottom: 26px; }
.notfound p:not(.label) { color: var(--fg-2); font-size: 17px; margin: 24px 0 40px; max-width: 32em; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Підвал */
.ftr { position: relative; margin-top: 0; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.ftr__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .45; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 56px; padding-top: clamp(72px, 9vw, 130px); padding-bottom: 64px; }
.ftr__brand img { height: 40px; width: auto; }
.ftr__claim { font: 300 clamp(22px, 2.2vw, 32px)/1.2 var(--f-wide); text-transform: uppercase; margin-top: 40px; max-width: 14em; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ftr__cols h2 { margin-bottom: 22px; }
.ftr__cols a, .ftr__cols p { display: block; color: var(--fg-2); font-size: 14px; line-height: 1.5; margin-bottom: 11px; transition: color .2s; }
.ftr__cols a:hover { color: #fff; }
.ftr__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }
.paylogos { display: flex; flex-wrap: wrap; gap: 8px; }
.paylogos img { height: 26px; width: auto; background: #fff; padding: 4px 8px; }
.paychip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); font: 400 10px var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding: 24px 0 36px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }
.ftr__legal a { margin-right: 22px; }
.ftr__legal a:last-child { margin-right: 0; }
.ftr__legal a:hover { color: #fff; }

/* Cookie */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 420px; padding: 22px 24px; background: #000; border: 1px solid var(--line-2); }
.cookie p { font-size: 13px; color: var(--fg-2); margin-bottom: 16px; }
.cookie a { color: #fff; border-bottom: 1px solid var(--line-2); }
.cookie__btns { display: flex; gap: 8px; }

/* Адаптивність */
@media (max-width: 1180px) {
  .nav, .hdr__rule { display: none; }
  .hdr__in { justify-content: space-between; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__top { grid-template-columns: 1fr; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__nav { display: none; }
}
@media (max-width: 900px) {
  .hero__text { max-width: none; }
  .hero__glass { width: 92vw; right: -30vw; top: 30%; opacity: .8; }
  .pdp__grid, .cart, .checkout, .order { grid-template-columns: 1fr; }
  .pdp__sticky, .summary { position: static; }
  .summary, .order__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .gallery__slide { max-height: none; }
  .gallery__thumbs { display: none; }
}
@media (max-width: 640px) {
  :root { --hdr-h: 68px; }
  .logo img { height: 26px; }
  .hdr__sep { display: none; }
  .hero__title { font-size: clamp(34px, min(11vw, 7.4vh), 56px); }
  .hero__glass { width: 68vw; right: -4vw; top: 21%; }
  .hero__style span { display: none; }
  .hero__style i { width: 30px; }
  .hero__est { padding-left: 16px; font-size: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 10px; }
  .card__row { flex-direction: column; gap: 4px; }
  .card__price { text-align: left; }
  .card__price s { display: inline; margin-left: 8px; }
  .rail__track { grid-auto-columns: 74vw; }
  .rail__btns { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .toolbar__count { display: none; }
  .cline { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 6px 16px; }
  .cline__img img { width: 84px; }
  .cline__img { grid-row: 1 / 4; }
  .cline .qty { grid-column: 2; grid-row: 2; justify-self: start; }
  .cline__sum { grid-column: 3; grid-row: 1; font-size: 14px; }
  .cline__rm { grid-column: 3; grid-row: 2; justify-self: end; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .pdp__terms li { grid-template-columns: 1fr; gap: 4px; }
  .drawer__small { grid-template-columns: 1fr; }
  .cookie { right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Доповнення */
.section__more { margin-top: clamp(48px, 5vw, 72px); display: flex; justify-content: center; }
.card__sizes span + span::before { content: none; }
.lightbox[hidden] { display: none; }
@media (min-width: 901px) {
  .gallery { position: sticky; top: calc(var(--hdr-h) + 20px); }
  .pdp__sticky { position: static; }
}
@media (min-width: 901px) {
  .gallery__slide { max-height: calc(100vh - var(--hdr-h) - 110px); }
  .gallery__thumbs { display: none; }
}
