/* Страницы. Сначала главная; остальное ниже. */

/* ---------- 404-страница (отдельный файл) ---------- */
.nf-body { display: grid; place-items: center; min-height: 100vh; background: var(--cream); }
.nf { text-align: center; padding: 32px; max-width: 560px; }
.nf-cup { width: 170px; margin: 0 auto 8px; overflow: visible; }
.nf-cup .steam path { stroke-width: 4; }
.nf-code { font: italic 900 5rem/1 var(--f-display); color: var(--cherry); margin: 0; }
.nf h1 { font-size: 2.4rem; margin-bottom: 12px; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.nf-inline { text-align: center; min-height: 50vh; display: grid; align-content: center; justify-items: center; }
.nf-inline .hand { font-size: 3rem; color: var(--cherry); margin: 0; }
.nf-inline h1 { margin: 6px 0 14px; } .nf-inline p { margin: 0 0 14px; max-width: 46ch; } .nf-inline .nf-cup { width: 120px; margin: 0 auto 4px; }

/* ---------- главная: герой ---------- */
.hero { position: relative; min-height: min(86vh, 780px); display: grid; align-items: center; color: var(--cream); background: var(--espresso); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.12); will-change: transform; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 18, 12, .92) 0%, rgba(31, 18, 12, .74) 38%, rgba(31, 18, 12, .18) 78%, rgba(31, 18, 12, .05)), linear-gradient(0deg, rgba(31, 18, 12, .6), transparent 35%); }
.hero .ill { left: auto; right: 14px; bottom: 14px; }
.hero-in { padding-block: clamp(56px, 9vw, 120px); position: relative; }
.hero h1 { max-width: 12ch; color: var(--cream); margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero h1 em { font-style: italic; color: var(--caramel-l); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--cherry); border-radius: 4px; transform-origin: left; animation: underline 1s .5s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero .eyebrow { color: var(--caramel-l); }
.hero-lead { max-width: 52ch; font-size: clamp(1.02rem, .4vw + .95rem, 1.2rem); color: rgba(246, 239, 228, .88); margin-bottom: 28px; }
.hero-search { display: flex; gap: 10px; align-items: center; background: var(--foam); padding: 8px 8px 8px 16px; border-radius: 999px; max-width: 600px; box-shadow: var(--shadow-lg); color: var(--espresso); position: relative; }
.hero-search .hs-ic { color: var(--mocha); display: flex; }
.hero-search .input { border: 0; background: transparent; box-shadow: none !important; min-height: 48px; padding-inline: 4px; font-size: 1.02rem; }
.hero-chips { margin-top: 18px; max-width: 700px; }
.hero-chips .chip { background: rgba(246, 239, 228, .1); border-color: rgba(246, 239, 228, .28); color: var(--cream); backdrop-filter: blur(6px); }
.hero-chips .chip:hover { background: var(--cream); color: var(--espresso); }
.hero-note { margin-top: 26px; transform: rotate(-3deg); width: max-content; }
.hero-note .hand { color: var(--caramel-l); font-size: 1.9rem; position: relative; }
.hero-note .hand::before { content: '↗'; margin-right: 8px; font-family: var(--f-body); }
.hero-steam { position: absolute; right: 9%; bottom: 8%; width: 130px; opacity: .5; z-index: -1; display: block; }
.hero-steam .steam path { stroke: var(--cream); stroke-width: 2.4; stroke-dasharray: 80; animation-duration: 6s; }

/* ---------- главная: «живой журнал» ---------- */
.improve { background: var(--cream-2); border-block: 1px solid var(--line); }
.improve-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.improve h2 { font-size: clamp(1.6rem, 2.2vw + .9rem, 2.5rem); margin-bottom: 14px; max-width: 24ch; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.counters > div { background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.counters > div::after { content: ''; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border: 2px solid var(--caramel); border-radius: 50%; opacity: .25; }
.counters dd { margin: 0; font: italic 900 clamp(2rem, 3vw + .8rem, 3.1rem)/1 var(--f-display); color: var(--cherry); order: 1; }
.counters dt { font-size: .78rem; color: var(--mocha); order: 2; margin-top: 6px; }
.counters > div { display: flex; flex-direction: column; }

/* ---------- подборки недели ---------- */
.cols { display: grid; gap: 18px; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(200px, auto); }
.col { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--cream); background: var(--espresso); min-height: 260px; isolation: isolate; box-shadow: var(--shadow); transition: transform .5s var(--spring), box-shadow .3s; }
.col:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: var(--shadow-lg); }
.col-0 { grid-column: span 7; grid-row: span 2; min-height: 460px; }
.col-1 { grid-column: span 5; } .col-2 { grid-column: span 5; } .col-3 { grid-column: span 12; min-height: 220px; }
.col-img { position: absolute; inset: 0; z-index: -1; }
.col-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.col:hover .col-img img { transform: scale(1.07); }
.col-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 18, 12, .88) 0%, rgba(31, 18, 12, .2) 60%, transparent); }
.col-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 4px; }
.col-k { font: 700 .7rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--caramel-l); }
.col-t { font: italic 800 clamp(1.5rem, 1.6vw + 1rem, 2.4rem)/1.1 var(--f-display); }
.col-0 .col-t { font-size: clamp(2rem, 3vw + 1rem, 3.4rem); }
.col-n { font-size: .84rem; opacity: .85; }
.more { margin: 28px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- мини тир-лист / лестница ---------- */
.tierhome { background: linear-gradient(180deg, transparent, var(--cream-2) 30%, var(--cream-2) 70%, transparent); overflow: hidden; }
.tl-cities { margin-bottom: 24px; }
.ladder { display: grid; gap: 14px; }
.ladder-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; background: var(--foam); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--espresso)); border-radius: var(--r); padding: 14px 18px 14px 14px; box-shadow: var(--shadow); }
.ladder-row.t-S { --c: var(--cherry); } .ladder-row.t-A { --c: var(--caramel-d); } .ladder-row.t-B { --c: var(--espresso-2); } .ladder-row.t-C { --c: var(--mocha-2); } .ladder-row.t-D { --c: #6E6862; }
.ladder-h { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ladder-w { font-size: .74rem; color: var(--mocha); line-height: 1.25; }
.ladder-tiles { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- билеты журнала ---------- */
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.ticket { position: relative; background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 22px 28px; box-shadow: var(--shadow); }
.ticket::before { content: ''; position: absolute; left: 10px; top: 14px; bottom: 14px; border-left: 2px dashed rgba(43, 27, 20, .25); }
.ticket-k { display: flex; align-items: center; gap: 8px; font: 700 .72rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--cherry); margin-bottom: 10px; }
.ticket h3 { font-size: 1.18rem; margin-bottom: 8px; }
.ticket p:last-child { margin: 0; color: var(--mocha); font-size: .9rem; }

/* ---------- призыв ---------- */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--espresso); color: var(--cream); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-art { position: relative; min-height: 320px; }
.cta-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-text { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta-text .eyebrow { color: var(--caramel-l); } .cta-text h2 { margin-bottom: 14px; color: var(--cream); } .cta-text p { color: rgba(246, 239, 228, .8); max-width: 44ch; margin-bottom: 24px; }
.cta-text .btn.primary { --bg: var(--caramel); --fg: var(--espresso); --bd: #6b3f0e; }

@media (max-width: 900px) {
  .improve-in { grid-template-columns: 1fr; }
  .col-0, .col-1, .col-2, .col-3 { grid-column: span 12; grid-row: auto; min-height: 240px; }
  .col-0 { min-height: 340px; }
  .ladder-row { grid-template-columns: 1fr; }
  .ladder-h { flex-direction: row; text-align: left; }
  .cta { grid-template-columns: 1fr; }
  .cta-art { min-height: 220px; }
  .hero-steam { display: none; }
}
@media (max-width: 560px) {
  .hero-search { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
  .hero-search .input { flex: 1 1 100%; }
  .hero-search .hs-ic { display: none; }
  .hero-search .btn { flex: 1; }
  .counters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-width: 100px; }
}

/* ---------- каталог и карта ---------- */
:root { --hdr-total: calc(var(--hdr-h) + 31px); }
.cat-head { padding-block: clamp(22px, 3vw, 36px) clamp(14px, 2vw, 22px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
.cat-head h1 { font-size: clamp(2rem, 3vw + .8rem, 3.2rem); margin-bottom: 6px; }
.cat-head .lead { margin: 0; color: var(--mocha); max-width: 60ch; }
.cat-facts { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; }
.facts-tiers { display: flex; gap: 8px; }
.ft { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--foam); border: 1.5px solid var(--c, var(--line)); font: italic 800 1rem/1 var(--f-display); color: var(--c); }
.ft b { font: 700 .9rem/1 var(--f-body); font-style: normal; color: var(--espresso); }
.ft.t-S { --c: var(--cherry); } .ft.t-A { --c: var(--caramel-d); } .ft.t-B { --c: var(--espresso-2); } .ft.t-C { --c: var(--mocha-2); }
.facts-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-body { display: grid; grid-template-columns: minmax(440px, 620px) minmax(0, 1fr); border-top: 1px solid var(--line); align-items: start; }
.cat-side { padding: 20px 24px 48px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); min-width: 0; }
.cat-map-wrap { position: sticky; top: var(--hdr-total); height: calc(100vh - var(--hdr-total)); height: calc(100dvh - var(--hdr-total)); background: var(--cream-3); border-left: 1px solid var(--line); }
.cat-map { width: 100%; height: 100%; }
.map-msg { position: absolute; left: 12px; right: 12px; bottom: 28px; margin: 0; background: var(--foam); border: 1.5px solid var(--caramel); border-radius: var(--r-sm); padding: 10px 14px; font-size: .86rem; z-index: 4; box-shadow: var(--shadow); }
.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.flt-row { display: grid; gap: 10px; }
.flt-row.two { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.flt-row.range { grid-template-columns: auto 1fr; align-items: center; gap: 14px; font-size: .88rem; font-weight: 600; color: var(--mocha); }
.flt-row.range b { color: var(--espresso); }
.search { position: relative; display: block; }
.search .s-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mocha); display: flex; pointer-events: none; }
.search .input { padding-left: 44px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--caramel), var(--cherry)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--caramel), var(--cherry)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--foam); border: 2.5px solid var(--espresso); margin-top: -9px; box-shadow: 0 2px 0 var(--espresso); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--foam); border: 2.5px solid var(--espresso); cursor: grab; }
.res-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.res-info { margin: 0; color: var(--mocha); font-size: .92rem; }
.res-info b { color: var(--espresso); font-size: 1.05rem; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { width: 42px; height: 24px; border-radius: 999px; background: var(--cream-3); border: 1.5px solid var(--line); position: relative; transition: background .25s; flex: none; }
.switch .sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--foam); box-shadow: 0 1px 3px rgba(43, 27, 20, .4); transition: transform .3s var(--spring); }
.switch input:checked + .sw { background: var(--espresso); border-color: var(--espresso); }
.switch input:checked + .sw::after { transform: translateX(18px); background: var(--caramel-l); }
.switch input:focus-visible + .sw { outline: 3px solid var(--cherry); outline-offset: 2px; }
.results .card.row { animation: card-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.seg { display: none; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 55; background: var(--espresso); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-lg); }
.seg button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--cream); min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; }
.seg button[aria-pressed=true] { background: var(--cream); color: var(--espresso); }
.bounce-pin { width: 44px; height: 56px; pointer-events: none; z-index: 3; }
.bounce-pin svg { width: 44px; height: 56px; transform-origin: 50% 100%; animation: pin-bounce .62s cubic-bezier(.3, .6, .4, 1) infinite alternate; filter: drop-shadow(0 6px 6px rgba(43, 27, 20, .35)); }
@keyframes pin-bounce { from { transform: translateY(0) scale(1, 1); } to { transform: translateY(-16px) scale(.94, 1.06); } }
.cafe-pop .maplibregl-popup-content { background: var(--foam); border: 1.5px solid var(--espresso); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 0; font-family: var(--f-body); }
.cafe-pop .maplibregl-popup-tip { border-top-color: var(--espresso) !important; }
.cafe-pop .maplibregl-popup-close-button { font-size: 20px; width: 32px; height: 32px; color: var(--mocha); }
.pop { display: grid; gap: 4px; padding: 16px 40px 14px 16px; text-decoration: none; color: var(--espresso); }
.pop-m { font: 700 .66rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--cherry); }
.pop-t { font: 800 1.15rem/1.15 var(--f-display); }
.pop-a { font-size: .82rem; color: var(--mocha); }
.pop-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; font-size: .82rem; }
.pop-f b { font: italic 900 1.2rem/1 var(--f-display); }
.pop-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; color: var(--cherry); }
.pop-go .ic { width: 16px; height: 16px; }
.maplibregl-ctrl-attrib { font-size: 11px; background: rgba(246, 239, 228, .85) !important; }

