/* ============================================================
   СТО «Арена» — стилі
   ============================================================ */

:root {
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --card: #14161a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f3f5;
  --muted: #98a0aa;
  --accent: #ff7a00;
  --accent-2: #ffb200;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 18px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Зерно поверх усього — додає «плівковості» */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #24272c; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ============================================================
   Прелоадер
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s var(--ease), visibility 0.7s;
}

.preloader.done {
  transform: translateY(-100%);
  visibility: hidden;
}

.preloader-inner { text-align: center; }

.preloader-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.preloader-wing {
  width: 58px;
  color: var(--accent);
  animation: wingIn 0.9s var(--ease) both;
}

@keyframes wingIn {
  from { opacity: 0; transform: translateX(-24px) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

.preloader-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.06em;
  display: flex;
}

.preloader-word span {
  animation: letterUp 0.6s var(--ease) both;
  animation-delay: calc(0.12s + var(--i, 0) * 0.07s);
}

.preloader-word span:nth-child(1) { --i: 0; }
.preloader-word span:nth-child(2) { --i: 1; }
.preloader-word span:nth-child(3) { --i: 2; }
.preloader-word span:nth-child(4) { --i: 3; }
.preloader-word span:nth-child(5) { --i: 4; }

@keyframes letterUp {
  from { opacity: 0; transform: translateY(0.6em); }
  to { opacity: 1; transform: none; }
}

.preloader-bar {
  width: 180px;
  height: 2px;
  background: var(--line);
  margin: 26px auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  animation: barGrow 1s 0.15s var(--ease) both;
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ============================================================
   Службові елементи
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 9999;
}

/* Кастомний курсор — лише для точних вказівників */
.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  top: -100px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

@media (pointer: fine) {
  .cursor-dot,
  .cursor-ring { display: block; }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: translate(-50%, -50%);
  }

  .cursor-ring {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(255, 122, 0, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.25s;
  }

  .cursor-ring.is-hover {
    width: 58px;
    height: 58px;
    border-color: rgba(255, 178, 0, 0.9);
  }
}

/* ============================================================
   Кнопки
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--grad);
  color: #17110a;
  box-shadow: 0 8px 28px rgba(255, 122, 0, 0.28);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
}

.btn-primary:hover::before { left: 130%; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 122, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

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

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-xl {
  padding: 20px 40px;
  font-size: clamp(17px, 2.4vw, 22px);
  font-family: var(--font-display);
  font-weight: 600;
}

.btn-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: btnPulse 2.2s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.45); }
  70% { box-shadow: 0 0 0 22px rgba(255, 122, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}

/* ============================================================
   Шапка
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: transform 0.45s var(--ease), background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
}

.header.hidden { transform: translateY(-100%); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo-wing {
  width: 44px;
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}

.logo:hover .logo-wing { transform: translateX(4px); }

.logo-text { display: flex; flex-direction: column; line-height: 1.05; }

.logo-text b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.08em;
}

.logo-text small {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--text); }

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.header-call { flex: none; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

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

/* Мобільне меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(10, 11, 13, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 8% 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.menu-open .mobile-menu { opacity: 1; visibility: visible; }

.mobile-nav { display: flex; flex-direction: column; gap: 6px; }

.mobile-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 600;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s;
}

.mobile-link:hover { color: var(--accent-2); }

.mobile-link i {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.menu-open .mobile-link {
  opacity: 1;
  transform: none;
}

.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.menu-open .mobile-link:nth-child(2) { transition-delay: 0.17s; }
.menu-open .mobile-link:nth-child(3) { transition-delay: 0.24s; }
.menu-open .mobile-link:nth-child(4) { transition-delay: 0.31s; }
.menu-open .mobile-link:nth-child(5) { transition-delay: 0.38s; }

.mobile-menu-footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s 0.45s var(--ease), transform 0.5s 0.45s var(--ease);
}

.menu-open .mobile-menu-footer { opacity: 1; transform: none; }

.mobile-menu-footer p { color: var(--muted); font-size: 15px; }

.menu-open body { overflow: hidden; }

/* ============================================================
   Головний екран
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -12% 0;
  z-index: -3;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 18s var(--ease) both;
}

@keyframes kenburns {
  from { transform: scale(1.18); }
  to { transform: scale(1.03); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.55), rgba(10, 11, 13, 0.35) 45%, var(--bg) 96%),
    linear-gradient(100deg, rgba(10, 11, 13, 0.9) 18%, rgba(10, 11, 13, 0.25) 65%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  background: rgba(255, 122, 0, 0.35);
  top: -140px;
  right: -120px;
  animation: floatGlow 9s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  background: rgba(255, 178, 0, 0.16);
  bottom: -100px;
  left: -80px;
  animation: floatGlow 11s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(-40px, 40px); }
}

.hero-content {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7.2vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 14ch;
}

.ht-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.ht-word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.is-loaded .ht-word { transform: translateY(0); }

.ht-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin-top: 28px;
  font-size: clamp(16px, 2vw, 19px);
  color: #c6ccd4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-chips li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.hero-chips li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 800;
}

/* Плавна поява елементів hero після прелоадера */
.reveal-hero {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.is-loaded .reveal-hero { opacity: 1; transform: none; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll-line {
  width: 1.5px;
  height: 46px;
  background: linear-gradient(var(--accent), transparent);
  overflow: hidden;
  position: relative;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--accent-2), transparent);
  animation: scrollLine 1.8s var(--ease) infinite;
}

@keyframes scrollLine {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* ============================================================
   Біжучий рядок
   ============================================================ */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: -10px 40px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d3d8de;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--accent);
  font-style: normal;
  font-size: 13px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Секції — загальне
   ============================================================ */

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

.section-ghost {
  position: absolute;
  top: 30px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(90px, 17vw, 240px);
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section > .container { position: relative; z-index: 1; }

.section-head { margin-bottom: 56px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.section-label i {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
}

.section-label::after {
  content: "";
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.section-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Поява при скролі */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--sd, 0s);
}

.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Послуги
   ============================================================ */

.services { background: var(--bg); }

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

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.4s var(--ease), border-color 0.35s, box-shadow 0.4s;
  will-change: transform;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 0, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.service-card:hover {
  border-color: rgba(255, 122, 0, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.25);
  color: var(--accent-2);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), background 0.3s;
}

.service-card:hover .service-icon {
  transform: translateY(-4px) rotate(-4deg);
  background: rgba(255, 122, 0, 0.18);
}

.service-icon svg { width: 27px; height: 27px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   Про нас
   ============================================================ */

.about { background: var(--bg-2); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.about-media { position: relative; }

.about-img {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.about-img img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.about-media:hover .about-img img { transform: scale(1.04); }

.about-img-card {
  position: absolute;
  right: -18px;
  bottom: 32px;
  background: rgba(16, 17, 20, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.about-img-card svg { width: 42px; color: var(--accent); margin-bottom: 6px; }

.about-img-card b {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.about-img-card span { font-size: 12.5px; color: var(--muted); }

.about-text p {
  color: #c2c8d0;
  margin-bottom: 18px;
  max-width: 56ch;
}

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin: 26px 0 34px;
}

.about-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  font-size: 15px;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb200' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid rgba(255, 122, 0, 0.35);
}

/* ============================================================
   Як ми працюємо
   ============================================================ */

.how { background: var(--bg); }

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

.how-step {
  position: relative;
  padding: 34px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.35s;
}

.how-step:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, 0.35);
}

.how-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.85), rgba(255, 122, 0, 0.06));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 20px;
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.how-step p { font-size: 14.5px; color: var(--muted); }

.how-step::after {
  content: "→";
  position: absolute;
  top: 34px;
  right: 22px;
  color: rgba(255, 255, 255, 0.14);
  font-size: 20px;
  transition: color 0.3s, transform 0.3s var(--ease);
}

.how-step:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}

