﻿:root {
  --bg: #070a12;
  --bg-soft: #0e1424;
  --card: #121a2e;
  --text: #e8edff;
  --muted: #94a3c8;
  --primary: #6b8cff;
  --primary-deep: #4a6cf5;
  --accent: #3dd8b8;
  --border: #1e2a45;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(107, 140, 255, 0.12), 0 12px 40px rgba(74, 108, 245, 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  /* Появление блоков при скролле: быстрый «выход» из кадра без резкого конца */
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(107, 140, 255, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #04070e;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, rgba(7, 10, 18, 0.15), rgba(7, 10, 18, 0.7) 72%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.5) 0%, rgba(7, 10, 18, 0.82) 65%, rgba(7, 10, 18, 0.95) 100%);
}

.hero-video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.028) 0 2px,
      transparent 2px 24px
    ),
    linear-gradient(
      180deg,
      rgba(7, 10, 18, 0.2) 0%,
      rgba(7, 10, 18, 0.58) 52%,
      rgba(7, 10, 18, 0.86) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.42;
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -85px;
  width: min(1100px, 130%);
  height: 260px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(61, 216, 184, 0.18) 0%, rgba(61, 216, 184, 0) 66%),
    repeating-linear-gradient(
      90deg,
      rgba(107, 140, 255, 0.1) 0 1px,
      transparent 1px 26px
    );
  clip-path: polygon(7% 100%, 33% 58%, 43% 58%, 51% 68%, 57% 68%, 63% 52%, 77% 52%, 93% 100%);
  filter: drop-shadow(0 -24px 52px rgba(74, 108, 245, 0.25));
  animation: roadPulse 7.2s var(--ease-out) infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 120vh;
  background:
    radial-gradient(circle at 20% 30%, rgba(61, 216, 184, 0.22), transparent 32%),
    radial-gradient(circle at 80% 28%, rgba(107, 140, 255, 0.38), transparent 36%),
    radial-gradient(circle at 50% 82%, rgba(107, 140, 255, 0.18), transparent 42%);
  filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 8% -8% auto -8%;
  height: 320px;
  background:
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(107, 140, 255, 0.3) 46%,
      rgba(61, 216, 184, 0.14) 56%,
      rgba(0, 0, 0, 0) 76%
    );
  transform: rotate(-6deg) translateX(-24%);
  filter: blur(2px);
  opacity: 0.78;
  animation: sweepBeam 9s ease-in-out infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 14% 8% auto auto;
  width: clamp(220px, 30vw, 420px);
  height: clamp(220px, 30vw, 420px);
  border-radius: 50%;
  border: 1px solid rgba(107, 140, 255, 0.25);
  box-shadow:
    inset 0 0 0 1px rgba(61, 216, 184, 0.08),
    0 0 0 12px rgba(107, 140, 255, 0.045),
    0 0 80px rgba(74, 108, 245, 0.22);
  opacity: 0.58;
  animation: hudPulse 5.4s ease-in-out infinite;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(6, 8, 14, 0.65);
  backdrop-filter: blur(4px);
}

body.nav-open {
  overflow: hidden;
}

/* Оверлей fixed с z-index — без z-index у hero весь header оказывается НИЖЕ оверлея, и виден только «мутный» слой. */
body.nav-open .hero {
  position: relative;
  z-index: 35;
}

body.nav-open .nav-overlay {
  display: block;
}

@keyframes drift {
  from { transform: translateY(-10px) scale(1); }
  to { transform: translateY(16px) scale(1.07); }
}

@keyframes sweepBeam {
  0% {
    transform: rotate(-7deg) translateX(-35%);
    opacity: 0.2;
  }
  40% {
    opacity: 0.9;
  }
  60% {
    transform: rotate(-6deg) translateX(6%);
    opacity: 0.75;
  }
  100% {
    transform: rotate(-5deg) translateX(42%);
    opacity: 0.15;
  }
}

@keyframes hudPulse {
  0%, 100% {
    transform: scale(0.97);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.72;
  }
}

@keyframes roadPulse {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.68;
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
    opacity: 0.95;
  }
}

.nav {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding: 0.42rem 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow:
    0 4px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.28s var(--ease-spring),
    border-color 0.25s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}