@media (max-width: 960px) {
  .cat-body { grid-template-columns: 1fr; }
  .cat-side { padding: 16px var(--gut) 96px; }
  .cat-map-wrap { display: none; position: relative; top: 0; height: calc(100dvh - var(--hdr-total) - 8px); border-left: 0; }
  .cat[data-view=map] .cat-map-wrap { display: block; }
  .cat[data-view=map] .cat-side { display: none; }
  .seg { display: flex; }
  .card.row .card-media { width: 104px; }
}

/* ---------- карточка заведения ---------- */
.cf-hero { position: relative; color: var(--cream); background: var(--espresso); isolation: isolate; overflow: hidden; }
.cf-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cf-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.cf-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 18, 12, .94) 0%, rgba(31, 18, 12, .6) 50%, rgba(31, 18, 12, .35) 100%), linear-gradient(90deg, rgba(31, 18, 12, .6), transparent 70%); }
.cf-bg .ill { left: auto; right: 14px; top: 14px; bottom: auto; }
.cf-hero-in { padding-block: clamp(20px, 3vw, 32px) clamp(28px, 4vw, 48px); min-height: clamp(380px, 50vh, 520px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.crumbs { display: flex; gap: 10px; font-size: .84rem; color: rgba(246, 239, 228, .75); }
.crumbs a { color: inherit; text-decoration-color: transparent; } .crumbs a:hover { color: #fff; text-decoration-color: var(--caramel); }
.cf-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.cf-title h1 { color: var(--cream); font-size: clamp(2.2rem, 4.6vw + .4rem, 4.4rem); max-width: 16ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.cf-addr { margin: 12px 0 0; display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; color: rgba(246, 239, 228, .88); }
.cf-hero .open { color: #B7DB98; } .cf-hero .open.off { color: rgba(246, 239, 228, .7); }
.cf-score { display: flex; align-items: center; gap: 18px; background: rgba(251, 247, 239, .1); border: 1px solid rgba(246, 239, 228, .25); backdrop-filter: blur(10px); border-radius: var(--r-lg); padding: 14px 22px 14px 16px; }
.cf-score .stamp { background: rgba(251, 247, 239, .92); }
.cf-score b { display: block; font: italic 900 3.2rem/1 var(--f-display); color: var(--caramel-l); }
.cf-score small { display: block; font-size: .74rem; letter-spacing: .06em; opacity: .85; line-height: 1.35; }
.cf-score small:first-of-type { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.cf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-hero .btn { --bg: rgba(251, 247, 239, .96); }
.cf-hero .btn.ghost { --bg: transparent; --fg: var(--cream); border-color: rgba(246, 239, 228, .4); } .cf-hero .btn.ghost:hover { --bg: rgba(251, 247, 239, .15); border-color: var(--cream); }
.cf-hero .btn.on { --bg: var(--caramel-l); }
.cf-credit { position: absolute; left: var(--gut); bottom: 6px; margin: 0; font-size: .7rem; color: rgba(246, 239, 228, .7); max-width: 80%; }
.cf-credit a { color: inherit; }
.menu-wrap { position: relative; }
.menu { position: absolute; left: 0; top: calc(100% + 10px); min-width: 230px; background: var(--foam); color: var(--espresso); border: 1.5px solid var(--espresso); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 20; animation: pop .25s var(--spring) both; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; background: none; border: 0; border-radius: var(--r-sm); text-align: left; font-weight: 600; }
.menu button:hover, .menu button:focus-visible { background: var(--cream-2); }
.menu .tick { margin-left: auto; color: var(--moss); }
.cf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 72px); padding-block: clamp(32px, 5vw, 64px); align-items: start; }
.cf-side { position: sticky; top: calc(var(--hdr-total) + 16px); display: grid; gap: 22px; }
.cf-sec { margin-bottom: clamp(36px, 6vw, 64px); }
.cf-sec h2 { margin-bottom: 18px; font-size: clamp(1.6rem, 2vw + .9rem, 2.3rem); }
.cf-lead { font-size: 1.08rem; line-height: 1.7; max-width: 62ch; }
.osm-desc { margin: 0 0 24px; padding: 4px 0 4px 20px; border-left: 3px solid var(--caramel); font: italic 500 1.15rem/1.5 var(--f-display); max-width: 58ch; }
.osm-desc cite { display: block; margin-top: 6px; font: 600 .74rem/1 var(--f-body); font-style: normal; color: var(--mocha); letter-spacing: .06em; text-transform: uppercase; }
.facts { display: grid; grid-template-columns: 170px 1fr; margin: 0 0 26px; border-top: 1.5px solid var(--espresso); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 700 .74rem/1.5 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--mocha); padding-top: 14px; }
.facts dd { overflow-wrap: anywhere; }
.facts .nodata { color: var(--mocha-2); font-style: italic; }
.facts a { font-weight: 600; }
.raw { margin-top: 4px; font-size: .8rem; color: var(--mocha); } .raw summary { cursor: pointer; } .raw code { display: block; margin-top: 4px; padding: 6px 8px; background: var(--cream-2); border-radius: 6px; font-size: .78rem; overflow-wrap: anywhere; }
.h-sm { font: 800 .8rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mocha); margin-bottom: 12px; }
.amen ul { list-style: none; padding: 0; margin: 0 0 8px; }
.nodata-line { font-size: .86rem; margin: 8px 0 0; }
.src { margin-top: 22px; font-size: .84rem; color: var(--mocha); max-width: 66ch; }
.wiki p:not(.eyebrow):not(.src) { max-width: 62ch; font-size: 1.05rem; }
.mini-map { background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; display: grid; gap: 8px; }
.mini-map > div { height: 260px; border-radius: 10px; overflow: hidden; background: var(--cream-3); }
.mini-map .btn { justify-self: stretch; }
/* отзывы */
.rv-sum { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 20px; padding: 20px; background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); }
.rv-big { text-align: center; display: grid; gap: 4px; justify-items: center; }
.rv-big b { font: italic 900 3.4rem/1 var(--f-display); color: var(--cherry); }
.rv-big small { color: var(--mocha); }
.bars { display: grid; gap: 6px; min-width: 0; }
.bar { display: grid; grid-template-columns: 28px 1fr 28px; gap: 10px; align-items: center; font-size: .82rem; color: var(--mocha); }
.bar-t { height: 8px; background: var(--cream-3); border-radius: 4px; overflow: hidden; } .bar-t i { display: block; height: 100%; background: var(--caramel); border-radius: 4px; transition: width .8s var(--ease); }
.rv-tags { margin-bottom: 20px; }
.rv-cta, .rv-form { background: var(--foam); border: 1.5px dashed rgba(43, 27, 20, .35); border-radius: var(--r); padding: 20px; margin-bottom: 24px; }
.rv-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; } .rv-cta p { margin: 0; }
.star-in { display: flex; align-items: center; gap: 2px; margin-bottom: 14px; outline-offset: 6px; }
.star-in button { width: 48px; height: 48px; border: 0; background: none; font-size: 2.1rem; line-height: 1; color: rgba(43, 27, 20, .2); transition: transform .25s var(--spring), color .15s; padding: 0; }
.star-in button.on { color: var(--caramel); } .star-in button:hover { transform: scale(1.18) rotate(-6deg); }
.star-w { margin-left: 10px; font-family: var(--f-hand); font-size: 1.5rem; color: var(--caramel-d); }
.rv-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.rv-list { display: grid; gap: 14px; }
.rv { padding: 16px 18px; background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); }
.rv.mine { border-color: var(--caramel); }
.rv header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rv header > div { flex: 1; min-width: 0; } .rv header small { display: block; color: var(--mocha); font-size: .78rem; }
.rv .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); color: var(--cream); font: italic 800 1.05rem/1 var(--f-display); flex: none; }
.rv p { margin: 0 0 8px; white-space: pre-line; overflow-wrap: anywhere; }
.rv-empty { text-align: center; padding: 28px 18px; border: 1.5px dashed var(--line); border-radius: var(--r); } .rv-empty p { margin: 0 0 6px; }

