/* ═══════════════════════════════════════════════════════════
   Таксі Буськ — styles
   Palette: near-black surfaces + taxi yellow accent
   ═══════════════════════════════════════════════════════════ */

:root{
  /* colour */
  --bg:            #0B0B0D;
  --bg-alt:        #101013;
  --surface:       #17171C;
  --surface-2:     #1F1F26;
  --line:          rgba(255,255,255,.09);
  --line-strong:   rgba(255,255,255,.16);

  --yellow:        #FFC300;
  --yellow-soft:   #FFD84D;
  --amber:         #FF8A00;

  --text:          #F4F4F6;
  --text-dim:      #A9A9B4;   /* 7.3:1 on --bg */
  --on-yellow:     #14140F;

  /* type */
  --f-head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* space */
  --s-1: .5rem;  --s-2: 1rem;   --s-3: 1.5rem;
  --s-4: 2rem;   --s-6: 3rem;   --s-8: 4rem;
  --sect-y: clamp(4rem, 9vw, 7.5rem);

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-pill: 999px;

  /* motion */
  --e-out: cubic-bezier(.22,1,.36,1);
  --t-fast: 180ms var(--e-out);
  --t: 300ms var(--e-out);

  /* layering */
  /* the header must outrank the call bar: the fullscreen mobile menu lives
     inside the header, so it can never paint above a higher sibling */
  --z-band: 5; --z-callbar: 40; --z-hdr: 50; --z-menu: 60;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:400 clamp(1rem,.97rem + .16vw,1.0625rem)/1.65 var(--f-body);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }

::selection{ background:var(--yellow); color:var(--on-yellow); }

:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:3px;
  border-radius:4px;
}

.skip-link{
  position:absolute; left:50%; top:-100px; transform:translateX(-50%);
  z-index:100; background:var(--yellow); color:var(--on-yellow);
  padding:.75rem 1.25rem; border-radius:0 0 var(--r-sm) var(--r-sm);
  font-weight:700; text-decoration:none; transition:top var(--t-fast);
}
.skip-link:focus{ top:0; }

/* ── layout ─────────────────────────────────────────────── */
.wrap{
  width:100%; max-width:1200px; margin-inline:auto;
  padding-inline:clamp(1.15rem,4vw,2.5rem);
}
.wrap--narrow{ max-width:820px; }

.sect{ padding-block:var(--sect-y); position:relative; }
.sect--alt{ background:var(--bg-alt); }

/* Unbounded is a wide display face — headings need more room than a ch-based cap */
.sect__head{ max-width:min(100%,48rem); margin-bottom:clamp(2.5rem,5vw,4rem); }
.sect__lead{ color:var(--text-dim); margin:var(--s-2) 0 0; max-width:56ch; }

.grid{ display:grid; gap:clamp(1rem,2vw,1.5rem); }
.grid--4{ grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); }

/* ── type ───────────────────────────────────────────────── */
.h2{
  font:800 clamp(1.75rem,1.1rem + 2.4vw,2.9rem)/1.12 var(--f-head);
  letter-spacing:-.02em; margin:0; text-wrap:balance;
}

.eyebrow{
  display:inline-flex; align-items:flex-start; gap:.6rem;
  margin:0 0 var(--s-3);
  font-size:.8125rem; font-weight:600; letter-spacing:.11em;
  text-transform:uppercase; color:var(--text-dim);
}
.dot{
  flex:none; margin-top:.55em;
  width:7px; height:7px; border-radius:50%; background:var(--yellow);
  box-shadow:0 0 0 4px rgba(255,195,0,.16);
  animation:pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ box-shadow:0 0 0 3px rgba(255,195,0,.14); }
  50%    { box-shadow:0 0 0 7px rgba(255,195,0,.04); }
}

