:root{
  --sal:env(safe-area-inset-left,0px);      /* зона жеста «назад» дополняется левым safe-area */
  --bg:#F7F5F6; --surf:#FFFFFF; --surf2:#F0EBEE; --surf3:#E6DFE3;
  --ink:#141018; --ink2:#443C4A; --ink3:#6F6776;
  --line:#DCD3D9; --line2:#BFB3BB;
  --accent:#8C1D3F; --accent-ink:#FFFFFF; --accent-bg:#F8E7EC;
  --accent-fill:#8C1D3F; --accent-fill-ink:#FFFFFF;
  /* совпадение: до 60 — серое, 60–74 — жёлтое, 75+ — изумрудное (шкала слов в app.js: MATCH_WORDS) */
  --m-lo-bg:#ECE8EA; --m-lo:#6F6776; --m-mid-bg:#F6C64A; --m-mid:#3A2A00; --m-hi-bg:#0F8A5F; --m-hi:#FFFFFF; --ok:#0F8A5F;
  --gold:#8A6520; --gold-bg:#F6EDDC;
  --go:#1B6450; --go-bg:#E1F0EB;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  --serif:var(--sans);            /* единая рамка без засечек: имя оставлено, чтобы не трогать каждое правило */
  --shadow:0 1px 2px rgba(20,16,24,.06), 0 4px 14px -8px rgba(20,16,24,.18);
  --tabh:56px;
  --r:16px; --r-s:12px;
  --tap:44px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#100D15; --surf:#1A1621; --surf2:#241F2D; --surf3:#2F2839;
  --ink:#F7F3F9; --ink2:#D3CADB; --ink3:#9F96A9;
  --line:#33293E; --line2:#544862;
  --accent:#D9455F; --accent-ink:#FFFFFF; --accent-bg:#3A1A24;
  --accent-fill:#7E1E3E; --accent-fill-ink:#FFFFFF;
  --m-lo-bg:#2F2839; --m-lo:#9F96A9; --m-mid-bg:#E3B341; --m-mid:#241900; --m-hi-bg:#17A56F; --m-hi:#FFFFFF; --ok:#5FCB92;
  --gold:#D9AC5E; --gold-bg:#2C2417;
  --go:#57C4A0; --go-bg:#152B25;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 6px 18px -10px rgba(0,0,0,.6);
}}
:root[data-theme="dark"]{
  --bg:#100D15; --surf:#1A1621; --surf2:#241F2D; --surf3:#2F2839;
  --ink:#F7F3F9; --ink2:#D3CADB; --ink3:#9F96A9;
  --line:#33293E; --line2:#544862;
  --accent:#D9455F; --accent-ink:#FFFFFF; --accent-bg:#3A1A24;
  --accent-fill:#7E1E3E; --accent-fill-ink:#FFFFFF;
  --m-lo-bg:#2F2839; --m-lo:#9F96A9; --m-mid-bg:#E3B341; --m-mid:#241900; --m-hi-bg:#17A56F; --m-hi:#FFFFFF; --ok:#5FCB92;
  --gold:#D9AC5E; --gold-bg:#2C2417;
  --go:#57C4A0; --go-bg:#152B25;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 6px 18px -10px rgba(0,0,0,.6);
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:17px;
  line-height:1.45;-webkit-font-smoothing:antialiased;overscroll-behavior:none}
button,input,select{font:inherit;color:inherit}
button{background:none;border:none;cursor:pointer;padding:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}

/* ── Рамка устройства. На телефоне рамки нет: приложение занимает весь экран. ── */
.stage{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:0}
.device{width:100%;max-width:100%;height:100dvh;position:relative;overflow:hidden;
  background:var(--bg);display:flex;flex-direction:column}
@media (min-width:520px){
  .stage{padding:28px 20px;background:
    radial-gradient(120% 90% at 50% 0%, var(--surf2), var(--bg) 70%)}
  .device{max-width:390px;height:844px;max-height:calc(100dvh - 56px);
    border-radius:44px;border:1px solid var(--line2);
    box-shadow:0 30px 70px -20px rgba(0,0,0,.35), 0 0 0 10px var(--surf3)}
  .notch{position:absolute;top:9px;left:50%;transform:translateX(-50%);
    width:112px;height:30px;background:#000;border-radius:18px;z-index:60;opacity:.9}
  .device .safe-t{height:52px}
  .device .safe-b{height:26px}
}
.notch{display:none}
@media (min-width:520px){.notch{display:block}}
.safe-t{height:env(safe-area-inset-top,0px);flex:none}
.safe-b{height:max(env(safe-area-inset-bottom,0px),8px);flex:none}

.scrolla{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.pad{padding:0 20px}

/* ── Навбар ── */
.nav{display:flex;align-items:center;gap:10px;padding:6px 20px 4px;min-height:44px;flex:none}
.nav .back{font-size:16px;color:var(--accent);display:flex;align-items:center;gap:3px;
  min-height:var(--tap);min-width:var(--tap);margin-left:-8px;padding-left:8px}
/* Заголовок ужимается с многоточием, стрелка «назад» не сжимается: длинное
   название ленты или вина не наезжает на стрелку */
.nav .back{flex:none;white-space:nowrap}
.nav .ttl{font-size:17px;font-weight:600;letter-spacing:-.01em;flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.nav .sp{flex:1}
/* Распор справа от заголовка: без flex:none он ужимается вместе с заголовком,
   и тот съезжает с центра */
.nav .navsp{width:60px;flex:none}
.nav .act{font-size:16px;color:var(--accent);min-height:var(--tap);display:flex;align-items:center}
.big-title{font-size:33px;font-weight:700;letter-spacing:-.032em;line-height:1.08;
  margin:4px 0 14px;text-wrap:balance}

/* ── Табы ── */
.tabs[hidden]{display:none}   /* до входа и на сплеше вкладок быть не должно; hidden сам по себе flex не перебивает */
.tabs{flex:none;display:flex;border-top:1px solid var(--line);background:var(--surf);
  padding-top:6px}
.tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:4px 0 2px;color:var(--ink3);font-size:10.5px;letter-spacing:.01em;min-height:var(--tap)}
.tabs button.on{color:var(--accent)}
.tabs svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
.tabs button.on svg{stroke-width:2.1}

/* ── Общие блоки ── */
.screen{display:none;flex:1;flex-direction:column;min-height:0}
.screen.on{display:flex}
.card{background:var(--surf);border:1px solid var(--line);border-radius:var(--r);padding:17px}
.grp{background:var(--surf);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.row{display:flex;align-items:center;gap:13px;padding:13px 16px;min-height:52px;width:100%;
  text-align:left;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:none}
.row .l{flex:1;min-width:0}
.row .l b{display:block;font-weight:500;font-size:16px;letter-spacing:-.01em}
.row .l span{display:block;color:var(--ink3);font-size:13px;line-height:1.35;margin-top:1px}
.row .r{color:var(--ink3);font-size:15px;flex:none}
.chev{width:8px;height:14px;flex:none;stroke:var(--line2);fill:none;stroke-width:2;
  stroke-linecap:round}
.ico{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;flex:none;
  background:var(--accent-bg)}
.ico svg{width:17px;height:17px;stroke:var(--accent);fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}

.btn{display:block;width:100%;background:var(--accent-fill);color:var(--accent-fill-ink);
  border-radius:var(--r-s);padding:15px;font-weight:600;font-size:17px;text-align:center;
  min-height:52px;letter-spacing:-.01em}
.btn:active{opacity:.85}
.btn.sec{background:var(--surf2);color:var(--ink)}
.btn.gho{background:none;color:var(--accent);font-weight:500}
.btn[disabled]{opacity:.4;pointer-events:none}
.scanbtn[disabled],#shoot[disabled]{opacity:.4;pointer-events:none}   /* офлайн: снимок не ушёл бы */
.hint{font-size:13px;color:var(--ink3);line-height:1.45;margin:12px 0 0}
.sec-h{font-size:12.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink3);
  font-weight:600;margin:24px 0 8px;padding:0 4px}

/* ── Онбординг ── */
.prog{height:3px;background:var(--line);border-radius:2px;margin:8px 20px 0;flex:none}
.prog>i{display:block;height:100%;background:var(--accent);border-radius:2px;transition:width .3s}
.q{font-size:26px;font-weight:700;letter-spacing:-.028em;line-height:1.15;margin:22px 0 18px;
  text-wrap:balance}
.opt{display:block;width:100%;text-align:left;background:var(--surf);border:1.5px solid var(--line);
  border-radius:var(--r);padding:16px;margin-bottom:9px;transition:border-color .12s,background .12s}
.opt:active{background:var(--surf2)}
.opt b{display:block;font-weight:600;font-size:16.5px;letter-spacing:-.012em;line-height:1.3}
.opt small{display:block;color:var(--ink3);font-size:12.5px;margin-top:3px}
.opt.mid{border-style:dashed;padding:13px 16px;background:none}
.opt.mid b{font-weight:400;color:var(--ink3);font-size:15px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{background:var(--surf);border:1px solid var(--line);border-radius:22px;
  padding:10px 15px;font-size:15px;color:var(--ink2);min-height:var(--tap)}
.chips button.on{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--accent-fill-ink);font-weight:500}

/* ── Карточки вина ── */
.wname{font-family:var(--serif);font-size:21px;font-weight:600;line-height:1.2;
  letter-spacing:-.005em}
.wmeta{font-size:13px;color:var(--ink3);margin-top:4px;font-variant-numeric:tabular-nums}
.role{font-size:11px;letter-spacing:.075em;text-transform:uppercase;font-weight:700;
  color:var(--accent);margin-bottom:9px}
.card.confident{border-color:var(--accent);border-width:1.5px}
.card.avoid{border-color:var(--gold)}
.card.avoid .role{color:var(--gold)}
.card.value .role,.card.risky .role{color:var(--ink3)}
.why{font-size:15.5px;color:var(--ink2);line-height:1.5;margin:13px 0 0}
.axes{display:grid;gap:7px;margin:14px 0 0}
.ax{display:grid;grid-template-columns:70px 1fr 22px;gap:9px;align-items:center;
  font-size:11.5px;color:var(--ink3);font-variant-numeric:tabular-nums}
.bar{height:5px;background:var(--line);border-radius:3px;position:relative;overflow:visible}
.bar i{position:absolute;inset:0 auto 0 0;background:var(--accent);border-radius:3px}
.bar u{position:absolute;top:-3px;width:2px;height:11px;background:var(--ink2);border-radius:1px}
.alt{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:2px 12px;
  padding:12px 16px;border-bottom:1px solid var(--line);width:100%;text-align:left;
  background:none;font:inherit;color:inherit;cursor:pointer}
.alt:active{background:var(--surf2)}
.alt:last-child{border-bottom:none}
.alt .l{min-width:0;display:flex;flex-direction:column;gap:2px}
.alt .n{font-family:var(--serif);font-size:16.5px;font-weight:600;line-height:1.25;letter-spacing:-.01em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.alt .m{font-size:12.5px;color:var(--ink3);line-height:1.35;font-variant-numeric:tabular-nums}
.nw{white-space:nowrap}                       /* последнее слово названия и значки списков — неразрывно */
.alt .m.sub{color:var(--ink2)}
.alt .m.my{display:flex;align-items:center;gap:6px;margin-top:2px}
.alt .r{display:flex;flex-direction:column;align-items:center;gap:6px;align-self:center}
.myr{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:20px;padding:0 6px;
  border-radius:6px;font-size:12px;font-weight:700;background:var(--surf2);color:var(--ink2)}
.myr.up{background:var(--go-bg);color:var(--go)} .myr.down{background:var(--gold-bg);color:var(--accent)}
.myr.num{background:var(--accent-fill);color:var(--accent-fill-ink)}
.fitdot{width:36px;height:36px;border-radius:50%;flex:none;display:grid;place-items:center;
  font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.mbadge{display:inline-block;padding:2px 7px;border-radius:8px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}

/* ── Прогресс сканирования ── */
.steps{display:grid;gap:2px;margin-top:26px}
.step{display:flex;align-items:center;gap:12px;padding:13px 0;font-size:16px;color:var(--ink3)}
.step.on{color:var(--ink);font-weight:500}
.step.done{color:var(--ink2)}
.step-s{display:block;font-size:12.5px;color:var(--ink3)}
#prog-sub{color:var(--ink2)}
.dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--line2);flex:none;
  display:grid;place-items:center}
.step.on .dot{border-color:var(--accent);animation:pulse 1.1s ease-in-out infinite}
.step.done .dot{border-color:var(--go);background:var(--go)}
.step.done .dot::after{content:"";width:9px;height:5px;border-left:2px solid var(--surf);
  border-bottom:2px solid var(--surf);transform:rotate(-45deg) translate(1px,-1px)}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 var(--accent-bg)}50%{box-shadow:0 0 0 6px var(--accent-bg)}}
