/* HAVN, главная страница. Основа лежит в base.css, тут только то, что есть на этой странице. */

/* ── герой ─────────────────────────────────────────────── */
.hero{min-height:100svh;display:grid;grid-template-rows:1fr auto;grid-template-columns:minmax(0,1fr);
  padding:86px var(--pad) 0}
.hero > div:first-child{display:flex;flex-direction:column;justify-content:center}
.mark-space{align-self:center;width:min(86vw,1060px);aspect-ratio:1240/380;margin:0 auto}
.hero .claim{margin:30px auto 0;max-width:34ch;text-align:center;font-size:clamp(13px,1.5vw,16px);
  line-height:1.6;text-transform:none;letter-spacing:.02em}
.hero .sub{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;
  padding:18px 0 20px;border-top:var(--line);font-size:11.5px}
.cue{display:flex;align-items:center;justify-content:center;gap:10px;padding:0 0 16px;font-size:11px;opacity:.72}
.cue i{display:block;width:1px;height:26px;background:currentColor;animation:drop 2.4s ease-in-out infinite}
@keyframes drop{0%,100%{transform:scaleY(.4);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}}

/* ── секции ────────────────────────────────────────────── */
.sec{position:relative;padding:13vh var(--pad)}
.tag{position:absolute;left:10px;top:13vh;writing-mode:vertical-rl;font-size:11px;letter-spacing:.42em;opacity:.8}
.sec h2{font-size:clamp(28px,6.2vw,72px);line-height:1.03;letter-spacing:-.01em;max-width:17ch}
.lead{margin-top:20px;max-width:48ch;font-size:13px;line-height:1.7;text-transform:none;letter-spacing:.02em}

/* ── витрина ───────────────────────────────────────────── */
.tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6vh;font-size:11px}
.tools .lab{opacity:.7;margin-right:4px}
.filt{display:inline-flex;align-items:center;min-height:40px;padding:0 15px;border:var(--line);
  border-radius:999px;transition:background-color .16s,color .16s}