.grad{
  background:linear-gradient(100deg,var(--yellow) 10%,var(--amber) 70%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ── buttons ────────────────────────────────────────────── */
.btn{
  --btn-bg:var(--yellow); --btn-fg:var(--on-yellow);
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  min-height:48px; padding:.8rem 1.4rem;
  background:var(--btn-bg); color:var(--btn-fg);
  border:1px solid transparent; border-radius:var(--r-pill);
  font:700 .9375rem/1 var(--f-body); letter-spacing:.01em;
  text-decoration:none; cursor:pointer;
  transition:transform var(--t-fast), box-shadow var(--t-fast),
             background-color var(--t-fast), border-color var(--t-fast);
  -webkit-tap-highlight-color:transparent; touch-action:manipulation;
}
.btn:hover{ background:var(--yellow-soft); box-shadow:0 8px 24px -8px rgba(255,195,0,.55); }
.btn:active{ transform:scale(.97); }

.btn--ghost{
  --btn-bg:transparent; --btn-fg:var(--text);
  border-color:var(--line-strong);
  backdrop-filter:blur(6px);
}
.btn--ghost:hover{ background:rgba(255,255,255,.06); border-color:var(--yellow); box-shadow:none; }

.btn--lg{ min-height:56px; padding:1rem 1.75rem; font-size:1rem; }
.btn--sm{ min-height:44px; padding:.6rem 1.1rem; font-size:.875rem; }
.btn--block{ flex:1; }
.btn--icon{ width:52px; padding:0; flex:0 0 52px; }

.ico{ width:1.15em; height:1.15em; fill:currentColor; flex:none; }

/* ── header ─────────────────────────────────────────────── */
.hdr{
  position:sticky; top:0; z-index:var(--z-hdr);
  padding-block:.85rem;
  transition:padding var(--t);
}
/* The blur lives on a pseudo-element, never on .hdr itself: an element with a
   backdrop-filter becomes the containing block for its position:fixed
   descendants, which would trap the fullscreen mobile menu inside the header
   strip the moment .is-stuck applied. */
.hdr::before{
  content:''; position:absolute; inset:0; z-index:-1;
  background:rgba(11,11,13,.82);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line);
  opacity:0; transition:opacity var(--t);
}
.hdr.is-stuck::before{ opacity:1; }
.hdr.is-stuck{ padding-block:.5rem; }

.hdr__in{ display:flex; align-items:center; gap:var(--s-3); }

.brand{
  display:inline-flex; align-items:center; gap:.6rem;
  text-decoration:none; margin-right:auto; flex:none;
}
.brand__mark{
  flex:none; width:38px; height:38px;
  transition:transform 600ms var(--e-out);
}
.brand:hover .brand__mark{ transform:rotate(-14deg); }
.brand__txt{
  font:800 1.0625rem/1 var(--f-head); letter-spacing:-.02em; white-space:nowrap;
}
.brand__accent{ color:var(--yellow); }

/* the number is the point of the whole header — size it above the nav links */
.hdr__cta{
  font-size:1.0625rem;
  padding-inline:1.35rem;
  font-variant-numeric:tabular-nums;
}

.nav{ display:flex; gap:.35rem; }
.nav a{
  position:relative; padding:.55rem .8rem; border-radius:var(--r-sm);
  font-size:.9375rem; font-weight:500; color:var(--text-dim);
  text-decoration:none; transition:color var(--t-fast);
}
.nav a::after{
  content:''; position:absolute; left:.8rem; right:.8rem; bottom:.3rem; height:2px;
  background:var(--yellow); border-radius:2px;
  transform:scaleX(0); transform-origin:left; transition:transform var(--t);
}
.nav a:hover{ color:var(--text); }
.nav a:hover::after{ transform:scaleX(1); }

.burger{
  display:none; width:48px; height:48px; padding:12px;
  background:none; border:1px solid var(--line-strong); border-radius:var(--r-sm);
  cursor:pointer; flex-direction:column; justify-content:space-between;
}
.burger span{
  display:block; height:2px; width:100%; background:var(--text); border-radius:2px;
  transition:transform var(--t), opacity var(--t-fast);
}
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-10px) rotate(-45deg); }

