/* SNIH: преміум-магазин пуховиків.
   Форма: усе з гострими кутами (радіус 0), кольори й розміри в картці теж квадратні.
   Палітра: монохром + приглушений сталевий акцент лише для дрібних деталей. Кнопки чорні / світлі в темній темі.
   Шари: шапка 20, вікно товару в top layer (<dialog>). */

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

:root {
  color-scheme: light;
  --bg: #eff0f1;
  --surface: #f7f7f8;
  --surface-2: #e2e4e7;
  --ink: #131416;
  --ink-2: #464a50;
  --ink-3: #5d6168;
  --line: #d3d6da;
  --steel: #5b7489;
  --cta: #131416;
  --cta-ink: #f4f5f6;
  --cta-hover: #2c2f33;
  --danger: #b42318;
  --ok: #1d6b43;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Jost", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0f10; --surface: #16181a; --surface-2: #202326; --ink: #eceef0; --ink-2: #b9bfc6; --ink-3: #9aa1a9;
    --line: #2b2f33; --steel: #93acc0; --cta: #eceef0; --cta-ink: #0e0f10; --cta-hover: #ffffff; --danger: #ff8a7a; --ok: #6fd39b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0f10; --surface: #16181a; --surface-2: #202326; --ink: #eceef0; --ink-2: #b9bfc6; --ink-3: #9aa1a9;
  --line: #2b2f33; --steel: #93acc0; --cta: #eceef0; --cta-ink: #0e0f10; --cta-hover: #ffffff; --danger: #ff8a7a; --ok: #6fd39b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1320px, 100% - 64px); } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 16px; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

.display { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; line-height: 1.05; }
.label { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 0;
  font: 500 14px/1 var(--display); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cta); color: var(--cta-ink); }
.btn--primary:hover { background: var(--cta-hover); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--steel); }

