:root {
  --bg: #080a0c;
  --bg2: #0d1117;
  --bg3: #111820;
  --card: #0f1923;
  --border: rgba(0,240,180,0.12);
  --neon: #00f0b4;
  --neon2: #00bfff;
  --orange: #ff6b2b;
  --text: #e8edf2;
  --muted: #7a8a9a;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Golos Text', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html,
body {
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,180,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,180,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,10,12,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; color: #fff; }
.logo span { color: var(--neon); }
.logo.logo-real { display: flex; align-items: center; text-decoration: none; }
.logo.logo-real svg, .logo.logo-real .logo-svg { height: 44px; width: auto; max-width: 220px; }
nav { display: flex; align-items: center; gap: 18px; }
nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
  transition: color .2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--neon);
  transform: scaleX(0);
  transition: transform .2s;
}
nav a:hover, nav a.active { color: #fff; }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 16px;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown-toggle.active {
  color: var(--neon);
}
.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.nav-dropdown-menu {
  position: absolute;
  left: -12px;
  top: calc(100% + 14px);
  z-index: 1005;
  min-width: 260px;
  padding: 8px;
  border: 1px solid rgba(0,240,180,0.2);
  border-radius: 8px;
  background: rgba(8,10,12,0.96);
  box-shadow: 0 18px 42px rgba(0,0,0,0.36);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: translateY(1px) rotate(225deg);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-dropdown-menu a::after {
  display: none;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: #fff;
  background: rgba(0,240,180,0.08);
}
.header-right { display: flex; align-items: center; gap: 12px; }
.header-phone { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: 0.5px; }
.header-social { display: inline-flex; align-items: center; gap: 8px; }
.max-logo { width: 20px; height: 20px; display: block; fill: currentColor; stroke: none; }
.max-logo use { fill: currentColor; stroke: none; }
.header-icon-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,0.04);
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.header-icon-link svg { width: 18px; height: 18px; }
.header-icon-link--tg { background: #229ED9; border-color: rgba(34,158,217,0.45); }
.header-icon-link--tg:hover { transform: translateY(-1px); box-shadow: 0 0 16px rgba(34,158,217,0.4); }
.header-icon-link--max { color: #061012; background: linear-gradient(135deg, #00f0b4 0%, #2ed6ff 100%); border-color: rgba(0,240,180,0.45); }
.header-icon-link--max:hover { transform: translateY(-1px); box-shadow: 0 0 16px rgba(0,240,180,0.34); }
.header-quote-link {
  border: 1px solid rgba(0,240,180,0.35);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.header-quote-link:hover { background: var(--neon); color: #000; box-shadow: 0 0 18px rgba(0,240,180,0.34); }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all .3s; }
.mobile-nav {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(8,10,12,0.97);
  z-index: 1002;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  transform: none;
  padding: 80px 24px 40px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: flex; }
@media (min-width: 1181px) {
  .mobile-nav.open { display: none; }
}
.mobile-nav > button { position: fixed !important; z-index: 2; }
.mobile-nav a,
.mobile-services-summary {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text);
  letter-spacing: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover,
.mobile-services-summary:hover { color: var(--neon); }
.mobile-services { flex: 0 0 auto; width: 100%; }
.mobile-services-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mobile-services-summary::-webkit-details-marker { display: none; }
.mobile-services-summary.active { color: var(--neon); }
.mobile-services-summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.mobile-services[open] .mobile-services-summary::after {
  transform: translateY(2px) rotate(225deg);
}
.mobile-services-list {
  display: grid;
  gap: 4px;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-services-list a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--muted);
  border-bottom: 0;
  padding: 9px 12px;
  border-radius: 6px;
}
.mobile-services-list a.active {
  color: var(--neon);
  background: rgba(0,240,180,0.08);
}
.mobile-nav a.mobile-messenger-link { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-mono); font-size: 22px; border-bottom: none; }
.mobile-nav a.mobile-messenger-link--tg { color: #229ED9; }
.mobile-nav a.mobile-messenger-link--max { color: var(--neon); }
.mobile-nav a.mobile-messenger-link .max-logo { width: 20px; height: 20px; }
.btn-primary, .btn-outline, .btn-max {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 6px;
  transition: all .2s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  white-space: nowrap;
}
.btn-primary { background: var(--neon); color: #000; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 20px rgba(0,240,180,0.4); }
.btn-max { background: linear-gradient(135deg, #00f0b4 0%, #2ed6ff 100%); color: #061012; }
.btn-max:hover { background: #fff; box-shadow: 0 0 20px rgba(0,240,180,0.36); }
.btn-outline { border: 1px solid var(--neon); color: var(--neon); }
.btn-outline:hover { background: var(--neon); color: #000; }
.service-hero { position: relative; padding: 150px 40px 70px; overflow: hidden; }
.service-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: .16; }
.hero-inner-service { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-inner-service > * { min-width: 0; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--neon); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--neon); }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: 0; }
h1 { font-family: var(--font-display); font-size: clamp(54px, 7vw, 92px); font-weight: 400; max-width: 820px; overflow-wrap: anywhere; }
h1 .accent { color: var(--neon); }
.hero-sub { max-width: 720px; margin-top: 24px; color: #b8c4cf; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.fact { min-height: 94px; padding: 16px; background: rgba(15,25,35,0.82); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; }
.fact strong { display: block; color: var(--neon); font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1; margin-bottom: 8px; }
.fact span { color: var(--muted); font-size: 13px; }
.hero-media { width: 100%; max-width: 460px; justify-self: end; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.hero-media picture { display: block; width: 100%; height: clamp(340px, 34vw, 420px); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.lightbox-trigger { cursor: zoom-in; }
.lightbox-trigger:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.media-note { padding: 14px 16px; background: rgba(8,10,12,.92); border-top: 1px solid var(--border); color: #b8c4cf; font-size: 13px; line-height: 1.55; }
section.content-section { padding: 70px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { margin-bottom: 26px; }
h2 { font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 58px); font-weight: 400; }
.section-sub { max-width: 720px; margin-top: 12px; color: var(--muted); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-height: 100%; min-width: 0; padding: 24px; background: rgba(15,25,35,.86); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; }
.card h3 { font-family: var(--font-display); font-size: 30px; font-weight: 400; margin-bottom: 12px; }
.card p, .card li { color: #aebbc7; overflow-wrap: anywhere; }
.card ul { padding-left: 18px; }
.card li + li { margin-top: 7px; }
.accent-card { border-color: rgba(255,107,43,.22); background: linear-gradient(135deg, rgba(255,107,43,.08), rgba(15,25,35,.88) 56%); }
.price strong { display: block; color: var(--neon); font-family: var(--font-display); font-size: 36px; font-weight: 400; line-height: 1; margin: 8px 0 10px; }
.price small { color: var(--muted); }
.case-card { overflow: hidden; padding: 0; }
.case-card picture { display: block; width: 100%; height: 260px; }
.case-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.case-card div { padding: 18px; }
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
  cursor: default;
}
#lightboxClose {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  opacity: .78;
}
#lightboxClose:hover { opacity: 1; }
#lightboxCaption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-family: var(--font-mono);
  text-align: center;
  max-width: min(90vw, 900px);
}
.cta-band { max-width: 1200px; margin: 20px auto 80px; padding: 34px; background: linear-gradient(135deg, rgba(0,240,180,.10), rgba(255,107,43,.06)), var(--bg2); border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.cta-band h2 { font-size: 46px; }
.cta-band p { max-width: 720px; margin-top: 10px; color: #b8c4cf; }
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 40px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand p { font-size: 15px; color: var(--muted); margin-top: 16px; line-height: 1.7; }
.footer-col h3 { font-family: var(--font-mono); font-size: 12px; color: var(--neon); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--neon); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--neon); }
.messenger-floats {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.messenger-float {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.messenger-float--tg {
  background: #229ED9;
  box-shadow: 0 4px 20px rgba(34,158,217,0.45);
}
.messenger-float--max {
  background: linear-gradient(135deg, #00f0b4 0%, #2ed6ff 100%);
  color: #061012;
  box-shadow: 0 4px 20px rgba(0,240,180,0.35);
}
.messenger-float:hover { transform: scale(1.1); }
.messenger-float--tg:hover { box-shadow: 0 6px 28px rgba(34,158,217,0.6); }
.messenger-float--max:hover { box-shadow: 0 6px 28px rgba(0,240,180,0.5); }
.messenger-float svg { width: 28px; height: 28px; }
.messenger-float .max-logo { width: 30px; height: 30px; }
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  background: rgba(8,10,12,0.92);
  color: var(--neon);
  border: 1px solid rgba(0,240,180,0.32);
  box-shadow: 0 4px 20px rgba(0,240,180,0.18);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--neon);
  color: #061012;
  box-shadow: 0 6px 28px rgba(0,240,180,0.45);
}
@media (max-width: 1180px) { nav { display: none; } .burger { display: flex; } .header-phone { display: none; } }
@media (max-width: 980px) {
  header { padding: 0 20px; }
  .hero-inner-service, .grid-2, .grid-3, .grid-4, .cta-band, .footer-top { grid-template-columns: 1fr; }
  .service-hero, section.content-section { padding-left: 20px; padding-right: 20px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; justify-self: start; }
  .hero-media picture { height: auto; }
  .hero-media img { height: auto; max-height: 520px; }
}
@media (max-width: 640px) {
  .logo.logo-real svg, .logo.logo-real .logo-svg { height: 34px; max-width: 170px; }
  .header-social, .header-quote-link { display: none; }
  .service-hero { padding-top: 120px; }
  h1 { font-size: clamp(38px, 10vw, 50px); max-width: 100%; }
  .hero-sub { font-size: 16px; }
  .hero-actions, .hero-actions a { width: 100%; }
  .messenger-floats { bottom: 20px; right: 20px; gap: 10px; }
  .messenger-float { width: 54px; height: 54px; }
  .cta-band { padding: 24px 20px; }
  .footer-top { gap: 28px; }
}