/* ── aurora glow ────────────────────────────────────────── */
.aurora{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.aurora i{
  position:absolute; display:block; border-radius:50%;
  filter:blur(72px); opacity:.5; will-change:transform;
}
.aurora i:nth-child(1){
  width:46vw; height:46vw; min-width:340px; min-height:340px;
  top:-14%; left:-8%;
  background:radial-gradient(circle,rgba(255,195,0,.5),transparent 66%);
  animation:drift1 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(2){
  width:38vw; height:38vw; min-width:280px; min-height:280px;
  top:22%; right:-10%;
  background:radial-gradient(circle,rgba(255,138,0,.42),transparent 68%);
  animation:drift2 27s ease-in-out infinite alternate;
}
.aurora i:nth-child(3){
  width:30vw; height:30vw; min-width:220px; min-height:220px;
  bottom:-14%; left:34%;
  background:radial-gradient(circle,rgba(255,216,77,.3),transparent 70%);
  animation:drift3 19s ease-in-out infinite alternate;
}
.aurora--cta i{ opacity:.35; }
@keyframes drift1{ to{ transform:translate3d(9%,7%,0) scale(1.14); } }
@keyframes drift2{ to{ transform:translate3d(-8%,-9%,0) scale(1.1); } }
@keyframes drift3{ to{ transform:translate3d(6%,-6%,0) scale(1.18); } }

/* ── hero ───────────────────────────────────────────────── */
.hero{
  position:relative; overflow:hidden;
  padding-block:clamp(3rem,8vw,6rem) 0;
  min-height:clamp(560px,86vh,860px);
  display:flex; align-items:center;
}

.hero__bg{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%;
  object-fit:cover; object-position:74% 50%;
}
/* keeps body text at 4.5:1+ over the photo, and blends into the band below */
.hero__scrim{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(90deg,
      rgba(11,11,13,.97) 0%, rgba(11,11,13,.93) 30%,
      rgba(11,11,13,.55) 58%, rgba(11,11,13,.12) 100%),
    linear-gradient(180deg,
      rgba(11,11,13,.75) 0%, rgba(11,11,13,0) 26%,
      rgba(11,11,13,0) 62%, rgba(11,11,13,.92) 100%);
}

.hero__in{
  position:relative; z-index:2; width:100%;
  padding-bottom:clamp(2rem,4vw,3rem);
}
/* insurance for the stretches of copy that sit over the brighter parts of the photo */
.hero__copy{ max-width:38rem; text-shadow:0 1px 14px rgba(0,0,0,.55); }

.hero__title{
  font:800 clamp(2.5rem,1.2rem + 5.6vw,5rem)/1.03 var(--f-head);
  letter-spacing:-.035em; margin:0 0 var(--s-3);
}
.hero__lead{
  max-width:46ch; margin:0 0 var(--s-4);
  font-size:clamp(1.0625rem,1rem + .3vw,1.1875rem);
  color:var(--text-dim);
}
.hero__cta{ display:flex; flex-wrap:wrap; gap:.75rem; }

.hero__facts{
  display:flex; flex-wrap:wrap; gap:clamp(1.5rem,4vw,3rem);
  margin:clamp(2.5rem,5vw,3.5rem) 0 0; padding:0; list-style:none;
}
.hero__facts li{ display:flex; flex-direction:column; gap:.15rem; }
.hero__facts b{
  font:800 clamp(1.75rem,1.4rem + 1.4vw,2.5rem)/1 var(--f-head);
  color:var(--yellow); font-variant-numeric:tabular-nums;
}
.hero__facts span{ font-size:.875rem; color:var(--text-dim); }

/* animated checker band
   Classic two-layer 45° checkerboard: tiles exactly at any width, so the
   pattern never breaks mid-square the way flex-segmented gradients did. */
.band{
  position:relative; z-index:var(--z-band);
  --sq:13px;
  height:calc(var(--sq) * 2); overflow:hidden;
  border-block:1px solid var(--line);
  background:var(--bg-alt);
}
.band__track{
  height:100%; width:calc(100% + var(--sq) * 2);
  background-color:var(--surface-2);
  background-image:
    linear-gradient(45deg, var(--yellow) 25%, transparent 25% 75%, var(--yellow) 75%),
    linear-gradient(45deg, var(--yellow) 25%, transparent 25% 75%, var(--yellow) 75%);
  background-size:calc(var(--sq) * 2) calc(var(--sq) * 2);
  background-position:0 0, var(--sq) var(--sq);
  animation:slide 6s linear infinite;
}
@keyframes slide{ to{ transform:translate3d(calc(var(--sq) * -2),0,0); } }

/* ── marquee ────────────────────────────────────────────── */
.marq{ padding-block:1.15rem; overflow:hidden; background:var(--bg); }
.marq__row{
  display:flex; align-items:center; gap:1.75rem; width:max-content;
  animation:marq 38s linear infinite;
}
.marq__row span{
  font:800 clamp(1.1rem,3vw,1.5rem)/1 var(--f-head);
  letter-spacing:-.01em; color:var(--text);
  white-space:nowrap; opacity:.9;
}
.marq__row i{ color:var(--yellow); font-style:normal; font-size:.7em; }
@keyframes marq{ to{ transform:translate3d(-50%,0,0); } }
.marq:hover .marq__row{ animation-play-state:paused; }

/* ── cards ──────────────────────────────────────────────── */
/* --mx/--my are written by script.js on pointer move (hover devices only);
   the defaults below are what touch devices and no-JS get. */
.card{
  --mx:50%; --my:0%;
  position:relative; padding:clamp(1.5rem,3vw,2rem);
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); overflow:hidden;
  transition:transform var(--t), border-color var(--t), background-color var(--t);
}
.card > *{ position:relative; z-index:1; }

/* spotlight that follows the cursor */
.card::before{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(340px circle at var(--mx) var(--my),
             rgba(255,195,0,.16), transparent 62%);
  opacity:0; transition:opacity var(--t);
}
/* 1px border lit from the same point — mask punches out the middle */
.card::after{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  border-radius:inherit; padding:1px;
  background:radial-gradient(280px circle at var(--mx) var(--my),
             var(--yellow), transparent 60%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; transition:opacity var(--t);
}
.card:hover{ transform:translateY(-5px); }
.card:hover::before{ opacity:1; }
.card:hover::after{ opacity:.8; }

.card__ico{
  display:grid; place-items:center; width:48px; height:48px;
  margin-bottom:var(--s-3);
  background:rgba(255,195,0,.12); border:1px solid rgba(255,195,0,.22);
  border-radius:14px;
  transition:transform var(--t), background-color var(--t), border-color var(--t);
}
.card:hover .card__ico{
  transform:translateY(-2px) scale(1.07);
  background:rgba(255,195,0,.2); border-color:rgba(255,195,0,.45);
}
.card__ico svg{ width:24px; height:24px; fill:var(--yellow); }

.card h3{
  margin:0 0 .55rem;
  font:700 1.125rem/1.3 var(--f-body); letter-spacing:-.01em;
}
.card p{ margin:0; color:var(--text-dim); font-size:.9375rem; }

/* ── steps ──────────────────────────────────────────────── */
.steps{
  display:grid; gap:clamp(1rem,2.5vw,2rem);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));
  margin:0; padding:0; list-style:none; counter-reset:step;
}
.step{
  position:relative; padding:clamp(1.5rem,3vw,2rem) 0 0;
  border-top:2px solid var(--line);
  transition:border-color var(--t);
}
.step:hover{ border-top-color:var(--yellow); }
.step__n{
  display:block; margin-bottom:var(--s-2);
  font:800 .875rem/1 var(--f-head); letter-spacing:.1em; color:var(--yellow);
}
.step h3{ margin:0 0 .5rem; font:700 1.25rem/1.25 var(--f-body); letter-spacing:-.01em; }
.step p{ margin:0; color:var(--text-dim); font-size:.9375rem; }
.step a{ color:var(--yellow); text-underline-offset:3px; }

