/* ========== ПАЛИТРА ========== */
:root {
  --bg: #0B0C10;
  --panel: #121317;
  --text: #FFFFFF;
  --muted: #A9A9A9;
  --accent: #0078D7;
  --accent-glow: rgba(0, 120, 215, 0.5);
}


.desktop-only {
  display: flex;
}
.mobile-only,
.mobile-menu-overlay {
  pointer-events: auto;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(0,120,215,0.03), transparent 10%),
    linear-gradient(180deg, rgba(0,0,0,0.06), transparent 30%),
    var(--bg);
}
body {
  padding-top: 100px; /* высота header + отступ */
}

/* Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
header, main, footer, #preloader, .modal { position: relative; z-index: 10; }

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0f 0%, rgba(0,0,0,0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-wrap { text-align: center; }
.logo-mark {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), #005ea8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 24px;
  box-shadow: 0 0 30px var(--accent-glow);
  animation: logo-bob 1.8s infinite ease-in-out;
}
@keyframes logo-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.loader-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  opacity: 0.9;
}

/* ========== ГЛОБАЛЬНЫЙ КОНТЕЙНЕР ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: inline-flexbox;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ========== HEADER / НАВИГАЦИЯ (ДЕСКТОП) ========== */

.nav-bar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 19, 23, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 10px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: fit-content;
  pointer-events: auto;
}

/* Логотип */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}
.logo-container svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95em;
  border-radius: 16px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s ease;
}

.nav-item:hover svg,
.nav-item.active svg {
  opacity: 1;
  transform: scale(1.1);
}

.nav-item.active {
  background: #0B0C10;
  color: var(--text);
  box-shadow: 0 0 16px rgba(0, 120, 215, 0.3);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.nav-item:hover:not(.active) {
  background: rgba(0, 120, 215, 0.15);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 120, 215, 0.3);
}

/* Анимации только у активных */
.nav-item.active .home-icon { animation: pulse 3s ease-in-out infinite; }
.nav-item.active .cases-icon { animation: pulse 3s ease-in-out infinite; }
.nav-item.active .about-icon { animation: pulse 3s ease-in-out infinite; }
.nav-item.active .contact-icon { animation: pulse 3s ease-in-out infinite; }

.nav-item:not(.active) .home-icon,
.nav-item:not(.active) .cases-icon,
.nav-item:not(.active) .about-icon,
.nav-item:not(.active) .contact-icon {
  animation: none !important;
  transform: none !important;
}


/* ========== HERO ========== */
.hero {
  padding: 120px 20px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at top, rgba(0,120,215,0.15), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.hero h1 {
  font-size: 2.6em;
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0,120,215,0.4);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero p {
  color: var(--muted);
  font-size: 1.1em;
  max-width: 600px;
  margin: 20px auto 40px;
}

/* ========== REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== PARTNERS ========== */
.partners {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
}
.section-title {
  font-size: 1.8em;
  color: var(--text);
  margin-bottom: 30px;
  text-shadow: 0 0 15px var(--accent-glow);
  text-align: center;
}

.marquee-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.marquee-scroll {
  display: flex;
  gap: 60px;
  padding: 0 20px;
  width: max-content;
  min-width: 100%;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 20px;
  scroll-behavior: smooth;
  overflow-x: auto;
  position: relative;
  z-index: 5;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.marquee-scroll::-webkit-scrollbar {
  display: none;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 140px;
  text-align: center;
}

.partner-card img {
  height: 50px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
  opacity: 0.8;
  transition: all 0.3s ease;
}
.partner-card:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--accent-glow);
}
.partner-card span {
  font-size: 0.9em;
  color: var(--muted);
}

/* Стрелки навигации */
.marquee-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, background 0.3s;
  padding: 8px;
  box-sizing: content-box;
}
.marquee-nav:hover {
  background: var(--accent);
}
.marquee-container:hover .marquee-nav {
  opacity: 1;
  visibility: visible;
}
.marquee-nav--left {
  left: 20px;
}
.marquee-nav--right {
  right: 20px;
}

