@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay.woff2") format("woff2"),
       url("fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6e6e6e;
  --faint: #9a9a9a;
  --line: #ececec;
  --chip: #f3f3f2;
  --ph: #f4f4f3;
  --beige: #f1ebe2;
  --soft: #f7f7f6;
  --sale: #a8322a;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --tabbar-h: 58px;
  --act-h: 70px;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 28px);
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.has-act { padding-bottom: calc(var(--tabbar-h) + var(--act-h) + var(--safe-b) + 24px); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.screen { width: 100%; max-width: 1160px; margin: 0 auto; }
.screen.enter { animation: scr-in .24s ease-out; }
@keyframes scr-in { from { opacity: 0; } to { opacity: 1; } }

.scroller {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroller::-webkit-scrollbar { display: none; }

/* ---------- шапка главной ---------- */
.mast {
  padding: calc(30px + var(--safe-t)) var(--gutter) 16px;
  text-align: center;
}
.logo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: .07em;
  color: var(--text);
}
.logo-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  cursor: pointer;
}
/* «Золото и шёлк» — перевод ORO.e.SETA под логотипом */
.tagline {
  margin-top: 8px;
  padding-left: .36em;
  font-size: 10.5px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: #858585;
}
/* переключатель линии «Для неё / Для него»: сегменты, выбранная — чёрная */
.gender {
  display: inline-flex;
  margin-top: 14px;
  padding: 3px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: #fff;
}
.gender button {
  min-width: 112px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.gender button[aria-pressed="true"] { background: var(--text); color: #fff; }
.gender-lg { margin-top: 18px; }
.gender-lg button { min-width: 130px; height: 40px; font-size: 12.5px; }

/* ---------- большие плитки ---------- */
.heroes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 4px var(--gutter) 0;
}
.hero {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #e9e7e3;
  color: #fff;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  isolation: isolate;
}
.hero::before { content: ""; display: block; padding-top: 78%; }
.hero > img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .08) 55%, rgba(0, 0, 0, 0) 80%),
              linear-gradient(to bottom, rgba(0, 0, 0, .06), rgba(0, 0, 0, .16));
  pointer-events: none;
}
.hero-name {
  position: absolute;
  left: 12px; right: 12px; top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  font-size: clamp(19px, 6.2vw, 26px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}
.hero-name.long { font-size: clamp(17px, 5.4vw, 23px); letter-spacing: .1em; }
.hero-brand {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.hero:active > img { transform: scale(1.02); }
.hero.sk, .btile.sk { background: linear-gradient(90deg, #f3f2f0 0%, #e9e7e3 50%, #f3f2f0 100%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.hero.sk::after { display: none; }

/* бегущая строка */
.marquee {
  overflow: hidden;
  margin: 12px 0 0;
  padding: 8px 0;
  color: #9b9b9b;
  font-size: 14.5px;
  line-height: 1.3;
  letter-spacing: .01em;
}
.mq-track { display: flex; width: max-content; animation: mq 36s linear infinite; }
.mq-group { display: flex; flex: none; }
.mq-item { flex: none; padding: 0 14px; white-space: nowrap; }
.mq-item::after { content: "·"; margin-left: 28px; color: #c4c4c4; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- разделы главной ---------- */
.hsec { padding-top: 34px; }
.htitle {
  margin: 0 0 18px;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .26em;
  text-transform: uppercase;
}

/* категории — вещи на белом */
.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  padding: 0 var(--gutter);
}
.cat {
  display: block;
  padding: 0 0 12px;
  border: 0;
  background: none;
  color: var(--text);
  text-align: center;
  cursor: pointer;
}
.cat-ph { position: relative; display: block; width: 100%; padding-top: 100%; }
.cat-ph img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.cat:active .cat-ph img { transform: scale(.97); }
.cat-name {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* бренды — кампейн-фото с названием */
.brow { gap: 8px; padding: 0 var(--gutter); scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); }
.btile {
  position: relative;
  flex: 0 0 auto;
  width: 41vw;
  max-width: 220px;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e9e7e3;
  color: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  isolation: isolate;
}
.btile::before { content: ""; display: block; padding-top: 128%; }
.btile img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.btile::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .42));
  pointer-events: none;
}
.btile-name {
  position: absolute;
  left: 8px; right: 8px; bottom: 14px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.btile-name.long { font-size: 14px; letter-spacing: .05em; }

/* низ главной */
.hfoot {
  margin-top: 40px;
  padding: 30px var(--gutter) 6px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.hfoot-logo { font-family: var(--serif); font-size: 20px; letter-spacing: .07em; color: var(--text); }
.hfoot .tagline { margin-top: 6px; font-size: 9.5px; }
.hfoot p { max-width: 320px; margin: 10px auto 14px; font-size: 13.5px; line-height: 1.5; }
.hfoot-link { font-size: 14px; font-weight: 500; color: var(--text); text-underline-offset: 4px; }

/* ---------- заголовок страницы ---------- */
.phead {
  position: relative;
  padding: calc(18px + var(--safe-t)) 60px 6px;
  text-align: center;
}
.ptitle { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.15; letter-spacing: .01em; }
.pcount { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.back-btn {
  position: absolute;
  left: 6px; top: calc(12px + var(--safe-t));
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 22px;
  background: none;
}
.back-btn svg, .back-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html.tg .back-btn, html.tg .back-fab { display: none; }

/* ---------- страница бренда ---------- */
.bhero { position: relative; overflow: hidden; background: #e9e7e3; color: #fff; isolation: isolate; }
.bhero::before { content: ""; display: block; padding-top: 112%; }
.bhero > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.bhero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}
.bhero-txt { position: absolute; left: 16px; right: 16px; bottom: 26px; z-index: 1; text-align: center; }
.bhero-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .3);
}
.bhero-name.long { font-size: 28px; }
.bhero-count { margin-top: 8px; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .92; }
.bhero .back-fab { top: calc(12px + var(--safe-t)); }
#s-brand .toolbar { padding-top: 14px; }

/* ---------- панель «Сортировка» + чипы ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 10px 0;
  background: #fff;
}
#s-catalog .toolbar { position: static; padding-top: 6px; }
.tools { position: relative; gap: 8px; padding: 0 var(--gutter); }
.tbtn, .chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
}
.tbtn { border: 0; background: var(--chip); color: var(--text); }
.tbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tbtn .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--text); }
.chip { border: 1px solid #dcdcdc; background: #fff; color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #fff; }
.chip .x { margin-right: -3px; font-size: 18px; line-height: 1; opacity: .85; }

/* ---------- сетка вещей ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 10px;
  padding: 6px var(--gutter) 0;
}
.tile { position: relative; min-width: 0; }
.tile a { display: block; color: inherit; text-decoration: none; }
.ph {
  position: relative;
  width: 100%;
  padding-top: 133.333%;
  overflow: hidden;
  background: var(--ph);
}
.ph > img, .ph > .stub { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.ph > img { object-fit: cover; }
.disc {
  position: absolute;
  left: 8px; top: 8px;
  padding: 4px 6px;
  background: #fff;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.meta { display: flex; align-items: flex-start; gap: 2px; padding-top: 10px; }
.meta > a { flex: 1; min-width: 0; }
.t-brand {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-kind {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t-kind::first-letter, .c-kind::first-letter, .ol-kind::first-letter { text-transform: uppercase; }
.t-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 7px;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
}
.t-ours { font-size: 15px; font-weight: 600; line-height: 1.3; }
.t-was { font-size: 12.5px; line-height: 1.3; color: var(--faint); text-decoration: line-through; }
.t-price.long { display: block; }
.t-price.long .t-ours { display: block; font-size: 13px; }
.t-price.long .t-was { display: block; font-size: 12px; }
.heart {
  flex: none;
  width: 38px; height: 38px;
  margin: -9px -10px 0 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--text);
}
.heart svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.heart[aria-pressed="true"] svg, .btn-fav[aria-pressed="true"] svg { fill: currentColor; }
.heart.pop svg, .btn-fav.pop svg { animation: pop .32s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }

.stub {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(160deg, #f5f3ef 0%, #ebe7e0 100%);
  color: #6f6559;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.more { display: flex; justify-content: center; padding: 26px 0 4px; }
.btn-more {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}

.hint {
  margin: 0 var(--gutter) 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* пустые состояния */
.empty { padding: 52px 28px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 58px; height: 58px; margin: 0 auto; fill: none; stroke: var(--text); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.empty p { margin: 16px auto 20px; max-width: 300px; font-size: 15px; line-height: 1.45; }
.empty .chips-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.btn-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--text);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* скелет при загрузке */
@keyframes sk { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* ---------- поиск (вкладка «Каталог») ---------- */
.searchbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(12px + var(--safe-t)) var(--gutter) 8px;
  background: #fff;
}
.search { position: relative; }
.search svg {
  position: absolute;
  left: 13px; top: 50%;
  width: 19px; height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--faint);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border: 0;
  border-radius: 10px;
  background: var(--chip);
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: #8f8f8f; }
.search input:focus { box-shadow: inset 0 0 0 1.5px #cfcfcf; }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear {
  position: absolute;
  right: 3px; top: 50%;
  width: 40px; height: 40px;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}
.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px var(--gutter) 0;
}
.cat-head .pcount { margin: 0; text-align: right; }
.gender-sm { margin-top: 0; padding: 2px; }
.gender-sm button { min-width: 0; height: 30px; padding: 0 12px; font-size: 10.5px; letter-spacing: .12em; }

/* ---------- карточка вещи ---------- */
.gal { position: relative; background: var(--ph); }
.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  height: 133.333vw;
  height: min(133.333vw, 68vh);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide img.fill { object-fit: cover; }
.slide .stub { position: absolute; top: 0; left: 0; width: 100%; height: 100%; font-size: 28px; }
/* «образ» — та же вещь на модели из каталога бренда, после живых фото */
.look-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 6px 11px 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .10);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}
.slide.stub-slide { height: min(80vw, 46vh); }
.dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 2px; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: #d6d6d6; transition: background .2s, width .2s; }
.dots i.on { width: 14px; background: var(--text); }
.nav {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  display: none;
}
.nav.prev { left: 12px; }
.nav.next { right: 12px; }
@media (hover: hover) and (pointer: fine) { .nav { display: block; } }
.back-fab {
  position: absolute;
  left: 12px; top: calc(12px + var(--safe-t));
  z-index: 3;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 21px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .14);
  color: var(--text);
}

