/* Rio Fiore · Sol de Rio — вариант 5.
   Цвета — из concept.palette. Курсив Playfair только в заголовках, районах и номерах образов; остальное — Commissioner.
   Геометрия: фото и цветные плашки — прямые углы (строгая сетка), всё, на что нажимают, — круглое (кнопки, кружки цвета). */

:root {
  --bg: #FFFBF3;
  --surface: #FFFFFF;
  --photo: #ECEAE7;
  --text: #1C1A17;
  --muted: #6B6256;
  --line: #EADFCC;
  --sun: #FFC629;
  --sun-soft: #FFF0BF;
  --coral: #FF6B57;
  --coral-soft: #FFE1DA;
  --coral-text: #C93A26;
  --turquoise: #17A2A0;
  --turquoise-soft: #D6F1EE;
  --ocean: #0A5C63;
  --sand: #F4E7D1;
  --sand-deep: #E6CFA9;
  --btn: #1C1A17;
  --btn-text: #FFFBF3;
  --sale: #C93A26;
  --success: #2D7D4F;
  --focus: #0A5C63;

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gut: clamp(16px, 3.4vw, 48px);
  --maxw: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --annc-h: 34px;
  --hdr-h: 76px;

  /* Мозаика набережной Копакабаны: чёрно-белые волны. Одна плитка 80×24 = тёмная волна + светлая. */
  /* волна Копакабаны: лента из трёх полос, период 180 px, гребень крутой, спуск пологий */
  --wave-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='52' viewBox='0 0 180 52'%3E%3Cg fill='none' stroke='%231C1A17'%3E%3Cpath d='M-180 17.4C-172 9 -164 6 -150 6C-110 6 -80 25.8 -45 25.8C-30 25.8 -8 25.8 0 17.4C8 9 16 6 30 6C70 6 100 25.8 135 25.8C150 25.8 172 25.8 180 17.4C188 9 196 6 210 6C250 6 280 25.8 315 25.8C330 25.8 352 25.8 360 17.4' stroke-width='9'/%3E%3Cpath d='M-174 30.4C-166 22 -158 19 -144 19C-104 19 -74 38.8 -39 38.8C-24 38.8 -2 38.8 6 30.4C14 22 22 19 36 19C76 19 106 38.8 141 38.8C156 38.8 178 38.8 186 30.4C194 22 202 19 216 19C256 19 286 38.8 321 38.8C336 38.8 358 38.8 366 30.4' stroke-width='6'/%3E%3Cpath d='M-166 40.4C-158 32 -150 29 -136 29C-96 29 -66 48.8 -31 48.8C-16 48.8 6 48.8 14 40.4C22 32 30 29 44 29C84 29 114 48.8 149 48.8C164 48.8 186 48.8 194 40.4C202 32 210 29 224 29C264 29 294 48.8 329 48.8C344 48.8 366 48.8 374 40.4' stroke-width='2.5'/%3E%3C/g%3E%3C/svg%3E");
  --wave-ocean: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='52' viewBox='0 0 180 52'%3E%3Cg fill='none' stroke='%230A5C63'%3E%3Cpath d='M-180 17.4C-172 9 -164 6 -150 6C-110 6 -80 25.8 -45 25.8C-30 25.8 -8 25.8 0 17.4C8 9 16 6 30 6C70 6 100 25.8 135 25.8C150 25.8 172 25.8 180 17.4C188 9 196 6 210 6C250 6 280 25.8 315 25.8C330 25.8 352 25.8 360 17.4' stroke-width='9'/%3E%3Cpath d='M-174 30.4C-166 22 -158 19 -144 19C-104 19 -74 38.8 -39 38.8C-24 38.8 -2 38.8 6 30.4C14 22 22 19 36 19C76 19 106 38.8 141 38.8C156 38.8 178 38.8 186 30.4C194 22 202 19 216 19C256 19 286 38.8 321 38.8C336 38.8 358 38.8 366 30.4' stroke-width='6'/%3E%3Cpath d='M-166 40.4C-158 32 -150 29 -136 29C-96 29 -66 48.8 -31 48.8C-16 48.8 6 48.8 14 40.4C22 32 30 29 44 29C84 29 114 48.8 149 48.8C164 48.8 186 48.8 194 40.4C202 32 210 29 224 29C264 29 294 48.8 329 48.8C344 48.8 366 48.8 374 40.4' stroke-width='2.5'/%3E%3C/g%3E%3C/svg%3E");
  --wave-mini: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24' viewBox='0 0 80 24'%3E%3Cpath d='M0 6Q20-6 40 6T80 6V18Q60 30 40 18T0 18Z' fill='%230A5C63'/%3E%3C/svg%3E");
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
/* фокус с клавиатуры и прокрутка к полю не уводят элемент под демо-плашку (её зона — --rs-sw-h из shared/switcher.js) */
html { scroll-padding-bottom: var(--rs-sw-h, 0px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--f-body); font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sun); color: var(--text); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 960px; }

.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i--s { width: 18px; height: 18px; }
.i--l { width: 40px; height: 40px; stroke-width: 1.2; }

/* ---------- типографика ---------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.h1 { font-size: clamp(42px, 5.4vw, 84px); line-height: 1.02; }
.h2 { font-size: clamp(34px, 4.1vw, 60px); line-height: 1.04; }
.h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.12; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.tiny { font-size: 12.5px; line-height: 1.45; }
.ul { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.ul:hover { text-decoration-thickness: 2px; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 36em; }

/* ---------- тона (цветные заливки) ---------- */
.tone-sun { --tone: var(--sun); }
.tone-sun_soft { --tone: var(--sun-soft); }
.tone-coral { --tone: var(--coral); }
.tone-coral_soft { --tone: var(--coral-soft); }
.tone-turquoise { --tone: var(--turquoise); }
.tone-turquoise_soft { --tone: var(--turquoise-soft); }
.tone-sand { --tone: var(--sand); }
.tone-sand_deep { --tone: var(--sand-deep); }
.fill { background: var(--tone); color: var(--text); }
.fill .muted { color: var(--text); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  background: var(--btn); color: var(--btn-text); border: 1px solid var(--btn);
  font: 500 15px/1.1 var(--f-body); letter-spacing: .01em; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { background: #38332c; border-color: #38332c; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--light { background: var(--bg); color: var(--text); border-color: var(--bg); }
.btn--light:hover { background: var(--sun); border-color: var(--sun); }
.btn--sun { background: var(--sun); color: var(--text); border-color: var(--sun); }
.btn--sun:hover { background: #ffd457; border-color: #ffd457; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; }
.linkbtn { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.linkbtn:hover { text-decoration-thickness: 2px; }

/* ---------- полоса выгод ---------- */
.annc { background: var(--sun); color: var(--text); font-size: 13px; font-weight: 500; height: var(--annc-h); overflow: hidden; position: relative; z-index: 51; }
.annc__list { height: 100%; display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 var(--gut); }
.annc__item { display: flex; align-items: center; gap: 0; white-space: nowrap; }
.annc__item + .annc__item::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--text); opacity: .5; margin: 0 18px; }
@media (max-width: 1279px) {
  .annc__list { position: relative; display: block; }
  .annc__item { position: absolute; inset: 0; justify-content: center; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); padding: 0 var(--gut); }
  .annc__item + .annc__item::before { display: none; }
  .annc__item.is-on { opacity: 1; transform: none; }
}

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: box-shadow .3s; }
.hdr.is-compact { box-shadow: 0 1px 0 var(--line); }
.hdr__bar { height: var(--hdr-h); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); transition: height .3s var(--ease); }
.hdr.is-compact .hdr__bar { height: 60px; }
/* знак RIOFIORE заказчика — строго ЧБ: чёрный на светлом, белый в тёмном подвале */
.logo { display: inline-flex; align-items: center; flex: none; color: #000; }
.logo svg { display: block; height: 30px; width: auto; aspect-ratio: 362.9 / 95.37; transition: height .3s var(--ease); }
.hdr.is-compact .logo svg { height: 26px; }
.mark { width: 30px; height: 30px; flex: none; transition: transform .6s var(--ease); }
.hdr__nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px); flex: 1; min-width: 0; }
.hdr__nav a { font-size: 15px; font-weight: 500; white-space: nowrap; padding: 8px 0; position: relative; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr__nav a.is-sale { color: var(--coral-text); }
.hdr__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr__icon { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; transition: background-color .2s; }
.hdr__icon:hover { background: var(--sand); }
.hdr__badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sun); color: var(--text); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.hdr__badge[data-zero] { opacity: 0; }
.hdr__badge.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.hdr__burger { display: none; }
@media (max-width: 1099px) {
  :root { --hdr-h: 60px; }
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-grid; margin-left: -10px; }
  .logo svg { height: 26px; }
  .hdr.is-compact .logo svg { height: 24px; }
  .mark { width: 24px; height: 24px; }
  .hdr__bar { gap: 6px; }
}
@media (max-width: 380px) { .hdr__icon { width: 40px; } .logo svg, .hdr.is-compact .logo svg { height: 22px; } }