/* Neon breathing */
.neon-breathe,
.neon-text {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0,120,215,0.4), 0 0 16px rgba(0,120,215,0.2);
  animation: neon-breathe 3.6s ease-in-out infinite;
}
@keyframes neon-breathe {
  0% { text-shadow: 0 0 8px rgba(0,120,215,0.25), 0 0 16px rgba(0,120,215,0.08); transform: translateY(0) scale(1); }
  50% { text-shadow: 0 0 20px rgba(0,120,215,0.45), 0 0 40px rgba(0,120,215,0.18); transform: translateY(-2px) scale(1.01); }
  100% { text-shadow: 0 0 8px rgba(0,120,215,0.25), 0 0 16px rgba(0,120,215,0.08); transform: translateY(0) scale(1); }
}

/* ========== КНОПКИ ========== */
.btn {
  background: linear-gradient(180deg, var(--accent), #005ea8);
  border: none;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 26px var(--accent-glow);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 50px rgba(0,120,215,0.6);
}

/* ========== КАРТОЧКИ / КЕЙСЫ ========== */
.card, .case-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: transform 0.18s, box-shadow 0.18s;
}
.card h3 {
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(0,120,215,0.28);
}
.card p {
  color: var(--muted);
  margin: 0;
}

/* Фильтры */
.filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}
.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(180deg, var(--accent), #005ea8);
  color: #fff;
  box-shadow: 0 8px 26px var(--accent-glow);
}

/* ========== СТАТИСТИКА ========== */
.stats {
  padding: 80px 20px;
  background: var(--panel);
  border-radius: 16px;
  margin: 60px auto;
  max-width: 1200px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.stats-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  text-align: center;
}
.stat {
  flex: 1 1 180px;
  min-width: 160px;
}
.count-up {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}
.stat p {
  margin-top: 12px;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
.modal.open {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--panel);
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 0 60px rgba(0,120,215,0.4);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.open .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--accent);
}
.modal img {
  width: 100%;
  border-radius: 16px;
  margin: 20px 0;
}
.modal h3 {
  color: var(--text);
  margin: 0 0 20px 0;
  font-size: 1.8em;
}
.modal #modalDescription {
  color: var(--muted);
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), var(--panel));
  border-top: 1px solid rgba(255,255,255,0.03);
  margin-top: 100px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1;
  min-width: 250px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), #005ea8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 18px var(--accent-glow);
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95em;
}
.footer-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  margin: 40px auto;
  max-width: 1200px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
  flex-wrap: wrap;
}
.legal-info {
  flex: 2;
  min-width: 300px;
  color: var(--muted);
  font-size: 0.85em;
  line-height: 1.6;
  text-align: left;
}
.legal-info p {
  margin: 4px 0;
}
.legal-info a {
  color: var(--accent);
  text-decoration: none;
}
.legal-info a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}
.legal-docs {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.doc-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9em;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-link:hover {
  opacity: 0.8;
  text-shadow: 0 0 8px var(--accent-glow);
}
.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 0.9em;
  margin: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.results-disclaimer {
  margin-top: 20px;
  font-size: 0.85em;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.5px;
  opacity: 0.8;
  animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.8; }
}
.legal-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.legal-toggle:hover {
  opacity: 0.8;
}
.toggle-icon {
  transition: transform 0.3s;
}
.legal-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
}
.legal-details {
  color: var(--muted);
  font-size: 0.85em;
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
}
.legal-details a {
  color: var(--accent);
  text-decoration: none;
}
.legal-details a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}

