/* СТО LUX — общие стили */
:root {
  --bg: #0e0f12;
  --bg-alt: #15161b;
  --card: #1b1d24;
  --border: #2a2d37;
  --text: #eceef1;
  --muted: #9aa0ac;
  --accent: #e63b2e;
  --accent-hover: #ff4f42;
  --radius: 16px;
  --radius-inner: 10px;
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-card-hover: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 6px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(230,59,46,.35), 0 0 32px rgba(230,59,46,.12);
  --font-head: "Oswald", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: .02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { display: block; max-width: 100%; }

/* ---------- Icons ---------- */
.svg-icon {
  width: 40px; height: 40px; stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.svg-icon.sm { width: 22px; height: 22px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 15, 18, .85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
  transition: box-shadow .25s;
}
header.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.5); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 23px; font-weight: 700; letter-spacing: .04em; color: var(--text);
}
.logo span { color: var(--accent); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 15px; font-weight: 700;
  transition: color .15s;
  padding: 8px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-phone {
  color: var(--text); font-weight: 800; font-size: 15px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color .15s;
}
.nav-phone:hover { color: var(--accent); }

/* burger */
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
.burger span {
  display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 520px;
  left: 50%; top: -180px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(230,59,46,.22), transparent 65%);
  filter: blur(20px);
  animation: heroGlow 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroGlow {
  from { opacity: .65; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(34px, 6vw, 62px); font-weight: 700; line-height: 1.12;
  text-transform: uppercase; letter-spacing: .03em;
}
.hero h1 span {
  color: var(--accent);
  background: linear-gradient(120deg, #ff6a5e, var(--accent) 60%, #b8281d);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub {
  margin: 20px auto 0; max-width: 620px; color: var(--muted); font-size: 18px;
}
.hero .badges {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px;
}
.badge {
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
  padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--muted);
  backdrop-filter: blur(4px);
}
.badge b { color: var(--text); font-variant-numeric: tabular-nums; }
.hero .cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* stats counters */
.stats {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px;
}
.stat {
  min-width: 150px; padding: 18px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset;
}
.stat .num {
  font-family: var(--font-head); font-size: 34px; font-weight: 700;
  color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat .num em { color: var(--accent); font-style: normal; }
.stat .label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 12px;
  font-weight: 800; font-size: 16px; cursor: pointer; border: 0;
  transition-property: transform, box-shadow, background-color, color;
  transition-duration: .18s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
  font-variant-numeric: tabular-nums;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: linear-gradient(160deg, #ff5346, var(--accent) 55%, #cf2c20);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 18px rgba(230,59,46,.35);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 8px 28px rgba(230,59,46,.55);
  transform: translateY(-1px);
}
.btn-outline {
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset;
  color: var(--text); background: transparent;
}
.btn-outline:hover {
  box-shadow: 0 0 0 1px rgba(230,59,46,.6) inset, 0 0 24px rgba(230,59,46,.15);
  color: var(--accent-hover);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(230,59,46,.05), transparent),
    var(--bg-alt);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 -24px 48px rgba(0,0,0,.25);
}
.section-title {
  font-size: clamp(26px, 4vw, 36px); font-weight: 600; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .03em;
  display: flex; align-items: center; gap: 14px;
}
.section-title span { color: var(--accent); }
.section-sub { color: var(--muted); margin-bottom: 40px; max-width: 620px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%), var(--card);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition-property: transform, box-shadow;
  transition-duration: .22s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.card .icon { margin-bottom: 16px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; letter-spacing: .02em; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { list-style: none; margin-top: 10px; }
.card ul li { color: var(--muted); font-size: 15px; padding: 4px 0 4px 24px; position: relative; }
.card ul li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; font-weight: 700; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 15px; }

/* ---------- Works / portfolio ---------- */
.work-card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%), var(--card);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition-property: transform, box-shadow;
  transition-duration: .22s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.work-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.work-photo {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block;
  background: linear-gradient(135deg, #22242c, #17181e);
  outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px;
}
.work-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: #3a3d48;
}
.work-photo.placeholder .svg-icon { stroke: #3a3d48; width: 48px; height: 48px; }
.work-body { padding: 18px 20px; }
.work-body h3 { font-size: 17px; margin-bottom: 6px; }
.work-body p { color: var(--muted); font-size: 14px; }
.work-tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 800;
  background: rgba(230, 59, 46, .14); color: var(--accent-hover);
  box-shadow: 0 0 0 1px rgba(230,59,46,.25) inset;
}

/* ---------- Brands marquee ---------- */
.marquee {
  overflow: hidden; position: relative; padding: 26px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head); font-size: 22px; font-weight: 600;
  color: #454956; text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap;
  transition: color .2s;
}
.marquee-track span:hover { color: var(--muted); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Reviews ---------- */
.reviews-head {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 36px;
}
.rating-big {
  display: flex; align-items: baseline; gap: 12px;
}
.rating-big .value {
  font-family: var(--font-head); font-size: 72px; font-weight: 700; line-height: 1;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.rating-big .stars { color: #ffb02e; font-size: 22px; letter-spacing: 3px; }
.rating-big .of { color: var(--muted); font-size: 14px; }
.review-aspects { display: flex; gap: 10px; flex-wrap: wrap; }
.aspect {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
  font-variant-numeric: tabular-nums;
}
.aspect b { color: var(--text); }
.review-quote { position: relative; }
.review-quote::before {
  content: "“"; position: absolute; top: 8px; right: 20px;
  font-family: Georgia, serif; font-size: 80px; line-height: 1;
  color: rgba(230,59,46,.25);
}
.review-quote p { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.review-quote .author { color: var(--muted); font-size: 13px; }
.review-quote .author b { color: var(--text); }

/* ---------- Price table ---------- */
.price-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%), var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: 16px 24px; text-align: left;
  box-shadow: 0 -1px 0 rgba(255,255,255,.05) inset;
}
.price-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.price-table td.price {
  text-align: right; font-weight: 800; white-space: nowrap;
  font-variant-numeric: tabular-nums; font-size: 17px;
}
.price-table tr:last-child td { box-shadow: none; }
.price-table tr:hover td { background: rgba(230, 59, 46, .05); }
.price-table tr.featured td { background: rgba(230, 59, 46, .09); }
.price-table tr.featured td:first-child { position: relative; }
.price-table .hit {
  display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
  background: var(--accent); color: #fff; text-transform: uppercase;
  vertical-align: 2px;
}

/* ---------- Contacts ---------- */
.contact-list { list-style: none; }
.contact-list li { padding: 10px 0; display: flex; gap: 12px; align-items: baseline; }
.contact-list .label { color: var(--muted); min-width: 110px; font-size: 14px; }
.contact-list .value { font-weight: 700; font-variant-numeric: tabular-nums; }
.map-frame {
  width: 100%; height: 420px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  outline: 1px solid rgba(255,255,255,.1); outline-offset: -1px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 50% 120% at 0% 50%, rgba(230,59,46,.22), transparent),
    linear-gradient(90deg, rgba(230,59,46,.08), rgba(230,59,46,.02)),
    var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 27px; font-weight: 600; letter-spacing: .02em; }
.cta-band p { color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */
footer {
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
  padding: 40px 0; background: var(--bg-alt);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
footer .muted { color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 18px; }
.socials a { font-weight: 700; font-size: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 60px 0 44px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.page-hero::after {
  content: ""; position: absolute; width: 560px; height: 320px;
  left: 8%; top: -140px;
  background: radial-gradient(ellipse at center, rgba(230,59,46,.16), transparent 65%);
  filter: blur(16px); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: var(--muted); margin-top: 10px; max-width: 640px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition-property: opacity, transform;
  transition-duration: .6s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-alt); box-shadow: 0 12px 24px rgba(0,0,0,.5);
    flex-direction: column; padding: 16px 20px; gap: 4px;
  }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .nav-phone { display: none; }
  .rating-big .value { font-size: 54px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .cta-band { padding: 30px 22px; }
  .price-table th, .price-table td { padding: 14px 16px; }
  .stat { min-width: calc(50% - 6px); }
}
