/* ==========================================================================
   ТУМАН — кальян-бар, Тверь
   Dark / minimal / editorial / cinematic design system
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; }
svg { display: block; }

/* ---------- Design tokens ---------- */
:root{
  /* layered dark palette — never pure black */
  --bg-0:#0b0a09;
  --bg-1:#131110;
  --bg-2:#1b1816;
  --bg-3:#262220;
  --line: rgba(240,232,220,0.10);
  --line-strong: rgba(240,232,220,0.18);

  --ink:#f2ece2;
  --ink-dim:#cdc4b7;
  --ink-mute:#8c8377;

  --accent:#c9a27c;      /* warm muted brass — used sparingly */
  --accent-soft: rgba(201,162,124,0.14);

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --container: 1440px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --radius-s: 2px;
  --radius-m: 3px;

  --ease: cubic-bezier(.16,.84,.32,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);

  --header-h: 84px;
}

@media (max-width: 720px){
  :root{ --header-h: 68px; }
}

html{
  scroll-behavior: smooth;
  background: var(--bg-0);
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll{
  overflow: hidden;
  height: 100%;
}

::selection{
  background: var(--accent);
  color: var(--bg-0);
}

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow{
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 1.1em;
}

.text-link{
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.25em;
  transition: border-color .35s var(--ease), opacity .35s var(--ease), color .35s var(--ease);
}
.text-link:hover{ border-color: var(--accent); color: var(--accent); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.9em;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  transition: transform .45s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: scale(0.97); }

.btn--primary{
  background: var(--ink);
  color: var(--bg-0);
}
.btn--primary:hover{ background: var(--accent); }

.btn--ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover{ border-color: var(--ink); background: rgba(255,255,255,0.06); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-0);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader__word{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  animation: loaderIn .9s var(--ease) forwards .05s;
}
.loader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes loaderIn{
  to{ opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .loader__word{ animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   Custom cursor (desktop only, injected class on <html>)
   ========================================================================== */
.has-cursor, .has-cursor a, .has-cursor button{ cursor: none; }
.cursor{
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  z-index: 998;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s var(--ease);
  will-change: transform;
}
.cursor.is-active{
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  background: var(--ink);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled{
  background: rgba(11,10,9,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header.is-hidden{
  transform: translateY(-100%);
}

.header__inner{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo{
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
}

.header__nav{
  display: none;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.header__nav a{
  position: relative;
  padding-block: 4px;
}
.header__nav a::after{
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .4s var(--ease);
}
.header__nav a:hover{ color: var(--ink); }
.header__nav a:hover::after{ right: 0; }

.header__cta{
  display: none;
  min-height: 44px;
  padding: 0 1.5em;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.header__cta:hover{ border-color: var(--ink); background: rgba(255,255,255,0.06); }

.burger{
  position: relative;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
}
.burger span{
  position: absolute;
  width: 22px; height: 1px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease);
}
.burger span:nth-child(1){ transform: translateY(-4px); }
.burger span:nth-child(2){ transform: translateY(4px); }
.menu-open .burger span:nth-child(1){ transform: translateY(0) rotate(45deg); }
.menu-open .burger span:nth-child(2){ transform: translateY(0) rotate(-45deg); }

@media (min-width: 1024px){
  .header__nav{ display: flex; }
  .header__cta{ display: inline-flex; }
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
  overflow-y: auto;
}
.menu-open .mobile-menu{ transform: translateY(0); }

.mobile-menu__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px 10px;
}
.mobile-menu__logo{
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mobile-menu__close{
  position: relative;
  width: 40px; height: 40px;
}
.mobile-menu__close span{
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 1px;
  background: var(--ink);
}
.mobile-menu__close span:nth-child(1){ transform: translate(-50%,-50%) rotate(45deg); }
.mobile-menu__close span:nth-child(2){ transform: translate(-50%,-50%) rotate(-45deg); }

.mobile-menu__nav{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 3vh, 22px);
  padding-block: 24px;
}
.mobile-menu__link{
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 10vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  transition: color .3s var(--ease);
}
.mobile-menu__link span{
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-weight: 600;
}
.mobile-menu__link:active,
.mobile-menu__link:hover{ color: var(--ink); }

.mobile-menu__bottom{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-block: 18px 10px;
  border-top: 1px solid var(--line);
}
.mobile-menu__book{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  background: var(--ink);
  color: var(--bg-0);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-s);
  text-transform: uppercase;
  font-size: 0.92rem;
}
.mobile-menu__phone{
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

@media (min-width: 1024px){
  .mobile-menu, .burger{ display: none; }
}

/* ==========================================================================
   Reveal animation base states (JS/GSAP toggles .is-in)
   ========================================================================== */
/* Default state: fully visible. JS opts elements INTO the hidden
   "reveal-init" state right before observing them — this means that if
   JavaScript fails to load or run for any reason, all content remains
   visible (progressive enhancement, never a permanently-blank page). */
.reveal-up.reveal-init{ opacity: 0; transform: translateY(28px); }
.reveal-line.reveal-init{ opacity: 0; }
.reveal-img.reveal-init{ opacity: 0; clip-path: inset(0 0 100% 0); }

.reveal-up.reveal-init{ transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-line.reveal-init{ transition: opacity 1s var(--ease); }
.reveal-img.reveal-init{ transition: clip-path 1.1s var(--ease), opacity .6s var(--ease); }

.reveal-up.is-in, .reveal-line.is-in, .reveal-img.is-in{
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0% 0);
}

@media (prefers-reduced-motion: reduce){
  .reveal-up.reveal-init, .reveal-line.reveal-init, .reveal-img.reveal-init{
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 35%;
}
.hero__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,8,7,0.55) 0%, rgba(9,8,7,0.05) 30%, rgba(9,8,7,0.15) 55%, rgba(8,7,6,0.88) 100%),
    linear-gradient(90deg, rgba(8,7,6,0.35) 0%, transparent 40%);
}

.hero__content{
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(48px, 8vh, 96px);
}
.hero__kicker{
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: clamp(10px, 2vh, 20px);
}
.hero__title{
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 0.86;
  font-size: clamp(4.2rem, 17vw, 12.5rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: clamp(14px, 3vh, 26px);
}
.hero__tagline{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  color: var(--ink-dim);
  max-width: 26ch;
  margin-bottom: clamp(24px, 4.5vh, 44px);
}
.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn__phone{ font-variant-numeric: tabular-nums; }

.hero__scroll{
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 48px);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll span{
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 100%);
  overflow: hidden;
  position: relative;
}
.hero__scroll span::after{
  content:'';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--ink);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine{
  0%{ top: -100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}
.hero__scroll em{
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  writing-mode: vertical-rl;
}
@media (min-width: 900px){
  .hero__scroll{ display: flex; }
}
@media (prefers-reduced-motion: reduce){
  .hero__scroll span::after{ animation: none; top: 0; }
}

/* ==========================================================================
   Atmosphere
   ========================================================================== */
.atmosphere{
  background: var(--bg-1);
  padding: clamp(90px, 14vh, 160px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vh, 64px);
}
.atmosphere__text{
  max-width: 640px;
}
.atmosphere__title{
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 0.95;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.atmosphere__body{
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 46ch;
  margin-bottom: clamp(24px, 3vh, 34px);
  font-weight: 300;
}
.atmosphere__media{
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 620px;
  overflow: hidden;
  border-radius: var(--radius-m);
}
.atmosphere__media-inner{
  position: absolute;
  inset: -8% 0;
  height: 116%;
}
.atmosphere__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

@media (min-width: 960px){
  .atmosphere{
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
  .atmosphere__media{ margin-left: auto; }
}

/* ==========================================================================
   Inside (photo grid) — "Внутри Тумана"
   ========================================================================== */
.inside{
  background: var(--bg-0);
  padding: clamp(90px, 14vh, 160px) var(--gutter);
}
.inside__head{ margin-bottom: clamp(36px, 5vh, 56px); }
.inside__title{
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.inside__grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.6vw, 22px);
}
.inside__item{
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--bg-2);
}
.inside__item img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.inside__item:hover img{ transform: scale(1.045); }

.inside__item--a{ grid-column: 1 / 13; aspect-ratio: 4/5; }
.inside__item--b{ grid-column: 1 / 13; aspect-ratio: 16/11; }
.inside__item--c{ grid-column: 1 / 13; aspect-ratio: 16/10; }
.inside__item--d{ grid-column: 1 / 13; aspect-ratio: 4/5; }
.inside__item--e{ grid-column: 1 / 13; aspect-ratio: 4/5; }

@media (min-width: 720px){
  .inside__item--a{ grid-column: 1 / 6; align-self: start; }
  .inside__item--b{ grid-column: 6 / 13; align-self: end; margin-top: clamp(30px,6vw,70px); aspect-ratio: 5/4; }
  .inside__item--c{ grid-column: 1 / 13; aspect-ratio: 21/9; margin-top: clamp(10px,2vw,20px); }
  .inside__item--d{ grid-column: 1 / 7; aspect-ratio: 4/5; }
  .inside__item--e{ grid-column: 7 / 13; aspect-ratio: 4/5; margin-top: clamp(40px,7vw,90px); }
}

/* ==========================================================================
   Space
   ========================================================================== */
.space{
  background: var(--bg-1);
  padding: clamp(90px, 14vh, 160px) var(--gutter);
}
.space__head{ margin-bottom: clamp(40px, 6vh, 64px); }
.space__title{
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  line-height: 1.28;
  color: var(--ink-dim);
  max-width: 18ch;
}

.space__gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 22px);
  align-items: end;
}
.space__item{
  overflow: hidden;
  border-radius: var(--radius-m);
  aspect-ratio: 3/4;
}
.space__item--tall{ aspect-ratio: 3/4.6; }
.space__item img{
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-width: 719px){
  .space__gallery{ grid-template-columns: 1fr 1fr; }
  .space__item:first-child{ grid-column: 1/3; aspect-ratio: 16/11; }
  .space__item--tall{ aspect-ratio: 3/4; }
}

/* ==========================================================================
   Hookah
   ========================================================================== */
.hookah{
  position: relative;
  height: 92vh;
  min-height: 520px;
  overflow: hidden;
}
.hookah__media{
  position: absolute;
  inset: 0;
}
.hookah__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.hookah__media::after{
  content:'';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9,8,7,0.75) 0%, rgba(9,8,7,0) 42%);
}
.hookah__caption{
  position: absolute;
  left: var(--gutter);
  bottom: clamp(32px, 6vh, 64px);
  z-index: 2;
}
.hookah__caption h2{
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews{
  background: var(--bg-0);
  display: grid;
  grid-template-columns: 1fr;
}
.reviews__media{
  aspect-ratio: 4/3;
  overflow: hidden;
}
.reviews__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.reviews__content{
  padding: clamp(56px, 9vh, 96px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reviews__rating{
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 10px;
}
.reviews__number{
  font-family: var(--font-serif);
  font-size: clamp(4rem, 11vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
}
.reviews__stars{
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}
.reviews__sub{
  color: var(--ink-mute);
  font-size: 1rem;
  margin-bottom: clamp(22px, 3vh, 32px);
}

@media (min-width: 900px){
  .reviews{ grid-template-columns: 1fr 1fr; align-items: stretch; }
  .reviews__media{ aspect-ratio: auto; height: 100%; }
}

/* ==========================================================================
   Contacts / Final CTA
   ========================================================================== */
.contacts{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(80px, 12vh, 120px) var(--gutter);
}
.contacts__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contacts__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.contacts__scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,8,7,0.72) 0%, rgba(9,8,7,0.55) 45%, rgba(9,8,7,0.88) 100%);
}
.contacts__content{
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contacts__title{
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1.02;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.contacts__title em{ font-style: italic; color: var(--ink-dim); }
.contacts__phone{
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: clamp(28px, 4vh, 44px);
  transition: color .3s var(--ease);
}
.contacts__phone:hover{ color: var(--accent); }
.contacts__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: clamp(28px, 5vh, 48px);
}
.contacts__city{
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 7vh, 70px) var(--gutter) clamp(24px, 4vh, 40px);
}
.footer__top{
  overflow: hidden;
  margin-bottom: clamp(24px, 5vh, 48px);
}
.footer__word{
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 13vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-stroke: 1px var(--line-strong);
}
.footer__bottom{
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.footer__col p{ margin-bottom: 8px; color: var(--ink-mute); }
.footer__col a{ display: block; }
.footer__nav{ display: flex; flex-direction: column; gap: 8px; }
.footer__legal p{ margin-bottom: 0; }

@media (min-width: 720px){
  .footer__bottom{ font-size: 0.95rem; }
  .footer__nav{ flex-direction: row; gap: 28px; }
}

/* ==========================================================================
   Utility: hidden anchors offset for fixed header
   ========================================================================== */
section[id]{ scroll-margin-top: var(--header-h); }