.filt[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.filt:hover{opacity:.82}
.arrows{margin-left:auto;display:flex;gap:8px}
.arrows button{width:44px;height:44px;border:var(--line);border-radius:999px;font-size:14px}
.arrows button:hover{background:var(--fg);color:var(--bg)}
.arrows button[disabled]{opacity:.35;cursor:default}
.arrows button[disabled]:hover{background:none;color:inherit}
@media(max-width:700px){ .arrows{display:none} }

.shelf{margin-top:4vh;display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:20px;cursor:grab;scrollbar-width:none;scroll-behavior:smooth}
.shelf::-webkit-scrollbar{display:none}
.shelf.drag{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.card{flex:0 0 clamp(232px,25vw,288px);scroll-snap-align:start;display:flex;flex-direction:column;
  border:var(--line);border-radius:22px;padding:16px;background:rgba(255,255,255,.1);
  transition:transform .18s,background-color .18s}
.card:hover{transform:translateY(-4px);background:rgba(255,255,255,.16)}
.card.gone{display:none}
.bagwrap{position:relative;display:grid;place-items:center;margin-bottom:10px}
.bag{width:74%;height:auto}
.new{position:absolute;right:10px;top:10px;background:var(--hot);color:var(--ink);border-radius:999px;
  padding:7px 11px;font-size:10px;letter-spacing:.1em;transform:rotate(7deg)}
.card h3{font-size:16px;letter-spacing:.02em}
.card h3 a{display:inline-flex;align-items:center;min-height:44px;border-bottom:1.5px solid transparent}
.card:hover h3 a{border-bottom-color:currentColor}
.card .meta{margin-top:2px;font-size:10.5px;opacity:.74;line-height:1.55;min-height:3.1em}
.card .taste{margin-top:10px;font-size:11px;line-height:1.5;min-height:2.6em}
.card select{border:var(--line);border-radius:999px;padding:9px 10px;font-size:10.5px;min-height:40px}
.add{margin-top:10px;width:100%;min-height:46px;border-radius:999px;background:var(--fg);color:var(--bg);
  font-size:11.5px;letter-spacing:.08em;transition:opacity .15s,background-color .15s}
.add:hover{opacity:.84}
.add.done{background:var(--hot);color:var(--ink)}
.slider{margin-top:8px;height:12px;border:var(--line);border-radius:999px;overflow:hidden}
.slider i{display:block;height:100%;width:22%;background:currentColor;border-radius:999px}
.count{margin-top:12px;font-size:11px;opacity:.72}

.sticker{position:absolute;right:calc(var(--pad) - 6px);top:38vh;display:grid;place-items:center;
  width:clamp(96px,11vw,140px);aspect-ratio:1;border-radius:50%;background:var(--hot);color:var(--ink);
  font-size:clamp(9px,.85vw,11px);line-height:1.35;text-align:center;transform:rotate(-8deg);
  box-shadow:0 10px 26px rgba(0,0,0,.18)}
@media(max-width:900px){ .sticker{display:none} }

/* ── календарь обжарки ─────────────────────────────────── */
.plan{margin-top:6vh;display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.plan div{border:var(--line);border-radius:20px;padding:18px 20px}
.plan b{display:block;font-size:clamp(20px,2.6vw,30px);font-weight:400;letter-spacing:-.01em}
.plan span{display:block;margin-top:8px;font-size:11px;opacity:.75;line-height:1.6}
.plan .now{background:rgba(255,255,255,.14)}

/* ── манифест ──────────────────────────────────────────── */
.manif p{font-size:clamp(20px,3.4vw,42px);line-height:1.22;max-width:24ch;text-transform:none;letter-spacing:0}
.pop{border:0;padding:0 0 4px;font:inherit;color:inherit;border-bottom:2px solid currentColor;cursor:pointer;
  background:none;text-transform:none;letter-spacing:inherit;line-height:inherit}
@media(max-width:700px){ .pop{padding:6px 0 10px} }
.pop:hover{opacity:.72}
.peek{position:fixed;z-index:70;width:clamp(160px,20vw,240px);border-radius:16px;overflow:hidden;
  border:var(--line);pointer-events:none;opacity:0;transform:translate(-50%,-50%) scale(.92);
  transition:opacity .16s,transform .16s;background:var(--bg)}
.peek.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.peek img{width:100%;height:auto}
.peek figcaption{padding:8px 10px;font-size:10px;line-height:1.4;border-top:var(--line)}

/* ── кофейня ───────────────────────────────────────────── */
.cafe{display:grid;gap:7vh clamp(24px,5vw,80px);grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  margin-top:6vh}
.state{display:inline-flex;align-items:center;gap:9px;margin-bottom:22px;padding:0 16px;min-height:42px;
  border:var(--line);border-radius:999px;font-size:11.5px}
.state i{width:9px;height:9px;border-radius:50%;background:currentColor;opacity:.4}
.state.open i{opacity:1;animation:pulse 2.6s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
.menu li{display:flex;align-items:baseline;gap:10px;padding:11px 0;border-bottom:1px solid currentColor;
  font-size:12.5px;list-style:none}
.menu .dots{flex:1;border-bottom:1px dotted currentColor;transform:translateY(-3px);opacity:.5}
.shots{display:grid;gap:12px;grid-template-columns:1fr 1fr}
.shots img{width:100%;height:100%;object-fit:cover;border-radius:18px;aspect-ratio:4/5}
.where{margin-top:24px;font-size:12.5px;line-height:1.95}
.where b{font-weight:400;opacity:.66}
.ways{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}

/* ── схема, как найти вход ─────────────────────────────── */
.plan-map{margin-top:26px;border:var(--line);border-radius:20px;padding:16px}
.plan-map svg{width:100%;height:auto}
.plan-map figcaption{margin-top:10px;font-size:10.5px;opacity:.72;line-height:1.6;text-transform:none;
  letter-spacing:.02em}

@media(max-width:700px){
  .tag{display:none}
  .peek{width:58vw}
  .sec{padding:9vh var(--pad)}
}

/* ── карточка: цена таблеткой, помол и кнопка ──────────── */
.card .row{margin-top:auto;padding-top:14px;display:flex}
.ppill{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;
  border:var(--line);border-radius:999px;font-size:11.5px}
.ppill select{border:0;padding:0;min-height:auto;font-size:11.5px;cursor:pointer}
.ppill b{font-weight:400;margin-left:2px}
.row2{margin-top:10px;display:flex;gap:8px}
.gpill{display:inline-flex;align-items:center;padding:0 12px;border:var(--line);border-radius:999px;
  font-size:10.5px;min-height:46px}
.gpill select{border:0;padding:0;min-height:auto;font-size:10.5px;cursor:pointer}
.row2 .add{margin-top:0;flex:1;width:auto}
.ghostbtn{display:inline-flex;align-items:center;justify-content:center;background:none;color:inherit;
  border:var(--line);margin-top:10px}
.ghostbtn:hover{background:var(--fg);color:var(--bg)}
.soldline{margin-top:8px;font-size:10.5px;opacity:.74;line-height:1.5;text-transform:none;letter-spacing:.02em}
.card.sold .bagwrap{opacity:.96}
.bagwrap{aspect-ratio:auto;padding:4px 0 8px}

/* ── счётчик и кнопка на карточке ──────────────────────── */
.qpill{display:inline-flex;align-items:center;border:var(--line);border-radius:999px;flex:none}
.qpill button{width:44px;height:46px;font-size:15px;border-radius:999px}
.qpill span{min-width:20px;text-align:center;font-size:11.5px;font-variant-numeric:tabular-nums}
.card .row{margin-top:auto;padding-top:14px;display:flex;gap:8px;flex-wrap:wrap}
.ppill s{opacity:.5;margin-right:2px}

/* ── карточка набора ───────────────────────────────────── */
.card.bundle{background:rgba(255,255,255,.2)}
.bagwrap.trio{display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:0;padding-top:18px}
.bagwrap.trio .pouch{max-width:none;width:100%}
.bagwrap.trio .pouch:nth-child(1){transform:rotate(-8deg) translateY(10px) scale(.94);z-index:1}
.bagwrap.trio .pouch:nth-child(2){z-index:2}
.bagwrap.trio .pouch:nth-child(3){transform:rotate(8deg) translateY(10px) scale(.94);z-index:1}
.card.bundle .new{right:auto;left:10px;top:4px}
.bagwrap.trio .pbadge{font-size:6px;padding:5px 6px}
.bagwrap.trio .pbadge i,.bagwrap.trio .pbadge u{display:none}

/* ── ползунок витрины можно тянуть ─────────────────────── */
.slider{cursor:grab;touch-action:none}
.slider:active{cursor:grabbing}

/* якоря не должны прятаться под шапкой */
.sec,.hero{scroll-margin-top:76px}