/* ---------- Шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar__in { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.wordmark { font: 500 22px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; padding-left: .32em; margin-left: -.32em; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font: 500 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-color: var(--ink); }
.topbar__cta { margin-left: auto; }
@media (min-width: 960px) { .nav { display: flex; } }
@media (max-width: 420px) { .topbar__cta span { display: none; } .topbar__cta { padding: 0 14px; } }

/* ---------- Перший екран ---------- */
.hero { display: grid; gap: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.hero__media { position: relative; aspect-ratio: 4 / 5; max-height: 64dvh; overflow: hidden; }
.hero__copy { padding: 28px 16px 40px; display: flex; flex-direction: column; justify-content: center; }
.hero__copy .label { color: var(--steel); }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.2rem); font-weight: 400; margin-top: 16px; max-width: 12ch; }
.hero__sub { margin-top: 20px; color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__aside { display: none; }
@media (max-width: 899px) { .hero__media { aspect-ratio: auto; height: 44dvh; min-height: 300px; } }
@media (max-width: 599px) {
  .hero__copy { padding: 24px 16px 36px; }
  .hero__cta { gap: 8px; margin-top: 24px; }
  .hero__cta .btn { flex: 1 1 0; padding: 0 10px; font-size: 12px; letter-spacing: .1em; min-height: 50px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; height: calc(100dvh - var(--header-h)); min-height: 620px; max-height: 900px; }
  .hero__media { aspect-ratio: auto; max-height: none; height: 100%; }
  .hero__copy { padding: 48px 56px 40px 64px; justify-content: space-between; min-height: 0; }
  .hero__aside { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: 32px; }
  .hero__aside img { height: min(26dvh, 240px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; }
  .hero__aside p { color: var(--ink-3); font-size: 14px; }
}

/* ---------- Умови ---------- */
.terms { border-block: 1px solid var(--line); }
.terms ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.terms li { padding: 20px 16px; font-size: 14px; color: var(--ink-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.terms li:nth-child(2n) { border-right: 0; }
.terms li:nth-last-child(-n + 2) { border-bottom: 0; }
.terms b { display: block; font: 500 13px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
@media (min-width: 900px) {
  .terms ul { grid-template-columns: repeat(4, 1fr); }
  .terms li { padding: 28px 24px; border-bottom: 0; }
  .terms li:nth-child(2n) { border-right: 1px solid var(--line); }
  .terms li:last-child { border-right: 0; }
}

/* ---------- Секції ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.75rem); line-height: 1.08; }
.lead { margin-top: 14px; color: var(--ink-2); max-width: 56ch; }

/* ---------- Тканини (бенто) ---------- */
.fabrics { display: grid; gap: 28px 12px; margin-top: 40px; grid-template-columns: 1fr 1fr; }
.fabric { display: flex; flex-direction: column; gap: 12px; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.fabric__img { overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4; }
.fabric__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fabric:hover .fabric__img img { transform: scale(1.04); }
.fabric b { font: 500 14px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.fabric span { font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.fabric:first-child { grid-column: 1 / -1; }
.fabric:first-child .fabric__img { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .fabrics { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 40px 20px; }
  .fabric:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .fabric:first-child .fabric__img { aspect-ratio: auto; flex: 1; min-height: 0; }
  .fabric:not(:first-child) .fabric__img { aspect-ratio: 4 / 3; }
}

/* ---------- Каталог ---------- */
.cat-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; }
.filters { margin-top: 28px; display: grid; gap: 14px; padding-block: 18px; border-block: 1px solid var(--line); }
.frow { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.frow::-webkit-scrollbar { display: none; }
.frow__label { flex: none; width: 92px; color: var(--ink-3); font-size: 13px; }
.chip { flex: none; height: 38px; padding: 0 14px; border: 1px solid var(--line); background: transparent; border-radius: 0; font: 500 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-count { color: var(--ink-3); font-size: 14px; }

.grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; } }
.card { display: flex; flex-direction: column; gap: 8px; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); margin-bottom: 6px; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .9s var(--ease); }
.card__media img + img { opacity: 0; }
@media (hover: hover) { .card:hover .card__media img + img { opacity: 1; } .card:hover .card__media img:first-child { transform: scale(1.03); } }
.card__name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.card__meta { font-size: 13px; color: var(--ink-3); }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__price { font: 500 16px/1 var(--display); letter-spacing: .04em; }
.swatches { display: flex; gap: 4px; }
.swatch { width: 12px; height: 12px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
.swatches .more { font-size: 12px; color: var(--ink-3); }
.card--skeleton .card__media, .sk-line { animation: pulse 1.4s ease-in-out infinite; }
.sk-line { height: 13px; background: var(--surface-2); }
@keyframes pulse { 50% { opacity: .55; } }
.empty { margin-top: 32px; padding: 40px 24px; border: 1px dashed var(--line); text-align: center; color: var(--ink-2); }
.empty .btn { margin-top: 16px; }

/* ---------- Біо-пух ---------- */
.story { display: grid; gap: 36px; align-items: center; }
.story__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.points { list-style: none; margin: 32px 0 0; padding: 0; }
.points li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.points b { font: 500 15px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.points span { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 96px; } .story__img { aspect-ratio: 3 / 4; max-height: 760px; } }

/* ---------- Розміри ---------- */
.sizes { background: var(--surface); border-block: 1px solid var(--line); }
.table-scroll { margin-top: 28px; overflow-x: auto; }
.size-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.size-table th, .size-table td { padding: 16px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.size-table thead td { font: 500 14px/1 var(--display); letter-spacing: .12em; }
.size-table th { font-weight: 600; color: var(--ink-3); font-size: 13px; }
.sizes__note { margin-top: 22px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- Питання ---------- */
.faq { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; } .faq__intro { position: sticky; top: calc(var(--header-h) + 40px); } }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0); }
.qa__body { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.qa__body p + p { margin-top: 10px; }

/* ---------- Контакти ---------- */
.contact { display: grid; gap: 28px; padding: 48px 0; border-top: 1px solid var(--line); }
.contact__btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr auto; align-items: center; padding: 72px 0; } }

.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer__in { display: grid; gap: 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) { .footer__in { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Вікно товару ---------- */
.sheet { padding: 0; border: 0; background: var(--surface); color: var(--ink); width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; overflow: hidden; }
.sheet::backdrop { background: rgb(8 9 10 / .62); }
.sheet[open] { animation: sheet-in .4s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(20px); } }
@media (min-width: 900px) { .sheet { width: min(1180px, 100% - 64px); height: min(860px, 100dvh - 64px); margin: auto; } }
.sheet__in { display: grid; height: 100%; overflow-y: auto; overscroll-behavior: contain; grid-template-rows: auto 1fr; }
@media (min-width: 900px) { .sheet__in { grid-template-columns: 1.1fr 1fr; grid-template-rows: none; overflow: hidden; } }
.sheet__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); }
.sheet__close .i { width: 22px; height: 22px; }

.gallery { position: relative; background: var(--surface-2); min-height: 0; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { flex: 0 0 100%; width: 100%; object-fit: cover; scroll-snap-align: center; }
@media (max-width: 899px) { .gallery__track { height: auto; align-items: flex-start; } .gallery__track img { aspect-ratio: 3 / 4; max-height: 64dvh; } }
@media (min-width: 900px) { .gallery__track img { height: 100%; } }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots span { width: 18px; height: 2px; background: rgb(255 255 255 / .5); transition: background .2s; }
.gallery__dots span.on { background: #fff; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; display: none; place-items: center; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); }
.gallery__nav--prev { left: 0; } .gallery__nav--next { right: 0; }
@media (hover: hover) and (min-width: 900px) { .gallery__nav { display: grid; } }

@media (max-width: 899px) { .sheet__in:not([data-step="product"]) .gallery { display: none; } .sheet__in:not([data-step="product"]) .pane { padding-top: 64px; } }
.pane { padding: 24px 16px 0; display: flex; flex-direction: column; gap: 24px; }
.pane > :last-child:not(.buybar) { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .pane { padding: 48px 48px 36px; overflow-y: auto; } }
.pane__meta { color: var(--steel); }
.pane__title { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.12; margin-top: 10px; }
.pane__price { font: 500 1.4rem/1 var(--display); letter-spacing: .04em; margin-top: 16px; }
.field-label { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.field-label span { color: var(--ink); font-weight: 600; }
.color-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.color-opt { width: 36px; height: 36px; border: 0; padding: 0; position: relative; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
.color-opt[aria-checked="true"]::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--ink); }
.size-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt { min-width: 60px; height: 48px; padding: 0 12px; border: 1px solid var(--line); background: transparent; border-radius: 0; font: 500 14px/1 var(--display); letter-spacing: .1em; }
.size-opt:hover:not([disabled]) { border-color: var(--ink); }
.size-opt[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-opt[disabled] { color: var(--ink-3); text-decoration: line-through; opacity: .5; cursor: not-allowed; }
.hint { font-size: 14px; color: var(--danger); font-weight: 600; min-height: 1.4em; }
.measure { font-size: 14px; color: var(--ink-2); padding: 14px 16px; background: var(--bg); }
.measure b { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.specs dt { font-size: 13px; color: var(--ink-3); }
.specs dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.notes { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.facts { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.facts b { color: var(--ink); }
.buybar { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 1; }
@media (min-width: 900px) { .buybar { position: static; margin: 0; padding: 0; background: none; border: 0; backdrop-filter: none; } }

/* ---------- Форма ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 0; font: 500 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); align-self: flex-start; }
.back .i { width: 16px; height: 16px; }
.summary { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 12px; background: var(--bg); }
.summary img { width: 60px; height: 80px; object-fit: cover; }
.summary b { display: block; font-size: 15px; line-height: 1.3; }
.summary span { font-size: 14px; color: var(--ink-3); }
.sum-price { font: 500 16px/1 var(--display); white-space: nowrap; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 14px; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); font-size: 16px; color: var(--ink); }
.field textarea { min-height: 84px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.invalid input { border-color: var(--danger); }
.field__err { font-size: 13px; font-weight: 600; color: var(--danger); }
.row2 { display: grid; gap: 18px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--ink); }
.pay-opt input { margin: 3px 0 0; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt span { font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Вибір зі списку (Нова пошта) */
.np-wrap { display: grid; gap: 18px; }
.combo { position: relative; }
.combo input { padding-right: 46px; }
.combo__toggle { position: absolute; right: 0; top: 0; width: 46px; height: 52px; border: 0; background: none; }
.combo__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translate(-50%, -70%) rotate(45deg); }
.combo__list { position: absolute; left: 0; right: 0; top: calc(100% - 1px); z-index: 5; max-height: min(300px, 42dvh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--ink); box-shadow: 0 16px 40px rgb(0 0 0 / .14); }
.combo__opt { padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; line-height: 1.35; font-size: 15px; border-bottom: 1px solid var(--line); }
.combo__opt:last-child { border-bottom: 0; }
.combo__opt small { color: var(--ink-3); font-size: 12px; }
.combo__opt.on { background: var(--surface-2); }
@media (hover: hover) { .combo__opt:hover { background: var(--surface-2); } }
.combo__msg { padding: 12px 14px; color: var(--ink-3); font-size: 14px; }
.np.picked input { border-color: var(--ink-2); }
.consent { font-size: 13px; color: var(--ink-3); }
.consent a { color: var(--ink-2); }
.alert { padding: 14px 16px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); font-size: 15px; }
.alert a { font-weight: 700; }
.done { text-align: center; display: grid; justify-items: center; gap: 16px; padding-top: 32px; }
.done .i { width: 48px; height: 48px; color: var(--ok); }
.done h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.5rem; }
.done p { color: var(--ink-2); max-width: 40ch; }

/* ---------- Сторінка умов ---------- */
.doc { padding: 48px 0 72px; max-width: 760px; }
.doc h1 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; }
.doc h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 1.2rem; margin-top: 48px; }
.doc p, .doc li { color: var(--ink-2); margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.doc .toc a { padding: 10px 14px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }

/* ---------- Каталог: прості фільтри ---------- */
.seg--sex { margin-top: 24px; width: max-content; }
.seg--sex button { padding: 0 28px; }
.catbar { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; justify-content: space-between; padding-block: 18px; border-block: 1px solid var(--line); }
.seg { display: flex; border: 1px solid var(--ink); }
.seg button { border: 0; background: transparent; padding: 0 20px; height: 46px; font: 500 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.catbar__sel { display: flex; gap: 12px; }
.sel { display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); }
.sel select { height: 46px; min-width: 150px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font-size: 15px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.active-filter { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); font-size: 14px; }
.active-filter[hidden] { display: none; }
.active-filter button { width: 30px; height: 30px; border: 0; background: var(--surface-2); font-size: 18px; line-height: 1; }
a.card { text-decoration: none; color: inherit; }
@media (max-width: 699px) {
  .catbar { display: grid; gap: 12px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 4px; font-size: 12px; letter-spacing: .06em; }
  .catbar__sel { display: grid; grid-template-columns: 1fr 1fr; }
  .sel select { min-width: 0; width: 100%; }
}

/* ---------- Сторінка моделі ---------- */
.pd { padding: 20px 0 48px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.pd__grid { display: grid; gap: 28px; }
.pd__main { position: relative; aspect-ratio: 3 / 4; background: var(--surface-2); overflow: hidden; }
.pd__main .gallery__track { height: 100%; }
.pd__main .gallery__track img { height: 100%; aspect-ratio: auto; max-height: none; }
.pd__thumbs { display: none; }
.pd__info { display: flex; flex-direction: column; gap: 22px; }
.pd__price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.pd__code { font-size: 13px; color: var(--ink-3); }
.pd__help { font-size: 14px; color: var(--ink-2); }
.pd__more { display: grid; gap: 8px; margin-top: 48px; }
.pd__block { padding: 28px 0; border-top: 1px solid var(--line); max-width: 760px; }
.pd__block p { color: var(--ink-2); margin-top: 12px; max-width: 64ch; }
.pd__h { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; font-weight: 500; }
.pd__list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.pd__table { margin-top: 16px; min-width: 0; }
.pd__table th, .pd__table td { white-space: normal; }
.pd__block .specs { margin-top: 16px; border-top: 0; padding-top: 0; }
.pd__block .qa:first-of-type { margin-top: 14px; }
.pd__gone { margin: 40px 0; display: grid; gap: 16px; justify-items: center; }
.pd-similar { padding-top: 24px; }
.sk-block { animation: pulse 1.4s ease-in-out infinite; }
@media (min-width: 900px) {
  .pd { padding-top: 28px; }
  .pd__grid { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
  .pd__gallery { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
  .pd__main { grid-column: 2; grid-row: 1; }
  .pd__thumbs { display: grid; gap: 8px; align-content: start; grid-column: 1; grid-row: 1; }
  .pd__thumbs button { padding: 0; border: 1px solid transparent; background: none; opacity: .6; transition: opacity .2s; }
  .pd__thumbs button.on { border-color: var(--ink); opacity: 1; }
  .pd__thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
  .pd__info { position: sticky; top: calc(var(--header-h) + 24px); }
  .pd__more { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .pd__block { max-width: none; }
}
@media (max-width: 899px) {
  .pd__gallery { margin: 0 -16px; }
  .pd__main { aspect-ratio: 4 / 5; }
}

/* нижня панель «Оформити» на телефоні */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.mbar b { display: block; font: 500 18px/1.1 var(--display); }
.mbar span { font-size: 12px; color: var(--ink-3); }
.mbar .btn { min-height: 48px; }
.page-product { padding-bottom: 76px; }
@media (min-width: 900px) { .mbar { display: none; } .page-product { padding-bottom: 0; } }

/* вікно оформлення */
.sheet--order { overflow-y: auto; }
.order-in { padding: 64px 16px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 20px; }
.order__title { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 1.3rem; }
@media (min-width: 900px) {
  .sheet--order { width: min(560px, 100% - 48px); height: auto; max-height: calc(100dvh - 48px); }
  .order-in { padding: 40px 40px 32px; }
}

/* ---------- Телефон ---------- */
.topbar__cat { display: none; }
@media (max-width: 959px) {
  .topbar__cat { display: inline-flex; margin-left: auto; }
  .topbar__cat + .topbar__cta { margin-left: 0; }
  .topbar__in { gap: 12px; }
}
@media (max-width: 699px) {
  .card__row { display: grid; gap: 8px; justify-content: start; }
  .frow__label { width: 74px; }
  .contact__btns { display: grid; grid-template-columns: 1fr 1fr; }
  .contact__btns .btn { width: 100%; padding: 0 12px; }
  .contact__btns [data-contact="phone"] { grid-column: 1 / -1; }
  .footer__links { display: grid; gap: 0; }
  .footer__links a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .size-table { min-width: 0; font-size: 14px; }
  .size-table th, .size-table td { padding: 13px 6px; }
  .size-table th { white-space: normal; width: 34%; line-height: 1.3; }
  .filters { gap: 12px; }
  .frow { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .frow__label { width: 100%; margin-bottom: 2px; }
  .chip { height: 36px; padding: 0 12px; }
  .terms li { padding: 16px 14px; font-size: 13px; }
  .story__img { aspect-ratio: 4 / 3; }
}
@media (max-width: 380px) { .wordmark { font-size: 19px; letter-spacing: .26em; } }

/* ---------- Рух ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .hero__copy > div > * { animation: rise 1s var(--ease) both; }
  .hero__copy > div > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > div > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > div > :nth-child(4) { animation-delay: .24s; }
  .hero__media img { animation: fade 1.2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* плаваюча кнопка Telegram */
.fab-tg { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 16; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 26px; background: #229ED9; color: #fff; text-decoration: none; font: 500 14px/1 var(--display); letter-spacing: .04em; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .2s; }
.fab-tg:hover { transform: translateY(-2px); }
.fab-tg .i { width: 22px; height: 22px; fill: currentColor; }
.fab-tg--up { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .fab-tg--up { bottom: 24px; } }
@media (max-width: 520px) { .fab-tg span { display: none; } .fab-tg { width: 54px; height: 54px; padding: 0; justify-content: center; } }
