:root {
  --bg: #0b0d12;
  --bg-2: #11141d;
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.12);
  --text: #f5f7fb;
  --muted: #aeb7c8;
  --line: rgba(255,255,255,.14);
  --gold: #f7d586;
  --gold-2: #b88332;
  --blue: #75a8ff;
  --radius: 28px;
  --shadow: 0 26px 80px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, rgba(247,213,134,.16), transparent 35%), radial-gradient(circle at 90% 20%, rgba(117,168,255,.15), transparent 32%), var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .04; z-index: 0; background-image: linear-gradient(45deg, #fff 1px, transparent 1px); background-size: 6px 6px; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(22px); background: rgba(11,13,18,.72); border-bottom: 1px solid var(--line); }
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, var(--gold), var(--gold-2)); color: #12100a; font-weight: 900; box-shadow: 0 12px 34px rgba(247,213,134,.22); }
.brand-text { display: flex; flex-direction: column; letter-spacing: .02em; }
.brand-text strong { font-size: 19px; line-height: 1; }
.brand-text small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.nav-links { display: flex; gap: 22px; align-items: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-links a:hover, .footer a:hover { color: var(--gold); }
.nav-phone { padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 800; background: rgba(255,255,255,.05); }
.nav-toggle { display: none; border: 0; background: var(--card); color: var(--text); width: 44px; height: 44px; border-radius: 14px; font-size: 22px; }
.section { padding: 104px 0; position: relative; z-index: 1; }
.hero { min-height: 760px; display: flex; align-items: center; padding-top: 84px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.eyebrow span { width: 32px; height: 1px; background: var(--gold); display: inline-block; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(44px, 7vw, 86px); line-height: .92; letter-spacing: -.07em; max-width: 850px; }
h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.05em; }
h3 { font-size: 22px; letter-spacing: -.03em; }
.hero-lead, .section-head p, .cta-card p { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 680px; margin-top: 24px; }
.hero-actions, .cta-actions, .map-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 850; border: 1px solid transparent; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #15110a; box-shadow: 0 18px 46px rgba(247,213,134,.2); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.07); color: var(--text); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.hero-stats div { padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 22px; }
.hero-stats strong { display: block; font-size: 30px; color: var(--gold); }
.hero-stats span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.hero-card { justify-self: end; width: min(100%, 440px); }
.device-card { border: 1px solid var(--line); border-radius: 38px; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.device-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 360px; background: radial-gradient(circle, rgba(247,213,134,.34), transparent 62%); }
.device-top { position: relative; display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 700; margin-bottom: 20px; }
.pulse { width: 10px; height: 10px; border-radius: 999px; background: #4dff9a; box-shadow: 0 0 0 8px rgba(77,255,154,.12); }
.device-screen { position: relative; min-height: 450px; border-radius: 30px; background: #05070b; border: 1px solid rgba(255,255,255,.18); padding: 28px; display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: center; overflow: hidden; }
.screen-line { height: 11px; width: 72%; border-radius: 999px; background: rgba(255,255,255,.12); }
.screen-line.wide { width: 88%; }
.screen-line.short { width: 48%; }
.diagnostic-ring { width: 220px; height: 220px; margin: 36px 0; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 950; color: var(--gold); border: 1px solid rgba(247,213,134,.5); background: radial-gradient(circle, rgba(247,213,134,.16), transparent 64%); box-shadow: inset 0 0 42px rgba(247,213,134,.14), 0 0 80px rgba(247,213,134,.14); overflow: hidden; }
.service-mini-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.service-mini-grid span { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.08); color: var(--muted); font-weight: 700; text-align: center; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .4; pointer-events: none; }
.hero-glow-one { width: 300px; height: 300px; background: var(--gold); left: -110px; top: 150px; }
.hero-glow-two { width: 260px; height: 260px; background: var(--blue); right: -90px; top: 330px; }
.trust-strip { position: relative; z-index: 2; margin-top: -40px; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.08); backdrop-filter: blur(24px); box-shadow: var(--shadow); }
.strip-grid div { padding: 24px; border-right: 1px solid var(--line); }
.strip-grid div:last-child { border-right: 0; }
.strip-grid b { display: block; font-size: 18px; }
.strip-grid span { display: block; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.section-head { margin-bottom: 42px; }
.section-head h2 { margin-top: 16px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .price-card, .step, .cta-card, .contact-info, .map-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); box-shadow: 0 18px 54px rgba(0,0,0,.22); }
.service-card { padding: 28px; min-height: 238px; transition: transform .25s ease, background .25s ease; }
.service-card:hover, .price-card:hover { transform: translateY(-5px); background: var(--card-2); }
.icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(247,213,134,.12); color: var(--gold); margin-bottom: 26px; font-size: 25px; }
.service-card p, .step p, .contact-info p { color: var(--muted); line-height: 1.65; margin-top: 14px; }
.dark-section { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--muted); min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 800; cursor: pointer; }
.filter-btn.active { color: #15110a; background: linear-gradient(135deg, var(--gold), var(--gold-2)); border-color: transparent; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { padding: 26px; transition: transform .25s ease, background .25s ease, opacity .25s ease; }
.price-card.hidden { display: none; }
.price-card h3 { margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.price-card li { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--muted); }
.price-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-card b { color: var(--text); white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 28px; }
.step span { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(247,213,134,.12); color: var(--gold); font-weight: 900; margin-bottom: 24px; }
.cta-card { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; padding: 42px; background: linear-gradient(135deg, rgba(247,213,134,.14), rgba(117,168,255,.08)); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-info, .map-card { padding: 34px; }
.address { font-size: 20px; color: var(--text) !important; }
.contact-list { margin-top: 28px; display: grid; gap: 12px; }
.contact-list a { padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 20px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.contact-list span { color: var(--muted); }
.contact-list b { text-align: right; }
.map-card { min-height: 460px; display: flex; flex-direction: column; }
.map-visual { flex: 1; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, rgba(247,213,134,.2), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); position: relative; overflow: hidden; }
.pin { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50% 50% 50% 10%; rotate: -45deg; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14100a; font-weight: 950; box-shadow: 0 22px 60px rgba(247,213,134,.22); }
.pin::after { content: ""; position: absolute; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.22); }
.pin { color: transparent; }
.pin::before { content: "БИТС"; rotate: 45deg; color: #14100a; position: relative; z-index: 2; }
.map-line { position: absolute; height: 2px; background: rgba(255,255,255,.12); width: 150%; left: -25%; }
.l1 { top: 26%; rotate: 18deg; } .l2 { top: 56%; rotate: -14deg; } .l3 { top: 76%; rotate: 8deg; }
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); position: relative; z-index: 1; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 54px rgba(0,0,0,.22); transition: transform .25s ease, background .25s ease; }
.gallery-card:hover { transform: translateY(-5px); background: var(--card-2); }
.gallery-image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(255,255,255,.04); }
.gallery-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-card-body { padding: 22px; }
.gallery-card-body p { color: var(--muted); line-height: 1.65; margin-top: 12px; }

