/* ============================================================
   TK GROUP — Premium Logistics Website
   ============================================================ */

:root {
  /* base — light with a cool, airy blue-grey (turquoise family) */
  --bg-rgb: 244, 249, 251;
  --bg-0: #f4f9fb;
  --bg-1: #eaf2f6;
  --bg-2: #ffffff;
  --bg-3: #e2eef3;
  --bg-elev: #ffffff;

  --border: rgba(16, 62, 76, 0.10);
  --border-strong: rgba(16, 62, 76, 0.20);
  --line-soft: rgba(16, 62, 76, 0.06);

  --text: #10333f;
  --text-dim: #4d6670;
  --text-mute: #8199a2;

  /* accent — turquoise / teal */
  --accent: #17a9c4;
  --accent-2: #33c1da;
  --accent-deep: #0e7f96;
  --accent-rgb: 23, 169, 196;
  --accent-soft: rgba(23, 169, 196, 0.12);
  --accent-line: rgba(23, 169, 196, 0.30);
  --accent-glow: rgba(23, 169, 196, 0.35);
  --ink: #ffffff;

  --shadow-soft: 0 8px 22px rgba(16, 62, 76, 0.05);
  --shadow-strong: 0 14px 34px rgba(16, 62, 76, 0.08);
  --shadow-gold: 0 10px 26px rgba(23, 169, 196, 0.16);

  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1280px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 26px;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .arrow {
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  background: rgba(var(--bg-rgb), 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(var(--bg-rgb), 0.9);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(16, 62, 76, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--ink);
  font-size: 0.9rem;
}

.logo-text .accent {
  color: var(--accent);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* logo PNG has a white background — present it as a clean white badge so it
     reads well over light sections, the hero photo and the dark map alike */
  background: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  box-sizing: content-box;
  box-shadow: 0 4px 14px rgba(16, 62, 76, 0.10);
}
.footer-brand .logo-img { height: 50px; }
.pl-logo img { height: 42px; width: auto; display: inline-block; }
@media (max-width: 720px) {
  .logo-img { height: 36px; padding: 7px 12px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(16, 62, 76, 0.04);
}

.nav a.active::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* mobile-only nav items — hidden on desktop */
.nav-cta,
.nav-phone { display: none; }

/* offset for in-page anchors under the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  font-size: 0.92rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone:hover {
  color: var(--accent);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 62, 76, 0.04);
  border: 1px solid var(--border);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}

.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO (home)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

/* poster image sits under the video; video fades in when it can play */
.hero-bg video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-bg video.playing { opacity: 1; }

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb),0.94) 0%, rgba(var(--bg-rgb),0.7) 46%, rgba(var(--bg-rgb),0.15) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb),0.55) 0%, transparent 28%, rgba(var(--bg-rgb),0.96) 100%);
}

/* subtle warm vignette glow, top-left */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(60% 55% at 12% 30%, rgba(var(--accent-rgb), 0.12), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 100px;
  background: rgba(16, 62, 76, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* play / showreel button */
.hero-play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-play .play-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgba(16, 62, 76, 0.04);
  color: var(--accent);
  transition: all 0.35s var(--ease);
}
.hero-play:hover .play-ring {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: scale(1.06);
}

/* inline hero metrics row */
.hero-metrics {
  display: flex;
  gap: 44px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-metric .num {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-metric .lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ============================================================
   PRELOADER — driving truck
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0d2b34 0%, #0a2129 60%, #071a20 100%);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
}
/* skip on subsequent pages within the same session */
.pl-skip .preloader { display: none; }
.pl-inner {
  width: min(360px, 78vw);
  text-align: center;
}
.pl-logo {
  display: inline-block;
  margin-bottom: 28px;
  padding: 14px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  animation: plFade 0.6s var(--ease-out) 0.1s forwards;
}
.pl-logo img { height: 58px; width: auto; display: block; }

.pl-scene {
  position: relative;
  width: 100%;
  height: 90px;
  margin-bottom: 22px;
}
.pl-scene svg { width: 100%; height: 100%; overflow: visible; }

/* road dashes moving under the truck */
.pl-road {
  stroke: rgba(234, 246, 249, 0.28);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 14 18;
  animation: plRoad 0.6s linear infinite;
}
@keyframes plRoad { to { stroke-dashoffset: -32; } }

/* whole truck bobs slightly */
.pl-truck { animation: plBob 0.5s ease-in-out infinite; transform-origin: center; }
@keyframes plBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
/* wheels spin */
.pl-wheel { transform-box: fill-box; transform-origin: center; animation: plSpin 0.5s linear infinite; }
@keyframes plSpin { to { transform: rotate(360deg); } }

/* speed lines flicker */
.pl-speed { animation: plSpeed 0.5s linear infinite; }
@keyframes plSpeed { 0% { opacity: 0.15; transform: translateX(4px);} 50% { opacity: 0.5; } 100% { opacity: 0.15; transform: translateX(-6px);} }

.pl-bar {
  width: 100%;
  height: 3px;
  border-radius: 100px;
  background: rgba(234, 246, 249, 0.14);
  overflow: hidden;
}
.pl-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  animation: plBar 1.6s var(--ease-out) forwards;
}
@keyframes plBar { 0% { width: 0; } 60% { width: 72%; } 100% { width: 100%; } }

.pl-text {
  margin-top: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 246, 249, 0.55);
}
@keyframes plFade { to { opacity: 1; } }