.how-step:last-child::after { content: "✓"; }

/* ============================================================
   CTA-банер
   ============================================================ */

.cta {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
}

.cta-bg { position: absolute; inset: -15% 0; z-index: -2; }

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 50% 50%, rgba(10, 11, 13, 0.55), rgba(10, 11, 13, 0.92)),
    linear-gradient(180deg, var(--bg), transparent 25%, transparent 75%, var(--bg));
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.6vw, 48px);
  text-transform: uppercase;
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.15;
}

.cta-inner p {
  color: #c6ccd4;
  max-width: 46ch;
  margin: 20px auto 36px;
  font-size: clamp(15px, 2vw, 18px);
}

.cta-note {
  display: block;
  margin-top: 18px;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Галерея
   ============================================================ */

.gallery { background: var(--bg-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}

.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(10, 11, 13, 0.85));
  opacity: 0.65;
  transition: opacity 0.4s;
}

.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 0.9; }

.gallery-cap {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(8px);
  opacity: 0.75;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}

.gallery-cap::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 2px;
}

.gallery-item:hover .gallery-cap { transform: none; opacity: 1; }

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(6, 7, 8, 0.94);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 5vmin;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease);
}

.lightbox.open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.lightbox-close:hover {
  background: var(--accent);
  color: #17110a;
  transform: rotate(90deg);
}

