/* TAFT — square, calm, Apple-like density without chrome clutter */
:root,
html[data-theme="light"] {
  --ink: #0b0b0b;
  --ink-2: #1a1a1a;
  --paper: #f4f4f2;
  --paper-2: #eaeae6;
  --muted: #6b6b66;
  --line: #d6d6d0;
  --accent: #1c4d8c;
  --accent-ink: #ffffff;
  --hero-fg: #f5f5f2;
  --header-bg: #000000;
  --header-fg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --nav-bg: #0b0b0b;
  --footer-bg: #0b0b0b;
  --footer-fg: rgba(245, 245, 242, 0.55);
  --invert-block: #0b0b0b;
  --invert-fg: #f5f5f2;
  --shell: 1120px;
  --pad: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --ink: #f2f2ee;
  --ink-2: #e4e4de;
  --paper: #0e0e0e;
  --paper-2: #161616;
  --muted: #9a9a94;
  --line: #2c2c2c;
  --accent: #4d8fd6;
  --accent-ink: #0b0b0b;
  --hero-fg: #f5f5f2;
  --header-bg: #000000;
  --header-fg: #ffffff;
  --surface: #1a1a1a;
  --surface-2: #141414;
  --nav-bg: #000000;
  --footer-bg: #000000;
  --footer-fg: rgba(245, 245, 242, 0.55);
  --invert-block: #161616;
  --invert-fg: #f5f5f2;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: Figtree, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  touch-action: manipulation;
}

button,
input,
textarea {
  font: inherit;
  border-radius: 0;
  touch-action: manipulation;
}

.shell {
  width: min(100% - var(--pad) * 2, var(--shell));
  margin-inline: auto;
}

/* Header — solid bar (overflow visible: mobile nav must not be clipped) */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.header.is-solid {
  background: var(--header-bg);
}

.header__inner {
  position: relative;
  z-index: 2;
  width: min(100% - var(--pad) * 2, var(--shell));
  margin-inline: auto;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}

.logo {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--header-fg);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: Figtree, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
}

.nav a:hover {
  color: #fff;
}