/* ---------- слои: подложка, выезжающие панели, поиск, окно ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(28, 26, 23, .38); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.is-on { opacity: 1; visibility: visible; }
.panel {
  position: fixed; top: 0; bottom: 0; z-index: 90; width: min(440px, 100%); background: var(--bg);
  display: flex; flex-direction: column; visibility: hidden; transition: transform .38s var(--ease), visibility .38s;
}
.panel--right { right: 0; transform: translateX(100%); }
.panel--left { left: 0; transform: translateX(-100%); }
.panel.is-open { transform: none; visibility: visible; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.panel__title { font: italic 400 28px/1.1 var(--f-display); }
.panel__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.panel__close:hover { background: var(--sand); }
.panel__body { flex: 1; overflow-y: auto; padding: 20px 24px; overscroll-behavior: contain; }
.panel__foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: var(--bg); }

.mnav__list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; }
.mnav__list a.is-sale { color: var(--coral-text); }
.mnav__districts { margin-top: 28px; }
.mnav__districts p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.mnav__districts a { display: inline-flex; align-items: center; gap: 8px; margin: 0 14px 10px 0; font: italic 400 21px/1.2 var(--f-display); }
.mnav__districts a i { width: 12px; height: 12px; border-radius: 50%; background: var(--tone); }
.mnav__contact { margin-top: 28px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }

.search { position: fixed; left: 0; right: 0; top: 0; z-index: 85; background: var(--bg); max-height: 100vh; max-height: 100dvh; overflow-y: auto; transform: translateY(-102%); visibility: hidden; transition: transform .38s var(--ease), visibility .38s; box-shadow: 0 1px 0 var(--line); }
.search.is-open { transform: none; visibility: visible; }
.search__inner { padding-top: 24px; padding-bottom: 36px; }
.search__form { display: flex; align-items: center; gap: 12px; border-bottom: 1.5px solid var(--text); padding-bottom: 8px; }
.search__form input { flex: 1; min-width: 0; border: 0; background: transparent; font: italic 400 clamp(26px, 3.4vw, 44px)/1.2 var(--f-display); padding: 6px 0; outline: none; }
.search__form input::placeholder { color: #9d9285; }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--sand); font-size: 14px; font-weight: 500; transition: background-color .2s; white-space: nowrap; }
.chip:hover { background: var(--sand-deep); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--text); color: var(--bg); }
.chip .i { width: 16px; height: 16px; }
.search__res { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
.search__hit { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; padding: 6px; margin: -6px; border-radius: 4px; }
.search__hit:hover { background: var(--sand); }
.search__hit .ph { aspect-ratio: 3/4; background: var(--photo); }
.search__hit .ph img { width: 100%; height: 100%; object-fit: cover; }
.search__hit b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.search__hit span { font-size: 13px; color: var(--muted); }
.search__all { margin-top: 22px; }
.search__empty { margin-top: 24px; max-width: 44em; }
.search__close { position: absolute; top: 18px; right: var(--gut); }
@media (max-width: 899px) { .search__res { grid-template-columns: 1fr; } .search__inner { padding-top: 64px; } }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__box { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--bg); padding: clamp(24px, 4vw, 40px); }
.modal__box .panel__close { position: absolute; top: 10px; right: 10px; }

.toast { position: fixed; right: 16px; bottom: 16px; z-index: 96; max-width: min(380px, calc(100% - 32px)); background: var(--text); color: var(--bg); padding: 14px 18px; border-radius: 14px; font-size: 14px; transform: translateY(20px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.is-on { transform: none; opacity: 1; visibility: visible; }
.toast a { color: var(--sun); text-decoration: underline; text-underline-offset: .2em; margin-left: auto; white-space: nowrap; }
@media (max-width: 759px) { .toast { left: auto; right: 12px; bottom: 58px; } }

/* ---------- мини-корзина ---------- */
.mc__line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mc__line:first-child { padding-top: 4px; }
.mc__ph { aspect-ratio: 3/4; background: var(--photo); }
.mc__ph img { width: 100%; height: 100%; object-fit: cover; }
.mc__name { font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.mc__meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.mc__sum { font-weight: 500; font-size: 14.5px; text-align: right; white-space: nowrap; }
.mc__rm { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; margin-top: 10px; }
.mc__rm:hover { color: var(--text); }
.mc__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.mc__part { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.mc__added { background: var(--sun-soft); padding: 10px 14px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.mc__added .i { color: var(--success); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 36px; margin-top: 10px; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--sand); }
.qty button .i { width: 16px; height: 16px; }
.qty output { min-width: 24px; text-align: center; font-size: 14px; font-weight: 500; }

/* полоса до бесплатной доставки — заполнение мозаикой Копакабаны */
.free__txt { font-size: 14px; margin-bottom: 8px; }
.free__bar { height: 12px; background: var(--sand); border-radius: 6px; overflow: hidden; }
.free__bar i { display: block; height: 100%; background: var(--turquoise-soft) var(--wave-ocean) 0 0 / 40px 12px repeat-x; border-radius: 6px; transition: width .6s var(--ease); }
.free.is-done .free__bar i { background-color: var(--turquoise-soft); }

/* ---------- крошки, заголовки страниц ---------- */
.crumbs { padding-top: 18px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.crumbs [aria-current] { color: var(--text); }
.phead { padding: clamp(20px, 3vw, 40px) 0 clamp(24px, 3vw, 40px); }
.phead .lead { margin-top: 16px; }

.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 3.2vw, 44px); }
.shead__txt { max-width: 40em; }
.shead .lead { margin-top: 14px; }
.shead__link { flex: none; padding-bottom: 6px; }
@media (max-width: 759px) { .shead { flex-direction: column; align-items: flex-start; } .shead__link { padding-bottom: 0; } }

.sec { padding: clamp(56px, 6.4vw, 104px) 0; }
.sec--tight { padding: clamp(40px, 5vw, 72px) 0; }
.sec + .sec--flush { padding-top: 0; }

/* ---------- карточка товара в сетке ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 6px; }
.grid.is-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 8px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 6px; }
@media (max-width: 1099px) { .grid, .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 4px; }
  .grid.is-large { grid-template-columns: 1fr; gap: 36px; }
  .bleed-m { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); }
}
.card { position: relative; min-width: 0; }
.card__media { position: relative; aspect-ratio: 3/4; background: var(--photo); overflow: hidden; }
.card__media > a { position: absolute; inset: 0; display: block; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform 1.2s var(--ease); }
.card__media .card__alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__alt { opacity: 1; }
  .card:hover .card__media img { transform: scale(1.015); }
}
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; z-index: 1; }
.badge { display: inline-block; padding: 5px 10px 5px; border-radius: 999px; background: var(--tone, var(--sun)); color: var(--text); font-size: 11.5px; font-weight: 600; line-height: 1.1; letter-spacing: .01em; white-space: nowrap; }
.card__fav { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; z-index: 2; color: var(--text); }
.card__fav .i { width: 22px; height: 22px; transition: transform .25s var(--ease), fill .2s; }
.card__fav:hover .i { transform: scale(1.12); }
[aria-pressed="true"] > .i-heart, .is-fav .i-heart { fill: var(--coral); stroke: var(--text); }
.card__add {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; height: 40px; min-width: 40px; padding: 0 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 251, 243, .94); color: var(--text); font-size: 13.5px; font-weight: 500;
  transition: background-color .2s, padding .3s var(--ease);
}
.card__add span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease); }
.card__add .i { width: 20px; height: 20px; }
@media (hover: hover) {
  .card:hover .card__add span, .card__add:focus-visible span { max-width: 120px; }
  .card:hover .card__add, .card__add:focus-visible { padding: 0 14px 0 10px; }
}
.card__add:hover { background: var(--sun); }
.qs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(255, 251, 243, .97); padding: 12px 12px 14px; animation: qsIn .3s var(--ease); }
@keyframes qsIn { from { transform: translateY(100%); } }
.qs__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.qs__top button { width: 32px; height: 32px; display: grid; place-items: center; margin: -8px -6px -8px 0; border-radius: 50%; }
.qs__top button .i { width: 18px; height: 18px; }
.qs__sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.qs__sizes button { min-width: 36px; height: 34px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; border-radius: 4px; }
.qs__sizes button:hover:not(:disabled) { border-color: var(--text); }
.qs__sizes button:disabled { color: #b9afa2; background: transparent; text-decoration: line-through; }
.card__body { padding: 12px 4px 0; }
.card__name { display: block; font-size: 14px; line-height: 1.35; }
.card__name:hover { text-decoration: underline; text-underline-offset: .2em; }
.card__price { margin-top: 4px; font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price--sale { color: var(--sale); }
.price__old { color: var(--muted); font-weight: 400; }
.card__colors { margin-top: 8px; display: flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--muted); min-height: 22px; }
.card__colors span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { position: relative; width: 22px; height: 22px; display: inline-grid; place-items: center; flex: none; border-radius: 50%; }
.dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(28, 26, 23, .12); }
.dot.is-on::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px var(--text); }
.grid.is-large .card__name, .grid.is-large .card__price { font-size: 15.5px; }
@media (max-width: 759px) {
  .card__body { padding: 10px 2px 0; }
  .card__name, .card__price { font-size: 13.5px; }
  .card__add { right: 6px; bottom: 6px; height: 36px; min-width: 36px; padding: 0 7px; }
  .badges { left: 6px; top: 6px; }
  .badge { font-size: 10.5px; padding: 4px 8px; }
  .card__fav { top: 0; right: 0; }
}

/* ---------- кружки цветов ---------- */
.sw { --d: 44px; position: relative; width: var(--d); height: var(--d); flex: none; border-radius: 50%; background: var(--c); }
.sw--two { background: linear-gradient(135deg, var(--c) 50%, var(--c2) 50%); }
.sw--border { box-shadow: inset 0 0 0 1px rgba(28, 26, 23, .22); }
.sw-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px; text-align: center; font-size: 12.5px; line-height: 1.25; }
.sw-btn .sw { transition: transform .25s var(--ease); }
.sw-btn:hover .sw { transform: scale(1.08); }
.sw-btn[aria-pressed="true"] .sw, .sw-btn.is-on .sw { outline: 1.5px solid var(--text); outline-offset: 3px; }

