:root {
  --bg: #070a0f;
  --bg-deep: #030508;
  --ink: #ffffff;
  --ice: #7dd3fc;
  --ice-glow: rgba(125, 211, 252, 0.4);
  --violet: #c084fc;
  --blue: #38bdf8;
  --line: rgba(255, 255, 255, 0.12);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body { margin: 0; overflow-x: hidden; color: var(--ink); font-family: var(--font-body); }
button, input, select { font: inherit; } 
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ФОНОВОЕ ВИДЕО */
.video-container { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.video-scroll-bg { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) contrast(1.05); }
.video-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(7, 10, 15, 0.15) 0%, rgba(3, 5, 8, 0.65) 90%);
}

.container { position: relative; z-index: 10; width: min(1080px, calc(100% - 36px)); margin: 0 auto; }

/* ЛОГОТИПЫ */
.brand-fixed { position: fixed; top: 20px; left: max(20px, calc((100vw - 1080px) / 2)); z-index: 101; width: 110px; }
.brand-fixed img, .brand-footer img { width: 100%; height: auto; }
.brand-footer { width: 95px; display: inline-block; }

/* ИДЕАЛЬНЫЙ АДАПТИВНЫЙ БАР */
.floating-navbar {
  position: fixed; 
  top: 16px; 
  left: 50%; 
  transform: translateX(-50%); 
  z-index: 100;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 10px;
  width: max-content;
  max-width: min(820px, calc(100vw - 20px)); 
  height: 50px; 
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18); 
  border-radius: 100px;
  background: rgba(10, 15, 24, 0.85); 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.nav-group { 
  display: flex; 
  align-items: center;
  gap: 4px; 
  flex-shrink: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-group::-webkit-scrollbar { display: none; }

.nav-link {
  padding: 6px 12px;
  border-radius: 100px;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.nav-link:hover, 
.nav-link.active-cat {
  color: #070a0f !important;
  background: var(--ice);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.4);
  font-weight: 700;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.lang-btn.is-active, .lang-btn:hover {
  background: var(--ice);
  color: #070a0f;
}

.nav-actions { 
  display: flex; 
  align-items: center;
  gap: 6px; 
  flex-shrink: 0;
}

.nav-action-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-action-btn:hover { background: var(--ice); color: #000; }
.nav-action-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* HERO */
.hero { display: flex; flex-direction: column; justify-content: center; min-height: 82vh; padding-top: 80px; }
.glass-card-hero {
  padding: 36px; border-radius: 20px; background: rgba(10, 15, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px); max-width: 680px;
}
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ice); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
h1 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.08; color: #fff; margin-bottom: 14px; }
.hero-text { color: #cbd5e1; font-size: 14px; line-height: 1.6; margin-bottom: 24px; max-width: 480px; }

.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px; font-size: 12px; font-weight: 800; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s; }
.button-primary { color: #070a0f; background: var(--ice); }
.button-ghost { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: #fff; }

/* СЕКЦИИ */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-head { margin-bottom: 32px; }
.section-head-flex { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 42px); color: #fff; margin-top: 8px; }
.section-head p { color: #94a3b8; font-size: 13px; margin-top: 6px; }

/* УСЛУГИ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  padding: 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 24, 0.65); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--ice); }
.card-top { display: flex; justify-content: space-between; align-items: center; color: #64748b; font-size: 12px; font-weight: 800; }
.service-icon-svg { width: 24px; height: 24px; display: grid; place-items: center; }
.service-icon-svg svg { width: 22px; height: 22px; fill: var(--ice); }

.service-card h3 { font-size: 20px; color: #fff; margin: 16px 0 8px; }
.service-card p { color: #94a3b8; font-size: 12px; line-height: 1.5; margin-bottom: 14px; }
.service-card ul { padding: 0; margin: 0 0 18px; list-style: none; }
.service-card li { margin: 6px 0; color: #cbd5e1; font-size: 11px; }
.service-card li::before { content: '• '; color: var(--ice); }
.card-btn { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; text-align: center; display: block; }
.card-btn:hover { background: var(--ice); color: #000; }

/* ПОРТФОЛИО */
.portfolio-filter-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 16px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04); color: #94a3b8; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.filter-chip.is-active, .filter-chip:hover { border-color: var(--ice); background: rgba(125,211,252,0.15); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card {
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 24, 0.7); backdrop-filter: blur(14px); overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--ice); }
.work-media { position: relative; height: 160px; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 100px;
  background: rgba(7, 10, 15, 0.85); border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px; font-weight: 700; color: var(--ice);
}
.work-body { padding: 16px; }
.work-body h3 { font-size: 16px; color: #fff; margin-bottom: 6px; }
.work-body p { color: #94a3b8; font-size: 12px; margin: 0; line-height: 1.4; }

/* КАЛЬКУЛЯТОР-ПРЕЙСКУРАНТ */
.price-search-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3); margin-bottom: 12px;
}
.price-search-box svg { width: 16px; height: 16px; fill: var(--ice); flex-shrink: 0; }
.price-search-box input {
  width: 100%; border: 0; background: transparent; color: #fff; font-size: 12px; outline: none;
}

.calc-card {
  padding: 28px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 15, 24, 0.75); backdrop-filter: blur(16px); display: grid; gap: 20px;
}
.calc-step { display: grid; gap: 10px; }
.calc-label { font-size: 13px; font-weight: 700; color: #f1f5f9; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; }
.calc-badge { padding: 4px 12px; border-radius: 100px; background: rgba(125, 211, 252, 0.15); border: 1px solid var(--ice); color: var(--ice); font-size: 13px; }
.calc-slider { width: 100%; accent-color: var(--ice); cursor: pointer; }

.price-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; flex-wrap: wrap; }
.price-tab {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #94a3b8;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.price-tab.is-active, .price-tab:hover { border-color: var(--ice); background: rgba(125, 211, 252, 0.15); color: #fff; }

.price-group { display: none; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; padding-right: 6px; }
.price-group.is-active {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 14px !important;
}

.price-section-title {
  grid-column: 1 / -1 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--ice) !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-top: 12px !important;
}

