/* ============================================================
   AUTOFIX — стилі
   Палітра: графіт + фірмовий помаранчевий з логотипа
   ============================================================ */

:root {
  --orange: #f04a17;
  --orange-soft: #ff6b35;
  --bg: #0b0c0f;
  --bg-alt: #101216;
  --panel: #15181d;
  --panel-2: #1b1f26;
  --line: rgba(255, 255, 255, .07);
  --text: #eceef0;
  --muted: #9aa1ab;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

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

::selection { background: var(--orange); color: #fff; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

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

.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }

/* ---------- Типографіка секцій ---------- */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.accent-dot { color: var(--orange); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}
.section-head__note {
  max-width: 340px;
  color: var(--muted);
  font-size: 15px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  transition: transform .35s var(--ease-out), box-shadow .35s, background .3s, color .3s, border-color .3s;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn--lg { padding: 16px 34px; font-size: 16px; }

.btn--primary {
  background: linear-gradient(135deg, var(--orange), #d63a0c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(240, 74, 23, .28);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 12px 34px rgba(240, 74, 23, .45); }

.btn--ghost {
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

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

.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: clip-path .9s var(--ease-out);
  clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }

.preloader__inner { text-align: center; }

.preloader__gear {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  overflow: visible;
}
.gear-spin { animation: spin 2.4s linear infinite; transform-origin: 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.preloader__word {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
}
.preloader__word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: letter-in .5s var(--ease-out) forwards;
}
.preloader__word span:nth-child(1) { animation-delay: .1s }
.preloader__word span:nth-child(2) { animation-delay: .18s }
.preloader__word span:nth-child(3) { animation-delay: .26s }
.preloader__word span:nth-child(4) { animation-delay: .34s; color: var(--orange) }
.preloader__word span:nth-child(5) { animation-delay: .42s }
.preloader__word span:nth-child(6) { animation-delay: .5s }
.preloader__word span:nth-child(7) { animation-delay: .58s }
@keyframes letter-in { to { opacity: 1; transform: none; } }

/* ---------- Прогрес скролу ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  z-index: 1500;
  box-shadow: 0 0 12px rgba(240, 74, 23, .6);
}

/* ---------- Кастомний курсор ---------- */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 2500;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--orange);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(240, 74, 23, .55);
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, border-color .25s, background .25s;
}
body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 62px; height: 62px;
  background: rgba(240, 74, 23, .08);
  border-color: var(--orange);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.scrolled {
  background: rgba(11, 12, 15, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.35);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
}
.logo__gear {
  width: 34px;
  height: 34px;
  margin: 0 1px;
  overflow: visible;
  transition: transform .6s var(--ease-out);
}
.logo:hover .logo__gear { transform: rotate(120deg); }

.nav { display: flex; gap: 30px; }
.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__right { display: flex; align-items: center; gap: 20px; }
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: color .25s;
}
.header__phone svg { width: 17px; height: 17px; color: var(--orange); }
.header__phone:hover { color: var(--orange); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1101;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform .35s var(--ease-out), opacity .25s;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Мобільне меню ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(11, 12, 15, .97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }

.mobile-menu__nav { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: color .25s;
}
body.menu-open .mobile-menu__link {
  animation: letter-in .5s var(--ease-out) forwards;
  animation-delay: calc(.1s + var(--i) * .07s);
}
.mobile-menu__link:hover { color: var(--orange); }

.mobile-menu__footer { text-align: center; color: var(--muted); font-size: 14px; }
.mobile-menu__phone {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 6px;
}

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

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__photo {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center 65% / cover no-repeat;
  opacity: .32;
  mask-image: linear-gradient(105deg, transparent 30%, #000 75%);
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 75%);
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,15,.55), transparent 40%, rgba(11,12,15,.9));
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__glow--1 {
  width: 560px; height: 560px;
  background: rgba(240, 74, 23, .17);
  top: -160px; right: -120px;
  animation: glow-float 9s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 420px; height: 420px;
  background: rgba(240, 74, 23, .08);
  bottom: -140px; left: -100px;
  animation: glow-float 11s ease-in-out infinite alternate-reverse;
}
@keyframes glow-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 40px) scale(1.12); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero__gear {
  position: absolute;
  overflow: visible;
}
.hero__gear--big {
  width: clamp(340px, 40vw, 620px);
  height: auto;
  right: -6%;
  top: 50%;
  translate: 0 -50%;
  animation: spin 60s linear infinite;
}
.hero__gear--small {
  width: clamp(140px, 15vw, 230px);
  height: auto;
  right: 26%;
  top: 12%;
  animation: spin 40s linear infinite reverse;
}