.logo:hover .logo-mark {
  transform: scale(1.04);
  border-color: rgba(107, 140, 255, 0.42);
  box-shadow:
    0 8px 32px rgba(74, 108, 245, 0.22),
    0 0 0 1px rgba(61, 216, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo-text {
  display: inline-block;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.28rem, 3.8vw, 1.52rem);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(118deg, #e8edff 0%, var(--primary) 38%, var(--primary-deep) 62%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.menu a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease-out);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
  opacity: 0.9;
}

.menu a:hover {
  color: var(--text);
}

.menu a:hover::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.burger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(107, 140, 255, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.burger:active {
  transform: translateY(0) scale(0.96);
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 760px;
  padding: 84px 0 106px;
}

.hero-content > * {
  animation: heroIn 0.75s var(--ease-out) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.18s; }
.hero-content > *:nth-child(4) { animation-delay: 0.24s; }
.hero-content > *:nth-child(5) { animation-delay: 0.3s; }

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 16px;
  border: 1px solid rgba(107, 140, 255, 0.25);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 24px 0 34px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease-spring),
    box-shadow 0.22s var(--ease-out),
    filter 0.2s var(--ease-out),
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    color 0.2s var(--ease-out);
}

.btn:focus-visible {
  outline: 2px solid rgba(107, 140, 255, 0.65);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 45%, #8aa4ff 100%);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(107, 140, 255, 0.2),
    0 16px 44px rgba(74, 108, 245, 0.35);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary--subtle {
  color: var(--muted);
}

.btn-secondary--subtle:hover {
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 140, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.hero-meta {
  margin: 16px 0 0;
  color: color-mix(in srgb, var(--muted) 88%, white 12%);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 26px;
  letter-spacing: -0.02em;
  position: relative;
  display: block;
}

h2::after {
  content: "";
  display: block;
  margin-top: 10px;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.85;
}

.section-note {
  margin: -4px 0 22px;
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 42%), var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 140, 255, 0.28);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(107, 140, 255, 0.08);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.advantages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.advantages > div {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%), rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.advantages > div:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 216, 184, 0.22);
  box-shadow: var(--shadow-md);
}

.advantages h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.advantages p {
  margin: 0;
  color: var(--muted);
}

.reviews-faq-video-band {
  position: relative;
  overflow: hidden;
}

.reviews-faq-video-band > section {
  position: relative;
  z-index: 1;
}

.reviews-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.reviews-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.reviews-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 18, 0.88) 0%, rgba(10, 12, 18, 0.82) 40%, rgba(10, 12, 18, 0.9) 100%),
    radial-gradient(ellipse 120% 80% at 50% 40%, rgba(10, 12, 18, 0.35) 0%, rgba(10, 12, 18, 0.75) 100%);
}

.reviews-bg-content {
  position: relative;
  z-index: 1;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

details:hover {
  border-color: rgba(107, 140, 255, 0.22);
  box-shadow: var(--shadow-md);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.hours-block {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-sm);
  max-width: max-content;
}

.hours-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.hours-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: baseline;
}

.hours-days {
  color: var(--muted);
  font-weight: 500;
}

.hours-time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hours-time-off {
  font-weight: 500;
  color: var(--muted);
}

.reviews-2gis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 45%), var(--card);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.reviews-2gis:hover {
  border-color: rgba(107, 140, 255, 0.22);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(107, 140, 255, 0.06);
}

.reviews-rating {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.reviews-lead {
  margin: 14px 0 8px;
  color: var(--muted);
}

.reviews-meta {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.reviews-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.map-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 330px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}

.map-wrap:hover {
  border-color: rgba(107, 140, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
}

.floating {
  position: fixed;
  right: 20px;
  z-index: 38;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-out);
}

.floating:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}

.floating:active {
  transform: scale(0.96);
}