/* ========== ЧЕМ МЫ ЗАНИМАЕМСЯ / ПАРТНЁРЫ ========== */
.what-we-do,
.partners {
  padding: 60px 20px;
  text-align: center;
}
.cards-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.cards-marquee-inner {
  display: inline-flex;
  gap: 32px;
  animation: scroll-cards 60s linear infinite;
  will-change: transform;
}
.cards-marquee:hover .cards-marquee-inner {
  animation-play-state: paused;
}
.card-item {
  min-width: 280px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-item:hover {
  transform: translateY(-8px);
  background: rgba(0, 120, 215, 0.08);
  box-shadow: 0 10px 30px rgba(0, 120, 215, 0.2);
}
.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.card-item h3 {
  margin: 0 0 12px 0;
  font-size: 1.2em;
  color: var(--text);
}
.card-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.5;
}
@keyframes scroll-cards {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== ПОЧЕМУ ИМЕННО МЫ? ========== */
.why-us {
  padding: 80px 20px;
  background: var(--panel);
  border-radius: 16px;
  margin: 60px auto;
  max-width: 1200px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.reason-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: transform 0.2s;
}
.reason-card:hover {
  transform: translateY(-4px);
}
.reason-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--accent);
}
.reason-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.3em;
  color: var(--text);
}
.reason-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ========== ЧТО МЫ СОЗДАЁМ ========== */
.solutions {
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}
.solutions::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0,120,215,0.03), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 60px auto 0;
  position: relative;
  z-index: 2;
}
.solution-card {
  background: rgba(20, 22, 28, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
  backdrop-filter: blur(4px);
}
.solution-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,120,215,0.25);
  border-color: rgba(0,120,215,0.2);
}
.solution-icon {
  font-size: 42px;
  margin-bottom: 20px;
  display: block;
}
.solution-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.4em;
  color: var(--text);
}
.solution-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.solution-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,120,215,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.solution-card:hover .solution-glow {
  opacity: 1;
}

/* ========== ВАШ РЕЗУЛЬТАТ ========== */
.results {
  padding: 120px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), transparent);
  position: relative;
}
.results-canvas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto 0;
}
.result-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(0,0,0,0.2);
  border-radius: 18px;
  transition: transform 0.5s ease;
}
.result-item:hover {
  transform: translateX(10px);
}
.result-icon {
  font-size: 36px;
  min-width: 50px;
  text-align: center;
  color: var(--accent);
}
.result-content h3 {
  margin: 0 0 10px 0;
  color: var(--text);
}
.result-content p {
  color: var(--muted);
  margin: 0;
}

/* ========== НАШ ПОДХОД ========== */
.approach {
  padding: 120px 20px;
  position: relative;
}
.approach-timeline {
  max-width: 900px;
  margin: 60px auto 0;
  position: relative;
  padding-left: 40px;
}
.approach-timeline::before {
  content: "";
  position: absolute;
  left: 56px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  z-index: 1;
}
.timeline-glow {
  position: absolute;
  left: 55px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: radial-gradient(circle, rgba(0,120,215,0.2) 0%, transparent 70%);
  z-index: 0;
}
.approach-step {
  position: relative;
  margin-bottom: 50px;
  padding-left: 40px;
}
.step-dot {
  position: absolute;
  left: -28px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 2;
}
.step-number {
  position: absolute;
  left: -42px;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: bold;
  z-index: 3;
}
.approach-step h3 {
  margin: 0 0 12px 0;
  color: var(--text);
}
.approach-step p {
  color: var(--muted);
  margin: 0;
}