/* ---------- пустые состояния ---------- */
.empty { text-align: center; padding: clamp(40px, 7vw, 96px) 0; max-width: 560px; margin: 0 auto; }
.empty__art { width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 50%; background: var(--sun-soft); display: grid; place-items: center; }
.empty__art .mark { width: 64px; height: 64px; }
.empty .h2 { font-size: clamp(32px, 3.4vw, 46px); }
.empty p { margin-top: 14px; color: var(--muted); }
.empty__act { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- волна-разделитель ---------- */
.wave { height: 48px; background: var(--bg) var(--wave-ink) 0 0 / 80px 24px repeat; }
.wave--thin { height: 24px; background-size: 60px 18px; }

/* ---------- подвал ---------- */
.ftr { background: var(--ocean); color: var(--bg); padding: clamp(48px, 6vw, 88px) 0 76px; font-size: 14.5px; }
.ftr a:hover { text-decoration: underline; text-underline-offset: .22em; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, .7fr)) minmax(0, .95fr); gap: 36px; }
.ftr__brand .logo { color: #fff; }
.ftr__brand .logo svg { height: 40px; }
.ftr__tag { margin-top: 16px; max-width: 30em; opacity: .9; }
.ftr__sub { margin-top: 28px; }
.ftr__sub p { font-weight: 500; margin-bottom: 10px; }
.ftr h3 { font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; opacity: .75; }
.ftr__col li + li { margin-top: 9px; }
.ftr__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.ftr__contacts li + li { margin-top: 10px; }
.ftr__contacts .i { width: 18px; height: 18px; margin-top: 2px; opacity: .8; }
.ftr__mid { margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid rgba(255, 251, 243, .22); display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.ftr__pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ftr__pills > span:first-child { margin-right: 6px; opacity: .75; font-size: 13px; }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 251, 243, .4); font-size: 13px; font-weight: 500; }
.ftr__legal { margin-top: 22px; font-size: 12.5px; opacity: .78; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.ftr__legal a { text-decoration: underline; text-underline-offset: .2em; }
.ftr :focus-visible { outline-color: var(--sun); }
@media (max-width: 1099px) { .ftr__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ftr__brand, .ftr__contacts-col { grid-column: 1 / -1; } }
@media (max-width: 759px) { .ftr__top { grid-template-columns: 1fr 1fr; gap: 30px 20px; } .ftr { padding-bottom: 72px; } }

/* форма подписки (в подвале и на главной) */
.subf { display: flex; gap: 8px; max-width: 460px; }
.subf input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(28, 26, 23, .35); background: var(--surface); font-size: 15px; }
.subf input:focus-visible { outline-offset: 1px; }
.subf .btn { min-height: 48px; padding: 0 22px; }
.ftr .subf input { background: rgba(255, 251, 243, .1); border-color: rgba(255, 251, 243, .45); color: var(--bg); }
.ftr .subf input::placeholder { color: rgba(255, 251, 243, .7); }
.subf-msg { margin-top: 10px; font-size: 13.5px; min-height: 1.4em; }
.subf-msg.is-err { color: var(--coral-text); }
.ftr .subf-msg.is-err { color: var(--sun); }
.subf-ok { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; max-width: 460px; }
.subf-ok .i { flex: none; }
@media (max-width: 420px) { .subf { flex-direction: column; } .subf input { flex: none; } .subf .btn { width: 100%; } }

/* ---------- главная ---------- */
.hero { position: relative; height: calc(100svh - var(--annc-h) - var(--hdr-h)); min-height: 560px; max-height: 920px; overflow: hidden; background: var(--photo); color: var(--bg); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero__slide.is-on { opacity: 1; visibility: visible; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.04); transition: transform 8s linear; }
.hero__slide.is-on .hero__img { transform: scale(1); }
/* подложка под текст: слой на весь кадр, градиенты уходят в ноль задолго до краёв — без кромки и полос.
   Вертикальный — нижние ~40 %, боковой — только левая треть и тоже гаснет кверху (маска). Товар в центре кадра не трогаем. */
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(28, 26, 23, .5) 0%, rgba(28, 26, 23, .2) 22%, rgba(28, 26, 23, 0) 42%); }
.hero__shade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(28, 26, 23, .42), rgba(28, 26, 23, .14) 30%, rgba(28, 26, 23, 0) 46%); -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 78%); mask-image: linear-gradient(to top, #000 30%, transparent 78%); }
.hero__slide.is-dark .hero__shade { background: linear-gradient(to top, rgba(255, 251, 243, .4) 0%, rgba(255, 251, 243, .14) 20%, rgba(255, 251, 243, 0) 38%); }
.hero__slide.is-dark .hero__shade::before { background: linear-gradient(to right, rgba(255, 251, 243, .5), rgba(255, 251, 243, .16) 28%, rgba(255, 251, 243, 0) 42%); }
.hero__eyebrow b { font-weight: 600; }
.hero__eyebrow span { opacity: .82; margin-left: 6px; }
.hero__slide.is-dark { color: var(--text); }
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(84px, 9vw, 120px); }
.hero__eyebrow { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
/* кикер стоит выше затемнения и попадает на светлый песок — даём ему собственную подложку-капсулу */
.hero__eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 0; padding: 6px 14px; border-radius: 999px; background: rgba(28, 26, 23, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-weight: 600; }
.hero__eyebrow span { opacity: 1; }
.hero__eyebrow span::before { content: "·"; margin-right: 6px; opacity: .7; }
.hero__slide.is-dark .hero__eyebrow { background: rgba(255, 251, 243, .72); }
/* заголовок держится левой трети кадра: модель и товар — в центре снимка */
.hero__title { font: italic 400 clamp(50px, 7vw, 112px)/.95 var(--f-display); letter-spacing: -.02em; max-width: 6.2em; text-wrap: balance; }
.hero__slide:not(.is-dark) .hero__title { text-shadow: 0 1px 24px rgba(28, 26, 23, .25); }
.hero__text { margin-top: 18px; max-width: 26em; font-size: clamp(16px, 1.25vw, 18px); }
.hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero__slide:not(.is-dark) .btn { background: var(--bg); color: var(--text); border-color: var(--bg); }
.hero__slide:not(.is-dark) .btn:hover { background: var(--sun); border-color: var(--sun); }
.hero__ctrl { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; }
.hero__ctrl .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.hero__tab { flex: 0 1 200px; text-align: left; font-size: 13px; font-weight: 500; color: inherit; padding: 6px 0; }
.hero__tab span { display: block; margin-bottom: 8px; opacity: .78; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__tab.is-on span, .hero__tab:hover span { opacity: 1; }
.hero__bar { display: block; height: 2px; background: rgba(255, 251, 243, .38); overflow: hidden; }
.hero__bar i { display: block; height: 100%; width: 0; background: currentColor; }
.hero__tab.is-on .hero__bar i { width: 100%; animation: heroBar var(--dur, 7000ms) linear; }
.hero.is-paused .hero__tab.is-on .hero__bar i { animation-play-state: paused; }
.hero.is-static .hero__tab.is-on .hero__bar i { animation: none; }
@keyframes heroBar { from { width: 0; } to { width: 100%; } }
.hero__pause { margin-left: 8px; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; }
.hero__pause .i { width: 18px; height: 18px; }
.hero.is-darkui { color: var(--text); }
.hero.is-darkui .hero__bar { background: rgba(28, 26, 23, .25); }
/* телефон: снимок сверху, текст — на цветной плашке слайда снизу (океан или песок), стык — мягкий градиент.
   Так товар на фото (сапоги, сумка) всегда выше текста и ничего не лежит на нём. */
@media (max-width: 759px) {
  .hero { --hp: 368px; height: min(calc(100svh - var(--annc-h) - var(--hdr-h)), 740px); min-height: 640px; max-height: none; }
  .hero__slide { background: var(--ocean); }
  .hero__slide.is-dark { background: var(--sand); }
  .hero__img { bottom: auto; height: calc(100% - var(--hp) + 44px); }
  .hero__shade { inset: auto 0 calc(var(--hp) - 44px) 0; height: 110px; background: linear-gradient(to bottom, rgba(10, 92, 99, 0), var(--ocean)); }
  .hero__shade::before { display: none; }
  .hero__slide.is-dark .hero__shade { background: linear-gradient(to bottom, rgba(244, 231, 209, 0), var(--sand)); }
  .hero__content { top: calc(100% - var(--hp)); bottom: auto; padding-top: 6px; }
  .hero__eyebrow { font-size: 14px; margin-bottom: 10px; }
  .hero__title { font-size: 44px; max-width: none; text-shadow: none !important; }
  .hero__text { font-size: 15px; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__cta { margin-top: 18px; gap: 10px 20px; }
  .hero__tab { flex: 1 1 0; min-width: 0; }
  .hero__ctrl { bottom: 16px; }
  .hero__ctrl .wrap { gap: 14px; }
  /* демо-плашка стоит у нижнего края первого экрана — оставляем под неё место, чтобы не закрывала вкладки слайдов */
  .hero { --hp: calc(368px + var(--rs-sw-h, 0px)); }
  .hero__ctrl { bottom: calc(16px + var(--rs-sw-h, 0px)); }
}

.manifesto { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.manifesto .h2 { grid-column: 1 / span 6; font-size: clamp(38px, 4.8vw, 72px); }
.manifesto__txt { grid-column: 8 / span 5; padding-top: 10px; }
.manifesto__txt p { font-size: clamp(17px, 1.3vw, 19px); }
.manifesto__txt .linkbtn { margin-top: 22px; }
@media (max-width: 899px) { .manifesto .h2, .manifesto__txt { grid-column: 1 / -1; } }

.districts { display: flex; gap: 6px; height: clamp(560px, 46vw, 680px); }
.district { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: var(--tone); overflow: hidden; transition: flex-grow .6s var(--ease); }
.district.is-open { flex-grow: 2.7; }
.district__ph { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--photo); }
.district__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.district.is-open .district__ph img { transform: scale(1.03); }
.district__body { padding: 18px 20px 22px; min-height: 172px; display: flex; flex-direction: column; }
.district__latin { font-size: 12.5px; font-weight: 500; letter-spacing: .02em; }
.district__name { font: italic 400 clamp(26px, 2.3vw, 36px)/1.05 var(--f-display); margin-top: 4px; overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 1100px) { .district:not(.is-open) .district__season { display: none; } .district:not(.is-open) .district__name { font-size: clamp(24px, 1.9vw, 30px); } }
.district__mood { margin-top: 10px; font-size: 15px; max-width: 26em; opacity: 0; transform: translateY(6px); transition: opacity .4s .1s, transform .4s .1s var(--ease); }
.district__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.district__more { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: .25em; opacity: 0; transition: opacity .4s .1s; white-space: nowrap; }
.district.is-open .district__mood, .district.is-open .district__more { opacity: 1; transform: none; }
.palette { display: inline-flex; }
.palette i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--tone, var(--bg)); }
.palette i + i { margin-left: -4px; }
.district__sale { position: absolute; top: 12px; right: 12px; z-index: 1; }
@media (max-width: 1099px) {
  .districts { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gut); margin: 0 calc(var(--gut) * -1); scroll-padding: 0 var(--gut); }
  .districts::-webkit-scrollbar { display: none; }
  .district, .district.is-open { flex: 0 0 min(76vw, 360px); scroll-snap-align: start; }
  .district__ph { flex: none; aspect-ratio: 3/4; }
  .district__mood, .district__more { opacity: 1; transform: none; }
  .district__name { white-space: normal; }
}