/* when finishing, the truck drives off to the right */
.preloader.done .pl-truck {
  animation: plDriveOff 0.7s var(--ease-out) forwards;
}
@keyframes plDriveOff {
  to { transform: translateX(140%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-truck, .pl-wheel, .pl-road, .pl-speed, .pl-bar span { animation: none; }
  .pl-bar span { width: 100%; }
}

/* ============================================================
   HERO — animated background + layout
   ============================================================ */

/* animated layers container */
.hero-anim {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* drifting warm aurora glows */
.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.hero-aurora.a1 {
  width: 520px; height: 520px;
  left: -80px; top: 8%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.5), transparent 65%);
  animation: aurora1 16s ease-in-out infinite;
}
.hero-aurora.a2 {
  width: 420px; height: 420px;
  right: 6%; bottom: -60px;
  background: radial-gradient(circle, rgba(51, 193, 218, 0.38), transparent 65%);
  animation: aurora2 20s ease-in-out infinite;
}
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 30px) scale(1.1); }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.08); }
}

/* animated shipping route line (SVG) */
.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero-route .route-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 10 12;
  opacity: 0.6;
  animation: routeDash 3s linear infinite;
}
.hero-route .route-glow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  opacity: 0.12;
  filter: blur(3px);
}
@keyframes routeDash { to { stroke-dashoffset: -220; } }
.hero-route .node {
  fill: var(--accent);
}
.hero-route .node-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.6s ease-out infinite;
}
@keyframes nodePulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* faint moving grid for depth */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 62, 76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 62, 76,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 70%);
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px; } }

/* two-column hero layout */
.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 0.82fr;
  gap: 56px;
  align-items: center;
}
.hero-grid .hero-inner { max-width: none; }

/* quick-request glass card */
.hero-card {
  background: rgba(var(--bg-rgb), 0.55);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
}
.hero-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.hero-card .card-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.seg {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(16, 62, 76, 0.05);
  border-radius: 100px;
  margin-bottom: 16px;
}
.seg button {
  flex: 1;
  padding: 11px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.seg button.active {
  background: var(--accent);
  color: var(--ink);
}
.hero-card .field { margin-bottom: 14px; }
.hero-card .field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 7px;
}
.hero-card .input { padding: 14px 16px; font-size: 0.92rem; }
.hero-card .btn { width: 100%; margin-top: 6px; }
.hero-card .card-note,
.card-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.5;
}
.card-note a { color: var(--accent); text-decoration: underline; }
.card-note a:hover { color: var(--accent-deep); }
.footer-bottom a { color: var(--text-mute); text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent); }