@media (prefers-reduced-motion:reduce){.step.on .dot{animation:none}}
.viewport{aspect-ratio:3/4;background:var(--surf2);border-radius:var(--r);position:relative;
  overflow:hidden;display:grid;place-items:center;border:1px solid var(--line)}
.frame{position:absolute;inset:11%;border:2px solid rgba(255,255,255,.55);border-radius:10px}
.frame::before,.frame::after{content:"";position:absolute;background:var(--accent);border-radius:2px}
.frame::before{left:-2px;top:-2px;width:26px;height:3px}
.frame::after{left:-2px;top:-2px;width:3px;height:26px}
.scanline{position:absolute;left:11%;right:11%;height:2px;background:var(--accent);
  box-shadow:0 0 14px var(--accent);animation:scan 2.1s ease-in-out infinite}
@keyframes scan{0%,100%{top:12%}50%{top:87%}}
@media (prefers-reduced-motion:reduce){.scanline{animation:none;top:50%}}
.menu-mock{padding:22px 20px;font-size:11px;line-height:1.9;color:var(--ink3);width:100%;
  font-variant-numeric:tabular-nums}
.menu-mock b{color:var(--ink2);font-weight:600;display:block;font-size:10px;
  text-transform:uppercase;letter-spacing:.08em;margin:9px 0 3px}

/* ── Опыт ── */
.stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}
.stat{background:var(--surf);border:1px solid var(--line);border-radius:var(--r-s);
  padding:13px 11px;text-align:center}
.stat b{display:block;font-size:23px;font-weight:700;letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;line-height:1.1}
.stat span{display:block;font-size:11px;color:var(--ink3);margin-top:3px;line-height:1.25}
.hrow{display:flex;gap:12px;align-items:flex-start;padding:13px 16px;border-bottom:1px solid var(--line)}
.hrow:last-child{border-bottom:none}
.hrow .rt{width:26px;height:26px;border-radius:50%;flex:none;display:grid;place-items:center;
  font-size:13px}
.row .rt{flex:none;min-width:44px;text-align:center}
.rt.up{background:var(--go-bg);color:var(--go)}
.rt.down{background:var(--accent-bg);color:var(--accent)}
.rt.meh{background:var(--surf2);color:var(--ink3)}