@media (max-width: 980px) {
  .hero-grid, .contacts-grid, .cta-card { grid-template-columns: 1fr; }
  .hero-card { justify-self: stretch; }
  .services-grid, .price-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip-grid div:last-child { border-bottom: 0; }
  .cta-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-phone { display: none; }
  .nav-links { position: absolute; top: 78px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--line); background: rgba(11,13,18,.94); border-radius: 22px; }
  .nav-links.open { display: flex; }
  .section { padding: 72px 0; }
  .hero { padding-top: 54px; min-height: auto; }
  .hero-stats, .services-grid, .price-grid, .steps, .gallery-grid { grid-template-columns: 1fr; }
  .device-screen { min-height: 330px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .contact-list a { flex-direction: column; align-items: flex-start; }
  .contact-list b { text-align: left; }
}

.logo-ring { padding: 18px; }
.hero-logo { display: block; width: 150px; height: auto; border-radius: 18px; background: rgba(255,255,255,.94); padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.28); }

@media (max-width: 760px) {
  .brand-image { width: 160px; }
  .footer-logo-image { width: 170px; }
  .hero-logo { width: 118px; }
}


/* Logo fix: compact wordmark in header/footer, full logo inside the hero card */
.brand-logo { min-height: 0; }
.brand-image {
  width: auto !important;
  height: 44px !important;
  max-width: 180px !important;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.22));
}
.footer-logo-image {
  width: auto !important;
  height: 40px !important;
  max-width: 170px !important;
}
.logo-ring {
  width: 230px;
  height: 230px;
  padding: 20px;
}
.hero-logo {
  width: 180px !important;
  max-width: 86%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  padding: 12px;
}

@media (max-width: 760px) {
  .brand-image {
    height: 36px !important;
    max-width: 140px !important;
  }
  .footer-logo-image {
    height: 34px !important;
    max-width: 140px !important;
  }
  .logo-ring {
    width: 185px;
    height: 185px;
  }
  .hero-logo {
    width: 142px !important;
  }
}


/* Final header fix: header/footer use compact text brand, logo only inside hero card */
.site-header .brand { max-width: 230px; overflow: hidden; }
.site-header .brand-mark,
.footer-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #15110a;
  font-weight: 950;
}
.site-header .brand-text,
.footer-brand .brand-text { display: grid; line-height: 1.05; }
.site-header .brand-text strong,
.footer-brand .brand-text strong { font-size: 18px; letter-spacing: .06em; }
.site-header .brand-text small,
.footer-brand .brand-text small { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.brand-image { max-width: 100%; }
.logo-ring { width: 230px; height: 230px; padding: 18px; }
.hero-logo {
  display: block;
  width: 175px !important;
  max-width: 86%;
  height: auto !important;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
@media (max-width: 760px) {
  .site-header .brand { max-width: 190px; }
  .site-header .brand-mark { width: 40px; height: 40px; min-width: 40px; }
  .logo-ring { width: 185px; height: 185px; }
  .hero-logo { width: 138px !important; }
}


/* Hero logo card: full-size БИТС logo inside the black premium screen */
.logo-screen {
  padding: 0 !important;
  min-height: 450px;
  background: #05070b;
  overflow: hidden;
}
.logo-screen .screen-line,
.logo-screen .diagnostic-ring {
  display: none !important;
}
.hero-sign-logo {
  width: 100%;
  height: 100%;
  min-height: 450px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
}

/* Gallery: waiting zone and work zone */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0,0,0,.22);
  transition: transform .25s ease, background .25s ease;
}
.gallery-card:hover {
  transform: translateY(-5px);
  background: var(--card-2);
}
.gallery-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-card-body {
  padding: 22px;
}
.gallery-card-body p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .logo-screen {
    min-height: 330px;
  }
  .hero-sign-logo {
    min-height: 330px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