/* ── routes ─────────────────────────────────────────────── */
.routes{
  display:grid; gap:clamp(2.5rem,5vw,4rem);
  grid-template-columns:1fr 1fr; align-items:center;
}
.routes__copy .btn{ margin-top:var(--s-4); }

.chips{
  display:flex; flex-wrap:wrap; gap:.65rem;
  margin:0; padding:0; list-style:none;
}
.chips li{
  padding:.7rem 1.15rem;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-pill);
  font-size:.9375rem; font-weight:600;
  transition:transform var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chips li:hover{ transform:translateY(-3px); border-color:var(--yellow); color:var(--yellow); }

/* ── CTA ────────────────────────────────────────────────── */
.cta{ position:relative; overflow:hidden; text-align:center; background:var(--bg-alt); }
.cta__in{ position:relative; z-index:1; }
.cta .eyebrow{ justify-content:center; }
.cta__title{ margin-bottom:var(--s-4); }

.cta__num{
  display:inline-block; margin-bottom:var(--s-4);
  font:800 clamp(1.5rem,1rem + 2.6vw,2.75rem)/1 var(--f-head);
  letter-spacing:-.02em; color:var(--text);
  text-decoration:none; font-variant-numeric:tabular-nums;
  transition:color var(--t-fast);
}
.cta__num:hover{ color:var(--yellow); }

.cta__btns{ display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; }
.cta__meta{ margin:var(--s-4) 0 0; font-size:.875rem; color:var(--text-dim); }

/* ── footer ─────────────────────────────────────────────── */
.foot{ border-top:1px solid var(--line); background:var(--bg); }
.foot__in{
  display:grid; gap:var(--s-4);
  grid-template-columns:1.2fr 1fr 1fr;
  padding-block:clamp(2.5rem,5vw,4rem);
}
.foot__brand .brand{ margin-right:0; }
.foot__brand .brand__mark{ width:46px; height:46px; }
.foot__brand .brand__txt{ font-size:1.25rem; }
.foot__brand p, .foot__contact p{ margin:.75rem 0 0; color:var(--text-dim); font-size:.875rem; }

