/* ============================================================
   Z-Detailing — landing styles
   ============================================================ */
:root {
  --bg:        #0a0f16;
  --bg-alt:    #0e141d;
  --surface:   #131b26;
  --surface-2: #18222f;
  --line:      rgba(255,255,255,.08);
  --text:      #e8eef5;
  --muted:     #9aa7b5;
  --accent:    #5ad0ff;
  --accent-2:  #2b9fd6;
  --accent-deep:#006699;
  --shadow:    0 20px 50px rgba(0,0,0,.45);
  --radius:    18px;
  --maxw:      1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3 { font-family: 'Montserrat', sans-serif; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent {
  background: linear-gradient(90deg, var(--accent), #bfefff, var(--accent-2), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(90,208,255,.7);
  transition: width .1s linear;
}

/* custom scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent-2), var(--accent-deep)); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad);
  border: none; border-radius: 999px; cursor: pointer;
  font: 600 15px 'Montserrat', sans-serif; letter-spacing: .2px;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 140%; }
.btn--lg { --pad: 17px 38px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05202b;
  box-shadow: 0 10px 30px rgba(90,208,255,.30);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(90,208,255,.45); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.header.scrolled {
  background: rgba(10,15,22,.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header__inner { display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; }
.logo__img {
  height: 52px; width: auto; display: block; border-radius: 12px;
  background: #fff; padding: 5px 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .25s, box-shadow .25s;
}
.logo:hover .logo__img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(90,208,255,.3); }
.header.scrolled .logo__img { height: 46px; }
.logo--footer .logo__img { height: 60px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav__link { color: var(--muted); font: 500 15px 'Montserrat'; position: relative; transition: color .2s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s;
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 16px 'Montserrat'; color: var(--text);
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.header__phone:hover { border-color: var(--accent); color: var(--accent); }
.header__phone-icon { filter: grayscale(.2); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; transform: scale(1.2); will-change: transform;
  background:
    linear-gradient(105deg, rgba(10,15,22,.96) 30%, rgba(10,15,22,.55) 70%, rgba(10,15,22,.75)),
    radial-gradient(1200px 600px at 75% -10%, rgba(43,159,214,.30), transparent 60%),
    url('../assets/hero.jpg') center/cover no-repeat;
}
@media (max-width: 760px) {
  .hero__bg { background:
    linear-gradient(180deg, rgba(10,15,22,.92), rgba(10,15,22,.85)),
    url('../assets/hero.jpg') center/cover no-repeat; }
}
.hero__glow {
  position: absolute; z-index: 0; right: -10%; top: 10%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,208,255,.30), transparent 65%);
  filter: blur(30px); animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-40px)} }

.hero__inner { position: relative; z-index: 1; padding: 120px 0 80px; }
.hero__content { max-width: 760px; }
.hero__badge {
  display: inline-block; padding: 8px 16px; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03); color: var(--accent);
  font: 600 13px 'Montserrat'; letter-spacing: .5px; text-transform: uppercase;
}
.hero__title { font-size: clamp(34px, 6vw, 62px); font-weight: 800; letter-spacing: -1px; }
.hero__subtitle { margin: 22px 0 34px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 600px; }
.hero__subtitle strong { color: var(--text); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num, .stat__prefix { font: 800 40px 'Montserrat'; color: var(--accent); line-height: 1; }
.stat__suffix { font: 800 28px 'Montserrat'; color: var(--accent); }
.stat__num + .stat__suffix { display: inline; }
.stat__label { font-size: 13px; color: var(--muted); margin-top: 8px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%); animation: scroll 1.6s infinite;
}
@keyframes scroll { 0%{opacity:0;top:8px} 40%{opacity:1} 80%{opacity:0;top:22px} 100%{opacity:0} }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__eyebrow {
  display: inline-block; color: var(--accent); font: 700 13px 'Montserrat';
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ---------- Cards (advantages) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(90,208,255,.35); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 30px;
  border-radius: 16px; background: rgba(90,208,255,.10); margin-bottom: 22px;
}
.card__title { font-size: 20px; margin-bottom: 12px; }
.card__text { color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.cat-tabs { display: none; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.cat-tab {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  font: 600 14px 'Montserrat'; transition: .2s;
}
.cat-tab.active { background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: #05202b; border-color: transparent; }

.price { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.price__loading { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px; }
.price-group {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s;
}
.price-group:hover { border-color: rgba(90,208,255,.25); }
.price-group__head {
  display: flex; align-items: center; gap: 12px; padding: 22px 26px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.price-group__icon { font-size: 22px; }
.price-group__title { font-size: 19px; font-weight: 700; }

.price-table { width: 100%; }
.price-head, .price-row {
  display: grid; grid-template-columns: 1fr repeat(3, 88px); align-items: center;
  padding: 0 26px;
}
.price-head {
  padding-top: 14px; padding-bottom: 14px;
  font: 600 12px 'Montserrat'; color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--line);
}
.price-head .ph-cat { text-align: center; }
.price-head .ph-cat small { display: block; font-size: 10px; font-weight: 500; text-transform: none; opacity: .7; letter-spacing: 0; }
.price-row { padding-top: 13px; padding-bottom: 13px; transition: background .2s; }
.price-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.04); }
.price-row:hover { background: rgba(90,208,255,.05); }
.price-row__name { font-size: 15px; }
.price-row__val {
  text-align: center; font: 700 15px 'Montserrat'; color: var(--accent);
}
.price-row__val small { font-weight: 500; color: var(--muted); }

.price__note {
  text-align: center; color: var(--muted); font-size: 14px;
  margin-top: 32px; max-width: 680px; margin-left: auto; margin-right: auto;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line);
}
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: '🔍'; position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(to top, rgba(90,208,255,.25), rgba(5,15,22,.35));
  opacity: 0; transition: opacity .3s;
}
.gallery__item:hover::after { opacity: 1; }

/* ---------- CTA ---------- */
.cta {
  margin: 0 24px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-deep), #023);
  position: relative;
}
.cta::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(600px 300px at 80% 20%, rgba(90,208,255,.35), transparent 60%);
}
.cta__inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; padding: 56px 48px; flex-wrap: wrap;
}
.cta__text h2 { font-size: clamp(24px,3vw,34px); margin-bottom: 10px; }
.cta__text p { color: rgba(255,255,255,.8); max-width: 540px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contacts__list { list-style: none; display: grid; gap: 18px; margin-bottom: 26px; }
.contacts__list li { display: flex; gap: 16px; align-items: flex-start; }
.contacts__ic {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 20px;
  border-radius: 13px; background: rgba(90,208,255,.10);
}
.contacts__list b { display: block; font: 600 14px 'Montserrat'; color: var(--text); }
.contacts__list span, .contacts__list a { color: var(--muted); font-size: 15px; }
.contacts__list a:hover { color: var(--accent); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 280px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) invert(.9) hue-rotate(180deg); }