.colors { text-align: center; }
.colors .lead { margin: 14px auto 0; }
.colors__row { margin-top: clamp(30px, 4vw, 52px); display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; }
.colors__row .sw-btn { width: 96px; }
.colors__row .sw { --d: 72px; }
.colors__row small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 759px) {
  .colors__row { gap: 18px 6px; }
  .colors__row .sw-btn { width: 84px; }
  .colors__row .sw { --d: 56px; }
}

.looks { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.looks__intro { position: sticky; top: 110px; }
.looks__intro .lead { margin-top: 16px; }
.looks__intro .btn { margin-top: 28px; }
.looks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 6px; }
.looks__grid a:nth-child(2n) { margin-top: 72px; }
.lt, .lt__ph { display: block; }
.lt__ph { aspect-ratio: 3/4; background: var(--photo); overflow: hidden; }
.lt__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lt:hover .lt__ph img { transform: scale(1.03); }
.lt__cap { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; }
.lt__num { font: italic 400 34px/1 var(--f-display); }
.lt__title { font-weight: 500; }
.lt__dist { display: block; font-size: 13.5px; color: var(--muted); }
@media (max-width: 899px) {
  .looks { grid-template-columns: 1fr; }
  .looks__intro { position: static; }
  .looks__grid a:nth-child(2n) { margin-top: 36px; }
}

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.split__ph { aspect-ratio: 4/5; background: var(--photo); overflow: hidden; position: relative; }
.split__ph img { width: 100%; height: 100%; object-fit: cover; }
.split__word { font: italic 400 clamp(56px, 8vw, 128px)/.9 var(--f-display); letter-spacing: -.02em; }
.split__word em { font-style: italic; color: var(--coral-text); }
.split .h2 { margin-top: 26px; }
.split p { margin-top: 18px; max-width: 34em; }
.split .btn, .split .linkbtn { margin-top: 28px; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

.leblon { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.leblon__ph { position: relative; aspect-ratio: 4/5; background: var(--photo); }
.leblon__ph img { width: 100%; height: 100%; object-fit: cover; }
.leblon__sale { position: absolute; right: -22px; top: -22px; width: 112px; height: 112px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; font: italic 400 34px/1 var(--f-display); transform: rotate(-8deg); }
.leblon__txt { margin-top: 28px; }
.leblon__txt p { margin-top: 14px; max-width: 32em; }
.leblon__txt .btn { margin-top: 24px; }
.leblon .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.leblon .card__add, .leblon .qs { background: rgba(255, 255, 255, .95); }
@media (max-width: 899px) { .leblon { grid-template-columns: 1fr; } .leblon__sale { right: 10px; top: 10px; width: 86px; height: 86px; font-size: 26px; } }

.ugc__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: clamp(26px, 3.2vw, 44px); }
.ugc__tag { font: italic 400 clamp(44px, 6vw, 92px)/1 var(--f-display); color: var(--ocean); letter-spacing: -.02em; }
/* колонок столько, сколько постов (до 6): ряд всегда полный */
.ugc__grid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 6px; }
.ugc__post { display: block; min-width: 0; }
.ugc__ph { display: block; aspect-ratio: 3/4; background: var(--photo); overflow: hidden; position: relative; }
.ugc__ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ugc__post:hover img { transform: scale(1.04); }
.ugc__who { margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.ugc__who span { font-weight: 400; color: var(--muted); }
.ugc__cap { margin-top: 4px; font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ugc__note { margin-top: 24px; font-size: 12.5px; color: var(--muted); clear: both; }
/* первый пост «широкий» (две колонки, кадр 3:2) добивает неполный ряд: 5 постов = 2+1 / 3 на планшете и 2 / 2 / 2 на телефоне */
.ugc__post.is-wide .ugc__ph img { object-position: 50% 62%; }
@media (max-width: 1099px) {
  .ugc__grid { grid-template-columns: repeat(min(var(--cols, 6), 3), minmax(0, 1fr)); gap: 28px 6px; }
  .ugc__grid.is-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ugc__grid.is-n5 .ugc__post:first-child { grid-column: span 2; }
  .ugc__grid.is-n5 .ugc__post:first-child .ugc__ph { aspect-ratio: 3/2; }
}
@media (max-width: 759px) {
  .ugc__grid, .ugc__grid.is-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 4px; }
  .ugc__grid.is-odd .ugc__post:first-child { grid-column: 1 / -1; }
  .ugc__grid.is-odd .ugc__post:first-child .ugc__ph { aspect-ratio: 3/2; }
  .ugc__head { grid-template-columns: 1fr; }
}

.service { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); }
.service__it .i { color: var(--ocean); }
.service__it h3 { font-size: 17px; font-weight: 600; margin-top: 16px; }
.service__it p { margin-top: 6px; color: var(--muted); font-size: 14.5px; max-width: 24em; }
@media (max-width: 899px) { .service { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .service { grid-template-columns: 1fr; gap: 26px; } }

.letter { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.letter .h2 { font-size: clamp(42px, 5.6vw, 88px); }
.letter__txt { margin-top: 16px; max-width: 32em; }
.letter__perk { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.letter__perk b { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--text); color: var(--sun); font: italic 400 19px/1 var(--f-display); }
.letter .subf { max-width: none; }
.letter .subf input { border-color: var(--text); background: var(--bg); }
.letter__consent { margin-top: 12px; font-size: 12.5px; }
@media (max-width: 899px) { .letter { grid-template-columns: 1fr; } }

/* ---------- каталог ---------- */
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: clamp(18px, 2.4vw, 34px) 0 22px; }
.cat-head .lead { margin-top: 12px; }
.cat-count { font-size: 14px; color: var(--muted); padding-bottom: 6px; white-space: nowrap; }
.cat-banner { margin-bottom: 24px; padding: 18px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; }
.cat-banner__name { font: italic 400 30px/1.05 var(--f-display); }
.cat-banner__name small { display: block; font: 500 12.5px/1.4 var(--f-body); margin-bottom: 4px; }
.cat-banner p { font-size: 15px; max-width: 46em; }
.cat-note { margin-bottom: 22px; padding: 14px 18px; font-size: 15px; display: flex; gap: 12px; align-items: center; }
@media (max-width: 759px) { .cat-banner { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 2px; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 759px) { .tabs { margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); } }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 0; margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 59px; z-index: 20; background: var(--bg); }
.toolbar__sw { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.toolbar__sw .sw-btn { padding: 4px; }
.toolbar__sw .sw { --d: 26px; }
.toolbar__sw .sw-btn[aria-pressed="true"] .sw { outline-offset: 2px; }
.toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sel { position: relative; display: inline-flex; align-items: center; }
.sel select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; cursor: pointer; }
.sel .i { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; }
.dens { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.dens button { width: 34px; height: 32px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); }
.dens button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.dens .i { width: 18px; height: 18px; }
.active-f { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.active-f .chip { background: var(--sun-soft); }
.active-f .chip:hover { background: var(--sun); }
.cat-grid { padding: 24px 0 clamp(56px, 7vw, 104px); }
@media (max-width: 1099px) { .toolbar__sw { display: none; } }
@media (max-width: 759px) {
  .cat-head { grid-template-columns: 1fr; }
  .toolbar { top: 59px; gap: 10px; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding: 10px var(--gut); }
  .toolbar__right { gap: 8px; }
  .sel select { padding: 0 32px 0 12px; font-size: 13.5px; max-width: 168px; }
}
.fsec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fsec:first-child { padding-top: 0; }
.fsec h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.fopts { display: flex; flex-wrap: wrap; gap: 8px; }
.fopts .chip { background: transparent; border: 1px solid var(--line); }
.fopts .chip:hover { border-color: var(--text); background: transparent; }
.fopts .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.fopts .chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 1px rgba(28, 26, 23, .2); }
.fcolors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 4px; }
.fcolors .sw { --d: 38px; }
.fsizes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fsizes button { height: 42px; border: 1px solid var(--line); border-radius: 4px; font-weight: 500; font-size: 14px; }
.fsizes button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.fprice { display: flex; gap: 10px; align-items: center; }
.fprice label { flex: 1; font-size: 12.5px; color: var(--muted); }
.fprice input { display: block; width: 100%; margin-top: 4px; height: 42px; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; background: var(--surface); font-size: 15px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--sand-deep); position: relative; cursor: pointer; transition: background-color .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--text); }
.switch input:checked::after { transform: translateX(18px); }
.ffoot { display: flex; gap: 10px; }
.ffoot .btn { flex: 1; padding: 0 14px; }