.foot__nav{ display:flex; flex-direction:column; gap:.6rem; }
.foot__nav a{
  color:var(--text-dim); text-decoration:none; font-size:.9375rem; width:fit-content;
  transition:color var(--t-fast);
}
.foot__nav a:hover{ color:var(--yellow); }

.foot__num{
  font:800 1.25rem/1 var(--f-head); color:var(--yellow);
  text-decoration:none; letter-spacing:-.01em; white-space:nowrap;
}

.foot__bar{
  padding-block:1.25rem; border-top:1px solid var(--line);
}
.foot__bar p{ margin:0; font-size:.8125rem; color:var(--text-dim); }

/* ── mobile call bar ────────────────────────────────────── */
.callbar{
  position:fixed; left:0; right:0; bottom:0; z-index:var(--z-callbar);
  display:none; gap:.6rem;
  padding:.7rem clamp(1rem,4vw,1.25rem);
  padding-bottom:calc(.7rem + env(safe-area-inset-bottom));
  background:rgba(11,11,13,.9); backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  transform:translate3d(0,110%,0); transition:transform 380ms var(--e-out);
}
.callbar.is-on{ transform:translate3d(0,0,0); }

/* ── scroll reveal ──────────────────────────────────────── */
.reveal{
  opacity:0; transform:translate3d(0,22px,0);
  transition:opacity 620ms var(--e-out), transform 620ms var(--e-out);
  transition-delay:calc(var(--d,0) * 90ms);
}
.reveal.is-in{ opacity:1; transform:none; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width:1000px){
  /* no room for a side-lit car — darken top-to-bottom instead of left-to-right */
  .hero__bg{ object-position:66% 50%; }
  /* never drops below .86 — text sits over headlights/streaks here, and
     0.14×255 still keeps the backdrop dark enough for 4.5:1 body text */
  .hero__scrim{
    background:linear-gradient(180deg,
      rgba(11,11,13,.94) 0%, rgba(11,11,13,.9) 45%,
      rgba(11,11,13,.86) 72%, rgba(11,11,13,.97) 100%);
  }
  .routes{ grid-template-columns:1fr; }
  .foot__in{ grid-template-columns:1fr 1fr; }
}

@media (max-width:860px){
  .hdr__cta{ display:none; }
  .burger{ display:flex; }

  .nav{
    position:fixed; inset:0; z-index:var(--z-menu);
    flex-direction:column; justify-content:center; align-items:center; gap:.5rem;
    background:rgba(11,11,13,.97); backdrop-filter:blur(16px);
    opacity:0; visibility:hidden; transform:translate3d(0,-14px,0);
    transition:opacity 260ms var(--e-out), transform 260ms var(--e-out), visibility 260ms;
  }
  .nav.is-open{ opacity:1; visibility:visible; transform:none; }
  .nav a{
    font:700 1.5rem/1 var(--f-head); color:var(--text);
    padding:1rem 1.5rem; letter-spacing:-.02em;
  }
  .nav a::after{ display:none; }

  /* keep logo + close button clickable above the full-screen menu.
     Scoped to .hdr on purpose: the footer reuses .brand, and an unscoped rule
     lifted it above the fixed call bar. */
  .hdr .brand, .burger{ position:relative; z-index:calc(var(--z-menu) + 1); }

  .callbar{ display:flex; }
  body{ padding-bottom:0; }
  .foot__bar{ padding-bottom:calc(1.25rem + 76px + env(safe-area-inset-bottom)); }
}

@media (max-width:560px){
  .foot__in{ grid-template-columns:1fr; }
  .hero__facts{ gap:1.25rem 2rem; }
  .hero__facts li{ min-width:calc(50% - 1rem); }
  .cta__btns .btn{ width:100%; }
  .hero__cta{ flex-direction:column; align-items:stretch; }
}

/* landscape phones: shrink vertical rhythm */
@media (max-height:520px) and (orientation:landscape){
  .hero{ padding-block:2rem 0; min-height:auto; }
  .hero__in{ padding-bottom:2.5rem; }
  :root{ --sect-y:3rem; }
}

/* ── reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .reveal{ opacity:1 !important; transform:none !important; }
  .aurora i{ animation:none; }
}

/* ── print ──────────────────────────────────────────────── */
@media print{
  .hdr,.callbar,.band,.marq,.aurora{ display:none !important; }
  body{ background:#fff; color:#000; }
}