.hero__content { position: relative; z-index: 2; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,.03);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}
body.loaded .hero__tag { animation: letter-in .7s var(--ease-out) .15s forwards; }

.hero__tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(240, 74, 23, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(240, 74, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 74, 23, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.4vw, 104px);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 26px;
}
.hero__title em {
  font-style: normal;
  color: var(--orange);
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out) 1.4s;
}
body.loaded .hero__title em::after { transform: scaleX(1); }

.hero__line { display: block; overflow: hidden; }
.hero__line span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
body.loaded .hero__line:nth-child(1) span { transform: none; transition-delay: .3s; }
body.loaded .hero__line:nth-child(2) span { transform: none; transition-delay: .45s; }

.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 38px;
  opacity: 0;
  transform: translateY(20px);
}
body.loaded .hero__subtitle { animation: letter-in .7s var(--ease-out) .7s forwards; }

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
  opacity: 0;
  transform: translateY(20px);
}
body.loaded .hero__actions { animation: letter-in .7s var(--ease-out) .85s forwards; }

.hero__info {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  opacity: 0;
}
body.loaded .hero__info { animation: letter-in .7s var(--ease-out) 1s forwards; }
.hero__info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}
.hero__info-item svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  opacity: 0;
  transition: border-color .3s;
}
body.loaded .hero__scroll { animation: letter-in .7s var(--ease-out) 1.3s forwards; }
.hero__scroll:hover { border-color: var(--orange); }
.hero__scroll-wheel {
  width: 3px;
  height: 9px;
  border-radius: 3px;
  background: var(--orange);
  animation: wheel 1.7s ease-in-out infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(12px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}

/* ---------- Рухомий рядок ---------- */

.marquee {
  background: var(--orange);
  padding: 16px 0;
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  margin: -26px 0;
  position: relative;
  z-index: 3;
  box-shadow: 0 14px 40px rgba(240, 74, 23, .25);
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}
.marquee__group span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  white-space: nowrap;
}
.marquee__group i { font-style: normal; color: rgba(0,0,0,.45); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Анімації появи ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

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

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__text p { color: var(--muted); margin-bottom: 18px; }
.about__text .btn { margin-top: 10px; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease-out), border-color .3s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(240,74,23,.35); }
.stat-card:hover::before { opacity: 1; }
.stat-card:nth-child(even) { translate: 0 22px; }

.stat-card__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1.1;
}
.stat-card__label { font-size: 14px; color: var(--muted); margin-top: 6px; }

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

.services { overflow: hidden; }

.services__ghost, .reviews__ghost {
  position: absolute;
  top: 34px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 15vw, 210px);
  line-height: 1;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

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

.service-card {
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 74, 23, .1), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.service-card:hover { border-color: rgba(240, 74, 23, .4); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.service-card:hover::after { opacity: 1; }

.service-card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(240, 74, 23, .1);
  border: 1px solid rgba(240, 74, 23, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--orange);
  transition: background .3s, transform .45s var(--ease-out);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card:hover .service-card__icon {
  background: var(--orange);
  color: #fff;
  transform: rotate(-8deg) scale(1.06);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--muted); }

.service-card__num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.14);
}

/* ---------- Переваги ---------- */

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.why-card {
  padding: 38px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .35s;
}
.why-card:hover { background: rgba(240, 74, 23, .05); }
.why-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease-out);
}
.why-card:hover::before { transform: scaleY(1); }

.why-card__index {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.why-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Етапи ---------- */

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}
.process__grid::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,74,23,.4), rgba(240,74,23,.4), transparent);
}

.process-step { text-align: left; position: relative; }
.process-step__num {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(240, 74, 23, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  transition: background .35s, color .35s, transform .45s var(--ease-out), box-shadow .35s;
}
.process-step:hover .process-step__num {
  background: var(--orange);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 10px rgba(240, 74, 23, .12);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.process-step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Майстерня (галерея) ---------- */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery__item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.55) contrast(1.04) brightness(.88);
  transform: scale(1.01);
  transition: filter .6s, transform .9s var(--ease-out);
}
.gallery__item:hover img {
  filter: none;
  transform: scale(1.07);
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 15, .82));
  opacity: .85;
  transition: opacity .4s;
}
.gallery__item:hover::after { opacity: 1; }

.gallery__item figcaption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(6px);
  transition: transform .45s var(--ease-out);
}
.gallery__item figcaption::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--orange);
  transition: width .45s var(--ease-out);
}
.gallery__item:hover figcaption { transform: none; }
.gallery__item:hover figcaption::before { width: 34px; }

/* ---------- Банер із закликом ---------- */