/* ========== FAQ ========== */
.faq {
  padding: 100px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: background 0.3s;
}
.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  font-size: 1.1em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.faq-trigger:hover {
  color: var(--accent);
}
.faq-icon {
  font-size: 24px;
  transition: transform 0.3s;
}
.faq-content {
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.6;
  transition: all 0.4s ease;
}
.faq-content[hidden] {
  display: none;
}
.faq-ask {
  margin-top: 60px;
  text-align: center;
  padding: 40px;
  background: var(--panel);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  max-width: 600px;
  margin: 60px auto;
}
.faq-ask h3 {
  font-size: 1.4em;
  color: white;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faq-ask form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.faq-ask textarea,
.faq-ask input {
  width: 100%;
  padding: 14px 18px;
  background: #1e1f25;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
  font-size: 1em;
  transition: all 0.2s ease;
  resize: vertical;
  outline: none;
}
.faq-ask textarea::placeholder,
.faq-ask input::placeholder {
  color: #888;
  opacity: 0.8;
}
.faq-ask textarea:focus,
.faq-ask input:focus {
  border-color: #0078D7;
  box-shadow: 0 0 12px rgba(0, 120, 215, 0.3);
  background: #1a1b21;
}
.privacy-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0;
  font-size: 0.95em;
  color: #A9A9A9;
}
.privacy-checkbox-wrapper input[type="checkbox"] {
  margin: 0;
  padding: 0;
  accent-color: #0078D7;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: top;
  cursor: pointer;
}
.privacy-label {
  display: block;
  line-height: 1.4;
  cursor: pointer;
}
.privacy-label a {
  color: #0078D7;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s, text-shadow 0.2s;
}
.privacy-label a:hover {
  text-shadow: 0 0 8px rgba(0, 120, 215, 0.6);
  text-decoration-color: #0078D7;
}
.btn-submit {
  background: linear-gradient(180deg, #0078D7, #005ea8);
  border: none;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 26px rgba(0, 120, 215, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
  font-size: 1em;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 50px rgba(0, 120, 215, 0.6);
}
#form-message {
  margin-top: 16px;
  font-size: 0.9em;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  display: none;
}
#form-message.success {
  background: rgba(0, 120, 215, 0.1);
  color: #0078D7;
  border-left: 4px solid #0078D7;
}
#form-message.error {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border-left: 4px solid #ff6b6b;
}

/* ========== КЕЙСЫ ========== */
.cases-section {
  padding: 100px 20px;
  position: relative;
}
.cases-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(0,120,215,0.03), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px auto 50px;
  max-width: 800px;
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px 20px;
  color: var(--muted);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}
.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(180deg, var(--accent), #005ea8);
  color: #fff;
  box-shadow: 0 8px 26px var(--accent-glow);
  border-color: transparent;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.case-card {
  background: rgba(20, 22, 28, 0.6);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.03);
}
.case-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0,120,215,0.25);
}
.case-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0b0c10; /* фон, если изображение не загрузилось */
}

.case-image-inner {
  width: 100%;
  max-width: 90%; /* ограничиваем ширину */
  max-height: 180px; /* ограничиваем высоту */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-image-inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* не обрезаем, вписываем полностью */
  object-position: center;
  transition: transform 0.5s ease;
  filter: brightness(0.4) contrast(0.7) saturate(0.5); /* затемняем для тёмного дизайна */
}


/* При ховере — слегка увеличиваем */
.case-card:hover .case-image-inner img {
  transform: scale(1.03);
  filter: brightness(0.55) contrast(0.8) saturate(0.6);
}

/* Для SVG — дополнительно */
.case-image-inner img[src$=".svg"] {
  filter: brightness(0.4) contrast(0.7) saturate(0.5);
}

.case-card:hover .case-image-inner img[src$=".svg"] {
  filter: brightness(0.55) contrast(0.8) saturate(0.6);
}

.case-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0a0a0f 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.case-image img {
  position: relative;
  z-index: 2;
}

.case-image img:not([src]) + ::before,
.case-image img[src=""] + ::before {
  opacity: 1;
}

/* Для SVG/эмодзи */
.case-image::before {
  content: "🖼️";
}

.case-image img {
  width: 100%;
  height: auto; /* высота автоматическая */
  max-height: 220px;
  object-fit: contain; /* не обрезаем, вписываем полностью */
  object-position: center;
  transition: transform 0.5s ease;
  filter: brightness(0.7) contrast(0.9); 
}

.case-card:hover .case-image svg {
  transform: scale(1.03);
  object-fit: contain;
}

.case-image img[src$=".svg"] {
  filter: hue-rotate(180deg) brightness(0.6) contrast(0.8);
  transition: filter 0.3s ease;
}