/* Feature strip (bottom of hero) */
.features-strip {
  position: relative;
  padding: 60px 0;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.feature-text p {
  font-size: 0.88rem;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ============================================================
   SECTIONS / GENERIC
   ============================================================ */

.section {
  padding: 120px 0;
  position: relative;
}

.section-sm {
  padding: 80px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 60px;
}

.section-head h2 {
  max-width: 700px;
}

.section-head .lead {
  color: var(--text-dim);
  max-width: 440px;
  font-size: 1rem;
}

/* ============================================================
   DIRECTIONS (home)
   ============================================================ */

.directions {
  background: var(--bg-1);
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.direction-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  isolation: isolate;
}

.direction-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.direction-card::after {
  content: '';
  position: absolute;
  inset: 0;
  /* light, only at the very bottom — keeps the photo clear, just enough for text */
  background: linear-gradient(180deg, rgba(8, 30, 38, 0) 48%, rgba(8, 30, 38, 0.72) 100%);
  z-index: 1;
}

.direction-body {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 2;
}

.direction-body .label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
  display: block;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.direction-body h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.direction-body p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
  max-width: 90%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.direction-body .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
}

.direction-card:hover img {
  transform: scale(1.08);
}

.direction-card:hover .arrow-link {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

/* ============================================================
   WHY US GRID
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 40px 34px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.why-card:hover::before { opacity: 1; }

.why-card > * { position: relative; }

.why-num {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  display: block;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.why-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ============================================================
   PROCESS ("Как мы работаем")
   ============================================================ */

.process {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 36px 30px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.process-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.process-step p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ============================================================
   PARALLAX SHOWCASE
   ============================================================ */

.showcase {
  height: 70vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: -1;
  will-change: transform;
}

.showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--bg-rgb),0.7), rgba(var(--bg-rgb),0.3), rgba(var(--bg-rgb),0.9));
}

.showcase-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
}

.showcase-inner h2 {
  margin-bottom: 20px;
}

.showcase-inner p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 34px;
}

/* ============================================================
   CTA BLOCK
   ============================================================ */

.cta {
  padding: 100px 0;
  background: var(--bg-1);
}

.cta-inner {
  padding: 80px 60px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb), 0.15), transparent 50%),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  max-width: 640px;
  margin-bottom: 12px;
}

.cta-inner p {
  color: var(--text-dim);
  max-width: 500px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 80px 0 40px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin-top: 20px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--text-mute);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */

.page-header {
  padding: 180px 0 80px;
  background:
    radial-gradient(ellipse at top, rgba(var(--accent-rgb), 0.06), transparent 60%),
    var(--bg-0);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-bottom: 24px;
}

.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs .sep {
  margin: 0 10px;
  opacity: 0.5;
}

.page-header h1 {
  margin-bottom: 20px;
  max-width: 780px;
}

.page-header .lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 620px;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: var(--shadow-soft);
}

.service-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.service-card:hover .service-media img {
  transform: scale(1.06);
}