/* ---------- карточка товара ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); padding-top: 22px; align-items: start; }
.gal { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; position: sticky; top: 76px; }
.gal__thumbs { display: flex; flex-direction: column; gap: 8px; }
.gal__thumb { aspect-ratio: 3/4; background: var(--photo); border: 1px solid transparent; padding: 0; overflow: hidden; opacity: .72; transition: opacity .2s; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb[aria-current="true"] { opacity: 1; border-color: var(--text); }
.gal__thumb:hover { opacity: 1; }
.gal__main { position: relative; aspect-ratio: 3/4; background: var(--photo); overflow: hidden; }
.gal__track { display: flex; height: 100%; transition: transform .5s var(--ease); }
.gal__slide { flex: 0 0 100%; height: 100%; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; }
.gal__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(255, 251, 243, .9); display: grid; place-items: center; }
.gal__nav--prev { left: 12px; } .gal__nav--next { right: 12px; }
.gal__dots { display: none; }
@media (max-width: 899px) {
  .pdp { grid-template-columns: 1fr; padding-top: 12px; }
  .gal { position: static; grid-template-columns: 1fr; margin: 0 calc(var(--gut) * -1); }
  .gal__thumbs, .gal__nav { display: none; }
  .gal__main { aspect-ratio: auto; background: none; }
  .gal__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; gap: 4px; }
  .gal__track::-webkit-scrollbar { display: none; }
  .gal__slide { flex: 0 0 86%; aspect-ratio: 3/4; scroll-snap-align: center; background: var(--photo); }
  .gal__dots { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
  .gal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color .2s; }
  .gal__dots i.is-on { background: var(--text); }
}
.pinfo { padding-top: 6px; }
.pinfo__dist { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--tone); font-size: 13px; font-weight: 500; }
.pinfo__dist i { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: italic 400 13px/1 var(--f-display); font-style: normal; }
.pinfo__dist i svg { width: 14px; height: 14px; }
.pinfo__dist:hover { text-decoration: underline; text-underline-offset: .2em; }
.pinfo h1 { font: italic 400 clamp(32px, 3vw, 46px)/1.08 var(--f-display); margin-top: 16px; letter-spacing: -.01em; }
.pinfo__rate { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pinfo__rate .i { width: 16px; height: 16px; fill: var(--sun); stroke: var(--text); stroke-width: 1.2; }
.pinfo__rate a { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; margin-left: 4px; }
.pinfo__price { margin-top: 20px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.pinfo__price s { font-size: 18px; color: var(--muted); font-weight: 400; }
.pinfo__price .badge { align-self: center; font-size: 12.5px; }
.pinfo__part { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pinfo__part .i { width: 18px; height: 18px; color: var(--ocean); }
.prow { margin-top: 26px; }
.prow__lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; margin-bottom: 10px; }
.prow__lbl b { font-weight: 600; }
.prow__lbl button { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; text-underline-offset: .22em; }
.prow__lbl button .i { width: 18px; height: 18px; }
.pcolors { display: flex; gap: 8px; }
.pcolors a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.pcolors a .sw { --d: 34px; }
.pcolors a[aria-current="true"] .sw { outline: 1.5px solid var(--text); outline-offset: 3px; }
.sizes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sizes button { height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; font-weight: 500; transition: border-color .15s, background-color .15s; }
.sizes button:hover:not(:disabled) { border-color: var(--text); }
.sizes button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.sizes button:disabled { background: transparent; color: #b4aa9c; position: relative; overflow: hidden; }
.sizes button:disabled::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 1px; background: #cfc5b6; transform: rotate(-28deg); }
.sizes.is-err button:not(:disabled) { border-color: var(--coral-text); }
.perr { color: var(--coral-text); font-size: 14px; font-weight: 500; margin-top: 8px; min-height: 0; }
.fit { margin-top: 14px; padding: 12px 14px; background: var(--sun-soft); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.fit .i { width: 20px; height: 20px; flex: none; }
.fit b { font-weight: 600; }
.pspec { margin-top: 14px; font-size: 14px; color: var(--muted); }
.pbuy { margin-top: 24px; display: flex; gap: 10px; }
.pbuy .btn { flex: 1; min-height: 56px; font-size: 16px; }
.pbuy__fav { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 1px solid var(--text); display: grid; place-items: center; transition: background-color .2s; }
.pbuy__fav:hover { background: var(--sand); }
.phint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pdeliv { margin-top: 24px; display: grid; gap: 10px; font-size: 14px; }
.pdeliv li { display: flex; gap: 10px; align-items: flex-start; }
.pdeliv .i { width: 20px; height: 20px; color: var(--ocean); }
.acc { margin-top: 26px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.acc details[open] summary .i { transform: rotate(180deg); }
.acc__body { padding: 0 0 20px; font-size: 15px; }
.acc__body ul { margin-top: 10px; }
.acc__body li { padding-left: 18px; position: relative; }
.acc__body li + li { margin-top: 6px; }
.acc__body li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 1px var(--text); }
.spec { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; }
.spec dt { color: var(--muted); }

.pair { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px); }
.pair .h2 { font-size: clamp(32px, 3.4vw, 48px); }
.pair__lead { margin-top: 14px; max-width: 26em; }
.pair__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.pair__plus { font: italic 400 36px/1 var(--f-display); text-align: center; }
.pair .card__add, .pair .qs { background: rgba(255, 255, 255, .95); }
@media (max-width: 899px) {
  .pair { grid-template-columns: 1fr; margin: 0 calc(var(--gut) * -1); padding: 32px var(--gut); }
  .pair__row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .pair__row > :first-child, .pair__row > :nth-child(2) { display: none; }
}

.revs__head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.revs__avg { display: flex; align-items: baseline; gap: 10px; }
.revs__avg b { font: italic 400 56px/1 var(--f-display); }
.revs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rev { background: var(--surface); padding: 22px 24px; }
.rev__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rev__top b { font-weight: 600; }
.rev__stars { display: inline-flex; gap: 1px; margin-top: 8px; }
.rev__stars .i { width: 15px; height: 15px; stroke-width: 1.2; }
.rev__stars .i.is-on { fill: var(--sun); }
.rev p { margin-top: 10px; font-size: 15px; }
.rev__fit { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 759px) { .revs__list { grid-template-columns: 1fr; } }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 18px) / 4); gap: 6px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; padding-bottom: 6px; }
.strip > * { scroll-snap-align: start; }
@media (max-width: 1099px) { .strip { grid-auto-columns: calc((100% - 12px) / 3); } }
@media (max-width: 759px) { .strip { grid-auto-columns: 46%; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); } }

.sg-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.sg-table th, .sg-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sg-table th { font-size: 13px; font-weight: 600; color: var(--muted); }
.sg-table tr.is-on td { background: var(--sun-soft); font-weight: 600; }

/* ---------- корзина ---------- */
.steps { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 14px; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font: italic 400 15px/1 var(--f-display); }
.steps li[aria-current] { color: var(--text); font-weight: 500; }
.steps li[aria-current] i { background: var(--sun); border-color: var(--sun); }
.steps li.is-done i { background: var(--text); color: var(--bg); border-color: var(--text); }
.cart { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: 26px 0 clamp(56px, 7vw, 104px); }
.cline { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cline:first-child { border-top: 1px solid var(--line); }
.cline__ph { aspect-ratio: 3/4; background: var(--photo); }
.cline__ph img { width: 100%; height: 100%; object-fit: cover; }
.cline__name { font-weight: 500; font-size: 16px; line-height: 1.3; }
.cline__name:hover { text-decoration: underline; text-underline-offset: .2em; }
.cline__meta { margin-top: 6px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.cline__meta .dot { width: 14px; height: 14px; }
.cline__meta .dot::before { width: 12px; height: 12px; }
.cline__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cline__sum { font-weight: 500; font-size: 16px; white-space: nowrap; }
.cline__sum s { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.cline__acts { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
@media (max-width: 759px) {
  .cline { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .cline__right { grid-column: 2; flex-direction: row; align-items: center; text-align: left; }
}
.summary { position: sticky; top: 84px; background: var(--surface); padding: 26px; }
.summary h2 { font: italic 400 30px/1.1 var(--f-display); margin-bottom: 18px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 15px; }
.summary dd { text-align: right; }
.summary .total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 600; }
.summary .free { margin: 0 0 20px; }
.summary .btn { margin-top: 20px; }
.summary__part { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: right; }
.summary__items { margin-bottom: 18px; display: grid; gap: 10px; }
.summary__items li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.summary__items .ph { aspect-ratio: 3/4; background: var(--photo); }
.summary__items .ph img { width: 100%; height: 100%; object-fit: cover; }
.summary__trust { margin-top: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.summary__trust li { display: flex; gap: 8px; align-items: center; }
.summary__trust .i { width: 16px; height: 16px; color: var(--ocean); }
@media (max-width: 899px) { .cart { grid-template-columns: 1fr; } .summary { position: static; } }
/* телефон и планшет: липкая панель корзины — итог и «Оформить заказ», пока кнопка в блоке «Итого» вне экрана */
.cbar { display: none; }
@media (max-width: 899px) {
  .cbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(28, 26, 23, .07);
    transform: translateY(105%); visibility: hidden;
    transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .32s;
  }
  .cbar.is-on { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
  .cbar__sum { display: grid; gap: 1px; min-width: 0; }
  .cbar__sum span { font-size: 12.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cbar__sum b { font-size: 19px; line-height: 1.2; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .cbar .btn { flex: none; min-height: 48px; padding: 0 24px; }
  @media (max-width: 379px) { .cbar { gap: 10px; } .cbar .btn { padding: 0 20px; } .cbar__free { display: none; } }
  /* демо-плашка встаёт над панелью, подвал и уведомления не уходят под неё */
  html.has-cbar { --rs-sw-lift: 68px; scroll-padding-bottom: max(calc(76px + env(safe-area-inset-bottom, 0px)), var(--rs-sw-h, 0px)); }
  html.cbar-on .ftr { padding-bottom: calc(76px + 68px + env(safe-area-inset-bottom, 0px)); }
  html.has-cbar .toast { bottom: max(calc(80px + env(safe-area-inset-bottom, 0px)), calc(16px + var(--rs-sw-h, 0px))); }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) { .cbar, .cbar.is-on { transition: none; } }

.co { display: grid; gap: 34px; }
.co fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.co legend { font: italic 400 30px/1.1 var(--f-display); margin-bottom: 18px; padding: 0; }
.co__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.co__grid .full { grid-column: 1 / -1; }
@media (max-width: 599px) { .co__grid { grid-template-columns: 1fr; } }
.fld label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.fld input, .fld textarea { width: 100%; height: 50px; padding: 0 16px; border: 1px solid #d8cbb6; border-radius: 6px; background: var(--surface); font-size: 16px; transition: border-color .15s; }
.fld textarea { height: 88px; padding: 12px 16px; resize: vertical; }
.fld input:hover, .fld textarea:hover { border-color: var(--muted); }
.fld input:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.fld.is-err input, .fld.is-err textarea { border-color: var(--coral-text); }
.fld__err { display: block; color: var(--coral-text); font-size: 13px; margin-top: 5px; font-weight: 500; }
.opts { display: grid; gap: 8px; }
.opt { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 16px 18px; border: 1px solid #d8cbb6; border-radius: 6px; background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s; }
.opt:hover { border-color: var(--muted); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted); margin-top: 1px; display: grid; place-items: center; }
.opt__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--text); transform: scale(0); transition: transform .2s var(--ease); }
.opt input:checked ~ .opt__dot { border-color: var(--text); }
.opt input:checked ~ .opt__dot::after { transform: scale(1); }
.opt:has(input:checked) { border-color: var(--text); background: var(--sun-soft); }
.opt input:focus-visible ~ .opt__dot { outline: 2px solid var(--focus); outline-offset: 3px; }
.opt__t { font-weight: 500; }
.opt__h { grid-column: 2 / 4; font-size: 13.5px; color: var(--muted); }
.opt__p { font-weight: 500; white-space: nowrap; text-align: right; }
.opt__p small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.chk { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14.5px; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--text); cursor: pointer; }
.demo-note { padding: 14px 16px; background: var(--turquoise-soft); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.demo-note .i { width: 20px; height: 20px; color: var(--ocean); flex: none; }
.co__back { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; text-underline-offset: .22em; margin-bottom: 18px; }
.co__back .i { width: 16px; height: 16px; }
.co__submit .btn { min-height: 58px; font-size: 16px; }
.co__err { color: var(--coral-text); font-weight: 500; margin-top: 10px; font-size: 14px; }

.done { padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 104px); }
.done__card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.done__seal { width: 92px; height: 92px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; margin-bottom: 26px; }
.done__seal .mark { width: 54px; height: 54px; }
.done h1 { font: italic 400 clamp(38px, 4.6vw, 68px)/1.04 var(--f-display); letter-spacing: -.01em; }
.done h1 span { white-space: nowrap; }
.done__txt { margin-top: 18px; max-width: 34em; font-size: 17px; }
.done__acts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.done__box { background: var(--surface); padding: 24px; }
.done__box h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.done__box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.done__box dt { color: var(--muted); }
.done .wave { margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 899px) { .done__card { grid-template-columns: 1fr; } }

/* ---------- районы ---------- */
.cap-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(18px, 2.4vw, 36px) 0 clamp(36px, 4vw, 60px); }
.cap-hero .h1 { font-size: clamp(48px, 6.4vw, 104px); }
.cap-hero .lead { margin-top: 18px; }
.map { position: relative; aspect-ratio: 12/7; background: var(--sand); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.map__pin i { width: 22px; height: 22px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 2px var(--text); flex: none; transition: transform .25s var(--ease); }
.map__pin span { font: italic 400 clamp(17px, 1.7vw, 25px)/1 var(--f-display); background: var(--bg); padding: 3px 8px 5px; }
.map__pin:hover i, .map__pin:focus-visible i { transform: scale(1.25); }
.map__pin:hover span { text-decoration: underline; text-underline-offset: .18em; }
.map__pin--l { flex-direction: row-reverse; }
.map__note { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--ocean); }
@media (max-width: 899px) { .cap-hero { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .map__pin span { font-size: 15px; padding: 2px 6px 3px; } .map__pin i { width: 16px; height: 16px; } }
.dnav { position: sticky; top: 59px; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.dnav .tabs { padding: 10px 0; }
@media (max-width: 759px) { .dnav .tabs { padding: 10px var(--gut); } }
.dnav .chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 1px rgba(28, 26, 23, .25); }
.dist { padding: clamp(48px, 6vw, 96px) 0; }
.dist + .dist { border-top: 1px solid var(--line); }
.dist__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.dist:nth-child(even) .dist__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.dist:nth-child(even) .dist__ph { order: 2; }
.dist__ph { position: relative; aspect-ratio: 3/4; background: var(--photo); overflow: hidden; }
.dist__ph img { width: 100%; height: 100%; object-fit: cover; }
.dist__plate { padding: clamp(24px, 3.4vw, 52px); display: flex; flex-direction: column; }
.dist__latin { font-size: 14px; font-weight: 500; }
.dist__name { font: italic 400 clamp(52px, 7vw, 112px)/.95 var(--f-display); letter-spacing: -.02em; margin-top: 6px; }
.dist__mood { margin-top: 18px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; line-height: 1.3; max-width: 22em; }
.dist__desc { margin-top: 14px; max-width: 34em; }
/* цвета района — именованные кружки со ссылкой в каталог; заполняют середину плашки смыслом, а не декором */
.dist__cols { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(28, 26, 23, .16); }
.dist__cols-h { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.dist__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dist__chips .chip { background: rgba(255, 251, 243, .78); min-height: 44px; padding: 0 16px 0 6px; gap: 10px; font-size: 15px; }
.dist__chips .chip:hover { background: var(--bg); }
.dist__chips .sw { --d: 32px; }
.dist__meta { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 14px; }
.dist__meta .palette i { width: 28px; height: 28px; }
.dist__meta .palette i + i { margin-left: -6px; }
.dist__meta .btn { margin-left: auto; }
.dist__items { margin-top: 6px; }
.dist__items-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 30px 0 16px; font-size: 15px; font-weight: 600; }
@media (max-width: 899px) {
  .dist__top, .dist:nth-child(even) .dist__top { grid-template-columns: 1fr; gap: 0; }
  .dist:nth-child(even) .dist__ph { order: 0; }
  .dist__ph { aspect-ratio: 4/5; margin: 0 calc(var(--gut) * -1); }
  .dist__plate { margin: 0 calc(var(--gut) * -1); padding: 28px var(--gut) 32px; }
  .dist__meta .btn { margin-left: 0; width: 100%; }
}

/* ---------- образы ---------- */
.lb-head { padding: clamp(18px, 2.4vw, 36px) 0 clamp(28px, 3vw, 44px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: end; }
.lb-head .h1 { font-size: clamp(56px, 7.4vw, 120px); }
.lb-head .lead { margin-top: 16px; }
.lb-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lb-jump a b { font: italic 400 16px/1 var(--f-display); }
@media (max-width: 899px) { .lb-head { grid-template-columns: 1fr; } .lb-jump { justify-content: flex-start; } }
.look { padding: clamp(40px, 5vw, 80px) 0; border-top: 1px solid var(--line); }
.look__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.look:nth-of-type(even) .look__fig { order: 2; }
.look__fig { position: relative; aspect-ratio: 3/4; background: var(--photo); }
.look__fig img { width: 100%; height: 100%; object-fit: cover; }
.hot { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; z-index: 1; }
.hot i { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--text); display: grid; place-items: center; font: italic 400 16px/1 var(--f-display); font-style: normal; transition: transform .25s var(--ease), background-color .2s; }
.hot i::before { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 251, 243, .7); animation: ping 2.4s var(--ease) infinite; }
.hot:hover i, .hot.is-on i { transform: scale(1.15); background: var(--sun); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 251, 243, .7); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 251, 243, 0); } }
/* закрытая подсказка не участвует в раскладке (display: none) — иначе на 390 px она раздвигала страницу.
   Правее середины кадра подсказка раскрывается влево, левее — вправо; ширина не больше экрана. */
.hot__tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--bg); padding: 8px 12px; font-size: 13px; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 1px var(--line); pointer-events: none; animation: tipIn .2s var(--ease); }
@keyframes tipIn { from { opacity: 0; } }
.hot__tip b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.hot:hover .hot__tip, .hot:focus-visible .hot__tip, .hot.is-on .hot__tip { display: block; }
.hot--r .hot__tip { left: 6px; transform: none; }
.hot--l .hot__tip { left: auto; right: 6px; transform: none; }
.look__fig { overflow: clip; overflow-clip-margin: 0; }
.look__num { display: inline-grid; place-items: center; width: clamp(84px, 8vw, 116px); height: clamp(84px, 8vw, 116px); border-radius: 50%; background: var(--tone); font: italic 400 clamp(38px, 3.6vw, 54px)/1 var(--f-display); }
.look__title { font: italic 400 clamp(36px, 4vw, 60px)/1.04 var(--f-display); margin-top: 22px; letter-spacing: -.01em; }
.look__dist { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: .22em; }
.look__txt { margin-top: 16px; max-width: 34em; }
.litems { margin-top: 28px; border-top: 1px solid var(--line); }
.litem { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.litem.is-flash { background: var(--sun-soft); }
.litem__ph { aspect-ratio: 3/4; background: var(--photo); display: block; }
.litem__ph img { width: 100%; height: 100%; object-fit: cover; }
.litem__note { font-size: 12.5px; font-weight: 600; color: var(--ocean); }
.litem__name { display: block; margin-top: 2px; font-weight: 500; line-height: 1.3; }
.litem__name:hover { text-decoration: underline; text-underline-offset: .2em; }
.litem__price { margin-top: 2px; font-size: 14px; }
.litem__buy { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.litem__buy .lsz { min-width: 38px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 13.5px; font-weight: 500; }
.litem__buy .lsz[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.litem__buy .lsz:disabled { color: #b4aa9c; background: transparent; text-decoration: line-through; }
.litem__buy .btn { margin-left: auto; }
.litem__err { width: 100%; color: var(--coral-text); font-size: 13px; font-weight: 500; }
.litem--alt { opacity: .92; }
.look__whole { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.look__whole .small { color: var(--muted); }
@media (max-width: 899px) {
  .look__grid { grid-template-columns: 1fr; }
  .look:nth-of-type(even) .look__fig { order: 0; }
  .look__fig { margin: 0 calc(var(--gut) * -1); }
  .look__num { position: absolute; left: var(--gut); top: 14px; z-index: 1; width: 72px; height: 72px; font-size: 32px; }
  .litem__buy .btn { margin-left: 0; }
}

/* ---------- история ---------- */
.ab-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; padding: clamp(18px, 2.4vw, 36px) 0 clamp(48px, 6vw, 96px); }
.ab-hero .h1 { font-size: clamp(46px, 6vw, 96px); }
.ab-hero .lead { margin-top: 22px; }
.ab-hero__ph { aspect-ratio: 4/5; background: var(--photo); }
.ab-hero__ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .ab-hero { grid-template-columns: 1fr; } }
.name { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: start; }
.name__part .name__word { margin-top: 0; max-width: none; font: italic 400 clamp(84px, 13vw, 210px)/.85 var(--f-display); letter-spacing: -.03em; }
.name__plus { font: italic 400 clamp(54px, 7vw, 110px)/1 var(--f-display); padding-top: .25em; }
.name__part p { margin-top: 18px; max-width: 26em; font-size: 17px; }
.name__title { font-size: 15px; font-weight: 600; margin-bottom: clamp(20px, 3vw, 40px); }
@media (max-width: 759px) { .name { grid-template-columns: 1fr; } .name__plus { padding: 0; } }
.quote { text-align: center; max-width: 1100px; margin: 0 auto; }
.quote blockquote { font: italic 400 clamp(34px, 4.6vw, 72px)/1.1 var(--f-display); letter-spacing: -.01em; }
.quote blockquote::before { content: "«"; } .quote blockquote::after { content: "»"; }
.quote figcaption { margin-top: 22px; color: var(--muted); }
.tl { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding-top: 64px; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 24px; background: var(--wave-ink) 0 0 / 80px 24px repeat-x; }
.tl__it { position: relative; }
.tl__year { font: italic 400 clamp(52px, 6vw, 96px)/1 var(--f-display); letter-spacing: -.02em; }
.tl__it h3 { margin-top: 14px; font-size: 19px; font-weight: 600; }
.tl__it p { margin-top: 8px; max-width: 30em; }
@media (max-width: 899px) { .tl { grid-template-columns: 1fr; padding-top: 52px; gap: 34px; } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: clamp(40px, 5vw, 72px); }
.facts li { padding: 22px 24px; background: var(--tone); }
.facts b { display: block; font: italic 400 clamp(40px, 4vw, 60px)/1 var(--f-display); }
.facts li > span:not(.facts__sw) { display: block; margin-top: 8px; font-size: 15px; }
@media (max-width: 759px) { .facts { grid-template-columns: 1fr; } }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); }
.story__cols { columns: 2 22em; column-gap: 40px; font-size: 17px; }
.story__cols p { break-inside: avoid; margin-bottom: 1em; }
@media (max-width: 899px) { .story { grid-template-columns: 1fr; } }
.princ { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.princ li { padding: 26px 24px 30px; background: var(--surface); }
.princ li > i { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--tone); margin-bottom: 22px; }
.princ h3 { font: italic 400 26px/1.1 var(--f-display); }
.princ p { margin-top: 10px; font-size: 15px; }
@media (max-width: 1099px) { .princ { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .princ { grid-template-columns: 1fr; } }
.contacts { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.contacts__list { margin-top: 26px; display: grid; gap: 16px; font-size: 17px; }
.contacts__list li { display: flex; gap: 14px; align-items: flex-start; }
.contacts__list .i { color: var(--ocean); margin-top: 2px; }
.contacts__list small { display: block; font-size: 13.5px; color: var(--muted); }
.contacts__list a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.cmap { position: relative; aspect-ratio: 6/5; background: var(--turquoise-soft); overflow: hidden; }
.cmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 899px) { .contacts { grid-template-columns: 1fr; } }

/* ---------- доставка ---------- */
.dlv { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); padding-bottom: clamp(56px, 7vw, 104px); align-items: start; }
.dlv__nav { position: sticky; top: 92px; display: grid; gap: 4px; font-size: 15px; }
.dlv__nav a { padding: 8px 14px; border-radius: 999px; }
.dlv__nav a:hover { background: var(--sand); }
.dlv__nav a.is-on { background: var(--text); color: var(--bg); }
.dlv__sec { padding-bottom: clamp(40px, 5vw, 72px); }
.dlv__sec + .dlv__sec { padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.dlv__sec .h2 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 22px; }
.dtable { width: 100%; border-collapse: collapse; }
.dtable th, .dtable td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable th { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 0; }
.dtable td:first-child { font-weight: 500; width: 40%; }
.dtable td small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 3px; }
.dtable td:last-child { white-space: nowrap; text-align: right; padding-right: 0; }
.dtable th:last-child { text-align: right; }
.dfree { margin-top: 18px; padding: 14px 18px; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.pays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pays li { background: var(--surface); padding: 20px 22px; }
.pays b { font-weight: 600; display: block; }
.pays span { font-size: 14.5px; color: var(--muted); display: block; margin-top: 4px; }
.rlist { display: grid; gap: 12px; max-width: 46em; }
.rlist li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.rlist li > i { width: 30px; height: 30px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font: italic 400 15px/1 var(--f-display); font-style: normal; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 46em; }
@media (max-width: 899px) {
  .dlv { grid-template-columns: 1fr; }
  .dlv__nav { position: sticky; top: 59px; z-index: 10; display: flex; overflow-x: auto; scrollbar-width: none; background: var(--bg); padding: 10px var(--gut); margin: 0 calc(var(--gut) * -1); border-bottom: 1px solid var(--line); }
  .dlv__nav::-webkit-scrollbar { display: none; }
  .dlv__nav a { white-space: nowrap; background: var(--sand); font-size: 14px; }
  .pays { grid-template-columns: 1fr; }
  .dtable td:first-child { width: auto; }
}

/* ---------- движение: уважаем настройки ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__img { transform: none !important; }
}
.dist { scroll-margin-top: 112px; }
.look { scroll-margin-top: 72px; }
.dlv__sec { scroll-margin-top: 96px; }
@media (max-width: 899px) { .dlv__sec { scroll-margin-top: 132px; } }
.chip[aria-pressed="true"] .muted, .chip.is-on .muted { color: inherit; opacity: .7; }
.look__fig .look__num { position: absolute; left: 18px; top: 18px; z-index: 1; width: clamp(64px, 6vw, 92px); height: clamp(64px, 6vw, 92px); font-size: clamp(28px, 2.6vw, 40px); }
.hot.is-hl i { background: var(--sun); }

/* суммы в кнопках: тонкая черта вместо точки-разделителя */
.btn__sum:not(:empty)::before { content: ""; display: inline-block; width: 1px; height: 1.05em; background: currentColor; opacity: .4; margin: 0 12px; vertical-align: -.18em; }
[data-fcount]:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }

.facts--one { grid-template-columns: 1fr; }
.facts--one li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding: clamp(22px, 3vw, 36px); }
.facts--one li > span:not(.facts__sw) { margin-top: 0; font-size: 17px; }
.facts__sw { display: flex; flex-wrap: wrap; gap: 8px; }
.facts__sw a { display: block; border-radius: 50%; transition: transform .2s var(--ease); }
.facts__sw a:hover { transform: translateY(-2px); }
.facts__sw .sw { --d: 30px; display: block; }
@media (max-width: 759px) { .facts--one li { grid-template-columns: auto minmax(0, 1fr); } .facts__sw { grid-column: 1 / -1; } .facts__sw .sw { --d: 26px; } }
.h1__count { font: 400 18px/1.3 var(--f-body); letter-spacing: 0; color: var(--muted); margin-left: 6px; white-space: nowrap; }

/* круг 3: пустые категории при активном фильтре, поиск и шторки на телефоне */
.chip:disabled { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); cursor: default; }
.chip:disabled .muted { opacity: .7; }
@media (max-width: 600px) {
  .search__form input { font-size: 22px; }
  /* плашка демо-переключателя (shared) сидит в левом нижнем углу — кнопки шторок поднимаем над ней */
  .panel__foot { padding-bottom: 62px; }
}