/* Call card (instead of form) */
.call-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 34px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
}
.call-card::before {
  content:''; position:absolute; inset:0 0 auto 0; height:3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.call-card__ic {
  width: 72px; height: 72px; display: grid; place-items: center; font-size: 34px;
  border-radius: 50%; background: rgba(90,208,255,.10); margin-bottom: 6px;
  animation: pulse 2.4s infinite;
}
.call-card h3 { font-size: 24px; }
.call-card p { color: var(--muted); max-width: 360px; }
.call-card .btn { margin-top: 10px; font-size: 20px; }
.call-card__hours { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(5,9,14,.92); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; animation: pop .3s; }
.lightbox__img {
  max-width: 90vw; max-height: 85vh; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line);
  color: #fff; cursor: pointer; border-radius: 50%; transition: background .2s, transform .2s;
}
.lightbox__close { top: 22px; right: 26px; width: 46px; height: 46px; font-size: 26px; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 34px; line-height: 1; }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(90,208,255,.25); }
@keyframes pop { from{transform:scale(.95);opacity:0} to{transform:scale(1);opacity:1} }
@media (max-width: 600px) { .lightbox__nav { width: 44px; height: 44px; font-size: 26px; } }

/* ---------- Footer ---------- */
.footer { padding: 44px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer__addr { color: var(--muted); }
.footer__copy { color: var(--muted); font-size: 14px; opacity: .7; }

/* ---------- Floating call button ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; background: linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow: 0 10px 30px rgba(90,208,255,.4); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 10px 30px rgba(90,208,255,.4), 0 0 0 0 rgba(90,208,255,.45); }
  70%  { box-shadow: 0 10px 30px rgba(90,208,255,.4), 0 0 0 16px rgba(90,208,255,0); }
  100% { box-shadow: 0 10px 30px rgba(90,208,255,.4), 0 0 0 0 rgba(90,208,255,0); }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal--left  { transform: translateX(-46px); }
.reveal--right { transform: translateX(46px); }
.reveal--zoom  { transform: scale(.9); }

/* ---------- Hero foam bubbles ---------- */
.bubbles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bubble {
  position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(90,208,255,.25) 60%, transparent 70%);
  box-shadow: 0 0 12px rgba(90,208,255,.25); opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: linear-gradient(90deg, var(--accent-deep), #04303f);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; align-items: center; gap: 26px; animation: scrollX 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 700 18px 'Montserrat'; color: #eaf8ff; letter-spacing: .3px; }
.marquee__dot { font-size: 14px; opacity: .8; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Card 3D spotlight ---------- */
.card { transform-style: preserve-3d; will-change: transform; }
.card::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx,50%) var(--my,50%), rgba(90,208,255,.18), transparent 60%);
}
.card:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__glow, .fab, .hero__scroll span, .accent, .bubble, .marquee__track, .call-card__ic { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .gallery__item--big, .gallery__item--wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 760px) {
  .header__phone { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; gap: 8px; padding: 100px 28px 40px;
    background: var(--bg-alt); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s; margin: 0; z-index: 99;
  }
  .nav.open { transform: none; }
  .nav__link { font-size: 18px; padding: 10px 0; }
  .section { padding: 70px 0; }
  .cat-tabs { display: flex; }
  .price-head, .price-row { grid-template-columns: 1fr 110px; }
  .price [data-col] { display: none; }
  .price[data-active="0"] [data-col="0"],
  .price[data-active="1"] [data-col="1"],
  .price[data-active="2"] [data-col="2"] { display: block; }
  .cta__inner { padding: 40px 28px; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--big, .gallery__item--wide { grid-column: auto; }
  .hero__stats { gap: 26px; }
}