/* ── Карточка «поделиться» ── */
.sharecard{background:linear-gradient(160deg,var(--accent),#5A1128);color:#fff;
  border-radius:20px;padding:26px 22px;position:relative;overflow:hidden}
:root[data-theme="dark"] .sharecard,
:root:not([data-theme="light"]) .sharecard{background:linear-gradient(160deg,#7A1834,#2B0B17)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .sharecard{
  background:linear-gradient(160deg,var(--accent),#5A1128)}}
.sharecard h3{font-family:var(--serif);font-size:25px;margin:0 0 3px;font-weight:600;color:#fff}
.sharecard .sub{opacity:.72;font-size:13.5px;margin-bottom:20px}
.sharecard .ax{color:rgba(255,255,255,.72)}
.sharecard .bar{background:rgba(255,255,255,.22)}
.sharecard .bar i{background:#fff}
.sharecard .lnk{margin-top:20px;font-size:12.5px;opacity:.72;
  border-top:1px solid rgba(255,255,255,.2);padding-top:13px}

/* ── Профиль ── */
.avatar{width:82px;height:82px;border-radius:50%;background:var(--accent-bg);
  display:grid;place-items:center;font-family:var(--serif);font-size:31px;font-weight:600;
  color:var(--accent);margin:0 auto 12px}
.fld{display:block;padding:11px 16px;border-bottom:1px solid var(--line)}
.fld:last-child{border-bottom:none}
.fld span{display:block;font-size:12px;color:var(--ink3);margin-bottom:2px}
.fld input{width:100%;border:none;background:none;font-size:16.5px;padding:0;outline:none}
.sw{width:50px;height:30px;border-radius:16px;background:var(--line2);position:relative;
  flex:none;transition:background .18s}
.sw::after{content:"";position:absolute;top:2px;left:2px;width:26px;height:26px;border-radius:50%;
  background:#fff;transition:transform .18s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.sw.on{background:var(--go)}
.sw.on::after{transform:translateX(20px)}

/* ── Шторка ── */
.sheet{position:absolute;inset:0;background:rgba(0,0,0,.45);display:none;
  align-items:flex-end;z-index:50;border-radius:inherit}
.sheet.on{display:flex}
.sheet-in{background:var(--surf);border-radius:20px 20px 0 0;padding:22px 20px;width:100%;
  animation:up .26s cubic-bezier(.2,.8,.2,1);max-height:88%;overflow-y:auto}
@keyframes up{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sheet-in{animation:none}}
.grab{width:36px;height:5px;background:var(--line2);border-radius:3px;margin:-8px auto 14px}
.rate{display:flex;gap:8px;margin:16px 0 12px}
.rate button{flex:1;background:var(--surf2);border-radius:var(--r-s);padding:14px 4px;
  font-size:14.5px;min-height:var(--tap)}
.rate button.on{background:var(--accent-fill);color:var(--accent-fill-ink);font-weight:600}
.moved{background:var(--go-bg);color:var(--ink2);border-radius:var(--r-s);padding:12px 14px;
  font-size:13.5px;line-height:1.55;margin-top:12px}
.toast{position:absolute;left:20px;right:20px;bottom:96px;background:var(--ink);color:var(--bg);
  border-radius:12px;padding:13px 16px;font-size:14.5px;z-index:70;opacity:0;
  transform:translateY(10px);transition:opacity .2s,transform .2s;pointer-events:none}
.toast.on{opacity:1;transform:none}
.banner{background:var(--surf2);border-bottom:1px solid var(--line);font-size:12px;
  color:var(--ink3);padding:9px 20px;line-height:1.4;flex:none}
.banner b{color:var(--ink2)}

/* ── Логотип ── */
.logo-mark{display:block;margin:0 auto 10px;width:58px;height:auto}
.share-mark{width:44px;height:auto;display:block;margin:0 auto 10px}

/* ── Мой опыт: кликабельные показатели ── */
.stats button.stat{cursor:pointer;text-align:center;font:inherit;color:inherit;
  background:var(--surf);border:1px solid var(--line)}
.stats button.stat:active{background:var(--surf2)}
.stat small{display:block;font-size:11px;color:var(--accent);margin-top:3px}

/* ── Регионы: полосы от большего к меньшему ── */
.reg{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:11px 0;border-bottom:1px solid var(--line)}
.reg:last-child{border-bottom:0}
.reg .n{font-family:var(--serif);font-size:16px;font-weight:600}
.reg .s{font-size:12.5px;color:var(--ink3);grid-column:1/-1}
.reg .pct{font-variant-numeric:tabular-nums;font-size:14px;font-weight:600;color:var(--ink2)}
.reg .bar{grid-column:1/-1;height:8px;border-radius:4px;background:var(--surf2);overflow:hidden;margin-top:4px}
.reg .bar i{display:block;height:100%;border-radius:4px;background:var(--accent)}
.reg.cold .bar i{background:var(--ink3)}

/* ── Лист подробностей о вине ── */
.wine-in{max-height:86%;overflow:auto;-webkit-overflow-scrolling:touch;
  background:var(--bg,#fff);backdrop-filter:none;-webkit-backdrop-filter:none}   /* высокий лист — только непрозрачный, иначе сквозь него читается экран */
.wd-role{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-weight:700;margin-bottom:6px}
.wd-name{font-family:var(--serif);font-size:23px;font-weight:600;line-height:1.2;letter-spacing:-.015em}
.wd-sub{color:var(--ink2);font-size:14.5px;margin-top:4px;line-height:1.4}
.wd-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.wd-cell{background:var(--surf2);border-radius:11px;padding:9px 12px}
.wd-cell small{display:block;font-size:11px;color:var(--ink3);letter-spacing:.03em;text-transform:uppercase}
.wd-cell b{display:block;font-size:15px;font-weight:600;margin-top:2px;line-height:1.3}
.wd-h{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink3);font-weight:700;margin:16px 0 8px}
.wd-p{font-size:14.5px;color:var(--ink2);line-height:1.5;margin:0}
.wd-chips{display:flex;flex-wrap:wrap;gap:6px}
.wd-chips span{background:var(--surf2);border-radius:999px;padding:4px 10px;font-size:13px;color:var(--ink2)}
.wd-src{font-size:12.5px;color:var(--ink3);line-height:1.45;margin-top:14px}

/* ── Сплеш ── */
#s-splash{background:#610719}
.splash{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  color:#F6EFE4;animation:splash-in .5s ease-out both}
.splash img{width:84px;height:auto}
.splash-t{font-family:var(--serif);font-size:38px;font-weight:600;letter-spacing:-.02em}
.splash-s{font-size:14px;opacity:.75;margin-top:-8px}
@keyframes splash-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.splash{animation:none}}

/* ── Оценка внутри листа ── */
.wd-rate{display:flex;gap:8px;margin-top:8px}
.wd-rate button{flex:1;padding:10px 6px;border-radius:12px;background:var(--surf2);border:1px solid var(--line);
  font:inherit;font-size:14px;color:var(--ink);min-height:44px}
.wd-rate button.on{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--accent-fill-ink);font-weight:600}
.wd-rate button:disabled{opacity:.5}
/* ── Фильтр цвета: чипсы мельче онбординговых ── */
#colors button,#rated-colors button,#regions-colors button{padding:6px 12px;font-size:13px;min-height:32px}

/* ═══════════ Каркас 2.0: iOS-рамка ═══════════ */
body{font-size:16px}
.big-title{font-size:30px;font-weight:700;letter-spacing:-.03em}
.sec-h{font-size:13px;letter-spacing:.04em;text-transform:none;font-weight:600;color:var(--ink2);margin:26px 0 8px;padding:0 4px}
.card{box-shadow:var(--shadow)}
.grp{box-shadow:var(--shadow)}
.wname{font-size:20px;font-weight:700;letter-spacing:-.02em}
.alt .n{font-size:16px;font-weight:600;letter-spacing:-.012em}
.alt .m{font-size:13px}
.alt .m.sub{color:var(--ink2)}
.hint{color:var(--ink2)}
.row .l span{color:var(--ink2)}
.stat span{color:var(--ink2)}
.chev{stroke:var(--ink3)}
.avatar{font-weight:700}
.sharecard h3{font-weight:700}
.wd-name{font-weight:700;letter-spacing:-.02em}
.gear{width:40px;height:40px;border-radius:50%;background:var(--surf2);display:grid;place-items:center;flex:none;margin-top:6px}
.gear svg{width:21px;height:21px;stroke:var(--ink2);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.card.cta{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--accent-fill-ink);padding:20px}

/* Таббар: фиксирован снизу, на рамке — внутри рамки (transform делает её опорой) */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:6px 0 max(env(safe-area-inset-bottom,0px),6px);
  background:color-mix(in srgb, var(--surf) 86%, transparent);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);
  border-top:1px solid var(--line)}
.tabs.kb{display:none}
.tabs button{font-size:10.5px;font-weight:500;gap:2px}
@supports not (background:color-mix(in srgb, red 50%, blue)){.tabs{background:var(--surf)}}
@media (min-width:520px){.device{transform:translateZ(0)}}

/* Сегментированные фильтры — в один ряд, с прокруткой, если не помещаются */
.chips.seg{flex-wrap:nowrap;gap:0;background:var(--surf2);border-radius:11px;padding:3px;overflow-x:auto;
  scrollbar-width:none;-ms-overflow-style:none}
.chips.seg::-webkit-scrollbar{display:none}
.chips.seg button{flex:1 0 auto;border:0;background:none;border-radius:9px;padding:7px 12px;font-size:13.5px;
  font-weight:500;color:var(--ink2);min-height:34px;white-space:nowrap}
.chips.seg button.on{background:var(--surf);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.14);font-weight:600}
.chips.seg .sep{width:1px;background:var(--line2);margin:6px 3px;flex:none}

/* Стек экранов, как в iOS. Все состояния вне потока (.top/.under/.warm)
   занимают тот же бокс, что экран в потоке: ниже .safe-t. Порядок слоёв
   снизу вверх: .under (1) → .tabs.moving (20) → #dim (25) → .top (30)
   → шторки (50) → просмотрщик (80). Стековый контекст — .device;
   z-index/transform на промежуточных обёртках всё сломает. */
.device{--safe-t:env(safe-area-inset-top,0px)}
@media (min-width:520px){.device{--safe-t:52px}}
.screen.top,.screen.under,.screen.warm{display:flex;position:absolute;top:var(--safe-t);left:0;right:0;bottom:0}
.screen.top{z-index:30;background:var(--bg)}
.screen.under{z-index:1}
.screen.warm{visibility:hidden;pointer-events:none}      /* смонтирован, не рисуется: жест стартует без layout */
.screen.top,.screen.under,.device.trans .tabs{will-change:transform}
.screen .edge{position:absolute;top:0;bottom:0;right:100%;width:12px;pointer-events:none;
  background:linear-gradient(to left,rgba(0,0,0,.12),transparent)}
.dim{position:absolute;top:var(--safe-t);left:0;right:0;bottom:0;background:#000;opacity:0;pointer-events:none;z-index:25;will-change:opacity}
/* Пока экраны едут (не под пальцем), они не интерактивны, как навбар в iOS
   на время перехода; исключение — «‹» верхнего экрана: тап по нему во время
   push разворачивает переход (app.js проверяет направление) */
.device.trans:not(.dragging) .screen{pointer-events:none}
.device.trans:not(.dragging) .screen.top .nav .back{pointer-events:auto}
.tabs.moving{z-index:20;overflow:hidden}                    /* тот же размытый слой, что в покое — без «щелчка» в первый кадр */
.device.flat-tabs .tabs.moving{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--surf)}  /* флаг: localStorage.flatTabs=1 */
.screen.root .scrolla{padding-bottom:calc(var(--tabh) + max(env(safe-area-inset-bottom,0px),6px) + 8px)}
.device.dragging{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* Шторки: пружина при открытии, жест закрытия */
.sheet{transition:background .2s}
.sheet-in{animation:up .38s cubic-bezier(.2,.9,.25,1.05);box-shadow:0 -8px 30px -12px rgba(0,0,0,.35)}
.sheet-in.drag{animation:none;transition:none}
.sheet-in.settle{transition:transform .24s cubic-bezier(.32,.72,0,1)}
.grab{width:40px;height:5px;background:var(--line2);margin:-10px auto 14px}

/* ── Звёзды: пятибалльная шкала с половинками ── */
/* курсива в интерфейсе нет нигде (решение владельца): <i> у нас — значки и полосы */
i,em{font-style:normal}
/* Журнал обработки (оба вида; v5 перекрашивает его в theme.css): ✓ — сделано,
   переливающееся «···» — идёт сейчас, «·» — впереди */
html:not([data-skin="v5"]) .prog-shot{position:relative;height:84px;border-radius:14px;background:var(--surf2);overflow:hidden;margin-bottom:18px}
html:not([data-skin="v5"]) .prog-shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5}
html:not([data-skin="v5"]) .prog-shot .v5-cap{position:absolute;left:14px;bottom:10px;font-size:13px;color:var(--ink2);font-variant-numeric:tabular-nums}
html:not([data-skin="v5"]) .prog-log{font-size:16px;line-height:2.1;color:var(--ink2);font-variant-numeric:tabular-nums}
html:not([data-skin="v5"]) .prog-log i{display:inline-block;width:1.7em}
html:not([data-skin="v5"]) .prog-log .ok i{color:var(--ok)}
html:not([data-skin="v5"]) .prog-log .run{color:var(--ink);font-weight:500}
html:not([data-skin="v5"]) .prog-log .wait{color:var(--ink3)}
html:not([data-skin="v5"]) .prog-log .err{color:var(--accent)}
.prog-log .run i{background:linear-gradient(90deg,var(--ink3) 25%,var(--accent) 50%,var(--ink3) 75%);background-size:300% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;animation:dots-shimmer 1.3s linear infinite}
@keyframes dots-shimmer{from{background-position:100% 0}to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.prog-log .run i{animation:none!important;background:none!important;color:inherit!important}}
/* Шкала обработки: честный процент и «этап · осталось ≈ N с» над журналом */
.prog-meter{display:flex;align-items:center;gap:12px;margin:2px 0 6px}
.prog-bar{flex:1;height:8px;border-radius:5px;overflow:hidden}
.prog-bar i{display:block;height:100%;width:0;border-radius:5px;transition:width .3s linear}
.prog-pct{min-width:3.4em;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.prog-stage{font-size:14px;margin:0 0 14px;font-variant-numeric:tabular-nums}
html:not([data-skin="v5"]) .prog-bar{background:var(--surf3)}
html:not([data-skin="v5"]) .prog-bar i{background:var(--accent)}
html:not([data-skin="v5"]) .prog-pct{color:var(--ink)}
html:not([data-skin="v5"]) .prog-stage{color:var(--ink2)}
@media (prefers-reduced-motion:reduce){.prog-bar i{transition:none}}
/* «Из вашей коллекции» — своя оценка или списки у вина из скана */
.mine-tag{display:inline-block;margin:6px 0 2px;padding:3px 9px;border-radius:8px;font-size:13px;font-weight:600}
html:not([data-skin="v5"]) .mine-tag{background:var(--gold-bg);color:var(--gold)}
html:not([data-skin="v5"]) .alt .m.mine{color:var(--gold);font-weight:600}
.stars{display:flex;gap:2px;align-items:center}
/* оценка ведением пальца: горизонталь — звёздам, вертикаль — прокрутке */
.stars:not(.sm){touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.stars.big{padding:6px 0}
.stars .star{position:relative;width:32px;height:32px;font-size:28px;line-height:32px;text-align:center;
  color:var(--line2);cursor:pointer;user-select:none;-webkit-user-select:none}
.stars.big .star{width:44px;height:44px;font-size:38px;line-height:44px}
.stars.sm .star{width:14px;height:14px;font-size:13px;line-height:14px;cursor:default}
.stars .star.full{color:var(--gold)}
.stars .star.half{background:linear-gradient(90deg,var(--gold) 50%,var(--line2) 50%);-webkit-background-clip:text;background-clip:text;color:transparent}
.stars .val{margin-left:8px;font-size:15px;font-weight:600;color:var(--ink2);font-variant-numeric:tabular-nums;min-width:28px}
/* ── Хорошее видно сразу: оценка 4 и выше ── */
.alt.top{border-left:3px solid var(--gold);padding-left:13px}
.card.top{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold), var(--shadow)}
.topbadge{display:inline-flex;align-items:center;gap:3px;background:var(--gold-bg);color:var(--gold);border-radius:6px;
  padding:1px 6px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.wantbadge{display:inline-block;background:var(--accent-bg);color:var(--accent);border-radius:6px;padding:1px 6px;font-size:12px;font-weight:600}
/* ── Хочу / любимое в листе ── */
.wd-lists{display:flex;gap:8px;margin-top:12px}
.wd-lists button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 8px;border-radius:12px;
  background:var(--surf2);border:1px solid var(--line);font-size:14px;font-weight:500;color:var(--ink);min-height:44px}
.wd-lists button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.wd-lists button.on{background:var(--accent-bg);border-color:var(--accent);color:var(--accent)}
.wd-lists button.on svg{fill:currentColor}
.sentinel{height:1px}

/* ── Поиск ── */
.search{display:flex;align-items:center;gap:10px;width:100%;background:var(--surf2);border-radius:12px;padding:11px 14px;
  color:var(--ink3);font-size:15.5px;text-align:left;min-height:44px;margin-bottom:14px}
.search svg{width:18px;height:18px;stroke:var(--ink3);fill:none;stroke-width:2;stroke-linecap:round;flex:none}
.search.live input{flex:1;border:0;background:none;font-size:16px;color:var(--ink);outline:none;padding:0;min-width:0}
.search.live input::placeholder{color:var(--ink3)}
.search .clr{flex:none;width:26px;height:26px;margin:-3px -4px -3px 0;border-radius:13px;display:grid;place-items:center;background:var(--line);color:var(--ink2)}
.search .clr svg{width:11px;height:11px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round}
/* ── Ленты: ряд карточек с прокруткой ── */
.feed-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:18px 0 8px;padding:0}
.feed-h b{font-size:17px;font-weight:700;letter-spacing:-.015em;flex:1;min-width:0;line-height:1.2}
.feed-h .act{font-size:14px;font-weight:500;color:var(--accent);min-height:auto;flex:none;white-space:nowrap;padding-top:2px}
.hrow-scroll{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-left:20px;margin:0 -20px;padding:2px 20px 6px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hrow-scroll::-webkit-scrollbar{display:none}
.hrow-scroll:empty{display:none}
.mini{flex:0 0 150px;scroll-snap-align:start;background:var(--surf);border:1px solid var(--line);border-radius:14px;
  padding:10px;text-align:left;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px;color:inherit;font:inherit;cursor:pointer}
.mini.top{border-color:var(--gold)}
.mini .n{font-size:14px;font-weight:600;line-height:1.25;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mini .m{font-size:12px;color:var(--ink2);line-height:1.3;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.mini .r{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--ink3);margin-top:auto}
.mini .r b{color:var(--gold);font-weight:700}
.mini .r .mbadge{margin-left:auto}
.mini .why{font-size:11.5px;color:var(--accent)}
/* ── Миниатюра вина: фото или силуэт бутылки в цвете вина ── */
.thumb{width:100%;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:var(--surf2);display:grid;place-items:center;position:relative}
.thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;background:var(--surf2)}
.thumb:has(img) .ini{display:none}
.thumb img{object-fit:contain;padding:4px;box-sizing:border-box}   /* бутылка целиком, не обрезок */
.thumb svg{width:34%;height:auto}
.thumb.sm{width:44px;height:44px;aspect-ratio:auto;border-radius:10px;flex:none}
.thumb.sm svg{width:52%}
.thumb .ini{position:absolute;right:6px;bottom:4px;font-size:11px;font-weight:700;color:var(--ink3)}
/* ── Похожие и описание в листе ── */
.wd-sim{display:flex;gap:10px;overflow-x:auto;margin:0 -20px;padding:2px 20px 6px;scrollbar-width:none}
.wd-sim::-webkit-scrollbar{display:none}
.wd-sim .mini{flex-basis:140px}
.wd-desc{background:var(--surf2);border-radius:12px;padding:12px 14px;font-size:14.5px;line-height:1.5;color:var(--ink);margin-top:8px}
.wd-desc small{display:block;color:var(--ink3);font-size:11.5px;margin-top:6px}

/* ── Откуда: кусок карты с отметкой места ── */
/* Карта рисуется сервером (app/geo.py) своими контурами: цветов в разметке
   нет, всё здесь — поэтому тёмная тема и слой v5 достаются даром. */
.geo-pic{border:1px solid var(--line);border-radius:var(--r-s);overflow:hidden;line-height:0}
/* Настоящая карта: пока едут плитки, внутри лежит наш контур-заглушка */
.geo-map{position:relative;height:230px;border:1px solid var(--line);border-radius:var(--r-s);
  overflow:hidden;line-height:0;background:var(--surf2)}
.geo-map .geomap{width:100%;height:100%;object-fit:cover}
.geo-map .leaflet-container{width:100%;height:100%;background:var(--surf2);font:inherit}
/* Контейнер Leaflet — сам блок .geo-map (высоту он держит свою): правило потомка
   до него не доставало, и фон с шрифтом оставались от Leaflet */
.geo-map.leaflet-container{background:var(--surf2);font:inherit}
.geo-map .leaflet-control-attribution{font-size:10px;background:rgba(255,255,255,.72)}
.geo-map .leaflet-control-attribution a{color:var(--ink2)}
/* Страховка: если библиотека вернёт свой флаг в подписи, он не покажется */
.leaflet-attribution-flag{display:none!important}
/* Подсказка «На экран «Домой»» — карточка над таббаром, как у системных подсказок */
.a2hs{position:absolute;left:10px;right:10px;z-index:45;bottom:calc(var(--tabh) + max(env(safe-area-inset-bottom,0px),6px) + 10px);
  display:flex;gap:12px;align-items:flex-start;padding:14px 46px 14px 14px;background:var(--surf);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--shadow);animation:up .38s cubic-bezier(.2,.9,.25,1.05)}
/* прячется вместе с таббаром и на время перехода: таббар уезжает с экраном, карточка осталась бы висеть */
.a2hs[hidden],.tabs[hidden]+.a2hs,.tabs.kb+.a2hs,.device.trans .a2hs{display:none}
.a2hs-ico{width:48px;height:48px;border-radius:11px;flex:none;display:block}
.a2hs-b{flex:1;min-width:0}
.a2hs-b b{display:block;font-size:16px;font-weight:600;letter-spacing:-.015em;line-height:1.3}
.a2hs-s{margin:4px 0 0;font-size:14px;line-height:1.55;color:var(--ink2)}
.a2hs .gl{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--surf2);vertical-align:-7px;margin:0 1px;font-style:normal}
.a2hs .gl svg{width:16px;height:16px;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.a2hs .gl.dots{width:30px;font-size:12px;font-weight:700;letter-spacing:1px;color:var(--accent)}
.a2hs .xclose{top:8px;right:8px}
.a2hs .xclose::before{content:"";position:absolute;inset:-6px}
.a2hs-go{display:inline-block;width:auto;margin-top:10px;padding:9px 18px;min-height:40px;font-size:15px}
.device:not(.trans) .tabs:not([hidden]):not(.kb)+.a2hs:not([hidden])~.toast{bottom:calc(var(--tabh) + max(env(safe-area-inset-bottom,0px),6px) + var(--a2hs-h,122px) + 20px)}
#auth-tg:not([hidden])~#auth-cancel{display:none}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
@media (prefers-reduced-motion:reduce){.a2hs{animation:none}}
/* Вопрос о возрасте до входа: крупный вопрос и две кнопки, как экран входа */
.age-q{font-size:27px;font-weight:700;letter-spacing:-.025em;line-height:1.15;text-align:center;text-wrap:balance}
.age-s{margin:10px 6px 24px;font-size:16px;line-height:1.45;color:var(--ink2);text-align:center;text-wrap:balance}
/* Поля выбора снимка: живут в документе, но не видны и не ловят касаний */
.pick-inp{position:fixed;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none;z-index:-1}
/* Стили Leaflet подключаются позже наших: без второго класса его padding:6px и
   белый фон перебивали подпись (в тёмной теме — белая плашка), а раскладка
   подписей считала не тот размер. Отступ от точки — 10 px, как g в tidyTips */
.leaflet-tooltip.geo-tip{background:var(--surf);border:1px solid var(--line);color:var(--ink);font-size:12px;
  font-weight:500;line-height:16px;border-radius:8px;box-shadow:none;padding:2px 7px;white-space:nowrap}
.geo-tip::before{display:none}
.leaflet-tooltip-top.geo-tip{margin-top:-10px}
.leaflet-tooltip-bottom.geo-tip{margin-top:10px}
.leaflet-tooltip-left.geo-tip{margin-left:-10px}
.leaflet-tooltip-right.geo-tip{margin-left:10px}
.leaflet-tooltip.geo-tip.off{visibility:hidden}
.geo-open{display:inline-block;margin-top:6px;font-size:14px;color:var(--accent)}
.geomap{display:block;width:100%;height:auto}
.geo-sea{fill:var(--surf2)}
.geo-land{fill:var(--surf3);stroke:var(--line);stroke-width:.4}
.geo-own{fill:var(--line2);stroke:var(--ink3);stroke-width:.5}
.geo-halo{fill:var(--accent);opacity:.18}
.geo-dot{fill:var(--accent)}
.geo-pin{fill:var(--accent)}
.geo-eye{fill:var(--surf)}
.geo-where{margin-top:8px;font-size:14.5px;color:var(--ink)}
.geo-seen{margin-top:2px;font-size:13px;color:var(--ink3)}
.wd-geo .geo-go{padding-left:0;padding-right:0;margin-top:4px}
.wd-geo .geo-go:last-child{border-bottom:none}
/* число живёт внутри подписи строки, а у неё display:block — иначе «485» и
   «вин» встают друг под другом */
.wd-geo .geo-go .l .geo-n{display:inline;font-variant-numeric:tabular-nums}

/* ── Блок съёмки: три режима ── */
.scanblk{background:var(--accent-fill);color:var(--accent-fill-ink);border-radius:18px;padding:16px 14px 14px;box-shadow:var(--shadow)}
.scanblk-t{font-size:20px;font-weight:700;letter-spacing:-.02em;margin:0 4px 12px}
.scanblk-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.scanbtn{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:14px;padding:14px 6px 12px;
  color:inherit;font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:104px;transition:background .15s,transform .15s}
.scanbtn:active{background:rgba(255,255,255,.26);transform:scale(.97)}
.scanbtn svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px}
.scanbtn b{font-size:15.5px;font-weight:600;letter-spacing:-.01em}
.scanbtn small{font-size:11.5px;opacity:.78;line-height:1.2;text-align:center}
/* макеты бутылки и полки на экране съёмки */
.bottle-mock,.shelf-mock{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:14px;color:var(--ink3)}
.bottle-mock svg{width:38%;height:auto}
.shelf-mock svg{width:18%;height:auto}
.shelf-mock::after{content:"";position:absolute;left:8%;right:8%;bottom:22%;height:3px;background:var(--line2,var(--line));border-radius:2px}
/* фото в карточке и в листе */
.card-photo{margin:-17px -17px 12px;border-radius:var(--r) var(--r) 0 0;overflow:hidden;background:var(--surf2);aspect-ratio:16/9}
.card-photo img{width:100%;height:100%;object-fit:contain;display:block;padding:8px;box-sizing:border-box}
.wd-photo{margin:0 0 12px;border-radius:14px;overflow:hidden;background:var(--surf2);aspect-ratio:16/10;position:relative}
.wd-photo img{width:100%;height:100%;object-fit:contain;display:block;padding:10px;box-sizing:border-box}
.wd-photo img[src*="/api/scans/"],.card-photo img[src*="/api/scans/"]{object-fit:cover;padding:0}   /* свой снимок — во весь кадр */
.wd-photo small{position:absolute;right:8px;bottom:6px;font-size:10.5px;color:#fff;background:rgba(0,0,0,.45);padding:2px 6px;border-radius:6px}
.row .thumb.sm{margin-right:10px}

/* ── Правки вёрстки ── */
.wd-photo[hidden],.card-photo[hidden]{display:none}
.wd-photo{aspect-ratio:16/9}
.linkbtn{display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0;margin-top:2px;color:var(--accent);font-weight:600;font-size:15px}
.list-reset{display:inline-block;min-height:0;margin:-8px 0;padding:8px 0;font-size:inherit}   /* ссылка в строке-подписи: зона касания шире строки, а строка не растёт */
.nav .more{width:44px;height:44px;margin-right:-10px;display:grid;place-items:center;color:var(--accent);border-radius:22px}
.nav .more svg{width:22px;height:22px;fill:currentColor}
.nav .more:active{background:var(--accent-bg)}
/* «Поделиться» в шапке: значок системный (квадрат со стрелкой вверх), зона касания 44 px */
.nav .share{width:44px;height:44px;margin-right:-10px;display:grid;place-items:center;color:var(--accent);border-radius:22px}
.nav .share svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav .share:active{background:var(--accent-bg)}
.role{display:flex;justify-content:space-between;align-items:center;gap:8px}
.role .more-l{color:var(--ink3);font-weight:400;letter-spacing:0;text-transform:none;font-size:13px}

/* ── Подпись источника снимка ── */
.card-photo{position:relative}
.card-photo small.src,.wd-photo small.src{position:absolute;right:8px;bottom:6px;font-size:10.5px;color:#fff;background:rgba(0,0,0,.45);padding:2px 6px;border-radius:6px}
.thumb .src{position:absolute;left:6px;bottom:4px;font-size:9.5px;font-weight:600;color:var(--ink3);background:var(--surf);padding:1px 5px;border-radius:5px;opacity:.9}

/* ── Просмотр снимка целиком ── */
.viewer{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,var(--vdim,.92));display:flex;align-items:center;justify-content:center;
  touch-action:none;user-select:none;-webkit-user-select:none;animation:viewer-in .18s ease-out}
.viewer[hidden]{display:none}
@keyframes viewer-in{from{opacity:0}to{opacity:1}}
.viewer img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:0 0;will-change:transform;-webkit-user-drag:none}
.viewer.settle img{transition:transform .22s cubic-bezier(.32,.72,0,1)}
.viewer-close{position:absolute;top:max(env(safe-area-inset-top,0px),10px);right:10px;width:44px;height:44px;border-radius:22px;
  background:rgba(255,255,255,.14);display:grid;place-items:center;color:#fff;z-index:2}
.viewer-close svg{width:20px;height:20px;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;fill:none}
.viewer-cap{position:absolute;left:0;right:0;bottom:max(env(safe-area-inset-bottom,0px),14px);text-align:center;color:rgba(255,255,255,.75);font-size:13px;pointer-events:none}
.wd-photo,.card-photo{cursor:zoom-in}

/* ── Главная по контексту ── */
.scanblk-s{font-size:14.5px;opacity:.82;margin:-9px 4px 12px}
.pend{margin-bottom:10px;transition:opacity .28s ease,transform .28s ease}
.pend.gone{opacity:0;transform:translateX(48px)}      /* оценка поставлена — карточка уходит вправо */
.pend-t{font-size:17px;font-weight:600;letter-spacing:-.015em;line-height:1.3}
.pend-row{display:flex;gap:12px;align-items:flex-start}
.pend .stars.big{margin:10px 0 0;justify-content:center}
.pend .stars.big .star{width:42px;height:42px;font-size:36px;line-height:42px}
.homecard{display:block;width:100%;text-align:left;position:relative;margin-top:12px;font:inherit;color:inherit}
.homecard small{display:block;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);font-weight:700;margin-bottom:4px}
.homecard b{display:block;font-size:17px;font-weight:600;letter-spacing:-.015em;line-height:1.3;padding-right:36px}
.homecard span{display:block;font-size:13.5px;color:var(--ink2);margin-top:3px;line-height:1.4}
.homecard:active{background:var(--surf2)}
.xclose{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:16px;display:grid;place-items:center;color:var(--ink3);background:var(--surf2)}
.xclose svg{width:14px;height:14px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round}
.fact-prev{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.fact-prev:active{background:var(--surf2)}
.fact-prev .thumb{width:64px;height:64px;aspect-ratio:auto;flex:none}
.fact-prev #fact-thumb:empty{display:none}
.fact-t{font-size:17px;font-weight:600;letter-spacing:-.015em;line-height:1.3}
.fact-s{margin:4px 0 0;font-size:14px;color:var(--ink2);line-height:1.45}

/* ── Оценка каталога: серая ниже четырёх, цвета вина от четырёх ── */
.rbadge{display:inline-flex;align-items:center;gap:3px;background:var(--surf2);color:var(--ink2);border-radius:6px;
  padding:1px 6px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;vertical-align:1px}
.rbadge.hi{background:var(--accent-bg);color:var(--accent)}
.wd-cell.fit small{color:inherit;opacity:.8}          /* ячейка «совпадение» окрашена, подпись наследует цвет */

/* ── Звёзды в строке списка: оценка без открытия листа ── */
.stars.inline{gap:1px;margin-top:3px}
.stars.inline .star{width:24px;height:24px;font-size:21px;line-height:24px;cursor:pointer}

/* ── Причина из данных ── */
.why .reason{display:block;font-style:normal;font-size:13px;color:var(--ink3);margin-bottom:3px}
.alt .reason,.mini .why{font-style:normal;font-size:12px;color:var(--ink3)}
/* подсказки поиска — всплывающая панель под полем, а не часть страницы */
.search-wrap{position:relative;margin-bottom:14px}
.search-wrap .search{margin-bottom:0}
.suggest-panel{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:var(--surf);border:1px solid var(--line);
  border-radius:14px;padding:12px 14px;box-shadow:var(--shadow)}
/* одна карточка «как было?»: вино, куда ведёт касание, и «пропустить» */
.pend .pend-t b{cursor:pointer}
.pend .pend-t,.pend .pend-row .hint{padding-right:84px}   /* место под «Пропустить» */
.pend .pend-skip{position:absolute;top:10px;right:12px;font-size:13px;color:var(--ink3);min-height:32px;padding:4px 8px}
.pend{position:relative}

/* ── Результат по режимам ── */
.lead{background:var(--accent-bg);border-radius:14px;padding:13px 15px;margin-bottom:12px}
.lead-t{font-size:17px;font-weight:600;letter-spacing:-.015em;line-height:1.3;color:var(--ink)}
.lead-t b{color:var(--accent)}
.lead-r{font-size:14px;color:var(--ink2);margin-top:4px;line-height:1.4}
.verdict{background:var(--surf);border:1px solid var(--line);border-radius:var(--r);padding:18px 17px;margin-bottom:12px;box-shadow:var(--shadow);text-align:center}
.verdict-t{font-size:30px;font-weight:700;letter-spacing:-.03em;line-height:1.1;font-variant-numeric:tabular-nums}
.verdict.hi .verdict-t{color:var(--m-hi-bg)} .verdict.mid .verdict-t{color:var(--gold)} .verdict.lo .verdict-t{color:var(--ink3)}
.verdict-r{font-size:15px;color:var(--ink2);margin-top:8px;line-height:1.45}
.verdict-b{display:flex;gap:8px;margin-top:16px}
.verdict-b .btn{flex:1;padding:13px 8px;min-height:48px;font-size:15.5px}
#cards-more[hidden]{display:none}

/* ── Факт дня ── */
.fact-text p{font-size:16px;line-height:1.55;color:var(--ink);margin:0 0 12px}
/* Факт про место — кусок карты посреди текста */
.fact-geo{margin:4px 0 16px}
.fact-wine{display:flex;gap:12px;align-items:center;padding:12px 14px;margin-top:6px;width:100%;text-align:left;
  background:var(--surf);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);font:inherit;color:inherit}
.fact-wine .thumb{width:56px;height:56px;aspect-ratio:auto;flex:none}
.fact-wine .n{display:block;font-weight:600;font-size:15.5px;letter-spacing:-.01em;line-height:1.25}
.fact-wine .m{display:block;font-size:12.5px;color:var(--ink2);margin-top:2px}
.quiz-q{font-size:16px;font-weight:600;line-height:1.35;letter-spacing:-.01em}
.quiz{display:grid;gap:8px;margin-top:12px}
.quiz button{text-align:left;padding:12px 14px;border-radius:12px;background:var(--surf2);border:1.5px solid var(--line);
  font:inherit;font-size:15px;color:var(--ink);min-height:44px;line-height:1.35}
.quiz button.ok{background:var(--go-bg);border-color:var(--go);color:var(--go);font-weight:600}
.quiz button.bad{background:var(--accent-bg);border-color:var(--accent);color:var(--accent)}
.quiz button:disabled{opacity:.9}
.quiz-x{font-size:14px;color:var(--ink2);line-height:1.45;margin-top:10px}
.quiz-x b{color:var(--gold)}

/* ── Поиск: подсказки под полем; «Мой опыт»: история месяца ── */
.chips.small button{padding:6px 12px;font-size:13px;min-height:32px}
.chips.small:empty{display:none}
.story{font-size:15.5px;line-height:1.5;color:var(--ink);margin:0 0 14px;padding:13px 15px;background:var(--accent-bg);border-radius:14px}
#wine-b .why{margin-top:0;font-size:14.5px}          /* «Почему вам» в листе — как остальной текст листа */

/* ── Вино как страница ── */
.wine-body .wd-photo{margin-top:2px}
.wine-body .wd-name{font-size:26px}

/* Звёзды в строках списков: класс inline, а не mini — .mini занят мини-карточками лент */
.alt .stars.inline{display:inline-flex;align-items:center;gap:0;margin-top:2px}
.alt .stars.inline .star{width:22px;height:22px;font-size:19px;line-height:22px}

/* Атрибут hidden сильнее любого display: карточки главной с display:block
   без этого правила игнорировали hidden и показывались до ответа сервера */
[hidden]{display:none!important}

/* ── Вход через Telegram ── */
.btn.tg{display:flex;align-items:center;justify-content:center;gap:9px;background:var(--surf2);color:var(--ink)}
.btn.tg svg{width:20px;height:20px;stroke:var(--accent);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tg-dots::after{content:"…";display:inline-block;width:1.2em;text-align:left;animation:tg-dots 1.5s steps(3,end) infinite}
@keyframes tg-dots{0%{content:"."}33%{content:".."}66%{content:"..."}}
.row.static{pointer-events:none}

/* ── Где купить ── */
.offers{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surf)}
.offer{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none;min-height:56px}
.offer:last-child{border-bottom:none}
.offer:active{background:var(--surf2)}
.offer .l{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.offer .l b{font-size:15px;font-weight:600}
.offer .l small{font-size:12px;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.offer .l small.st{color:var(--ok)}
.offer.off .l small.st{color:var(--ink3)}
.offer .p{display:flex;align-items:center;gap:6px;font-weight:700;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}
.offer .p .chev{width:7px;height:13px;stroke:var(--ink3);fill:none;stroke-width:1.8;stroke-linecap:round}
.offers-more summary{padding:10px 14px;font-size:13.5px;color:var(--accent);cursor:pointer;list-style:none;border-bottom:1px solid var(--line)}
.offers-more summary::-webkit-details-marker{display:none}
.offers-more[open] summary{border-bottom:1px solid var(--line)}
.offers-more:last-child summary{border-bottom:none}
.offers-note{font-size:12px;color:var(--ink3);margin:8px 2px 0;line-height:1.35}
.offer-line{margin-top:2px}
.offer-inline{color:var(--accent);font-weight:600;text-decoration:none}
/* ── значок «хочу попробовать» ── */
.wantmark{display:inline-block;width:13px;height:13px;margin-left:2px;vertical-align:-1px;color:var(--accent)}
.wantmark svg{width:13px;height:13px;fill:currentColor;display:block}
.wantmark.fav{color:var(--accent)}
/* ── лист «как оно?» ── */
.rate-in{padding:14px 20px 18px}
.rate-head{display:flex;gap:12px;align-items:center;margin:0 0 10px}
.rate-head #sh-thumb:empty{display:none}
.rate-t{font-size:19px;font-weight:700;letter-spacing:-.02em;line-height:1.2}
.rate-head .hint{margin:3px 0 0}
#rate{justify-content:center;margin:8px 0 4px}
.rate-hint{text-align:center;margin:0 0 16px;font-size:12px}
.rate-corr{margin-bottom:18px}
.rate-corr-h{font-size:12.5px;color:var(--ink3);margin:0 0 8px}
.take-q{margin:6px 0 2px;font-size:16px;font-weight:600;color:var(--ink);line-height:1.35}
.take-no{margin-top:8px}
.rate-foot{display:flex;justify-content:space-between;align-items:center;margin-top:4px}
.rate-foot .linkbtn{font-size:14px;font-weight:500;min-height:40px}

/* ── Две раскладки: дизайн v5 рисует часть экранов своей разметкой ──
   .v5only видна только при data-skin="v5", .v4only — только в прежнем виде */
html:not([data-skin="v5"]) .v5only{display:none!important}
html[data-skin="v5"] .v4only{display:none!important}
/* «Это другое вино»: выбор вина из каталога */
.rb-q{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;background:var(--surf);color:var(--ink);margin-bottom:6px}
#rb-list{max-height:52vh;overflow:auto}
.rb-row{display:block;width:100%;text-align:left;padding:10px 2px;border-bottom:1px solid var(--line);font:inherit;color:var(--ink)}
.rb-row b{display:block;font-weight:600}
.rb-row span{display:block;font-size:13px;color:var(--ink3);margin-top:2px}
.rb-row.on b::after{content:" ✓";color:var(--accent)}
.rb-none{margin-top:12px}

/* ── Данные 3.0: цена в магазине, откуда вкус, как нашлось, найденное фото ── */
.retail-line{color:var(--ink2)}
.axfrom{font-size:11.5px;margin-top:12px}
.axfrom + .axes{margin-top:6px}
.vd-mark,.mq-flag{display:inline-block;font-family:var(--sans);font-size:11px;font-weight:600;line-height:1.55;letter-spacing:0;
  color:var(--gold);background:var(--gold-bg);border-radius:5px;padding:0 6px;vertical-align:2px;white-space:nowrap}
.wd-name .vd-mark{vertical-align:5px}
.mq-note{color:var(--ink3)}
.wd-axfrom{font-size:12.5px;color:var(--ink3);margin:-4px 0 8px;line-height:1.4}
.wd-retail{font-size:14.5px;color:var(--ink2);line-height:1.45;margin:0 0 8px}
.wd-retail small{display:block;font-size:12px;color:var(--ink3);margin-top:1px}
.wd-findphoto{min-height:44px;padding:11px;margin-top:6px}
.wd-findline{margin:12px 2px 0}
.wd-found .wd-notphoto{display:flex;margin:-6px 0 4px;min-height:40px;font-size:13.5px;font-weight:500;color:var(--ink2)}
.sd-markup{margin:-8px 0 12px}
.thumb .src{max-width:calc(100% - 12px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}

/* ── Знания: витрина учебника ──
   Пять вкладок в таббаре: подпись не переносится и не ужимает значок */
.tabs button{white-space:nowrap}
/* Каркас витрины: пока ответ идёт, экран держит форму, а не пустоту */
.sk{background:var(--surf2);border:1px solid var(--line);border-radius:var(--r)}
.sk-today{height:132px;margin-top:26px}
.sk-trk{height:74px}
.sk-list{height:212px;margin-top:34px}
@media (prefers-reduced-motion:no-preference){.sk{animation:skb 1.6s ease-in-out infinite}}
@keyframes skb{0%,100%{opacity:1}50%{opacity:.55}}
#know-oops .oops-t{display:block;font-size:17px;font-weight:600;letter-spacing:-.01em}
#know-oops{margin-top:26px}
/* Прочитано — зелёная галочка со словом: в строке статьи, на статье дня, в разделе.
   Серое слово в конце подписи в списке не было видно вовсе */
.rd{color:var(--ok);font-weight:500;white-space:nowrap}
.rd svg{display:inline-block;width:.92em;height:.92em;margin-right:3px;vertical-align:-.1em;fill:none;
  stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cont,.trk,.today{display:block;width:100%;text-align:left;font:inherit;color:inherit}
.cont,.trk{background:var(--surf);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;
  box-shadow:var(--shadow)}
.cont:active,.trk:active,.today:active{opacity:.9}
.cont-r{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.cont-r .t{font-size:16.5px;font-weight:600;letter-spacing:-.014em;line-height:1.25;min-width:0}
.cont-r .pct{flex:none;font-size:13px;color:var(--ink3);font-variant-numeric:tabular-nums}
.cont .m,.trk .m{display:block;font-size:12.5px;color:var(--ink3);margin-top:3px}
/* Прогресс — полоской, а не процентами в тексте: цифра уже стоит справо от названия */
.kbar{display:block;height:4px;border-radius:3px;background:var(--surf3);margin-top:10px;overflow:hidden}
.kbar i{display:block;height:100%;background:var(--accent);border-radius:3px}
.tracks{display:grid;gap:9px}
/* Статья дня — заметный блок: в прежнем виде акцентная подложка с акцентным
   контуром (подложка сама по себе от фона страницы почти не отличается), в v5 чёрный */
.today{background:var(--accent-bg);border:1px solid var(--accent);border-radius:var(--r);padding:16px 17px;
  box-shadow:var(--shadow)}
.today .t{display:block;font-size:21px;font-weight:700;letter-spacing:-.024em;line-height:1.16}
.today .s{display:block;font-size:14.5px;color:var(--ink2);line-height:1.45;margin-top:6px}
.today .m{display:block;font-size:12.5px;color:var(--ink3);margin-top:9px}
/* Раздел учебника раскрывается на месте */
.secrow .chev{transition:transform .16s}
.secrow.on .chev{transform:rotate(90deg)}
/* Последний ребёнок группы — всегда скрытый список статей, поэтому границу
   гасить нужно у строки перед ним: иначе линия перечёркивала скруглённый низ */
.secrow:nth-last-child(2):not(.on){border-bottom:none}
.secarts{background:var(--surf2);border-bottom:1px solid var(--line)}
.secarts:last-child{border-bottom:none}
.secarts .arow{padding-left:26px}
.arow .snip{display:block;margin-top:4px}
/* Найденное слово внутри отрывка — словом в строке, а не блоком: иначе правило
   `.row .l b` (тот же вес) делало бы каждое совпадение отдельной строкой 16 px */
.arow .snip b{display:inline;font-size:inherit;letter-spacing:inherit;line-height:inherit;
  color:var(--ink);font-weight:600}
/* Словарь: термин, синонимы, определение, ссылка на статью */
.term{display:block;padding:13px 16px;border-bottom:1px solid var(--line)}
.term:last-child{border-bottom:none}
.term>b{display:block;font-size:15.5px;font-weight:600;letter-spacing:-.01em}
.term .aka{display:block;font-size:12.5px;color:var(--ink3);margin-top:1px}
.term .def{display:block;font-size:14.5px;color:var(--ink2);line-height:1.45;margin-top:4px}
.term .more{display:inline-block;margin-top:6px;font-size:13.5px;font-weight:500;color:var(--accent);min-height:32px}
.alpha{font-size:12.5px;font-weight:700;color:var(--ink3);letter-spacing:.04em;margin:16px 4px 6px}

/* ── Знания: статья ── */
.art-meta{font-size:12.5px;color:var(--ink3);margin:4px 0 6px}
.art-t{font-size:29px;font-weight:700;letter-spacing:-.03em;line-height:1.12;margin:0 0 8px;text-wrap:balance}
.art-s{font-size:16px;color:var(--ink2);line-height:1.5;margin:0 0 14px}
/* Оглавление статьи — дорожка в одну строку: подзаголовки здесь целые фразы,
   и в перенос они складывались в стену пилюль на пол-экрана */
.art-toc{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px 18px;padding:2px 20px 6px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.art-toc::-webkit-scrollbar{display:none}
.art-toc button{white-space:nowrap;flex:none}
.art-text{font-size:16.5px;line-height:1.62;color:var(--ink);max-width:34em}
.art-text h2{font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.2;margin:26px 0 8px}
.art-text h3{font-size:17px;font-weight:600;letter-spacing:-.014em;margin:20px 0 6px}
.art-text p{margin:0 0 12px}
.art-text ul,.art-text ol{margin:0 0 14px;padding-left:20px}
.art-text li{margin:0 0 7px}
.art-text b{font-weight:600}
.art-text a[data-slug]{color:var(--accent);cursor:pointer;border-bottom:1px solid var(--accent-bg)}
/* Врезка «Важно» и «Попробуйте» — подложкой с полосой, наклона в приложении нет */
.art-text blockquote{margin:16px 0;padding:13px 15px;background:var(--surf2);border-left:2px solid var(--accent);
  border-radius:0 12px 12px 0;font-size:15.5px;line-height:1.55;color:var(--ink)}
/* Таблица шириной в четыре столбца в колонку телефона не влезает: своя прокрутка.
   У правого края — дымка, иначе на iOS не видно, что таблицу можно тянуть: верхний
   слой едет с содержимым (local) и в конце прокрутки дымку закрывает */
.art-tw{overflow-x:auto;margin:0 0 16px;-webkit-overflow-scrolling:touch;
  background:linear-gradient(to left,var(--tw-bg,var(--bg)),transparent) right/26px 100% no-repeat local,
             linear-gradient(to left,var(--line2),transparent) right/16px 100% no-repeat scroll}
.art-text table{border-collapse:collapse;font-size:14.5px;min-width:100%}
.art-text th,.art-text td{border-bottom:1px solid var(--line);padding:7px 14px 7px 0;text-align:left;
  vertical-align:top}
/* Шапку столбца не рвём, прозаические ячейки переносятся: без этого одна ячейка
   на 150 знаков растягивала таблицу на пять экранов боком */
.art-text th{font-size:12.5px;font-weight:600;color:var(--ink3);white-space:nowrap}
.art-text td{color:var(--ink2);white-space:normal;min-width:5.5em}
.art-end{height:1px}
/* Под текстом — отметка и «Дальше» рядом: дочитал, отметил, пошёл к следующей.
   Отметка — флажком (пустой кружок или зелёная галочка), чтобы уместиться в ряд */
/* Узкий экран (320 px): «Дальше» уходит строкой ниже, а не рвёт название посреди слова */
.art-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.art-acts .btn{width:auto;min-height:56px}
.art-done{flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;font-size:16px}
.art-acts.one .art-done{flex:1}
.art-done .ck{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;
  box-shadow:inset 0 0 0 1.5px var(--line2)}
.art-done .ck svg{width:12px;height:12px;fill:none;stroke:transparent;stroke-width:2.2;stroke-linecap:round;
  stroke-linejoin:round}
.art-done.on .ck{background:var(--ok);box-shadow:none}
.art-done.on .ck svg{stroke:var(--surf)}
.art-next{flex:1 1 170px;min-width:0;display:flex;align-items:center;gap:10px;padding:8px 14px 8px 16px;text-align:left}
.art-next .nx{flex:1;min-width:0}
.art-next .nx small{display:block;font-size:12px;font-weight:500;letter-spacing:0;opacity:.78}
/* Название следующей — до двух строк: в одну «Луара, Рона, Эльзас…» обрывалось на запятой */
.art-next .nx b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  font-size:15px;font-weight:600;line-height:1.25}
.art-next .chev{stroke:currentColor;opacity:.8}
/* Места статьи на карте — тот же кусок карты, что на странице вина */
.art-geo{margin:6px 0 20px}
.art-geo .geo-where{font-size:13.5px;line-height:1.45;color:var(--ink2)}
/* Внешние адреса живут только здесь — свёрнутым списком */
.art-src{margin-top:22px;border-top:1px solid var(--line);padding-top:8px}
.art-src summary{display:flex;align-items:center;min-height:36px;font-size:13.5px;color:var(--ink3);
  cursor:pointer;list-style:none}
.art-src summary::-webkit-details-marker{display:none}
.art-src ul{margin:2px 0 6px;padding-left:18px}
.art-src li{font-size:13px;line-height:1.45;margin-bottom:7px}
.art-src a{color:var(--ink2);word-break:break-word}