@media (max-width: 1000px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-side { position: static; order: -1; grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } .facts dd { padding-top: 4px; }
  .rv-sum { grid-template-columns: 1fr; }
}

/* ---------- публичный тир-лист и общие страницы ---------- */
.h1-md { font-size: clamp(2rem, 3vw + .8rem, 3.4rem); }
.tl-meta { margin: 0 0 14px; font-size: .86rem; }
.chips .chip-sel { width: auto; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: .86rem; }
.more-tile { border-style: dashed; background: transparent; color: var(--mocha); cursor: pointer; font: inherit; }
.more-tile:hover { color: var(--espresso); }
.chip[aria-pressed=true] small { opacity: .8; }

/* ---------- конструктор тир-листа ---------- */
.city-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.city-card { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; box-shadow: var(--shadow); transition: transform .35s var(--spring), border-color .2s; }
.city-card:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--espresso); }
.city-card b { font: italic 800 1.5rem/1.1 var(--f-display); } .city-card small { color: var(--mocha); }
.tb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; padding-block: clamp(22px, 3vw, 36px) 12px; }
.tb-titlebox { flex: 1 1 360px; min-width: 0; }
.tb-title { width: 100%; border: 0; border-bottom: 2.5px solid var(--espresso); background: transparent; font: italic 900 clamp(1.8rem, 3vw + .6rem, 3rem)/1.15 var(--f-display); color: var(--espresso); padding: 4px 0; outline-offset: 6px; border-radius: 0; }
.tb-title::placeholder { color: var(--mocha-2); } .tb-title:focus { border-color: var(--cherry); outline: none; }
.tb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tb-help { color: var(--mocha); font-size: .9rem; max-width: 90ch; margin: 6px 0 14px; }
.sharebox { margin: 0 0 16px; } .sb-in { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--foam); border: 1.5px dashed var(--caramel); border-radius: var(--r); padding: 10px 14px; animation: pop .4s var(--spring) both; }
.sb-in .input { flex: 1 1 260px; min-height: 44px; } .sb-in .hand { font-size: 1.7rem; }
.tb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(16px, 3vw, 36px); align-items: start; padding-bottom: 40px; }
.board { display: grid; gap: 10px; }
.tb-row { display: grid; grid-template-columns: 112px 1fr; min-height: 104px; background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.tb-label { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 8px; color: var(--cream); background: var(--c, var(--espresso)); text-align: center; }
.tb-label b { font: italic 900 3rem/1 var(--f-display); } .tb-label .hand { color: rgba(246, 239, 228, .85); font-size: 1rem; line-height: 1.1; }
.tb-row.t-S { --c: var(--cherry); } .tb-row.t-A { --c: var(--caramel-d); } .tb-row.t-B { --c: var(--espresso-2); } .tb-row.t-C { --c: var(--mocha-2); } .tb-row.t-D { --c: #6E6862; }
.dz { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; padding: 12px; min-height: 104px; transition: background .2s, box-shadow .2s; }
.dz.over { background: color-mix(in srgb, var(--caramel-l) 35%, transparent); box-shadow: inset 0 0 0 2.5px var(--caramel); }
.pool-wrap { position: sticky; top: calc(var(--hdr-total) + 12px); background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; max-height: calc(100dvh - var(--hdr-total) - 24px); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.pool-head { display: flex; justify-content: space-between; align-items: baseline; } .pool-head h2 { font-size: 1.3rem; }
.dz.pool { overflow: auto; padding: 4px; max-height: none; border: 1.5px dashed var(--line); border-radius: 10px; min-height: 160px; overscroll-behavior: contain; }
.pool-empty { margin: 8px; font-size: .88rem; }
.tile.dnd { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; padding-left: 26px; min-width: 120px; -webkit-touch-callout: none; }
.tile.dnd:hover { transform: none; box-shadow: 0 6px 14px -8px rgba(43, 27, 20, .5); }
.tile-grip { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); color: var(--mocha-2); opacity: .6; } .tile-grip .ic { width: 16px; height: 16px; }
.tile.dnd.dragging { opacity: .3; outline: 2px dashed var(--c); outline-offset: 2px; box-shadow: none; }
.tile.ghost { cursor: grabbing; box-shadow: 0 22px 40px -10px rgba(43, 27, 20, .55); will-change: transform; max-width: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.mover { position: fixed; z-index: 250; width: 230px; background: var(--foam); border: 1.5px solid var(--espresso); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 12px; display: grid; gap: 8px; animation: pop .25s var(--spring) both; }
.mover-t { margin: 0; font-weight: 700; font-size: .86rem; line-height: 1.25; overflow-wrap: anywhere; }
.mover-rows { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mover-rows button { min-height: 44px; border: 0; border-radius: 8px; background: var(--c, var(--espresso)); color: var(--cream); font: italic 900 1.4rem/1 var(--f-display); transition: transform .15s var(--spring); }
.mover-rows button:hover { transform: translateY(-2px) scale(1.06); } .mover-rows button[aria-current=true] { outline: 3px solid var(--caramel); outline-offset: 2px; }
.mover-rows .t-S { --c: var(--cherry); } .mover-rows .t-A { --c: var(--caramel-d); } .mover-rows .t-B { --c: var(--espresso-2); } .mover-rows .t-C { --c: var(--mocha-2); } .mover-rows .t-D { --c: #6E6862; }
.mover-out { min-height: 40px; border: 1.5px solid var(--line); border-radius: 8px; background: transparent; font-weight: 600; } .mover-out:hover { border-color: var(--espresso); }
.mover-open { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; min-height: 36px; }
.mine-lists { padding-bottom: 48px; } .mine-ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mine-ul li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: var(--foam); border: 1px solid var(--line); border-radius: var(--r-sm); } .mine-ul li > a:first-child { font-weight: 700; flex: 1 1 200px; }
.card-preview { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--cream-2); margin-top: 8px; }
.ladder.shared .ladder-w { font-size: 1.25rem; }
@media (max-width: 1000px) {
  .tb-grid { grid-template-columns: 1fr; }
  .pool-wrap { position: static; max-height: none; grid-template-rows: auto; }
  .dz.pool { max-height: 360px; }
}
@media (max-width: 560px) { .tile.dnd { min-width: 100px; } .tb-row { grid-template-columns: 68px 1fr; } .tb-label b { font-size: 2.2rem; } .tb-label .hand { display: none; } }

/* ---------- подборки ---------- */
.cols-all { grid-template-columns: repeat(12, 1fr); }
.col-all { grid-column: span 4; min-height: 320px; } .col-all:nth-child(4n+1), .col-all:nth-child(4n+4) { grid-column: span 8; }
.col .ill { left: auto; right: 12px; top: 12px; bottom: auto; }
.col-hero { position: relative; color: var(--cream); background: var(--espresso); isolation: isolate; overflow: hidden; }
.col-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; } .col-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.col-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 18, 12, .92), rgba(31, 18, 12, .35)), linear-gradient(90deg, rgba(31, 18, 12, .55), transparent); }
.col-hero-bg .ill { left: auto; right: 14px; top: 14px; bottom: auto; }
.col-hero-in { padding-block: 24px clamp(32px, 5vw, 64px); min-height: clamp(300px, 42vh, 440px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.col-hero h1 { color: var(--cream); font-style: italic; margin: 6px 0 14px; }
.col-blurb { max-width: 58ch; color: rgba(246, 239, 228, .88); font-size: 1.06rem; margin: 0; }
.how { background: var(--foam); border: 1.5px dashed var(--caramel); border-radius: var(--r); padding: 14px 18px; font-size: .92rem; margin-bottom: 18px; }
@media (max-width: 900px) { .col-all, .col-all:nth-child(4n+1), .col-all:nth-child(4n+4) { grid-column: span 12; min-height: 240px; } }

/* ---------- текстовые страницы, журнал, форма ---------- */
.wrap.narrow { width: min(100% - 2 * var(--gut), 820px); }
.lead-p { font-size: 1.15rem; line-height: 1.65; color: var(--espresso); margin-bottom: 28px; }
.prose-sec h2 { margin: 2.2em 0 .6em; font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); }
.prose-sec p, .prose-sec li { max-width: 68ch; }
.bullets, .src-list { padding-left: 1.2em; display: grid; gap: .6em; } .bullets li::marker, .src-list li::marker { color: var(--cherry); }
.formula { margin: 18px 0; padding: 20px 24px; background: var(--espresso); color: var(--cream); border-radius: var(--r); font: 600 clamp(1.1rem, 2.4vw, 1.6rem)/1.4 var(--f-display); text-align: center; overflow-x: auto; box-shadow: var(--shadow); }
.formula i { color: var(--caramel-l); }
.rps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin: 18px 0; }
.rp { background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; } .rp h3 { display: flex; justify-content: space-between; gap: 8px; font: 800 1.05rem/1.2 var(--f-body); margin-bottom: 10px; } .rp h3 .num { color: var(--cherry); }
.rp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .rp li { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; color: var(--mocha); } .rp .dots { flex: 1; border-bottom: 2px dotted rgba(43, 27, 20, .3); transform: translateY(-3px); } .rp li b { color: var(--espresso); }
.calc { margin: 22px 0; padding: 22px; background: var(--foam); border: 1.5px solid var(--espresso); border-radius: var(--r-lg); box-shadow: 0 6px 0 var(--espresso); }
.calc h3 { margin-bottom: 14px; } .calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; margin-bottom: 18px; }
.calc label { display: grid; gap: 4px; font-size: .86rem; font-weight: 600; color: var(--mocha); } .calc label b { color: var(--espresso); font-size: 1.1rem; }
.calc-out { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; border-top: 1.5px dashed var(--line); padding-top: 16px; }
.calc-out small { display: block; font-size: .74rem; color: var(--mocha); text-transform: uppercase; letter-spacing: .08em; } .calc-out b { font: italic 900 2.4rem/1.1 var(--f-display); color: var(--cherry); } .calc-out .arrow { color: var(--mocha-2); }
.quant { display: flex; height: 44px; border-radius: 10px; overflow: hidden; margin: 14px 0; border: 1.5px solid var(--espresso); }
.quant span { display: grid; place-items: center; font: italic 900 1.2rem/1 var(--f-display); color: var(--cream); } .q-S { background: var(--cherry); } .q-A { background: var(--caramel-d); } .q-B { background: var(--espresso-2); } .q-C { background: var(--mocha-2); }
.live { margin: 0 0 28px; } .live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.live-grid > div { background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; } .live-grid b { display: block; font: italic 900 1.7rem/1.1 var(--f-display); color: var(--cherry); } .live-grid small { color: var(--mocha); font-size: .78rem; }
.warn-line { margin: 12px 0 0; padding: 10px 14px; background: color-mix(in srgb, var(--caramel-l) 40%, var(--foam)); border-radius: var(--r-sm); font-size: .9rem; }
.timeline { list-style: none; margin: 22px 0 0; padding: 0 0 0 26px; border-left: 2px dashed rgba(43, 27, 20, .25); display: grid; gap: 22px; }
.tl-item { position: relative; display: block; } .tl-item > div { background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); }
.tl-dot { position: absolute; left: -43px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 2px solid var(--espresso); color: var(--espresso); } .tl-dot .ic { width: 16px; height: 16px; }
.tl-item.k-digest .tl-dot { background: var(--espresso); color: var(--cream); } .tl-item.k-dev .tl-dot { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.tl-k { margin: 0 0 6px; font: 700 .72rem/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--cherry); } .tl-item h3 { font-size: 1.15rem; margin-bottom: 6px; } .tl-item p:last-child { margin: 0; color: var(--mocha); font-size: .92rem; }
.cities-st { margin-top: 34px; background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; } .cities-st summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; }
.ctable { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 12px; } .ctable th, .ctable td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-2); } .ctable th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mocha); } .err-t { color: var(--cherry); }
.osm-first { background: var(--foam); border: 1.5px dashed var(--caramel); border-radius: var(--r); padding: 16px 20px; margin: 0 0 28px; } .osm-first h3 { font-size: 1.15rem; margin-bottom: 6px; } .osm-first p { margin: 0; }
.sform { display: grid; } .kinds { border: 0; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; flex-wrap: wrap; } .kinds legend { margin-bottom: 8px; }
.radio { position: relative; } .radio input { position: absolute; opacity: 0; } .radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--foam); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.radio input:checked + span { background: var(--espresso); color: var(--cream); border-color: var(--espresso); } .radio input:focus-visible + span { outline: 3px solid var(--cherry); outline-offset: 2px; }
.picked { background: var(--cream-2); border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 14px; }
.me-head { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; flex-wrap: wrap; } .me-av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--cherry); color: #fff; font: italic 900 2.6rem/1 var(--f-display); box-shadow: 0 6px 0 var(--cherry-d); flex: none; }
#m-tabs { margin-bottom: 26px; } .acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; } .acc-card { background: var(--foam); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
@media (max-width: 700px) { .timeline { padding-left: 20px; } .tl-dot { left: -37px; } }

/* ---------- «перелистывание» плиток и колец-отпечатков ---------- */
.ladder-tiles .tile { animation: flip-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms + 120ms); transform-origin: 50% 0; }
@keyframes flip-in { from { opacity: 0; transform: perspective(700px) rotateX(-80deg) translateY(-6px); } }
.section.has-ring { overflow: hidden; }
.ring-a { right: -70px; top: -50px; } .ring-b { left: -80px; bottom: -60px; transform: rotate(90deg); width: 260px; height: 260px; }
.cta-sec { position: relative; }

.water-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: .86rem; color: var(--mocha); } .water-note .ic { color: #5B8C86; margin-top: 2px; }
