/* Home page - new design, 2026-11-13.
   Loaded on index.html only, after tokens.css and site.css. Everything here
   lives under the hm- prefix: classes hm-*, custom properties --hm-* on
   body.hm, element rules scoped to .hm-hero / .hm-main / .hm-bar. The shared
   nav and footer keep the markup of the other pages; where they look different
   here, the rule starts with body.hm (see "platform integration" below).
   States set by js/home.js: .hm-bz.is-focus, .hm-bz.is-avoid, .hm-hero-v.is-on,
   .hm-bar.is-on, body.hm-bar-on, body.hm-bar-always. */
body.hm{--hm-bg:#0c0905;--hm-s1:#140f08;--hm-s2:#1e1812;--hm-s3:#271f16;--hm-tx:#f5e4c8;--hm-tx2:rgba(245,228,200,.72);--hm-tx3:rgba(245,228,200,.6);--hm-ln:rgba(245,228,200,.12);--hm-ln2:rgba(198,134,84,.28);--hm-ember:#c68654;--hm-ember2:#e4a06c;--hm-deep:#a84e16;--hm-lava:linear-gradient(100deg,#b4541a 0%,#c66220 12%,#e4a06c 62%,#c68654 100%);--hm-display:"Fraunces",Georgia,serif;--hm-body:"Lato",system-ui,-apple-system,"Segoe UI",sans-serif;--hm-gut:clamp(16px,5vw,72px);--hm-max:1240px;--hm-ease:cubic-bezier(.22,.61,.36,1);--hm-sec:clamp(64px,10vw,136px);--hm-gap-h:16px;--hm-gap-c:clamp(36px,4vw,52px)}
:where(.hm-hero,.hm-main,.hm-bar),:where(.hm-hero,.hm-main,.hm-bar) *{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
/* site.css hides horizontal overflow on html and on body. Two hidden boxes make
   body a scroll container that never scrolls, and position:sticky inside it
   stops working (the figure of the configurator). clip cuts the same overflow
   without making a scroll container; older browsers keep hidden. */
body.hm{margin:0;background:var(--hm-bg);overflow-x:hidden;overflow-x:clip}
.hm-hero,.hm-main,.hm-bar{color:var(--hm-tx);font:400 17px/1.65 var(--hm-body)}
:where(.hm-hero,.hm-main,.hm-bar) img,:where(.hm-hero,.hm-main,.hm-bar) video,:where(.hm-hero,.hm-main,.hm-bar) iframe{display:block;max-width:100%}
:where(.hm-hero,.hm-main,.hm-bar) img{height:auto}
:where(.hm-hero,.hm-main,.hm-bar) a{color:inherit}
:where(.hm-hero,.hm-main,.hm-bar) h1,:where(.hm-hero,.hm-main,.hm-bar) h2,:where(.hm-hero,.hm-main,.hm-bar) h3,:where(.hm-hero,.hm-main,.hm-bar) h4{font-family:var(--hm-display);font-weight:300;margin:0;line-height:1.08;font-variation-settings:"opsz" 144}
:where(.hm-hero,.hm-main,.hm-bar) h2{font-size:clamp(36px,5.2vw,68px);letter-spacing:-.015em}
:where(.hm-hero,.hm-main,.hm-bar) h3{font-size:clamp(22px,2.2vw,28px);font-weight:400;line-height:1.2}
:where(.hm-hero,.hm-main,.hm-bar) h4{font-size:21px;font-weight:400;line-height:1.2}
:where(.hm-hero,.hm-main,.hm-bar) p{margin:0}
.hm-wrap{max-width:var(--hm-max);margin:0 auto;padding:0 var(--hm-gut)}
.hm-lede{color:var(--hm-tx2);margin-top:var(--hm-gap-h);max-width:36em;font-size:18px}
.hm-skip{position:absolute;left:-999px;top:8px;background:var(--hm-tx);color:var(--hm-bg);padding:8px 12px;z-index:60}
.hm-skip:focus{left:8px}
:where(.hm-hero,.hm-main,.hm-bar) :focus-visible,.hm-skip:focus-visible{outline:2px solid var(--hm-ember2);outline-offset:3px}
.hm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;font:700 15.5px/1 var(--hm-body);text-decoration:none;border-radius:999px;transition:filter .2s var(--hm-ease),background-color .2s var(--hm-ease)}
.hm-btn-fire{background:var(--hm-lava);color:#160c05}
.hm-btn-fire:hover{filter:brightness(1.1)}
.hm-btn-line{border:1px solid var(--hm-ln2);color:var(--hm-tx)}
.hm-btn-line:hover{background:rgba(198,134,84,.1)}
.hm-ctas{display:flex;flex-wrap:wrap;gap:12px}
.hm-hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;background:#000}
.hm-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,9,5,.65) 0,rgba(12,9,5,.1) 24%,rgba(12,9,5,.25) 55%,rgba(12,9,5,.95) 100%)}
.hm-hero-in{position:relative;z-index:2;width:100%;padding:0 var(--hm-gut) clamp(36px,7vh,80px)}
.hm-hero h1{font-size:clamp(46px,8.4vw,128px);letter-spacing:-.025em;line-height:.98;max-width:11ch;text-wrap:balance}
.hm-lead{margin-top:22px;max-width:30em;font-size:clamp(17px,1.45vw,20px);color:var(--hm-tx2)}
.hm-hero .hm-ctas{margin-top:30px}
.hm-meta{display:flex;flex-wrap:wrap;gap:8px 28px;margin-top:34px;padding-top:18px;border-top:1px solid var(--hm-ln);font-size:14.5px;color:var(--hm-tx3)}
.hm-meta a{color:var(--hm-tx2);text-underline-offset:4px}
.hm-choose{padding:var(--hm-sec) 0}
.hm-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,44px);margin-top:var(--hm-gap-c)}
.hm-pick figure{margin:0 0 18px;overflow:hidden;border-radius:2px}
.hm-pick img{width:100%;aspect-ratio:4/5;object-fit:cover}
.hm-pick-why{color:var(--hm-ember2);font-size:15px;margin-bottom:6px}
.hm-pick-line{color:var(--hm-tx2);font-size:16px;margin-top:8px}
.hm-pick-f{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:18px}
.hm-price{font:400 24px/1 var(--hm-display);font-variant-numeric:lining-nums;white-space:nowrap}
/* price and duration stay whole; in a narrow card the button moves to its own line */
.hm-dur-t{color:var(--hm-tx3);font-size:14px;flex:1 0 auto;white-space:nowrap}
.hm-pick .hm-btn{min-height:44px;padding:0 20px}
.hm-menu{margin-top:var(--hm-sec)}
.hm-menu-h{font-size:clamp(26px,3vw,36px);font-weight:300;margin-bottom:12px}
.hm-grp{border-top:1px solid var(--hm-ln)}
.hm-grp:last-child{border-bottom:1px solid var(--hm-ln)}
.hm-grp summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;gap:12px;padding:22px 44px 22px 0;position:relative;font:400 23px/1.2 var(--hm-display)}
.hm-grp summary::-webkit-details-marker{display:none}
.hm-grp summary::after{content:"";position:absolute;right:8px;top:30px;width:12px;height:12px;border-right:1.5px solid var(--hm-ember);border-bottom:1.5px solid var(--hm-ember);transform:rotate(45deg);transition:transform .25s var(--hm-ease)}
.hm-grp[open] summary::after{transform:rotate(-135deg);top:36px}
.hm-cnt{font:400 14px var(--hm-body);color:var(--hm-tx3)}
.hm-grp ul{list-style:none;margin:0;padding:0 0 18px}
.hm-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 28px;align-items:center;padding:18px 0;border-top:1px solid rgba(245,228,200,.06)}
.hm-row-n p{color:var(--hm-tx2);font-size:15.5px;margin-top:4px;max-width:34em}
.hm-save{display:inline-block;margin-top:6px;font-size:14px;color:var(--hm-ember2)}
.hm-row-p{display:flex;gap:22px}
.hm-cell{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:76px}
.hm-cell .hm-d{font-size:13px;color:var(--hm-tx3)}
.hm-cell .hm-p,.hm-addons .hm-p{font:400 20px/1 var(--hm-display);font-variant-numeric:lining-nums tabular-nums}
.hm-row-b{font:700 14.5px/1 var(--hm-body);color:var(--hm-ember2);text-decoration:none;border:1px solid var(--hm-ln2);border-radius:999px;padding:0 16px;min-height:42px;display:inline-flex;align-items:center}
.hm-row-b:hover{background:rgba(198,134,84,.12)}
.hm-addons li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid rgba(245,228,200,.06);color:var(--hm-tx2)}
.hm-visit{background:var(--hm-s1);padding:var(--hm-sec) 0}
.hm-vseq{list-style:none;margin:var(--hm-gap-c) 0 0;padding:0 var(--hm-gut);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,2vw,28px);max-width:var(--hm-max);margin-inline:auto;counter-reset:v}
.hm-vseq li{counter-increment:v}
.hm-vseq figure{margin:0 0 18px}
.hm-vseq img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:2px}
.hm-vseq h3::before{content:counter(v) " ";color:var(--hm-ember);font-weight:300}
.hm-vseq p{color:var(--hm-tx2);font-size:16px;margin-top:8px}
.hm-space{padding:var(--hm-sec) 0}
.hm-reviews{padding:var(--hm-sec) 0}
.hm-r-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.hm-score{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--hm-tx2);font-size:15px}
.hm-score .hm-big{font:300 76px/1 var(--hm-display);color:var(--hm-ember2)}
.hm-score span:last-child{text-decoration:underline;text-underline-offset:4px}
.hm-revs{columns:3 300px;column-gap:clamp(28px,3.5vw,56px);margin-top:var(--hm-gap-c)}
.hm-rev{break-inside:avoid;margin:0 0 40px}
.hm-rev blockquote{margin:0;font:300 22px/1.4 var(--hm-display)}
.hm-rev figcaption{margin-top:12px;color:var(--hm-tx3);font-size:14.5px}
.hm-find{background:var(--hm-s1);padding:var(--hm-sec) 0}
.hm-find-g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:stretch}
.hm-addr{margin-top:var(--hm-gap-c);font-size:18px;color:var(--hm-tx2);max-width:26em}
.hm-hours{margin-top:10px;font:300 30px/1.2 var(--hm-display)}
/* plain facts, not pills: a pill reads as a button and these lead nowhere */
.hm-facts{list-style:none;padding:0;margin:22px 0 30px;display:flex;flex-wrap:wrap;gap:6px 28px}
.hm-facts li{position:relative;padding-left:18px;font-size:15.5px;color:var(--hm-tx2)}
.hm-facts li::before{content:"";position:absolute;left:0;top:.82em;width:9px;height:1px;background:var(--hm-ember)}
.hm-gift{margin-top:30px;padding-top:22px;border-top:1px solid var(--hm-ln);color:var(--hm-tx2);font-size:16px;max-width:34em}
.hm-gift a{color:var(--hm-ember2);text-underline-offset:4px}
.hm-map{width:100%;min-height:380px;height:100%;border:0;border-radius:2px;filter:grayscale(.85) invert(.9) hue-rotate(180deg) sepia(.25) brightness(.9)}
.hm-faq{padding:var(--hm-sec) 0}
.hm-faq h2{margin-bottom:var(--hm-gap-c)}
.hm-qa{border-top:1px solid var(--hm-ln);max-width:860px}
.hm-qa:last-child{border-bottom:1px solid var(--hm-ln)}
.hm-qa summary{cursor:pointer;list-style:none;padding:22px 44px 22px 0;font:400 22px/1.3 var(--hm-display);position:relative}
.hm-qa summary::-webkit-details-marker{display:none}
.hm-qa summary::after{content:"+";position:absolute;right:6px;top:18px;font:300 30px/1 var(--hm-body);color:var(--hm-ember);transition:transform .2s var(--hm-ease)}
.hm-qa[open] summary::after{transform:rotate(45deg)}
.hm-qa p{padding:0 0 24px;color:var(--hm-tx2);max-width:40em}
.hm-bar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:none;gap:8px;padding:10px var(--hm-gut) calc(10px + env(safe-area-inset-bottom));background:rgba(12,9,5,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--hm-ln);transform:translateY(105%);visibility:hidden;transition:transform .32s var(--hm-ease),visibility 0s .32s}
/* js/home.js shows the bar once the hero buttons have scrolled away */
.hm-bar.is-on{transform:none;visibility:visible;transition:transform .32s var(--hm-ease),visibility 0s}
.hm-bar .hm-btn{flex:1;min-height:48px}
/* three picks stay side by side on tablets; one column only on phones */
@media (max-width:700px){
  .hm-picks{grid-template-columns:1fr;gap:48px}
  .hm-pick img{aspect-ratio:4/3}
}
@media (max-width:900px){
  .hm-vseq{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:76%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
  .hm-vseq::-webkit-scrollbar{display:none}
  .hm-vseq li{scroll-snap-align:start}
  .hm-find-g{grid-template-columns:1fr}
  .hm-map{min-height:300px}
  .hm-bar{display:flex}
  .hm-hero-in{padding-bottom:calc(clamp(26px,5vh,48px) + env(safe-area-inset-bottom))}
  body.hm-bar-always .hm-hero-in{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
}
@media (max-width:600px){
  .hm-hero,.hm-main,.hm-bar{font-size:16px}
  .hm-row{grid-template-columns:1fr auto;gap:12px 16px}
  .hm-row-n{grid-column:1/-1}
  .hm-row-p{gap:18px}
  .hm-cell{align-items:flex-start}
  body.hm-bar-always .hm-hero .hm-cta-dup{display:none}
  .hm-hero .hm-ctas{gap:10px;margin-top:24px}
  .hm-hero .hm-ctas .hm-btn,.hm-cf .hm-ctas .hm-btn,.hm-find .hm-ctas .hm-btn{flex:1 1 auto}
  .hm-meta{margin-top:22px}
  /* on a phone the text covers the lower half of the film: darken it sooner so every frame stays readable */
  .hm-hero::after{background:linear-gradient(180deg,rgba(12,9,5,.62) 0,rgba(12,9,5,.12) 20%,rgba(12,9,5,.34) 38%,rgba(12,9,5,.74) 56%,rgba(12,9,5,.9) 76%,rgba(12,9,5,.97) 100%)}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hm-hero-v{display:none}
}
.hm-band{margin:0;height:min(46vh,440px);overflow:hidden}
.hm-band img{width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.hm-ic{fill:none;stroke:url(#hm-lava);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.hm-cf{padding:var(--hm-sec) 0;background:var(--hm-s1)}
/* Source order is the phone order: heading, pressure, oil, zones, figure, summary.
   On wide screens the figure moves to a sticky left column beside the rest. */
.hm-cf-g{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(36px,6vw,96px);align-items:start}
.hm-cf-g>*{grid-column:2;min-width:0}
.hm-cf fieldset{border:0;margin:var(--hm-gap-c) 0 0;padding:0;min-width:0}
.hm-cf legend{font:400 22px/1.2 var(--hm-display);margin-bottom:16px;padding:0}
.hm-hint{color:var(--hm-tx3);font-size:15px;margin:-6px 0 16px}
.hm-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hm-seg button,.hm-oil{appearance:none;font:inherit;color:var(--hm-tx);background:rgba(245,228,200,.025);border:1px solid var(--hm-ln);border-radius:16px;cursor:pointer;transition:border-color .25s var(--hm-ease),background-color .25s var(--hm-ease)}
.hm-seg button:hover,.hm-oil:hover{border-color:var(--hm-ln2)}
.hm-seg button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px 14px;font-weight:700;font-size:15px;color:var(--hm-tx2)}
.hm-seg .hm-ic{width:44px;height:44px}
.hm-seg button[aria-pressed="true"],.hm-oil[aria-pressed="true"]{border-color:var(--hm-ember);background:rgba(198,134,84,.10);color:var(--hm-tx)}
.hm-seg button[aria-pressed="false"] .hm-ic,.hm-oil[aria-pressed="false"] .hm-ic{opacity:.55}
.hm-oils{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hm-oil{text-align:left;display:flex;flex-direction:column;gap:4px;padding:16px}
.hm-oil .hm-ic{width:38px;height:38px;margin-bottom:8px}
.hm-oil b{font:400 18px/1.2 var(--hm-display)}
.hm-oil small{color:var(--hm-tx3);font-size:13px;line-height:1.45}
.hm-sum{margin-top:18px;font-size:16px;color:var(--hm-tx2);min-height:1.6em}
.hm-sum b{color:var(--hm-ember2)}
.hm-sum s{text-decoration:none;color:#d77a45}
.hm-cf .hm-ctas{margin-top:var(--hm-gap-c)}
@media (max-width:900px){
  .hm-cf-g{grid-template-columns:minmax(0,1fr)}
  .hm-cf-g>*{grid-column:1}
  .hm-oils{grid-template-columns:1fr}
  .hm-oil{display:grid;grid-template-columns:44px 1fr;column-gap:12px;align-items:center}
  .hm-oil .hm-ic{grid-row:span 2;margin:0}
}
.hm-cf-body{grid-column:1;grid-row:1/span 5;position:sticky;top:40px;display:flex;flex-direction:column;align-items:center;padding-top:12px}
.hm-body{width:min(270px,100%);height:auto;overflow:visible}
/* One silhouette: seven zone shapes that share their edges, the outline drawn once on top */
.hm-body-glow,.hm-body-line{pointer-events:none}
.hm-body-line{fill:none;stroke:url(#hm-bl);stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.hm-bz{cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.hm-hit{fill:transparent;stroke:none}
.hm-bz>path{fill:rgba(245,228,200,.05);stroke:rgba(228,160,108,.3);stroke-width:1;stroke-linejoin:round;transition:fill .3s var(--hm-ease),stroke .3s var(--hm-ease)}
@media (hover:hover){.hm-bz:hover>path{fill:rgba(228,160,108,.18)}}
.hm-bz.is-focus>path{fill:url(#hm-bl);stroke:url(#hm-bl)}
.hm-bz.is-avoid>path{fill:url(#hm-hatch);stroke:rgba(198,98,32,.95);stroke-dasharray:5 4}
.hm-bz:focus-visible>path{stroke:var(--hm-tx);stroke-width:2.4}
@supports not selector(:focus-visible){.hm-bz:focus>path{stroke:var(--hm-tx);stroke-width:2.4}}
.hm-legend{list-style:none;display:flex;gap:22px;padding:0;margin:26px 0 0;font-size:14px;color:var(--hm-tx2)}
.hm-legend i{display:inline-block;width:14px;height:14px;border-radius:4px;margin-right:8px;vertical-align:-2px}
.hm-lf{background:linear-gradient(135deg,#c66220,#e8b87a,#d18a40)}
.hm-la{border:1px dashed #b9551b;background:repeating-linear-gradient(45deg,rgba(185,85,27,.6) 0 2px,transparent 2px 5px)}
@media (max-width:900px){
  .hm-cf-body{grid-row:auto;position:static;padding-top:4px}
  .hm-body{width:min(224px,60vw)}
}
@media (min-width:901px){
  .hm-band{display:none}
}
.hm-pick{display:flex;flex-direction:column}
.hm-pick-f{margin-top:auto;padding-top:18px}
.hm-mas{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:var(--hm-gap-c)}
.hm-m{margin:0;overflow:hidden;border-radius:2px}
.hm-m img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover}
@media (max-width:900px){
  .hm-mas{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
}

/* ---- platform integration (not in the design file) ---- */
html{scroll-padding-top:84px}
.hm-skip:focus{z-index:70}
:where(.hm-hero,.hm-main,.hm-bar) a{text-decoration:underline}
@supports not (min-height:100svh){.hm-hero{min-height:100vh}}
.hm-hero-in{padding-top:96px}
/* Fraunces has no Cyrillic: the fallback serif is wider and needs a longer line */
html:lang(ru) .hm-hero h1{max-width:13ch}
/* Chinese headline: break only between the place names and the word, never inside one */
html:lang(zh) .hm-hero h1{word-break:keep-all}
/* Korean wraps between any two syllables unless words are kept whole */
html:lang(ko) .hm-hero,html:lang(ko) .hm-main,html:lang(ko) .hm-bar{word-break:keep-all}
.hm-hero-media{position:absolute;inset:0;opacity:.72}
.hm-hero .hm-hero-img,.hm-hero-v{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.hm-hero .hm-hero-img{filter:none}
.hm-hero-v{opacity:0;transition:opacity .8s var(--hm-ease)}
.hm-hero-v.is-on{opacity:1}
.hm-more{display:inline-flex;align-items:center;min-height:44px;margin-top:26px;color:var(--hm-ember2);font:700 15px/1.2 var(--hm-body);text-underline-offset:5px}
.hm-more:hover{color:var(--hm-tx)}
.hm-find .hm-more{margin-top:14px}
.hm-qa a{color:var(--hm-ember2);text-underline-offset:4px}
/* 44px tap height; inside a paragraph the negative margin keeps the line spacing even */
.hm-meta a,.hm-gift a,.hm-qa a{display:inline-block;padding:10px 0}
.hm-gift a,.hm-qa a{margin:-10px 0}
.hm-meta{align-items:center}
.hm-row-b{min-height:44px}
.hm-grp summary,.hm-qa summary{min-height:44px}
/* says what the WhatsApp button does before the guest presses it */
.hm-note{margin-top:14px;max-width:36em;font-size:14.5px;line-height:1.55;color:var(--hm-tx3)}
/* the chosen pressure and oil carry a check mark, not only a tint */
.hm-seg button,.hm-oil{position:relative}
.hm-seg button[aria-pressed="true"]::after,.hm-oil[aria-pressed="true"]::after{content:"";position:absolute;top:11px;right:14px;width:6px;height:11px;border:solid var(--hm-ember2);border-width:0 2px 2px 0;transform:rotate(45deg)}
.hm-addr a{text-decoration-color:var(--hm-ln2);text-underline-offset:5px}
.hm-addr a:hover{color:var(--hm-tx)}
/* two buttons share a phone width: longer labels (ru, id) must stay on one line */
.hm-bar .hm-btn{padding:0 12px;white-space:nowrap}
/* footer of the home page: the shared footer markup on the grid of the new design */
body.hm .footer{padding:clamp(48px,6vw,76px) var(--hm-gut) 28px;text-align:left;background:var(--hm-bg);border-top:1px solid var(--hm-ln)}
body.hm .footer-inner{max-width:var(--hm-max);display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.15fr);grid-template-areas:"brand nav meta" "tag nav meta" "copy copy copy";column-gap:clamp(32px,5vw,80px);align-items:start}
body.hm .footer-brand{grid-area:brand;justify-self:start;margin:0}
body.hm .footer-brand img{height:28px;opacity:1;margin-left:-8px}
body.hm .footer-tagline{grid-area:tag;margin:14px 0 0;max-width:20em;font:italic 300 18px/1.45 var(--hm-display);letter-spacing:0;color:var(--hm-tx2)}
body.hm .footer-nav{grid-area:nav;display:grid;grid-template-columns:repeat(2,minmax(0,max-content));gap:0 clamp(24px,4vw,56px);justify-content:start;margin:0}
body.hm .footer-nav a{display:flex;align-items:center;justify-content:flex-start;min-height:44px;font:400 16px/1.3 var(--hm-body);letter-spacing:0;text-transform:none;color:var(--hm-tx2)}
body.hm .footer-nav a:hover{color:var(--hm-tx)}
body.hm .footer-meta{grid-area:meta;display:flex;flex-direction:column;gap:8px;margin:0;font:400 15.5px/1.55 var(--hm-body);color:var(--hm-tx2)}
body.hm .hm-foot-contacts{display:flex;flex-wrap:wrap;gap:0 22px}
body.hm .footer-meta a{justify-content:flex-start;color:var(--hm-tx);text-decoration:underline;text-decoration-color:var(--hm-ln2);text-underline-offset:5px}
body.hm .footer-meta a:hover{color:var(--hm-ember2)}
body.hm .footer-copy{grid-area:copy;display:flex;flex-wrap:wrap;align-items:center;gap:0 26px;margin-top:clamp(28px,4vw,44px);padding-top:12px;border-top:1px solid var(--hm-ln);font:400 13.5px/1.4 var(--hm-body);letter-spacing:.01em;color:rgba(245,228,200,.62)}
body.hm .footer-copy span{margin-right:auto;padding:12px 0}
body.hm .footer-copy a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;color:inherit;text-decoration:underline;text-decoration-color:var(--hm-ln2);text-underline-offset:4px}
body.hm .footer-copy a:hover{color:var(--hm-tx)}
/* the figure follows the scroll beside the three questions; on a short screen it shrinks to stay whole */
@media (min-width:901px){
  .hm-cf-body{top:96px}
  .hm-body{max-height:calc(100vh - 200px)}
}
/* a wide but very short screen (large phone held sideways): a figure shrunk to
   fit would leave zones a few millimetres tall, so it scrolls with the page */
@media (min-width:901px) and (max-height:560px){
  .hm-cf-body{position:static}
  .hm-body{max-height:none}
}
/* first visit: the cookie banner is fixed to the bottom, exactly where the hero
   keeps its buttons. consent.js publishes the banner height on body. The corner
   place from 901px and the compact phone form of the banner started in this
   file; since 2026-11-14 they live in js/shared/consent.js for every page. */
@media (max-width:900px){
  body.hm.has-consent-banner .hm-hero-in{padding-bottom:calc(var(--consent-h,180px) + 12px)}
}
@media (max-width:900px){
  /* keyboard focus must not land under the bottom bar */
  html{scroll-padding-bottom:84px}
  .hm-vseq{scroll-padding-left:var(--hm-gut);scroll-padding-right:var(--hm-gut)}
  body.hm .ijen-consent{transition:bottom .32s var(--hm-ease)}
  body.hm .footer{padding-bottom:calc(116px + env(safe-area-inset-bottom))}
  body.hm .footer-inner{grid-template-columns:minmax(0,1fr);grid-template-areas:"brand" "tag" "nav" "meta" "copy"}
  body.hm .footer-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin-top:24px;max-width:440px}
  body.hm .footer-meta{margin-top:22px}
  body.hm.hm-bar-on .ijen-consent{bottom:calc(84px + env(safe-area-inset-bottom))}
  /* the lifted banner covers the end of the open menu 84px higher: site.css
     reserves the banner height in the drawer, this adds the lift */
  body.hm.hm-bar-on.has-consent-banner .nav-drawer{padding-bottom:calc(116px + var(--consent-h,180px) + env(safe-area-inset-bottom))}
}
/* burger header: the language picker with Book floated in the middle of a tablet
   header. The two drawer fixes that lived here (no blur on the solid header,
   burger above the drawer) moved to css/site.css on 2026-11-14: they now cover
   every public page. */
@media (max-width:820px){
  body.hm .nav-links{margin-left:auto;margin-right:6px}
}
/* narrow phones: a long Book label (ru, id) squeezed the logo down to a few pixels */
@media (max-width:480px){
  body.hm .nav{padding-left:16px;padding-right:12px}
  body.hm .nav-links{gap:8px;margin-right:0}
  body.hm .nav .nav-link.is-book{padding-left:12px;padding-right:12px;font-size:11px;letter-spacing:.06em}
}
@media (max-width:359px){
  body.hm .nav{padding-left:12px;padding-right:10px}
  body.hm .nav-links{gap:6px}
  body.hm .nav .nav-link.is-book{padding-left:9px;padding-right:9px;letter-spacing:.02em}
}
/* small laptops and landscape tablets show the full menu: keep it from crushing the logo.
   820.02px, not 821px: no gap after max-width:820px on a zoomed page (css/site.css) */
@media (min-width:820.02px) and (max-width:1000px){
  body.hm .nav{padding-left:24px;padding-right:24px}
  body.hm .nav-links{gap:14px}
  body.hm .nav-link{font-size:11px;letter-spacing:.08em}
  body.hm .nav .btn-sm{padding:12px 16px}
}
/* phone held sideways: the headline alone filled the screen */
@media (max-height:500px) and (orientation:landscape){
  .hm-hero h1,html:lang(ru) .hm-hero h1{font-size:clamp(34px,11vh,56px);max-width:none}
  .hm-hero-in{padding-top:76px;padding-bottom:24px}
  .hm-lead{margin-top:12px}
  .hm-hero .hm-ctas{margin-top:16px}
  .hm-meta{margin-top:14px}
}
/* narrow window with a mouse: the photo strip scrolls sideways and needs a visible handle */
@media (hover:hover) and (max-width:900px){
  .hm-vseq{scrollbar-width:thin;scrollbar-color:rgba(198,134,84,.45) transparent;padding-bottom:12px}
  .hm-vseq::-webkit-scrollbar{display:block;height:6px}
  .hm-vseq::-webkit-scrollbar-thumb{background:rgba(198,134,84,.45);border-radius:3px}
}
/* language picker slot in the shared nav (moved here from the old inline style) */
#lang-picker-slot{display:inline-flex;align-items:center}
.nav-links .land-lang-wrap--inline{margin:0 2px}