.cta {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0;
  overflow: hidden;
  text-align: center;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background: url('../img/cta-bg.jpg') center / cover no-repeat fixed;
}
.cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(240, 74, 23, .16), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 12, 15, .82) 25%, rgba(11, 12, 15, .82) 75%, var(--bg-alt) 100%);
}
.cta__content { position: relative; z-index: 1; }

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cta__text {
  color: #c3c8cf;
  max-width: 480px;
  margin: 0 auto 34px;
}
.cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: .02em;
  padding: 18px 40px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--orange), #d63a0c);
  color: #fff;
  box-shadow: 0 16px 50px rgba(240, 74, 23, .4);
  transition: transform .35s var(--ease-out), box-shadow .35s;
  will-change: transform;
}
.cta__phone svg {
  width: clamp(22px, 3vw, 34px);
  height: clamp(22px, 3vw, 34px);
  animation: fab-ring 2.6s infinite;
}
.cta__phone:hover { box-shadow: 0 20px 60px rgba(240, 74, 23, .55); }
.cta__hours {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Відгуки ---------- */

.reviews { overflow: hidden; }

.slider {
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.slider__track {
  display: flex;
  transition: transform .7s var(--ease-out);
}

.review {
  min-width: 100%;
  padding: 10px 20px 0;
  text-align: center;
}
.review__stars {
  color: var(--orange);
  font-size: 20px;
  letter-spacing: 6px;
  margin-bottom: 22px;
}
.review p {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 26px;
}
.review footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review__name { font-weight: 800; }
.review__car { font-size: 13.5px; color: var(--muted); }

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.slider__dot {
  width: 10px; height: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  transition: width .35s var(--ease-out), background .3s;
}
.slider__dot.active { width: 30px; background: var(--orange); }

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14px;
  font-weight: 700;
}
.status__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #6b7280;
}
.status.open .status__dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: pulse 2s infinite; }
.status.closed .status__dot { background: #ef4444; }
.status.open .status__text { color: #4ade80; }
.status.closed .status__text { color: #f87171; }

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: stretch;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}
.contact-item__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(240, 74, 23, .1);
  border: 1px solid rgba(240, 74, 23, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-item p { color: var(--muted); font-size: 15px; }
.contact-item a { color: var(--text); font-weight: 700; transition: color .25s; }
.contact-item a:hover { color: var(--orange); }

/* Картка «запис за телефоном» */

.call-card {
  margin-top: 34px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
}
.call-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent 70%);
}
.call-card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.call-card__text {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 22px;
}
.call-card__btn { width: 100%; }
.call-card__note {
  font-size: 12.5px;
  color: #6b7280;
  text-align: center;
  margin-top: 14px;
}

.contacts__map {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
  filter: grayscale(.9) contrast(1.05) brightness(.92);
  transition: filter .5s;
}
.contacts__map:hover { filter: none; }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 26px;
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 320px;
  margin-top: 16px;
}
.logo--footer { font-size: 30px; }
.logo--footer .logo__gear { width: 38px; height: 38px; }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.footer__col a, .footer__col span { color: var(--muted); font-size: 14.5px; transition: color .25s; }
.footer__col a:hover { color: var(--orange); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  color: #6b7280;
  font-size: 13.5px;
}
.footer__up {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, border-color .3s, transform .35s var(--ease-out);
}
.footer__up svg { width: 18px; height: 18px; }
.footer__up:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-4px);
  color: #fff;
}

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

.call-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #d63a0c);
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 900;
  box-shadow: 0 10px 26px rgba(240, 74, 23, .4);
  animation: fab-ring 2.6s infinite;
}
.call-fab svg { width: 24px; height: 24px; }
@keyframes fab-ring {
  0%, 100% { transform: rotate(0); }
  4%  { transform: rotate(-14deg); }
  8%  { transform: rotate(12deg); }
  12% { transform: rotate(-8deg); }
  16% { transform: rotate(0); }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process__grid::before { display: none; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .header__phone span { display: none; }
  /* фіксований фон гальмує мобільні браузери */
  .cta__bg { background-attachment: scroll; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__cta { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__map { min-height: 320px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .hero__gear--big { opacity: .55; }
  .call-fab { display: flex; }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-auto-rows: 150px; gap: 12px; }
  .cta__phone { font-size: 20px; padding: 15px 26px; gap: 10px; }
  .stat-card:nth-child(even) { translate: 0 0; }
  .about__stats { gap: 14px; }
  .hero__info { gap: 14px; flex-direction: column; }
  .marquee { transform: rotate(0) scale(1); margin: 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

/* ---------- Доступність: менше руху ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__line span, .hero__tag, .hero__subtitle, .hero__actions, .hero__info, .hero__scroll { opacity: 1; transform: none; }
}