.floating-wa { bottom: 20px; background: linear-gradient(145deg, #2fe078, #1faa55); }
.floating-tg { bottom: 78px; background: linear-gradient(145deg, #4dc3ff, #1e9fe6); }

.floating-icon {
  width: 24px;
  height: 24px;
  color: #fff;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  gap: 18px;
  text-align: center;
}

.footer-title {
  font-size: 1.05rem;
}

.footer-tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s var(--ease-spring),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}

.footer-icon svg {
  display: block;
}

.footer-icon:hover {
  color: var(--text);
  border-color: rgba(107, 140, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.footer-icon:active {
  transform: translateY(0) scale(0.96);
}

.footer-icon--ig:hover {
  border-color: rgba(228, 64, 95, 0.45);
  color: #f7778a;
}

.footer-icon--2gis:hover {
  border-color: rgba(255, 152, 0, 0.45);
  color: #ffb74d;
}

.footer-2gis-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0b111f;
  background: #7ddc3a;
}

.footer-icon--2gis-brand {
  width: 58px;
}

.footer-icon--2gis-brand:hover {
  border-color: rgba(125, 220, 58, 0.55);
  color: inherit;
}

.footer-icon--2gis-brand:hover .footer-2gis-badge {
  filter: brightness(1.08);
}

.footer-icon--wa:hover {
  border-color: rgba(38, 211, 103, 0.45);
  color: #4be080;
}

.footer-icon--tg:hover {
  border-color: rgba(42, 171, 238, 0.45);
  color: #5cc8ff;
}

.footer-icon--top:hover {
  border-color: rgba(61, 216, 184, 0.4);
  color: var(--accent);
}

.mobile-quickbar {
  display: none;
}

/* После появления футера в зоне видимости — иконки по очереди слева направо */
html.motion-ok footer.footer .footer-links .footer-icon {
  opacity: 0;
  transform: translate3d(-18px, 0, 0);
  transition:
    opacity 0.62s var(--ease-reveal),
    transform 0.72s var(--ease-spring),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}

html.motion-ok footer.footer.is-visible .footer-links .footer-icon {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.motion-ok footer.footer.is-visible .footer-links .footer-icon:nth-child(1) {
  transition-delay: 0.16s;
}
html.motion-ok footer.footer.is-visible .footer-links .footer-icon:nth-child(2) {
  transition-delay: 0.32s;
}
html.motion-ok footer.footer.is-visible .footer-links .footer-icon:nth-child(3) {
  transition-delay: 0.48s;
}
html.motion-ok footer.footer.is-visible .footer-links .footer-icon:nth-child(4) {
  transition-delay: 0.64s;
}
html.motion-ok footer.footer.is-visible .footer-links .footer-icon:nth-child(5) {
  transition-delay: 0.8s;
}
html.motion-ok footer.footer.is-visible .footer-links .footer-icon:nth-child(6) {
  transition-delay: 0.96s;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .footer-copy {
    grid-column: 1 / -1;
    text-align: center;
  }
}

.chatbot-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 37;
  background: rgba(6, 8, 14, 0.48);
  backdrop-filter: blur(3px);
}

body.chatbot-open .chatbot-backdrop {
  display: block;
}

.chatbot {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 39;
}

.chatbot-toggle {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), #8b6fff);
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-out);
}

.chatbot-toggle:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(107, 140, 255, 0.2);
}

.chatbot-toggle:active {
  transform: scale(0.96);
}

.chatbot-toggle.chatbot-toggle--image,
.chatbot-toggle--image {
  font-size: 0;
  padding: 0;
  overflow: hidden;
  background: #1f2c34;
}

.chatbot-toggle-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 10px auto;
}

.chatbot-panel {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: min(380px, 92vw);
  background: #0b141a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 24px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.chatbot-header {
  padding: 11px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(180deg, #075e54 0%, #064942 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.chatbot-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px 14px;
  max-height: min(52vh, 380px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #0b141a;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chatbot-row {
  display: flex;
  width: 100%;
}

.chatbot-row--user {
  justify-content: flex-end;
}

.chatbot-row--bot {
  justify-content: flex-start;
}

.chatbot-bubble {
  max-width: 84%;
  padding: 8px 12px 9px;
  border-radius: 12px;
  font-size: 0.94rem;
  line-height: 1.42;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* Клиент справа, бот слева (как исходящие / входящие в мессенджере) */
.chatbot-bubble--user {
  background: #005c4b;
  color: #e9edef;
  border-radius: 12px 4px 12px 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.chatbot-bubble--bot {
  background: #202c33;
  color: #e9edef;
  border-radius: 4px 12px 12px 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.quick-questions button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.86rem;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-spring);
}

.quick-questions button:hover {
  border-color: rgba(107, 140, 255, 0.35);
  color: var(--text);
  transform: translateY(-1px);
}

.chatbot-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #1f2c34;
}

.chatbot-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chatbot-attach {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(233, 237, 239, 0.85);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.15s var(--ease-spring);
}

.chatbot-attach:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.chatbot-attach[data-has-photo] {
  background: rgba(0, 168, 132, 0.28);
  color: #b8f5e8;
}

.chatbot-attach:active {
  transform: scale(0.96);
}

.chatbot-attach-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.chatbot-bubble-media {
  display: block;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 4px;
}

.chatbot-bubble-media--video {
  background: #000;
  max-height: 200px;
}

.chatbot-bubble-text {
  white-space: pre-wrap;
}

.chatbot-form .chatbot-input {
  flex: 1;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 168px;
  border: 0;
  background: #2a3942;
  color: #e9edef;
  padding: 10px 14px;
  margin: 0;
  border-radius: 20px;
  /* iOS Safari: меньше 16px даёт авто-зум при фокусе и «залипание» масштаба */
  font-size: 16px;
  font-family: inherit;
  line-height: 1.35;
  resize: none;
  overflow-y: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.chatbot-form .chatbot-input::placeholder {
  color: rgba(233, 237, 239, 0.45);
}

.chatbot-form .chatbot-input:focus {
  box-shadow: 0 0 0 1px rgba(0, 168, 132, 0.45);
}

.chatbot-form .chatbot-send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-spring);
}

.chatbot-form .chatbot-send-icon {
  width: 22px;
  height: 22px;
  display: block;
  margin-inline-start: 2px;
  margin-block-end: 1px;
}

.chatbot-form .chatbot-send:hover {
  background: #06c59a;
}

.chatbot-form .chatbot-send:active {
  transform: scale(0.96);
}

html.motion-ok main > section,
html.motion-ok .reviews-faq-video-band > section,
html.motion-ok footer.footer {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.97);
  transition:
    opacity 0.98s var(--ease-reveal),
    transform 1.02s var(--ease-reveal);
}