.service-body {
  padding: 30px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 22px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.service-link .arrow {
  transition: transform 0.35s var(--ease);
}

.service-card:hover .service-link .arrow { transform: translateX(4px); }

/* Stats block */
.stats {
  background: var(--bg-1);
}

.stats-inner {
  padding: 80px 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
}

.stats-inner h2 {
  text-align: center;
  margin-bottom: 60px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-num {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ============================================================
   DOCUMENTS PAGE
   ============================================================ */

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: flex-start;
}

.docs-nav {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: sticky;
  top: 100px;
}

.docs-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav button {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.docs-nav button:hover {
  color: var(--text);
  background: rgba(16, 62, 76, 0.03);
}

.docs-nav button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doc-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.doc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.doc-preview {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.doc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-body {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-body h4 {
  font-size: 1rem;
  font-weight: 600;
}

.doc-body .doc-meta {
  color: var(--text-mute);
  font-size: 0.8rem;
  margin-top: 4px;
}

.doc-download {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}

a.doc-download:hover {
  background: var(--accent);
  color: var(--ink);
}

.doc-download.is-empty {
  background: rgba(16, 62, 76, 0.04);
  color: var(--text-mute);
  cursor: not-allowed;
}

.doc-preview { display: block; }

/* ============================================================
   SCHEDULE PAGE
   ============================================================ */

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 40px;
}

.tab {
  padding: 12px 30px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}

.tab.active {
  background: var(--accent);
  color: var(--ink);
}

.schedule-table {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: rgba(16, 62, 76, 0.02);
  padding: 22px 30px;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr {
  transition: background 0.3s var(--ease);
}

tbody tr:hover {
  background: rgba(16, 62, 76, 0.02);
}

.route-cell {
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-days {
  background: rgba(16, 62, 76, 0.05);
  color: var(--text);
}

.schedule-note {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.schedule-note svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   CONTACTS PAGE
   ============================================================ */

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-card h3 {
  margin-bottom: 30px;
  font-size: 1.3rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-list .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.contact-list .value {
  font-size: 1.02rem;
  color: var(--text);
  font-weight: 500;
}

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  min-height: 460px;
  position: relative;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  filter: grayscale(0.4) invert(0.9) hue-rotate(180deg);
}

/* Form */
.form-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.form-content {
  padding: 60px;
}

.form-content h2 {
  margin-bottom: 12px;
}

.form-content > p {
  color: var(--text-dim);
  margin-bottom: 34px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form .full { grid-column: 1 / -1; }

.input,
.textarea {
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  resize: none;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-mute);
}

.textarea { min-height: 130px; }

/* honeypot: скрыто от людей, ловит ботов */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-image {
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.form-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* directional / scale variants for gentle variety */
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.94); }

.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }
.reveal-delay-4 { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.feature-icon svg,
.contact-icon svg {
  transition: transform 0.4s var(--ease);
}

.feature:hover .feature-icon svg {
  animation: floatIcon 1.6s ease-in-out infinite;
}

/* Trust logos */
.trust {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.trust-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: center;
  margin-bottom: 30px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--text-mute);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.trust-item:hover { color: var(--text-dim); }

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ============================================================
   INTRO SPLIT ("О компании")
   ============================================================ */

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.4;
  box-shadow: var(--shadow-strong);
}
.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.intro-media:hover img { transform: scale(1.05); }

/* floating stat chip on the image */
.intro-chip {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 20px 26px;
  border-radius: 18px;
  background: rgba(var(--bg-rgb), 0.72);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.intro-chip .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.intro-chip .lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.intro-body h2 { margin-bottom: 22px; }
.intro-body > p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 30px;
  line-height: 1.7;
}

.intro-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}
.intro-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.98rem;
}
.intro-list .tick {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ============================================================
   QUOTE / TESTIMONIAL BAND
   ============================================================ */

.quote {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.08), transparent 55%),
    var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-size: 4rem;
  line-height: 0.5;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: 20px;
  display: block;
}
.quote-text {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 34px;
}
.quote-author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.quote-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.quote-author .who { text-align: left; }
.quote-author .who strong { display: block; font-size: 1rem; }
.quote-author .who span { font-size: 0.85rem; color: var(--text-mute); }

/* ============================================================
   FLEET GALLERY
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(var(--bg-rgb), 0.7));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease);
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ============================================================
   VIDEO MODAL (showreel)
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  width: min(960px, 100%);
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease-out);
}
.modal.open .modal-box { transform: scale(1); }
.modal-box video,
.modal-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(16, 62, 76, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}
.modal-close:hover { background: var(--accent); color: var(--ink); }

/* ============================================================
   SCHEDULE HIGHLIGHTS
   ============================================================ */
.sched-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.sched-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.sched-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.sched-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.sched-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sched-card:hover .sched-media img { transform: scale(1.05); }
.sched-eta {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent); color: var(--ink);
  padding: 8px 15px; border-radius: 100px;
  font-weight: 700; font-size: 0.82rem;
  box-shadow: var(--shadow-gold);
}
.sched-freq {
  position: absolute; top: 16px; left: 16px;
  background: rgba(var(--bg-rgb), 0.9); color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 15px; border-radius: 100px;
  font-weight: 700; font-size: 0.82rem;
  backdrop-filter: blur(6px);
}
.sched-body { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.sched-details {
  list-style: none; display: grid; gap: 9px; margin: 0 0 22px;
}
.sched-details li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: var(--text-dim); line-height: 1.45;
}
.sched-details li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.sched-badge {
  display: inline-block; align-self: flex-start;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.sched-body h3 { font-size: 1.4rem; margin-bottom: 12px; }
.sched-body p { color: var(--text-dim); margin-bottom: 18px; }
.sched-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  color: var(--accent); font-weight: 600; font-size: 0.95rem;
}
.sched-card:hover .sched-link .arrow { transform: translateX(4px); }

/* ============================================================
   WAREHOUSE (contacts)
   ============================================================ */
.warehouse {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
}
.warehouse-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.warehouse-head .eyebrow { margin-bottom: 4px; }
.warehouse-head h3 { font-size: 1.25rem; }
.warehouse-instruction { color: var(--text-dim); max-width: 720px; margin-bottom: 22px; line-height: 1.7; }
.warehouse-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.warehouse-coords {
  font-size: 0.92rem; color: var(--text-mute);
  background: var(--bg-0); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px;
}

/* ---- Legal / privacy page ---- */
.legal { max-width: 820px; }
.legal > p { color: var(--text-dim); margin-bottom: 18px; line-height: 1.75; }
.legal h3 { font-size: 1.2rem; margin: 34px 0 12px; }
.legal-list { list-style: none; display: grid; gap: 10px; margin-bottom: 8px; }
.legal-list li {
  position: relative; padding-left: 22px; color: var(--text-dim); line-height: 1.6;
}
.legal-list li::before {
  content: ''; position: absolute; left: 2px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.legal-list strong { color: var(--text); font-weight: 600; }
.legal-req {
  margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.legal-req > div { background: var(--bg-2); padding: 16px 20px; }
.legal-req span { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 5px; }
.legal-req strong { font-weight: 600; font-size: 0.92rem; word-break: break-word; }

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.review-stars { color: #f2b544; letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.review-text { color: var(--text-dim); line-height: 1.6; margin-bottom: 22px; flex: 1; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-author .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: var(--ink); display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.review-author .who strong { display: block; font-size: 0.98rem; }
.review-author .who span { font-size: 0.85rem; color: var(--text-mute); }

.review-form-wrap {
  margin-top: 34px;
  max-width: 720px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 36px 38px;
}
.review-form-wrap h3 { margin-bottom: 18px; font-size: 1.25rem; }
.review-form { display: grid; gap: 14px; }
.review-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review-form .textarea { min-height: 110px; }
.review-form .btn { justify-self: start; }

/* ---- Cookie consent ---- */
.cookie-bar {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 300;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.cookie-bar.show { transform: translateY(0); opacity: 1; }
.cookie-text { flex: 1; min-width: 240px; font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions .btn { padding: 12px 24px; }
.btn-soft {
  background: transparent; border: 1px solid var(--border-strong); color: var(--text);
}
.btn-soft:hover { border-color: var(--accent); color: var(--accent); }

/* ---- ЭДО callout (services) ---- */
.edo-block {
  margin-top: 28px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.10), transparent 55%),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
}
.edo-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.edo-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 6px 0 12px; }
.edo-body > p { color: var(--text-dim); max-width: 760px; margin-bottom: 18px; }
.edo-id {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.edo-id-label { font-size: 0.85rem; color: var(--text-mute); font-weight: 600; }
.edo-id-value {
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--accent-deep);
  word-break: break-all;
}
.edo-note { font-size: 0.85rem; color: var(--text-mute); margin-top: 14px; }

/* ---- Contacts: banner-style lead card ---- */
.lead-card {
  max-width: 720px;
  margin: 44px auto 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 46px 48px 50px;
  box-shadow: var(--shadow-soft);
}
.lead-card-head { text-align: center; margin-bottom: 28px; }
.lead-card-head .eyebrow { margin-bottom: 12px; }
.lead-card-head h2 { margin-bottom: 12px; }
.lead-card-sub { color: var(--text-dim); max-width: 500px; margin: 0 auto; }
.lead-card .form .seg { margin-bottom: 4px; }

/* intro registry link */
.intro-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.intro-doclink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: 0.92rem;
}
.intro-doclink:hover { color: var(--accent-deep); }

.footer-reg { color: var(--text-mute); font-size: 0.82rem; margin-top: 14px; line-height: 1.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Hide phone earlier to keep the nav from crowding */
@media (max-width: 1160px) {
  .header-phone { display: none; }
  .header-inner { gap: 18px; }
  .nav a { padding: 10px 14px; }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .contacts-layout { grid-template-columns: 1fr; }
  .form-block { grid-template-columns: 1fr; }
  .form-image { display: none; }
  .form-content { padding: 44px; }
  .cta-inner { padding: 60px 44px; text-align: center; justify-content: center; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  /* minmax(0,...) lets the track shrink below content so the pills row can scroll
     instead of stretching the whole page sideways */
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .docs-nav { position: static; background: transparent; border: none; padding: 0; min-width: 0; max-width: 100%; }
  .docs-nav ul {
    flex-direction: row; flex-wrap: nowrap; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 8px; scrollbar-width: none; padding-bottom: 4px;
  }
  .docs-nav ul::-webkit-scrollbar { display: none; }
  .docs-nav li { flex: 0 0 auto; }
  .docs-nav button {
    width: auto; white-space: nowrap; padding: 10px 16px;
    border: 1px solid var(--border); border-radius: 100px; background: var(--bg-2);
  }
  .docs-grid { min-width: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-media { aspect-ratio: 16/10; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 2; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
}

/* ---- Performance: lighten heavy effects on tablets/phones ---- */
@media (max-width: 1024px) {
  /* blur(70px) auroras are the main cause of scroll jank on mobile GPUs */
  .hero-aurora { filter: blur(48px); opacity: 0.4; }
  .hero-grid-lines { display: none; }
  /* horizontal slide-in transforms push offscreen elements past the right
     edge → phantom horizontal scroll. Use a vertical reveal on narrow screens. */
  .reveal-left, .reveal-right { transform: translateY(30px); }
}

@media (max-width: 900px) {
  /* drop the animated hero layers entirely — keeps the photo, kills the lag */
  .hero-anim { display: none; }
  /* parallax transforms are cleared by JS too, but guard here as well */
  .hero-bg, .showcase img { transform: none !important; }
}

/* Respect users who ask for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-anim, .scroll-cue { display: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---- Switch to burger menu ---- */
@media (max-width: 900px) {
  .nav,
  .header-cta { display: none; }

  .burger { display: flex; }

  .nav.mobile-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(var(--bg-rgb), 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    box-shadow: 0 24px 40px rgba(16, 62, 76, 0.16);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.mobile-open a {
    padding: 15px 18px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .nav.mobile-open a.active::before { display: none; }
  .nav-cta {
    display: block;
    margin-top: 12px;
    text-align: center;
    background: var(--accent) !important;
    color: var(--ink) !important;
    font-weight: 600;
  }
  .nav-phone {
    display: block;
    margin-top: 4px;
    text-align: center;
    color: var(--accent) !important;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section { padding: 76px 0; }
  .hero { min-height: 90vh; padding: 116px 0 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-play { justify-content: center; }
  .hero-metrics { gap: 28px; margin-top: 40px; }
  .scroll-cue { display: none; }
  .quote { padding: 80px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }
  .intro-chip { left: 16px; bottom: 16px; padding: 16px 20px; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .directions-grid { grid-template-columns: 1fr; }
  .direction-card { aspect-ratio: 3/4; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .doc-body { padding: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .doc-body .doc-download { align-self: flex-end; }
  .process-grid { grid-template-columns: 1fr; }
  .sched-grid { grid-template-columns: 1fr; }
  .lead-card { padding: 30px 22px 34px; margin-top: 32px; }
  .edo-block { flex-direction: column; gap: 18px; padding: 26px 22px; }
  .legal-req { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; }
  .review-form-wrap { padding: 26px 22px 30px; }
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 14px; left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
  .warehouse { padding: 26px 22px; }
  .warehouse-meta { flex-direction: column; align-items: stretch; }
  .warehouse-meta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .form-content { padding: 32px 24px; }
  .cta-inner { padding: 44px 26px; }
  .stats-inner { padding: 48px 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .page-header { padding: 130px 0 56px; }
  .direction-body { left: 24px; right: 24px; bottom: 24px; }
  .contact-card { padding: 28px 24px; }
  thead th, tbody td { padding: 16px 16px; font-size: 0.85rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .doc-body { flex-direction: row; align-items: center; }
}