.case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 20px 20px 12px;
}
.case-category {
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 600;
}
.case-content {
  padding: 24px;
}
.case-content h3 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: 1.4em;
}
.case-excerpt {
  color: var(--muted);
  margin: 0 0 16px 0;
  line-height: 1.6;
}
.case-read-more {
  background: transparent;
  color: var(--accent);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.case-read-more:hover {
  color: white;
  text-shadow: 0 0 10px var(--accent-glow);
}

/* ========== О КОМПАНИИ ========== */
.about-hero {
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 40%, rgba(0,120,215,0.05), transparent 60%);
}
.about-hero h1 {
  font-size: 3.2em;
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0,120,215,0.4);
}
.subtitle {
  font-size: 1.4em;
  color: var(--muted);
  margin-top: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.mission {
  padding: 80px 20px;
  background: var(--panel);
  border-radius: 20px;
  margin: 60px auto;
  max-width: 1200px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.4);
}
.mission .container {
  max-width: 900px;
  margin: 0 auto;
}
.mission h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
}

/* ========== КОМАНДА В МАРКУРИ ========== */
.team-marquee {
  padding: 100px 20px;
  position: relative;
}
.team-marquee .container {
  max-width: 1400px;
  margin: 0 auto;
}
.team-marquee h2 {
  text-align: center;
  margin-bottom: 40px;
}
#team-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 20px 0;
  max-width: 100%;
  margin: 0 auto;
  display: inline-flex;
  gap: 32px;
  animation: marquee-left 60s linear infinite;
  will-change: transform;
  padding: 0 20px;
  cursor: grab;
}
#team-marquee:hover {
  animation-play-state: paused;
}
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.team-card {
  min-width: 240px;
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.05);
}
.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,120,215,0.25);
}
.avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,120,215,0.1);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder {
  font-size: 32px;
  color: var(--accent);
}
.team-card h3 {
  margin: 0 0 8px 0;
  color: var(--text);
}


.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  position: relative;
  z-index: 60;
}

.mobile-logo svg {
  width: 40px;
  height: 40px;
}




.role {
  color: var(--muted);
  margin: 0 0 16px 0;
  font-style: italic;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.social-links a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  transition: all 0.2s;
}
.social-links a:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

/* ========== ЦЕННОСТИ ========== */
.values {
  padding: 100px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), transparent);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 50px;
}
.value-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.value-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,120,215,0.15);
}
.value-icon {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--accent);
  display: block;
}
.value-item h3 {
  margin: 0 0 12px 0;
  color: var(--text);
}
.value-item p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ========== КОНТАКТЫ ========== */
.contact-cards {
  padding: 80px 20px;
  background: var(--panel);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.contact-cards .container {
  max-width: 1400px;
  margin: 0 auto;
}
.contact-cards h2 {
  text-align: center;
  margin-bottom: 50px;
  color: var(--accent);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,0.02);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.05);
}
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,120,215,0.25);
}
.contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(0,120,215,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(0,120,215,0.1);
}
.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.contact-icon2 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0,120,215,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(0,120,215,0.1);
}
.contact-icon2 svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.contact-card h3 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: 1.4em;
  letter-spacing: -0.02em;
}
.contact-card p {
  color: var(--muted);
  margin: 0 0 24px 0;
  font-size: 0.95em;
  line-height: 1.5;
}
.contact-btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(180deg, var(--accent), #005ea8);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 26px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  text-align: center;
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 50px rgba(0,120,215,0.6);
}