/* ===== правки, круг 1 (замечания арт-директора и QA) ===== */
main { overflow-x: clip; }
:root { --sec-pad: clamp(56px, 7vw, 104px); }
.sec { padding: var(--sec-pad) 0; }
/* две секции одного фона подряд — не складываем отступы */
.sec:not(.fill) + .sec:not(.fill):not(.sec--tight) { padding-top: 0; }
.sec--tight { padding: clamp(40px, 5vw, 72px) 0; }
.sec--tight + .sec--tight { padding-top: clamp(8px, 2vw, 32px); }

/* шапка: меню заглавными с разрядкой */
.hdr__nav a { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }

/* волна Копакабаны: широкая лента из трёх полос */
.wave { height: 52px; background: var(--bg) var(--wave-ink) 0 0 / 180px 52px repeat-x; }
.wave--thin { height: 36px; background-size: 125px 36px; }
.wave--sec { margin: 0; }
.tl { padding-top: 84px; }
.tl::before { top: 6px; height: 52px; background: var(--wave-ink) 0 0 / 180px 52px repeat-x; }
@media (max-width: 899px) { .tl { padding-top: 72px; } }

/* шапки служебных страниц: тёплая песочная панель с волной снизу */
.phead--panel { position: relative; isolation: isolate; padding: clamp(24px, 3vw, 44px) 0 clamp(26px, 3vw, 40px); margin: 14px 0 calc(36px + clamp(28px, 3vw, 44px)); }
.phead--panel::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--sand); }
.phead--panel::after { content: ""; position: absolute; top: 100%; left: 50%; width: 100vw; height: 36px; transform: translateX(-50%); background: var(--bg) var(--wave-ink) 0 0 / 125px 36px repeat-x; }
.phead--panel + .cart { padding-top: 0; }