.c-body { padding: 16px var(--gutter) 0; }
.c-brand { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; }
.c-brand a { text-decoration: none; }
.c-kind { margin-top: 3px; font-size: 15.5px; line-height: 1.35; color: var(--muted); }
.c-price { margin-top: 16px; }
.lbl { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.c-ours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.c-ours.long { font-size: 19px; }
.c-disc {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.c-was {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--chip);
  color: #4d4d4d;
  font-size: 14px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.c-about { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: #262626; }
.c-sizes { margin-top: 20px; }
.c-sizes.need .lbl { color: #b3261e; }
.c-sizes.need .sz button { border-color: #b3261e; }
.sz { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sz button {
  min-width: 50px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.sz button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #fff; }
.c-art { margin-top: 14px; font-size: 14px; color: var(--muted); }
.c-help {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 14px;
  line-height: 1.45;
  color: #4d4d4d;
}
.c-help a { color: var(--text); font-weight: 500; text-underline-offset: 3px; }
.c-fact {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: #8a8a8a;
  font-style: italic;
}
.c-more { padding-top: 36px; }
.c-more .htitle { margin-bottom: 14px; }
.c-brandlink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 2 * var(--gutter));
  max-width: 528px;
  margin: 26px auto 0;
  min-height: 48px;
  border: 1px solid var(--text);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.actbar {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + var(--safe-b));
  z-index: 35;
  padding: 10px var(--gutter);
  border-top: 1px solid var(--line);
  background: #fff;
}
.actbar-in { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 50px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-dark { flex: 1.35 1 0; border: 0; background: var(--text); color: #fff; }
.btn-dark:active { background: #333; }
.btn-dark.done { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-line { flex: 1 1 0; border: 0; background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-fav { flex: none; width: 50px; padding: 0; border: 0; background: var(--beige); color: var(--text); }
.btn-fav svg { width: 22px; height: 22px; stroke-width: 1.5; }

/* ---------- заказ ---------- */
.order { padding: 6px var(--gutter) 0; }
.ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ol-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ol-ph {
  position: relative;
  width: 76px; height: 101px;
  overflow: hidden;
  background: var(--ph);
}
.ol-ph img, .ol-ph .stub { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ol-ph .stub { font-size: 12px; padding: 4px; }
.ol-main { display: block; min-width: 0; color: inherit; text-decoration: none; }
.ol-brand { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ol-kind { margin-top: 2px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.ol-size { margin-top: 4px; font-size: 13px; color: var(--text); }
.ol-code { margin-top: 4px; font-size: 12px; color: var(--faint); overflow-wrap: anywhere; }
.ol-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ol-price b { font-size: 15px; font-weight: 600; }
.ol-price s { font-size: 13px; color: var(--faint); }
.ol-x {
  width: 40px; height: 40px;
  margin: -8px -10px 0 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 24px;
  line-height: 1;
}
.sum {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: var(--soft);
  font-variant-numeric: tabular-nums;
}
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-row + .sum-row { margin-top: 6px; }
.sum-row .k { font-size: 15px; color: var(--muted); }
.sum-total .v { font-size: 24px; font-weight: 600; }
.sum-was .v { font-size: 15px; color: var(--faint); text-decoration: line-through; }
.sum-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.send { width: 100%; height: auto; min-height: 54px; margin-top: 14px; padding: 8px 14px; font-size: 16px; line-height: 1.25; white-space: normal; text-align: center; }
.send-note { margin: 12px 4px 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.showtext {
  display: block;
  margin: 8px auto 0;
  padding: 10px;
  border: 0;
  background: none;
  color: #4d4d4d;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tplbox { margin-top: 4px; }
.tpl {
  display: block;
  width: 100%;
  min-height: 170px;
  padding: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
}
.tplbox .btn { width: 100%; margin-top: 8px; }

/* ---------- лист «Сортировка» ---------- */
.modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .34);
  opacity: 0;
  transition: opacity .18s ease;
}
.modal.open { opacity: 1; }
.sheet {
  width: 100%;
  max-width: 560px;
  padding: 10px var(--gutter) calc(14px + var(--safe-b));
  border-radius: 18px 18px 0 0;
  background: #fff;
  transform: translateY(24px);
  transition: transform .22s ease;
}
.modal.open .sheet { transform: none; }
.sheet::before { content: ""; display: block; width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #dedede; }
.sheet-t { margin: 0 0 6px; font-size: 17px; font-weight: 600; text-align: center; }
.opts button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 54px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 16px;
  text-align: left;
}
.opts button:last-child { border-bottom: 0; }
.opts button::after { content: ""; width: 18px; height: 10px; margin-top: -4px; border-left: 2px solid transparent; border-bottom: 2px solid transparent; transform: rotate(-45deg); }
.opts button[aria-checked="true"] { font-weight: 600; }
.opts button[aria-checked="true"]::after { border-color: var(--text); }

/* ---------- нижняя панель ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding-bottom: var(--safe-b);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}
.tabbar-in { display: flex; max-width: 560px; height: var(--tabbar-h); margin: 0 auto; }
.tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: #8c8c8c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--text); font-weight: 600; }
.tab[aria-current="page"] svg { stroke-width: 1.8; }
.badge {
  position: absolute;
  top: 5px; left: calc(50% + 5px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border-radius: 22px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
  pointer-events: none;
}
body.has-act .toast { bottom: calc(var(--tabbar-h) + var(--act-h) + var(--safe-b) + 12px); }

.fail { padding: 48px var(--gutter); text-align: center; color: var(--muted); }


/* ---------- 20.10.2026: «Новинки недели», «Хиты», «Бренды А–Я» ---------- */
/* быстрые ссылки под «для неё / для него» */
.qlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.qlinks button {
  height: 34px;
  padding: 0 15px;
  border: 1px solid #d9d9d9;
  border-radius: 17px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .03em;
}
.qlinks button:active { background: var(--chip); }

/* новинки недели на главной — первой лентой */
.hsec-new { padding-top: 12px; padding-bottom: 22px; }
.hsub {
  margin: -11px 0 16px;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.nrow { align-items: flex-start; gap: 10px; padding: 0 var(--gutter) 2px; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); }
.nrow > .tile, .tile-all { flex: 0 0 auto; width: 42vw; max-width: 210px; scroll-snap-align: start; }
.tile-all {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
}
.tile-all::before { content: ""; display: block; padding-top: 133.333%; }
.ta-in {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  text-align: center;
}
.ta-t { font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.ta-n { font-size: 13px; color: var(--muted); }
.tile-all svg { width: 22px !important; height: 22px !important; margin-top: 2px; }
.tile-all:active { background: var(--chip); }

/* значок «Новинка» на плитке */
.nbadge {
  position: absolute;
  right: 8px; top: 8px;
  padding: 4px 6px;
  background: #fff;
  color: var(--text);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* заголовок дня в «Новинках недели» */
.dayhead {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 -12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.grid > .dayhead:first-child { margin-top: 0; }
.dh-t { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.dh-t::first-letter { text-transform: uppercase; }
.dh-n { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* переключатель «для неё / для него» в шапке раздела */
.phead .gender-sm { margin-top: 6px; }

/* «Бренды А–Я» */
.azbar { position: sticky; top: 0; z-index: 15; padding: 8px var(--gutter) 4px; background: #fff; }
.bsearch input { height: 42px; }
.az { gap: 2px; margin: 8px calc(-1 * var(--gutter)) 0; padding: 0 calc(var(--gutter) - 6px); }
.az button {
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 17px;
  background: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.az button:active { background: var(--chip); }
.blist { padding: 0 var(--gutter); }
.bgrp { break-inside: avoid; padding-top: 12px; }
.bgrp-l { margin: 6px 0 2px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; }
.bi, .cm {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  text-align: left;
}
.bi-n { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.bi-c, .cm-n { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bi svg, .cm svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #b3b3b3; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bi:active, .cm:active { background: var(--soft); }
#s-brands .empty { padding-top: 36px; }

/* меню во вкладке «Каталог» — как в образце: «Бренды», «Новинки», «Хиты» строками */
.cmenu { margin: 10px var(--gutter) 2px; border-top: 1px solid var(--line); }
.cm-t { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; }

/* страница бренда без кампейн-фото */
.bhero.noimg { background: var(--beige); color: var(--text); }
.bhero.noimg::before { padding-top: 50%; }
.bhero.noimg::after { display: none; }
.bhero.noimg .bhero-txt { bottom: 22px; }
.bhero.noimg .bhero-name { text-shadow: none; }
.bhero.noimg .bhero-count { opacity: .72; }

.more-cat { padding-top: 22px; }


/* ---------- 20.10.2026 (вечер): первый экран — выбор «Для неё» / «Для него», как вход в образце ---------- */
.screen.gate { max-width: none; }
body.on-gate { padding-bottom: 0; }
body.on-gate .tabbar { display: none; }
.gate-in {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #1d1c1a;
}
html.tg .gate-in { height: var(--tg-viewport-stable-height, 100svh); }
.gate-half {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #2b2926;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  -webkit-appearance: none;
  appearance: none;
}
.gate-half img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  transition: transform .9s ease;
}
.gate-half[data-pick="her"] img { object-position: 50% 2%; }    /* как в assets/home.json → gate (до загрузки data.json) */
.gate-half[data-pick="him"] img { object-position: 50% 12%; }
.gate-half::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, .04) 30%, rgba(0, 0, 0, .12) 55%, rgba(0, 0, 0, .6) 100%);
  pointer-events: none;
}
.gate-half + .gate-half::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  z-index: 2;
  width: 1px;
  background: rgba(255, 255, 255, .22);
}
.gate-t {
  position: absolute;
  left: 6px; right: 6px; top: 50%;
  z-index: 1;
  padding-left: .2em;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}
.gate-t::after { content: ""; display: block; width: 26px; height: 1px; margin: 13px auto 0; background: currentColor; opacity: .85; }
.gate-half:active img { transform: scale(1.03); }
@media (hover: hover) and (pointer: fine) { .gate-half:hover img { transform: scale(1.03); } }
/* логотип и подпись — внизу, как в образце: лица на фото не закрыты */
.gate-head {
  position: absolute;
  left: 0; right: 0; bottom: calc(64px + var(--safe-b));
  z-index: 3;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .38);
  pointer-events: none;
}
.gate-head .logo { color: #fff; font-size: 34px; }
.gate-head .tagline { color: rgba(255, 255, 255, .94); font-weight: 400; }
.gate-foot {
  position: absolute;
  left: 0; right: 0; bottom: calc(26px + var(--safe-b));
  z-index: 3;
  margin: 0;
  padding-left: .2em;
  color: rgba(255, 255, 255, .9);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
  pointer-events: none;
}

/* ---------- шире телефона ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 14px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btile { width: 200px; }
  .nrow > .tile, .tile-all { width: 200px; }
}
@media (min-width: 720px) {
  .heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hero::before { padding-top: 100%; }
  .logo { font-size: 40px; }
  .bhero::before { padding-top: 46%; }
  .bhero.noimg::before { padding-top: 22%; }
  .gate-t { font-size: 26px; }
  .gate-head .logo { font-size: 48px; }
  .gate-head .tagline { font-size: 12px; }
  .blist { columns: 2; column-gap: 48px; }
  .cmenu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; border-top: 0; }
  .cm { border-top: 1px solid var(--line); }
  .az { justify-content: safe center; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tools { justify-content: safe center; }
  .nrow > .tile, .tile-all { width: 220px; }
  .blist { columns: 3; }
}
@media (min-width: 860px) {
  #s-card .card-in {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 36px;
    padding: 32px 24px 0;
    align-items: start;
  }
  #s-card .media { position: sticky; top: 24px; }
  .gal { overflow: hidden; border-radius: 6px; }
  .slide { height: auto; aspect-ratio: 3 / 4; max-height: 82vh; }
  .slide.stub-slide { aspect-ratio: auto; height: 320px; }
  .c-body { padding: 0; }
}
@media (max-width: 350px) {
  :root { --gutter: 12px; }
  .btn { padding: 0 8px; font-size: 15px; }
  .actbar-in { gap: 6px; }
  .btn-fav { width: 46px; }
  .tab { font-size: 10px; }
  .gender-lg button { min-width: 112px; }
  .hero-name { font-size: 21px; }
  .cat-name { font-size: 10.5px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  .screen.enter, .modal, .sheet, .hero > img { animation: none; transition: none; }
  .hero.sk, .btile.sk { animation: none; }
  .mq-track { display: block; width: auto; animation: none; }
  .mq-group + .mq-group, .mq-item.rep { display: none; }
  .mq-group { flex-wrap: wrap; justify-content: center; gap: 2px 18px; padding: 0 var(--gutter); }
  .mq-item { white-space: normal; }
  .mq-item::after { content: none; }
  .heart.pop svg, .btn-fav.pop svg { animation: none; }
}
