:root {
  --bg: #f7f3ee; --card: #ffffff; --ink: #1f1b18; --muted: #7b726a; --line: #e7dfd6;
  --accent: #7a4b2e; --accent-ink: #fff; --chip: #efe8df; --chip-on: #1f1b18; --chip-on-ink: #fff;
  --warn: #b4531f; --danger: #b3261e; --ok: #2e7d4f;
  --check: repeating-conic-gradient(#f1ece6 0 25%, #faf7f3 0 50%) 0 0 / 18px 18px;
  --radius: 16px; --shadow: 0 1px 2px rgba(40, 25, 10, .06), 0 6px 20px rgba(40, 25, 10, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17161a; --card: #222026; --ink: #f2eee9; --muted: #a59d95; --line: #34313a;
    --accent: #d39a6a; --accent-ink: #1b1410; --chip: #2c2930; --chip-on: #f2eee9; --chip-on-ink: #17161a;
    --check: repeating-conic-gradient(#2a272e 0 25%, #222026 0 50%) 0 0 / 18px 18px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17161a; --card: #222026; --ink: #f2eee9; --muted: #a59d95; --line: #34313a;
  --accent: #d39a6a; --accent-ink: #1b1410; --chip: #2c2930; --chip-on: #f2eee9; --chip-on-ink: #17161a;
  --check: repeating-conic-gradient(#2a272e 0 25%, #222026 0 50%) 0 0 / 18px 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; min-height: 100vh; }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .warn { color: var(--warn); }
.boot { display: grid; place-items: center; min-height: 100vh; font-weight: 700; font-size: 22px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.big { width: 100%; min-height: 52px; font-size: 17px; }
.btn.ghost { background: transparent; }
.btn.link { border: 0; background: none; color: var(--accent); padding: 8px 10px; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; }
.icon { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chip); cursor: pointer; font-size: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 0;
  background: var(--chip); cursor: pointer; font-size: 14px; white-space: nowrap; }
.chip.on, .chip.radio:has(input:checked) { background: var(--chip-on); color: var(--chip-on-ink); }
.chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .35); }
.chip.radio input { position: absolute; opacity: 0; pointer-events: none; }

/* вход */
.login { max-width: 420px; margin: 0 auto; padding: 12vh 16px 32px; display: flex; flex-direction: column; gap: 18px; text-align: center; }
.login .logo { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--accent); }
.login .logo .logo-i { width: 72px; height: 72px; }
.login h1 { margin: 0; font-size: 34px; letter-spacing: -.5px; color: var(--ink); }
.tagline { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.wait { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dev { display: flex; gap: 8px; align-items: end; text-align: left; border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 8px; }
.dev label { flex: 1; font-size: 13px; color: var(--muted); }
.dev input { width: 100%; margin-top: 4px; }
.langs { display: flex; justify-content: center; }

/* каркас */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.brand .logo-i { width: 26px; height: 26px; color: var(--accent); }
.main { max-width: 880px; margin: 0 auto; padding: 4px 16px calc(96px + env(safe-area-inset-bottom)); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); }
.tabs button { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; padding: 6px; border-radius: 12px; font-size: 12px; color: var(--muted); cursor: pointer; }
.tabs button span { font-size: 22px; line-height: 1; }
.tabs button.on { color: var(--ink); background: var(--chip); }

/* гардероб */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 6px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; min-width: 0; }
.tile .ph { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; }
.tile .ph.cut { background: var(--chip); padding: 10px; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .ph.cut img { object-fit: contain; }
.tile.up .ph img { opacity: .45; filter: blur(1px); }
.tile.up .spinner { position: absolute; }
.tile .cap { font-size: 14px; line-height: 1.3; display: flex; gap: 6px; align-items: flex-start; overflow: hidden; }
.dots { display: inline-flex; gap: 2px; padding-top: 4px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .35); }
.badge { position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #3b332c; text-align: center; }
.badge.warn { color: var(--warn); }
.center .badge { position: static; display: inline-block; background: var(--chip); color: var(--ink); }
.addbar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.addbar .btn { box-shadow: var(--shadow); flex: 1; max-width: 240px; white-space: nowrap; padding: 10px 14px; font-size: 15px; }
.hint { text-align: center; color: var(--muted); font-size: 13px; margin: 10px auto 0; max-width: 420px; }
.empty { text-align: center; padding: 8vh 12px 12px; max-width: 460px; margin: 0 auto; }
.empty h2 { margin: 12px 0 6px; }
.empty p { color: var(--muted); margin: 0 0 8px; }
.big-i { width: 84px; height: 84px; color: var(--accent); }

/* карточка вещи */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(20, 14, 8, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-in { width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-in { border-radius: 22px; max-height: 90vh; } }
.sheet header { display: flex; align-items: center; gap: 10px; position: sticky; top: -12px; background: var(--bg); padding: 4px 0 8px; z-index: 1; }
.sheet h2 { margin: 0; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero { border-radius: var(--radius); overflow: hidden; background: var(--card); display: grid; place-items: center; max-height: 46vh; }
.hero.cut { background: var(--check); padding: 16px; }
.hero img { max-width: 100%; max-height: 44vh; object-fit: contain; display: block; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row.actions { margin: 12px 0 4px; } .row.actions .btn { flex: 1; }
.row.more { justify-content: center; margin-top: 10px; }
.fields { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.fields label.check { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.fields fieldset { border: 0; padding: 0; margin: 0; }
.fields legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fields legend b { color: var(--ink); font-weight: 600; }
input:not([type]), input[type="text"], input[inputmode], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.profile { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin: 0 auto; }
.profile .fields { margin: 0; }
.profile .card > p { margin: 0 0 8px; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 40;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; transition: .2s; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--danger); color: #fff; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } #toast { transition: none; } }

/* внешность */
.mark { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.mark.good { background: var(--ok); }
.mark.avoid { background: var(--warn); }
.match { text-align: center; font-size: 14px; margin: 8px 0 0; }
.match.good { color: var(--ok); } .match.avoid { color: var(--warn); }
.linkcard { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; cursor: pointer; }
.linkcard > span:first-child { font-size: 26px; }
.linkcard > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.linkcard > span:last-child { font-size: 24px; }
.appearance { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; }
.appearance .back { align-self: flex-start; padding-left: 0; }
.appearance h3 { margin: 0 0 6px; font-size: 22px; }
.appearance .card > p { margin: 0 0 8px; }
.lbl { font-size: 13px; color: var(--muted); margin: 14px 0 6px !important; }
.lbl b { color: var(--ink); }
.sws { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .35); display: inline-block; }
.sws.dim .sw { width: 26px; height: 26px; opacity: .85; position: relative; }
.sws.dim .sw::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--danger); transform: rotate(45deg); }
.tips { margin: 12px 0 0; padding-left: 20px; } .tips li { margin: 4px 0; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot { display: flex; flex-direction: column; gap: 6px; position: relative; }
.slot img, .slot .add { aspect-ratio: 3 / 4; width: 100%; border-radius: 14px; object-fit: cover; }
.slot .add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line); cursor: pointer; font-weight: 600; color: var(--muted); }
.slot .add span { font-size: 30px; line-height: 1; color: var(--accent); }
.slot small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.slot .del { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; background: rgba(0, 0, 0, .55); color: #fff; }
.appearance label.h { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin: 14px 0; }
.manual summary { cursor: pointer; font-weight: 600; }
.manual[open] summary { margin-bottom: 4px; }
.privacy { margin: 0; text-align: center; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; display: inline-block; vertical-align: middle; }

/* образы */
.looks { display: flex; flex-direction: column; gap: 10px; }
.chip.off { opacity: .45; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 4px; }
.look { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.collage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr) 64px; gap: 6px; padding: 12px; aspect-ratio: 1 / 1.1; background: var(--check); overflow: hidden; }
.collage .cl { min-height: 0; min-width: 0; position: relative; overflow: hidden; }
.collage .cl img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .12)); }
.collage .tall { grid-column: 1; grid-row: 1 / 3; }
.collage .c1 { grid-column: 2; grid-row: 1; }
.collage .c2 { grid-column: 2; grid-row: 2; }
.collage.noleft .c1 { grid-column: 1 / 3; }
.collage.noleft .c2 { grid-column: 1 / 3; }
.collage.full .c1 { grid-row: 1 / 3; }
.collage.full.noleft .c1 { grid-column: 1 / 3; }
.collage .row-s { grid-column: 1 / 3; grid-row: 3; display: flex; gap: 6px; justify-content: center; min-height: 0; }
.collage .row-s .cl { width: 64px; height: 64px; }
.collage .wash::after { content: '🧺'; position: absolute; top: 0; right: 0; font-size: 14px; }
.look-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.look-b h3 { margin: 0; font-size: 16px; }
.look-b .parts { margin: -2px 0 0; font-size: 13px; color: var(--muted); }
.look-b .note { margin: 0; font-size: 14px; color: var(--muted); }
.tags { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.tags:empty { display: none; }
.look-a { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.look-a .btn { margin-left: auto; min-height: 40px; padding: 8px 14px; font-size: 14px; }
.look-a .icon.on { background: var(--chip-on); }
.curate { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.curate p { margin: 0; }
.missing h3 { margin: 0 0 8px; font-size: 17px; }
.missing ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.missing li { display: flex; gap: 10px; align-items: flex-start; }
.missing li .sw { width: 26px; height: 26px; flex: none; }
.missing li span { display: flex; flex-direction: column; gap: 2px; }
.missing > p { margin: 10px 0 0; }
.tabs button { font-size: 11px; }

/* ── сегодня ── */
.today { display: flex; flex-direction: column; gap: 14px; }
.td-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.td-head > span { white-space: nowrap; }
.td-head .chip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wx { display: flex; flex-direction: column; gap: 14px; }
.wx-top { display: flex; align-items: center; gap: 14px; }
.wx-i { font-size: 44px; line-height: 1; }
.wx-t { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.wx-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wx-parts span { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--chip); border-radius: 12px; padding: 8px 4px; }
.hours { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -6px; padding: 0 6px; }
.hours::-webkit-scrollbar { display: none; }
.hours span { flex: 0 0 46px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; }
.hours i { font-style: normal; font-size: 18px; }
.hours .pop { color: #3b82c4; font-size: 11px; }
.advice { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.advice li { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 14px; }
.advice li span { font-size: 18px; line-height: 1.2; }
.today-look .look-a .btn { margin-left: 0; flex: 1 1 auto; white-space: nowrap; }
.today-look .look-a .icon { flex: none; }
.citypick { display: flex; flex-direction: column; gap: 10px; }
.citypick input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.cities { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cities button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; padding: 10px 4px; cursor: pointer; }
.daybox { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; color: var(--muted); }
.daybox span { color: var(--muted); font-size: 13px; flex-basis: 100%; }
.fields .daybox select { width: auto; flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.ell { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notify { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 6px; }
.fields .notify .switch { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.notify .switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.fields .notify select { width: auto; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.plinks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plink { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.plink:first-child { border-top: 0; padding-top: 0; }
.plink.ask { background: var(--chip); border-radius: 14px; padding: 12px; border: 0; }
.scopes { margin: 0; padding-left: 18px; font-size: 14px; }
.plink .btn.link { align-self: flex-start; padding-left: 0; }
.plink .look-a .btn { margin-left: 0; flex: 1; }
.tabs button span { position: relative; }
.tabs .dot { position: absolute; top: -2px; right: -6px; width: 9px; height: 9px; border-radius: 50%; background: #d64545; }
.card.links h3 { margin: 0; font-size: 17px; }

/* анкета «О себе» */
.wizard { max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.wz-top { display: flex; justify-content: space-between; align-items: center; }
.wz-top .btn.link { padding: 6px 0; }
.wz-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 6px 0; }
.wz-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.wz-hello { text-align: center; padding: 8px 0 0; }
.wz-hello .logo-i { width: 48px; height: 48px; color: var(--accent); }
.wz-hello h1 { margin: 6px 0 4px; font-size: 24px; }
.wz-hello p { margin: 0; }
.wizard form h2 { margin: 0; font-size: 20px; }
.wizard form > p.small, .about .card.fields > p.small { margin: -8px 0 0; }
.about .back, .plan .back { align-self: flex-start; padding-left: 0; }
.about .card > h3 + p.small { margin: 6px 0 10px; }
.wizard .row.actions { margin-top: 4px; }
.fields legend small { color: var(--muted); font-weight: 400; }
.fields textarea { resize: vertical; min-height: 110px; }
.about .card.fields { margin: 0; }
.about .card h3 { margin: 0; }
.about form { gap: 16px; }
.btn.sticky { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 6px 20px rgba(0,0,0,.18); }

/* подписка */
.paywall { max-width: 520px; margin: 0 auto; }
.paywall .card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 18px; }
.paywall h2 { margin: 0; }
.paywall p { margin: 0; }
.pw-i { font-size: 40px; }
.pw-list { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 8px; text-align: left; align-self: stretch; }
.pw-list li { font-size: 15px; }
.plan .card h3 { margin: 0 0 8px; }
.plan .bad, .plan-off small { color: var(--danger); }
.periods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 14px; }
.period { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; text-align: left; }
.period.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.period span { font-size: 15px; }
.period small.ok { color: var(--ok); font-weight: 600; }
.paybtns { display: flex; flex-direction: column; gap: 10px; }
.paylist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.paylist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.paylist small { grid-column: 1 / -1; }
.plan-soon { border: 1.5px solid var(--accent); margin-bottom: 12px; }

/* карточка образа «как в журнале»: слева вещи на фигуре с номерами, справа — список */
.fit { container-type: inline-size; display: grid; grid-template-columns: 62% 38%; aspect-ratio: 2 / 3; overflow: hidden; background: #111; color: #fff; }
.fit-l { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 35%, #cfcac3 0%, #b4aea6 60%, #9d978f 100%); }
.fit-l::after { content: ''; position: absolute; inset: auto 0 0 0; height: 14%; background: linear-gradient(transparent, rgba(0, 0, 0, .14)); pointer-events: none; }
.fit-l h2 { position: absolute; left: 6%; right: 5%; top: 3%; margin: 0; font-size: clamp(18px, 8.4cqw, 54px); line-height: .98; font-weight: 900; letter-spacing: -.01em;
  text-transform: uppercase; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .28); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; z-index: 6; }
.fz { position: absolute; display: flex; align-items: center; justify-content: center; }
.fz img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28)); }
.fz-shoes img, .fz-head img { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.fm { position: absolute; z-index: 7; transform: translate(-50%, -50%); width: clamp(16px, 5.4cqw, 30px); height: clamp(16px, 5.4cqw, 30px); border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center; font-weight: 800; font-size: clamp(9px, 3.1cqw, 16px); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.fm::before { content: ''; position: absolute; right: 100%; top: 50%; width: clamp(8px, 4cqw, 26px); height: 1.5px; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, .35); }
.fit-r { display: flex; flex-direction: column; min-height: 0; padding: 5% 7% 4%; background: #141414; }
.fit-r h3 { margin: 0 0 2%; font-size: clamp(14px, 6.6cqw, 40px); font-weight: 900; letter-spacing: .01em; text-transform: uppercase; }
.fit-r ol { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-around; gap: 1%; }
.fit-r li { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: minmax(0, 1fr) auto; column-gap: 6%; align-items: center; }
.fit-r li b { grid-row: 1 / 3; align-self: center; width: clamp(14px, 4.4cqw, 26px); height: clamp(14px, 4.4cqw, 26px); border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: clamp(8px, 2.6cqw, 14px); }
.fi { min-height: 0; height: 100%; display: flex; justify-content: center; }
.fi img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fi.ph img { border-radius: 6px; }
.fn { font-size: clamp(8px, 2.5cqw, 14px); line-height: 1.15; text-align: center; color: #e8e4de; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 2px; }
.fit[data-n="6"] .fn, .fit[data-n="7"] .fn, .fit[data-n="8"] .fn { -webkit-line-clamp: 1; }
.fit-r li.wash .fn::before { content: '🧺 '; }
.fit-brand { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 3%; color: #c9a86a; font-weight: 700; font-size: clamp(8px, 2.6cqw, 14px); letter-spacing: .08em; text-transform: uppercase; }
.fit-brand .logo-i { width: clamp(12px, 4cqw, 22px); height: clamp(12px, 4cqw, 22px); }
.today-look .fit { border-radius: var(--radius) var(--radius) 0 0; }
.fm.l::before { right: auto; left: 100%; }
/* «на модели»: фото модели слева, название поверх */
.fit-model { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fit.on-model .fit-l h2 { top: auto; bottom: 4%; font-size: clamp(15px, 6.4cqw, 42px); text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
/* с фото модели название внизу на затемнении — лицо открыто */
.fit.on-model .fit-l::after { height: 42%; z-index: 5; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.fit-busy { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12%;
  background: rgba(20, 18, 16, .55); color: #fff; text-align: center; font-size: clamp(11px, 3.6cqw, 16px); }
.model-row { display: flex; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