.header__phones {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header__phones .header__phone {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header__phone {
  color: #fff;
  text-decoration: none;
  font-family: Figtree, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.header__phone--short {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.header__phones .header__phone--short {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.header__phones:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.header__phones .header__phone:hover {
  color: #fff;
  opacity: 0.88;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--header-fg);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--header-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 160;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Hero — puzzle pair carousel */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--hero-fg);
  overflow: hidden;
  background: #0a0a0a;
}

.puzzle {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #eceae4;
}

.puzzle__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.puzzle__panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.puzzle__panel--a {
  clip-path: url(#puzzle-clip-a);
  z-index: 1;
}

.puzzle__panel--a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
}

.puzzle__panel--b {
  clip-path: url(#puzzle-clip-b);
  z-index: 6;
  background:
    radial-gradient(ellipse 90% 70% at 82% 45%, #fffcf6 0%, #f4f0e6 48%, #ebe6da 100%);
}

.puzzle__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.95s var(--ease), transform 5.5s var(--ease);
  pointer-events: none;
}

.puzzle__panel--a .puzzle__img {
  object-position: 32% center;
}

.puzzle__img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.puzzle-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.puzzle-slide {
  position: absolute;
  inset: 0;
  color: #121212;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease);
}

.puzzle-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.puzzle-slide__paint {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.puzzle-slide__blob {
  position: absolute;
  right: -4%;
  bottom: 4%;
  top: auto;
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
  background:
    radial-gradient(circle at 35% 35%, rgba(28, 77, 140, 0.14), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.05), transparent 55%);
  animation: puzzle-blob 14s ease-in-out infinite alternate;
}

.puzzle-slide__blob--2 {
  background:
    radial-gradient(circle at 40% 30%, rgba(28, 77, 140, 0.18), transparent 60%),
    radial-gradient(circle at 65% 75%, rgba(180, 90, 40, 0.08), transparent 50%);
  animation-delay: -3s;
}

.puzzle-slide__blob--3 {
  background:
    radial-gradient(circle at 45% 40%, rgba(28, 77, 140, 0.12), transparent 58%),
    radial-gradient(circle at 60% 60%, rgba(0, 0, 0, 0.04), transparent 52%);
  animation-delay: -7s;
}

.puzzle-slide__blob--cta {
  background:
    radial-gradient(circle at 40% 35%, rgba(28, 77, 140, 0.26), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(28, 77, 140, 0.1), transparent 55%);
}

@keyframes puzzle-blob {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to { transform: translate(-3%, -2%) rotate(6deg) scale(1.05); }
}

.puzzle-slide__body {
  position: absolute;
  left: auto;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(72px, 12vh, 120px);
  top: auto;
  width: min(360px, 36vw);
  max-width: 36vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.puzzle-slide__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.puzzle-slide__mark {
  position: static;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.95;
  transform: none;
}

.puzzle-slide.is-active .puzzle-slide__mark {
  transform: none;
}

.puzzle-slide__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.puzzle-slide__title {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.puzzle-slide__text {
  margin: 0;
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  line-height: 1.45;
  color: rgba(18, 18, 18, 0.72);
  max-width: 100%;
}

.puzzle-slide__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.puzzle-slide__tags li {
  padding: 7px 12px;
  border: 1px solid rgba(18, 18, 18, 0.16);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.72);
}

.puzzle-slide__phone {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #121212;
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 18, 18, 0.25);
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.puzzle-slide__phone--short {
  margin-top: 8px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.puzzle-slide__phone:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.hero-puzzle-cta {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(72px, 12vh, 120px);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(28, 77, 140, 0.28);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.hero-puzzle-cta:hover {
  background: #163f73;
  transform: translateY(-1px);
}

.hero-puzzle-cta[hidden] {
  display: none !important;
}

.puzzle__gap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.puzzle__gap-band {
  fill: #f4f4f2;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.12));
}

.puzzle__gap-edge {
  stroke: rgba(28, 77, 140, 0.35);
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
}

.puzzle__gap-edge--right {
  stroke: rgba(18, 18, 18, 0.18);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 28%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 7;
  width: min(100% - var(--pad) * 2, var(--shell));
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 0 72px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 18px;
}

.hero__brand {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(3.8rem, 14vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  max-width: 22ch;
  line-height: 1.35;
  margin-bottom: 32px;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__dots {
  position: absolute;
  z-index: 7;
  right: var(--pad);
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 28px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(18, 18, 18, 0.22);
  cursor: pointer;
}

.hero__dot.is-active {
  background: var(--accent);
}

@media (max-width: 720px) {
  :root {
    --header-h: 52px;
  }

  /* Mobile: no wave — full photo only; desktop puzzle stays */
  .puzzle {
    background: #0a0a0a;
  }

  .puzzle__panel--a {
    clip-path: none;
  }

  .puzzle__panel--a::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.15) 40%,
      rgba(0, 0, 0, 0.55) 100%
    );
  }

  .puzzle__panel--b,
  .puzzle__gap,
  .puzzle-stage,
  .hero-puzzle-cta,
  .hero__dots {
    display: none !important;
  }

  .hero {
    min-height: 78vh;
    min-height: 78dvh;
  }

  .hero__content {
    padding-bottom: 40px;
  }
}

/* Buttons — square */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: #163f73;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: #fff;
}

.btn--square {
  width: 48px;
  min-height: 48px;
  padding: 0;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.btn--square:hover {
  background: #333;
}

/* About — text + rounded stat cards on one inverted field */
.about {
  background: var(--invert-block);
  color: var(--invert-fg);
  padding: clamp(56px, 8vw, 96px) 0;
}

.about__intro {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.about__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.45;
  padding-top: 6px;
}

.about__copy {
  max-width: 40rem;
}

.about__copy p {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0 0 0.85rem;
  opacity: 0.92;
}

.about__sign {
  margin-top: 1.1rem !important;
  margin-bottom: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  opacity: 0.5 !important;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.about-stat {
  border-radius: 18px;
  padding: 22px 20px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.about-stat:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.about-stat__num {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--invert-fg);
}

.about-stat__cap {
  font-size: 0.86rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
}

/* Sections */
.section {
  padding: clamp(64px, 9vw, 104px) 0;
  background: var(--paper);
}

.section--alt {
  background: var(--paper-2);
}

.section__head {
  margin-bottom: 36px;
  max-width: 36rem;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.section__title {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.section__lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.fleet__controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Tile cards — rounded */
.tile-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.tile-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tile-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tile:hover {
  border-color: rgba(28, 77, 140, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.tile__num {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.tile__title {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tile__text {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.steps-tiles {
  margin: 0;
}

.why__block {
  margin-top: clamp(28px, 4vw, 40px);
}

.why__block + .why__block {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: clamp(36px, 5vw, 48px);
  border-top: 1px solid var(--line);
}

.why__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* Cards — service grid with real gaps */
.cards {
  display: grid;
  gap: 16px;
  background: transparent;
  border: 0;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards--services .card--service {
  min-height: 100%;
}

.card {
  background: var(--surface);
  padding: 28px 24px 32px;
  min-height: 100%;
  border: 1px solid var(--line);
}

.card--service {
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card__media {
  margin: 0 0 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.card--service:hover .card__media img {
  transform: scale(1.03);
}

.card__kicker,
.card__title,
.card__price,
.card__text {
  padding-inline: 20px;
}

.card__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-family: Figtree, sans-serif;
}

.card__title {
  font-family: Syne, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card__price {
  font-family: Syne, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card__price span {
  font-family: Figtree, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.card__text {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Fleet */
.fleet {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 2);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.fleet::-webkit-scrollbar {
  display: none;
}

.fleet__item {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
}

.fleet__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.fleet__item figcaption {
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

#contact,
#lead-form {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.form,
.contact__aside {
  background: var(--surface);
  padding: 28px;
}

.contact__photo {
  margin: -28px -28px 20px;
  border-bottom: 1px solid var(--line);
}

.contact__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 14px;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 20px;
}

.check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form {
  position: relative;
}

.check a {
  color: var(--ink);
}

.form__note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.aside-block + .aside-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.aside-block h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.aside-block p {
  font-weight: 600;
  font-size: 1.05rem;
}

.aside-block a {
  text-decoration: none;
}

.aside-block a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 40px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.footer__main {
  display: grid;
  gap: 18px;
}

.logo--foot {
  color: #fff;
  font-size: 1.1rem;
}

.footer__copy {
  font-size: 0.88rem;
  font-family: Figtree, sans-serif;
}

.footer__card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.footer__row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(245, 245, 242, 0.72);
  font-family: Figtree, sans-serif;
}

.footer__row a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.footer__ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #7eb0e8;
}

.footer__row--legal {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__link {
  font-size: 0.85rem;
  color: rgba(245, 245, 242, 0.7);
  text-decoration: none;
  font-family: Figtree, sans-serif;
}

.footer__link:hover {
  color: #fff;
}

.footer__cta {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 24px 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer__cta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.55);
  font-family: Figtree, sans-serif;
}

.footer__cta-brand {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer__cta-phone a {
  color: #fff;
  font-family: Figtree, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.footer__cta-mail a {
  color: rgba(245, 245, 242, 0.8);
  font-family: Figtree, sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--wide {
  width: 100%;
  justify-content: center;
}

.field em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(107, 107, 102, 0.85);
}

/* Floating call CTA — megaphone */
.fab-call {
  position: fixed;
  z-index: 120;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.fab-call__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.fab-call__text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fab-call__short {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.fab-call:hover {
  background: #163a6b;
}

.fab-call:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .fab-call__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .fab-call {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 0;
  }
}

/* Privacy page */
.page {
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.page h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.page .lead {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 40rem;
}

.page article {
  max-width: 42rem;
  display: grid;
  gap: 16px;
}

.page h2 {
  font-family: Syne, sans-serif;
  font-size: 1.2rem;
  margin-top: 12px;
}

.page p,
.page li {
  color: var(--muted);
}

/* —— Phone: same square grid logic, stacked columns —— */
@media (max-width: 900px) {
  .header__inner {
    grid-template-columns: 1fr auto auto auto;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 150;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* collapse grid cell — menu is viewport-fixed */
    width: 0;
    height: 0;
    margin: 0;
    border: 0;
    min-height: 0;
  }

  .nav.is-open {
    display: flex;
    width: auto;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
  }

  .nav a {
    display: block;
    padding: 16px var(--pad);
    min-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 160;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
  }

  .about__intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
  }

  .cards--3,
  .tile-grid--3,
  .tile-grid--4,
  .contact,
  .footer__layout {
    grid-template-columns: 1fr;
  }

  .contact__photo {
    margin: -28px -28px 16px;
  }

  .contact__photo img {
    aspect-ratio: 16 / 9;
    max-height: 160px;
  }

  .footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__card {
    max-width: none;
  }

  .card {
    border-right: 0;
  }

  .fleet {
    grid-auto-columns: 85%;
  }

  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__brand {
    letter-spacing: 0.08em;
    font-size: clamp(3.2rem, 18vw, 5.5rem);
  }

  .hero__content {
    padding-bottom: 96px;
  }

  .footer__copy {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .header__phones {
    padding: 5px 7px;
    gap: 5px;
  }

  .header__inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
  }

  .header__phones {
    justify-self: end;
  }

  .header__phones .header__phone {
    font-size: 0.68rem;
  }

  .header__phones .header__phone--short {
    padding-left: 7px;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding-block: 56px;
  }

  .form,
  .contact__aside {
    padding: 18px 16px;
  }

  .contact__photo {
    margin: -18px -16px 14px;
  }

  .contact__photo img {
    aspect-ratio: 2 / 1;
    max-height: 120px;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .aside-block {
    margin-bottom: 10px;
  }

  .aside-block h3 {
    margin-bottom: 2px;
  }

  .fab-call {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: max(14px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .puzzle__img {
    transition: none;
    transform: none;
  }
}

/* Gallery page */
.page--gallery {
  padding-top: calc(var(--header-h) + 40px);
}

.gallery-block {
  margin-bottom: 48px;
}

.gallery-block__title {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-back {
  margin: 24px 0 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dark theme surface polish */
html[data-theme="dark"] .tile {
  box-shadow: none;
}

html[data-theme="dark"] .tile:hover {
  box-shadow: none;
  border-color: rgba(77, 143, 214, 0.35);
}

html[data-theme="dark"] .btn--square {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .check a {
  color: var(--ink);
}