.price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
}

.price-info { display: flex; flex-direction: column; gap: 2px; max-width: 380px; }
.price-info strong { font-size: 12px; color: #fff; }
.price-info span { font-size: 10px; color: #94a3b8; }
.price-price { font-size: 12px; font-weight: 700; color: var(--ice); }

.price-counter { display: flex; align-items: center; gap: 6px; }
.counter-btn {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #fff; font-weight: bold; cursor: pointer;
}
.counter-btn:hover { background: var(--ice); color: #000; }
.item-count { width: 30px; text-align: center; border: 0; background: transparent; color: #fff; font-weight: bold; font-size: 12px; }

.calc-result-bar {
  display: flex; justify-content: space-between; align-items: center; padding-top: 16px;
  border-top: 1px solid var(--line); flex-wrap: wrap; gap: 16px;
}
.calc-total-box span { display: block; font-size: 11px; color: #94a3b8; text-transform: uppercase; }
.calc-total-box strong { font-size: 26px; color: var(--ice); font-family: var(--font-display); }

/* ПРОЦЕСС */
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-card {
  position: relative; padding: 24px 20px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(10, 15, 24, 0.7);
  backdrop-filter: blur(14px); transition: transform 0.3s, border-color 0.3s;
}
.process-card:hover { transform: translateY(-6px); border-color: var(--ice); }
.process-step-badge {
  position: absolute; top: 16px; right: 16px; font-family: var(--font-display);
  font-size: 18px; font-weight: 800; color: rgba(125, 211, 252, 0.3);
}
.process-card h3 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.process-card p { color: #94a3b8; font-size: 12px; line-height: 1.5; margin-bottom: 16px; }
.process-tag { display: inline-block; padding: 4px 10px; border-radius: 100px; background: rgba(125, 211, 252, 0.1); border: 1px solid var(--ice); color: var(--ice); font-size: 10px; font-weight: 700; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: rgba(10, 15, 24, 0.6); padding: 14px 18px; }
.faq-item summary { font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::after { content: '＋'; color: var(--ice); }
.faq-item[open] summary::after { content: '✕'; }
.faq-item p { margin: 10px 0 0; color: #cbd5e1; font-size: 12px; line-height: 1.5; }

/* СУПЕР-CTA БЛОК */
.super-cta { position: relative; margin-bottom: 60px; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255, 255, 255, 0.2); }
.cta-glow-backdrop {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(13, 20, 35, 0.95), rgba(7, 10, 15, 0.98));
}
.cta-content-grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  padding: 48px; align-items: center;
}
.cta-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  background: rgba(125, 211, 252, 0.12); border: 1px solid var(--ice); color: var(--ice);
  font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px;
}
.cta-pulse-light { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }

.super-cta h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; color: #fff; margin-bottom: 12px; }
.super-cta p { color: #94a3b8; font-size: 13px; margin-bottom: 24px; line-height: 1.6; }

.cta-quick-contacts { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-pill-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff;
  font-size: 12px; font-weight: 700; transition: all 0.2s;
}
.contact-pill-btn:hover { background: #fff; color: #000; }
.telegram-pill { border-color: var(--ice); color: var(--ice); }
.telegram-pill:hover { background: var(--ice); color: #000; }

.cta-form-card {
  padding: 28px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px);
}
.cta-form-card h3 { font-size: 18px; color: #fff; margin-bottom: 16px; }
.form-input-group { margin-bottom: 12px; }
.form-input-group input {
  width: 100%; padding: 12px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 12px; outline: none;
}
.super-btn { width: 100%; margin-top: 8px; }

/* FOOTER & MODALS */
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 36px; border-top: 1px solid var(--line); color: #64748b; font-size: 11px; }
.contact-modal { width: min(420px, calc(100% - 24px)); padding: 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); background: rgba(10, 15, 24, 0.95); color: #fff; backdrop-filter: blur(20px); }
.contact-modal::backdrop { background: rgba(0,0,0,0.8); }
.contact-modal h2 { font-size: 28px; margin-bottom: 18px; }
.modal-close { position: absolute; top: 16px; right: 16px; border: 0; background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.contact-modal form { display: grid; gap: 12px; }
.contact-modal label { color: #94a3b8; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.contact-modal input, .contact-modal select { width: 100%; padding: 10px 0; margin-top: 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #fff; font-size: 13px; outline: none; }

/* СКАН-ЭФФЕКТ ПРИ ВХОДЕ */
.scan-overlay {
  position: fixed; inset: 0; z-index: 999999 !important; background: rgba(3, 5, 8, 0.92);
  backdrop-filter: blur(12px); pointer-events: none; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}
.scan-overlay.is-finished { opacity: 0 !important; visibility: hidden !important; }
.scan-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #7dd3fc 50%, transparent 100%);
  box-shadow: 0 0 15px #7dd3fc; animation: scanAnimation 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes scanAnimation {
  0% { top: -5%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 105%; opacity: 0; }
}
.scan-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 100px;
  background: rgba(10, 15, 24, 0.9); border: 1px solid #7dd3fc; color: #7dd3fc;
  font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: 2px;
}

/* ==========================================
   ИСПРАВЛЕННАЯ СТРОКА И КНОПКА СКАЧИВАНИЯ APK
   ========================================== */
.hero-actions-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

/* Фиксированная мини-кнопка */
.apk-chip-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 14px 6px 8px !important;
  background: rgba(125, 211, 252, 0.08) !important;
  border: 1px solid rgba(125, 211, 252, 0.3) !important;
  border-radius: 100px !important;
  color: #fff !important;
  text-decoration: none !important;
  height: 44px !important;
  width: auto !important;
  max-width: fit-content !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.apk-chip-btn:hover {
  background: rgba(125, 211, 252, 0.2) !important;
  border-color: var(--ice) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(125, 211, 252, 0.25) !important;
}

/* Иконка и ее зажим */
.apk-icon-box {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  background: var(--ice) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #070a0f !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

/* СТРОГИЙ ЗАЖИМ РАЗМЕРА SVG */
.apk-icon-box svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block !important;
}

.apk-btn-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.1 !important;
  text-align: left !important;
}

.apk-btn-text small {
  font-size: 8px !important;
  color: var(--ice) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 700 !important;
}

.apk-btn-text strong {
  font-size: 11px !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* АНИМАЦИЯ СТРЕЛКИ ВНИЗ */
.apk-arrow-anim {
  animation: apkArrowBounce 1.2s infinite ease-in-out !important;
}

@keyframes apkArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

/* АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ */
@media (max-width: 820px) {
  .service-grid, .portfolio-grid, .process-timeline, .cta-content-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 580px) {
  .brand-fixed { display: none !important; }
  .floating-navbar { top: 8px; height: 44px; width: calc(100vw - 12px); }
  .hero { padding-top: 65px; }
  .glass-card-hero { padding: 18px; }
  .hero-actions-row { flex-direction: column; align-items: stretch; }
  .hero-actions-row .button, .apk-chip-btn { width: 100% !important; justify-content: center !important; }
}