html.motion-ok main > section.is-visible,
html.motion-ok .reviews-faq-video-band > section.is-visible,
html.motion-ok footer.footer.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Каскад внутри секции после появления блока */
html.motion-ok main > section > .container > h2,
html.motion-ok main .reviews-faq-video-band > section > .container > h2,
html.motion-ok main > section > .container > .section-note,
html.motion-ok main > section .contacts-grid > div {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.96);
  transition:
    opacity 0.74s var(--ease-reveal),
    transform 0.86s var(--ease-spring);
}

html.motion-ok main > section .card {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.9);
  transition:
    opacity 0.72s var(--ease-reveal),
    transform 0.86s var(--ease-spring),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

html.motion-ok main > section .advantages > div {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.92);
  transition:
    opacity 0.68s var(--ease-reveal),
    transform 0.82s var(--ease-spring),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

html.motion-ok main .reviews-faq-video-band > section .reviews-2gis {
  opacity: 0;
  transform: translate3d(0, 44px, 0) scale(0.94);
  transition:
    opacity 0.74s var(--ease-reveal),
    transform 0.9s var(--ease-spring),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

html.motion-ok main .reviews-faq-video-band > section .faq-list details {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.97);
  transition:
    opacity 0.66s var(--ease-reveal),
    transform 0.8s var(--ease-spring),
    border-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

html.motion-ok main > section.is-visible > .container > h2,
html.motion-ok main .reviews-faq-video-band > section.is-visible > .container > h2,
html.motion-ok main > section.is-visible > .container > .section-note,
html.motion-ok main > section.is-visible .card,
html.motion-ok main > section.is-visible .advantages > div,
html.motion-ok main .reviews-faq-video-band > section.is-visible .reviews-2gis,
html.motion-ok main .reviews-faq-video-band > section.is-visible .faq-list details,
html.motion-ok main > section.is-visible .contacts-grid > div {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

html.motion-ok main > section.is-visible > .container > h2,
html.motion-ok main .reviews-faq-video-band > section.is-visible > .container > h2 {
  transition-delay: 0.14s;
}

html.motion-ok main > section.is-visible > .container > .section-note {
  transition-delay: 0.26s;
}

html.motion-ok main > section.is-visible .cards .card:nth-child(1) {
  transition-delay: 0.18s;
}
html.motion-ok main > section.is-visible .cards .card:nth-child(2) {
  transition-delay: 0.32s;
}
html.motion-ok main > section.is-visible .cards .card:nth-child(3) {
  transition-delay: 0.46s;
}
html.motion-ok main > section.is-visible .cards .card:nth-child(4) {
  transition-delay: 0.6s;
}
html.motion-ok main > section.is-visible .cards .card:nth-child(5) {
  transition-delay: 0.74s;
}
html.motion-ok main > section.is-visible .cards .card:nth-child(6) {
  transition-delay: 0.88s;
}

html.motion-ok main > section.is-visible .advantages > div:nth-child(1) {
  transition-delay: 0.18s;
}
html.motion-ok main > section.is-visible .advantages > div:nth-child(2) {
  transition-delay: 0.34s;
}
html.motion-ok main > section.is-visible .advantages > div:nth-child(3) {
  transition-delay: 0.5s;
}
html.motion-ok main > section.is-visible .advantages > div:nth-child(4) {
  transition-delay: 0.66s;
}

html.motion-ok main .reviews-faq-video-band > section.is-visible .reviews-2gis {
  transition-delay: 0.22s;
}

html.motion-ok main .reviews-faq-video-band > section.is-visible .faq-list details:nth-child(1) {
  transition-delay: 0.18s;
}
html.motion-ok main .reviews-faq-video-band > section.is-visible .faq-list details:nth-child(2) {
  transition-delay: 0.34s;
}
html.motion-ok main .reviews-faq-video-band > section.is-visible .faq-list details:nth-child(3) {
  transition-delay: 0.5s;
}

html.motion-ok main .reviews-faq-video-band > section.is-visible .faq-list details:nth-child(4) {
  transition-delay: 0.66s;
}

html.motion-ok main > section.is-visible .contacts-grid > div:nth-child(1) {
  transition-delay: 0.2s;
}
html.motion-ok main > section.is-visible .contacts-grid > div:nth-child(2) {
  transition-delay: 0.4s;
}

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-grid { grid-template-columns: 1fr; }
  .reviews-2gis { grid-template-columns: 1fr; }
  .hero-video { object-position: 56% center; }
}

@media (max-width: 768px) {
  /* Высота блока ≈ 16:9 кадр по ширине экрана + место под шапку и контент (без лишнего «столба» как у 82vh + contain) */
  .hero {
    min-height: calc(56.25vw + clamp(280px, 36vh, 420px));
  }

  .hero-media {
    background: #04070e;
  }

  .hero-video {
    object-fit: contain;
    object-position: center center;
  }

  .burger { display: inline-grid; place-items: center; }

  .menu {
    display: none;
    position: absolute;
    top: 74px;
    right: 0;
    z-index: 50;
    background: #0d1322;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    width: 220px;
  }

  .menu.open {
    display: flex;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
  }

  .hero-content {
    padding-top: 28px;
    padding-bottom: 74px;
  }

  h1 {
    font-size: clamp(1.82rem, 9vw, 2.3rem);
  }

  .lead {
    font-size: 1rem;
    margin: 16px 0 24px;
  }

  .cta-row {
    gap: 10px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .cards,
  .advantages { grid-template-columns: 1fr; }

  .chatbot {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 80px; /* выше .mobile-quickbar, без круглой кнопки */
  }

  .chatbot-toggle {
    display: none;
  }

  .chatbot-panel {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .mobile-quickbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 36;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 200, 0.24);
    border-radius: 16px;
    background: rgba(10, 14, 24, 0.82);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
  }

  .mobile-quickbar-btn {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-quickbar-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  }

  .mobile-quickbar-btn--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 200, 0.26);
  }

  /* Высокая полоса + узкий экран: cover сильно «зумит» кадр — показываем ролик целиком без искажения пропорций */
  .reviews-bg-media {
    background: #080a10;
  }

  .reviews-bg-video {
    object-fit: contain;
    object-position: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg {
    animation: none;
  }

  .hero::after,
  .hero-bg::before,
  .hero-bg::after {
    animation: none !important;
  }

  .hero-video {
    display: none;
  }

  .reviews-bg-media {
    display: none;
  }

  .hero-content > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-content {
    animation: none !important;
  }

  html.motion-ok main > section,
  html.motion-ok .reviews-faq-video-band > section,
  html.motion-ok footer.footer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  main > section > .container > h2,
  main .reviews-faq-video-band > section > .container > h2,
  main > section > .container > .section-note,
  main > section .card,
  main > section .advantages > div,
  main .reviews-faq-video-band > section .reviews-2gis,
  main .reviews-faq-video-band > section .faq-list details,
  main > section .contacts-grid > div {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  footer.footer .footer-links .footer-icon {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn,
  .card,
  .advantages > div,
  .floating,
  .chatbot-toggle,
  .quick-questions button,
  details,
  .burger {
    transition: none !important;
  }

  .btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .card:hover,
  .advantages > div:hover,
  .floating:hover,
  .chatbot-toggle:hover,
  .burger:hover {
    transform: none !important;
    filter: none !important;
  }
}