/* бейджи: без разрядки, крупнее; «Новинка» в разделе «Новинки» не нужна */
.badge { font-size: 12px; letter-spacing: 0; font-kerning: normal; }
.no-new .badge[data-b="Новинка"] { display: none; }

/* манифест: текст + ряд цветов сезона */
.manifesto { align-items: center; }
.manifesto__sw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.manifesto__sw a { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); transition: transform .2s var(--ease); }
.manifesto__sw a.is-light { box-shadow: inset 0 0 0 1px rgba(28, 26, 23, .25); }
.manifesto__sw a:hover { transform: translateY(-3px); }

/* районы на главной: ровная верхняя линия панелей, название в строку, счётчик на всех плитках */
.district__latin { font-size: 13px; }
.district__latin i { font-family: var(--f-display); font-size: 14px; }
.district__more { opacity: 1; }
.palette i { box-shadow: 0 0 0 1.5px var(--tone, var(--bg)), inset 0 0 0 1px rgba(28, 26, 23, .28); }
@media (min-width: 1100px) {
  .district__body { flex: none; height: 236px; min-height: 0; overflow: hidden; }
  .district__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; hyphens: manual; font-size: clamp(28px, 2.4vw, 40px); }
  .district:not(.is-open) .district__name { font-size: clamp(18px, 1.65vw, 28px); }
  .district:not(.is-open) .district__lt, .district:not(.is-open) .district__mood { display: none; }
  .district:not(.is-open) .district__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .district:not(.is-open) .district__more { font-size: 13px; }
}

/* «Выберите свой цвет»: подписи крупнее и контрастнее */
.colors__row .sw-btn { font-size: 14px; }
.colors__row small { font-size: 13px; color: #4F473D; }

/* сервис на телефоне — сетка 2×2 */
@media (max-width: 480px) {
  .service { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .service__it .i { width: 28px; height: 28px; }
  .service__it h3 { font-size: 15.5px; margin-top: 10px; }
  .service__it p { font-size: 13.5px; }
}

/* каталог: счётчик в строку с H1 */
.cat-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
.cat-head__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.cat-head__row .cat-count { padding-bottom: 0; }
.near { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.near .shead { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.near__sw { display: flex; flex-wrap: wrap; gap: 8px; }
.near__sw .sw { --d: 18px; }

/* карточка товара */
.pcolor1 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pcolor1 i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); flex: none; }
.pcolor1 i.is-light { box-shadow: inset 0 0 0 1px rgba(28, 26, 23, .3); }
.pcolor1 b { font-weight: 600; }
@media (max-width: 899px) { .gal__slide:only-child { flex-basis: 100%; } }

/* «С чем носить»: «+» к первой паре, «или» между вариантами, знаки — по центру фото */
.pair__row { container-type: inline-size; align-items: start; }
.pair__plus { width: 44px; margin-top: calc((100cqi - 140px) / 3 * 2 / 3 - 18px); }
.pair__or { width: 56px; font-size: 24px; line-height: 36px; color: var(--ocean); }
.pair__row.is-two { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.pair__row.is-two .pair__plus { margin-top: calc((100cqi - 64px) / 2 * 2 / 3 - 18px); }
@media (max-width: 899px) {
  .pair__row > .pair__or { margin-top: calc((100cqi - 76px) / 2 * 2 / 3 - 18px); }
  .pair__row.is-two > :first-child { display: block; }
  .pair__row.is-two > .pair__plus { display: block; }
}

/* добивка ряда: плитка капсулы района и приглашение оставить отзыв */
.tile-more { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 3/4; padding: clamp(18px, 2vw, 26px); background: var(--tone); color: var(--text); transition: filter .2s; }
.tile-more:hover { filter: brightness(.97); }
.tile-more__k { font-size: 13px; font-weight: 500; }
.tile-more b { font: italic 400 clamp(28px, 2.6vw, 40px)/1.05 var(--f-display); }
.tile-more__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
.tile-more__go .i { width: 18px; height: 18px; }
.rev--cta { background: var(--sun-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rev--cta .rev__k { font: italic 400 26px/1.1 var(--f-display); margin-top: 0; }
.rev--cta .btn { margin-top: 16px; }

/* корзина и оформление */
.cline__fav { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; margin: -8px 0; color: var(--text); transition: background-color .2s; }
.cline__fav:hover { background: var(--sand); }
.cline__fav .i { width: 20px; height: 20px; }
.sunbadge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sun); font-weight: 600; font-size: 13.5px; }
.summary dd.summary__note { grid-column: 1 / -1; text-align: left; margin-top: -6px; font-size: 13px; color: var(--muted); }
.summary dt.total small { font-size: 13px; font-weight: 400; color: var(--muted); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--muted); opacity: .62; }
.opt__ic { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ocean); }
.opt__ic .i { width: 22px; height: 22px; }
.co { --opt-on: var(--tone, var(--sun-soft)); }
.opt:has(input:checked) { background: var(--opt-on); }
.qty button:disabled { opacity: .35; cursor: default; background: none; }
.toast [data-undo] { margin-left: auto; color: var(--sun); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
@media (max-width: 759px) { .toast { bottom: max(58px, calc(16px + var(--rs-sw-h, 0px))); } }

/* доставка */
a[href^="tel:"] { white-space: nowrap; }
.dtable__term { min-width: 7.5em; }
.pays li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.pays__ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--turquoise-soft); color: var(--ocean); display: grid; place-items: center; }
.pays__ic .i { width: 20px; height: 20px; }
.pays li span:not(.pays__ic) { grid-column: 2; }
.dfree { padding: 14px 18px; }

/* районы Рио: схема */
.map__pin { left: var(--x); top: var(--y); min-height: 40px; }
.map__note { right: auto; bottom: auto; left: 12px; top: 10px; }
@media (max-width: 599px) {
  .map__pin { left: var(--mx, var(--x)); top: var(--my, var(--y)); }
  .map .map__gb { display: none; }
}
.dist__latin i { font-family: var(--f-display); font-size: 15px; }

/* история бренда */
.ab-hero { align-items: center; }
.princ h3 { min-height: 2.2em; }
.story { align-items: start; }
.story__tag { margin-top: 16px; font: italic 400 22px/1.3 var(--f-display); }
.story__craft { margin-top: 18px; font-size: 17px; max-width: 34em; }
.story__srv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.story__srv li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; background: var(--bg); padding: 22px 22px 24px; }
.story__srv .i { width: 28px; height: 28px; color: var(--ocean); }
.story__srv h3 { font-size: 17px; font-weight: 600; }
.story__srv p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 599px) { .story__srv { grid-template-columns: 1fr; } }
/* ПК: плитки сервисов тянутся на высоту колонки с текстом — без пустоты под ними; иконка над текстом, заголовки ряда на одной высоте при любой длине описания */
@media (min-width: 900px) {
  .story__srv { grid-auto-rows: 1fr; }
  .story__srv li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; gap: 18px; padding: 26px 26px 28px; }
}

/* цели касания на телефоне — не меньше 44 px */
@media (max-width: 600px) {
  .card__add { height: 44px; min-width: 44px; right: 6px; bottom: 6px; }
  .chip { min-height: 44px; }
  .litem__buy .lsz { min-width: 44px; height: 44px; }
  .qs__sizes button { min-width: 44px; height: 44px; }
  .qs__top button { width: 44px; height: 44px; margin: -12px -10px -12px 0; }
  .facts__sw a { position: relative; }
  .facts__sw a::after { content: ""; position: absolute; inset: -8px; }
  .qty { height: 40px; }
  .qty button { width: 38px; height: 38px; }
  .panel__foot { padding-bottom: max(22px, calc(14px + var(--rs-sw-h, 48px))); }
  /* крошки: только ссылка на уровень выше */
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2) { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
  .crumbs li:nth-last-child(2)::before { content: "←"; margin: 0 6px 0 0; opacity: 1; flex: none; line-height: 1; }
  .crumbs li:nth-last-child(2) a { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 12px 0; }
  /* шаги заказа: подпись только у текущего */
  .steps { gap: 8px 10px; }
  .steps li:not([aria-current]) { font-size: 0; gap: 0; }
  .steps li:not([aria-current]) i { font-size: 15px; }
}

/* каталог на телефоне: «Фильтры», сортировка и плотность — одной строкой, под ней лента цветов */
@media (max-width: 1099px) {
  .toolbar__sw { display: flex; order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; gap: 2px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scroll-padding-inline: var(--gut); }
  .toolbar__sw::-webkit-scrollbar { display: none; }
  .toolbar__sw .sw-btn { flex: none; scroll-snap-align: start; }
  .toolbar__sw .sw { --d: 32px; }
  .toolbar__sw .sw-btn { padding: 6px; }
  .toolbar__sw .sw-btn > span:not(.sw) { display: none; }
}
@media (max-width: 759px) {
  .toolbar { flex-wrap: wrap; row-gap: 8px; }
  .toolbar__sw { margin: 0 calc(var(--gut) * -1); }
  .sel select { max-width: 150px; height: 44px; }
  .dens { padding: 0; border: 0; }
  .dens button { width: 44px; height: 44px; border: 1px solid var(--line); }
  .dens button[aria-pressed="true"] { display: none; }
  .dens button:not([aria-pressed="true"]) { color: var(--text); }
}
/* черта над «Итого» — без разрыва между колонками */
.summary dl { column-gap: 0; }
.summary dd { padding-left: 16px; }
.summary dd.summary__note { padding-left: 0; }
.dtable th:last-child { padding-right: 0; }
.wave--sec + .dnav { margin-top: 14px; }

/* 320–400 px (проверка при закрытии): длинные слова в названиях («металлизированной») переносятся, а не вылезают за карточку */
@media (max-width: 400px) { .card__name { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; } }