/* ========== АДАПТИВ ========== */
@media (max-width: 1000px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
  .desktop-only {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  /* --- Главная страница --- */
  .hero h1 {
    font-size: 1.8em;
    line-height: 1.2;
    word-wrap: break-word;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9em;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* --- Футер: Полное центрирование --- */
  .site-footer {
    text-align: center;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 10px;
  }

  .footer-links a {
    font-size: 0.9em;
    white-space: nowrap;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0 10px;
  }

  .legal-toggle {
    justify-content: center;
  }

  .legal-details {
    width: 100%;
    text-align: center;
  }

  .legal-docs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .doc-link {
    justify-content: center;
  }

  .copyright {
    text-align: center;
    margin: 0 auto;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 16px;
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
    position: relative;
  }

  .menu-toggle span {
    display: block;
    height: 3px; /* Слегка увеличили толщину */
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Более плавная анимация */
    position: relative;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--accent); /* Меняем цвет на акцентный */
  }
  
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px); /* Плавно убираем */
  }
  
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--accent); /* Меняем цвет на акцентный */
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85); /* Более темный и насыщенный фон */
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: flex !important;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }


  .mobile-menu {
    background: var(--panel);
    border-radius: 0 0 24px 24px; /* Более плавные скругления */
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    padding: 80px 24px 32px; /* Больше отступа сверху для логотипа */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(10px); /* Эффект стекла (если поддерживается) */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Тонкая граница */
  }
  
  .mobile-menu-overlay.active .mobile-menu {
    transform: translateY(0);
  }
  
  /* Кнопка закрытия */
  .menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
  }
  
  .menu-close:hover {
    color: var(--accent);
    background: rgba(0, 120, 215, 0.1); /* Фон при наведении */
    transform: rotate(90deg); /* Анимация поворота */
  }
  
  /* Пункты мобильного меню */
  .mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    color: var(--muted);
    text-decoration: none;
    font-size: 1.2em; /* Больше шрифт */
    font-weight: 600; /* Полужирный */
    border-radius: 18px;
    transition: all 0.25s ease;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 12px; /* Центрируем и добавляем отступ снизу */
    background: rgba(255, 255, 255, 0.03); /* Легкий фон */
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .mobile-nav-item svg {
    width: 28px;
    height: 28px;
    opacity: 0.8;
    flex-shrink: 0; /* Иконка не сжимается */
  }
  
  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: var(--text);
    background: rgba(0, 120, 215, 0.15); /* Более насыщенный фон при наведении */
    box-shadow: 0 0 20px rgba(0, 120, 215, 0.3);
    border-color: rgba(0, 120, 215, 0.3);
    transform: translateY(-2px); /* Легкий эффект подъема */
  }
  
  .mobile-nav-item:hover svg,
  .mobile-nav-item.active svg {
    opacity: 1;
    transform: scale(1.15); /* Иконка увеличивается */
    fill: var(--accent); /* Цвет иконки меняется на акцентный */
  }

  .mobile-nav-item.active .home-icon { animation: spin 4s linear infinite; }
  .mobile-nav-item.active .cases-icon { animation: pulse 3s ease-in-out infinite; }
  .mobile-nav-item.active .about-icon { animation: bounce 2s ease-in-out infinite; }
  .mobile-nav-item.active .contact-icon { animation: slideUp 3s ease-in-out infinite; }

  .mobile-nav-item:not(.active) .home-icon,
  .mobile-nav-item:not(.active) .cases-icon,
  .mobile-nav-item:not(.active) .about-icon,
  .mobile-nav-item:not(.active) .contact-icon {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    padding: 8px 12px;
    gap: 6px;
  }
  .nav-item {
    flex: 1 1 100%; /* Один в ряд */
    min-width: auto;
    padding: 8px 10px;
    font-size: 0.8em;
    gap: 4px;
  }
  .nav-item svg {
    width: 14px;
    height: 14px;
  }
  .logo-container svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 700px) {
  .cases-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .marquee img { height: 40px; }
}

@media (max-width: 375px) {
  .nav-wrapper {
    padding: 2px 6px;
    gap: 2px;
  }
  .nav-item {
    padding: 4px 6px;
    font-size: 0.8em;
  }
  .nav-item svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 360px) {
  .nav-item {
    font-size: 0.76em;
    gap: 2px;
    padding: 6px 2px;
    min-width: 50px;
  }
  .nav-item svg {
    width: 16px;
    height: 16px;
  }
  nav {
    gap: 6px;
  }
}