/* ============================================================
   Контакти
   ============================================================ */

.contacts { background: var(--bg); }

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: stretch;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}

.contact-card:hover {
  border-color: rgba(255, 122, 0, 0.3);
  transform: translateX(6px);
}

.contact-icon {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.25);
  color: var(--accent-2);
}

.contact-icon svg { width: 24px; height: 24px; }

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--muted);
}

.contact-card p { font-size: 16.5px; font-weight: 600; line-height: 1.5; }

.contact-phone {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  transition: color 0.25s;
}

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

.contact-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
  border-bottom: 1px solid rgba(255, 178, 0, 0.35);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}

.contact-link:hover { color: var(--accent); border-color: var(--accent); }

.contact-muted { font-size: 13.5px; color: var(--muted); }

.hours { display: flex; flex-direction: column; gap: 6px; min-width: 210px; }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  font-size: 15.5px;
}

.hours span { color: var(--muted); }
.hours b { font-weight: 700; }
.hours .closed { color: var(--muted); font-weight: 600; }

.contacts-map {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
  position: relative;
}

.contacts-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9) hue-rotate(180deg) brightness(0.9);
}

/* ============================================================
   Підвал
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-top: 54px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 42px;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }

.footer-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s;
}

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

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.footer-contacts a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  transition: color 0.25s;
}

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

.footer-contacts span { font-size: 13.5px; color: var(--muted); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.to-top { font-weight: 700; transition: color 0.25s; }
.to-top:hover { color: var(--accent-2); }

/* ============================================================
   Плаваюча кнопка дзвінка
   ============================================================ */

.fab-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 990;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad);
  color: #17110a;
  display: none;
  place-items: center;
  box-shadow: 0 12px 30px rgba(255, 122, 0, 0.4);
}

.fab-call svg { width: 24px; height: 24px; }

.fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: btnPulse 2s infinite;
}

/* ============================================================
   Адаптивність
   ============================================================ */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav, .header-call { display: none; }
  .burger { display: flex; margin-left: auto; }

  .section { padding: 84px 0; }

  .about-inner { grid-template-columns: 1fr; }
  .about-img { aspect-ratio: 4 / 3; }
  .about-img-card { right: 12px; bottom: 14px; }

  .contacts-inner { grid-template-columns: 1fr; }
  .contacts-map { min-height: 340px; }

  .fab-call { display: grid; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 22px 18px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 170px;
    gap: 10px;
  }

  .how-grid { grid-template-columns: 1fr; }

  .hero-actions .btn { width: 100%; }
  .hero-scroll { display: none; }

  .marquee { transform: rotate(-1.6deg) scale(1.05); }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contacts { text-align: left; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Зменшений рух
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal, .reveal-hero, .ht-word { opacity: 1; transform: none; }
}
