/* ========================================
   CSS ПЕРЕМЕННЫЕ
   ======================================== */

:root {
  /* Основные цвета фона */
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-card: rgba(45, 45, 45, 0.6);
  
  /* Акцентные цвета */
  --accent-primary: #ff6b35;
  --accent-secondary: #ff8c42;
  --accent-hover: #ff5722;
  
  /* Текст */
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  
  /* Дополнительные цвета */
  --border-color: rgba(255, 107, 53, 0.2);
  --shadow-color: rgba(255, 107, 53, 0.15);
  --gradient-start: #ff6b35;
  --gradient-end: #ff8c42;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', system-ui, Arial;
  color: var(--text-primary);
  background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 107, 53, 0.08), transparent 10%), 
              radial-gradient(900px 500px at 90% 80%, rgba(255, 140, 66, 0.05), transparent 10%), 
              linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: 40px;
  margin: 0 0 8px 0;
  line-height: 1.02;
}

h2 {
  margin-top: 36px;
}

p.lead {
  color: var(--text-secondary);
  font-size: 18px;
  margin: 0 0 18px 0;
}

label {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========================================
   LAYOUT КОМПОНЕНТЫ
   ======================================== */

.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 28px;
}

/* ========================================
   HEADER И НАВИГАЦИЯ
   ======================================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 30px var(--shadow-color);
  animation: pulse 3s ease-in-out infinite;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-primary);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
}

/* ========================================
   HERO СЕКЦИЯ
   ======================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: center;
  margin-top: 22px;
  animation: fadeInUp 1s ease-out;
}

.hero .lead {
  max-width: 640px;
}

.hero-img {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.6);
  will-change: transform;
}

.hero-img img {
  width: 100%;
  display: block;
}

.cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ========================================
   КНОПКИ
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  color: white;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 32px var(--shadow-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.btn:active {
  transform: translateY(0);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.ghost {
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border: 1px solid var(--border-color);
  color: white;
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.icon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.icon-btn[href*="wa.me"] svg {
  animation: bounce 2s infinite;
}

/* ========================================
   КАРТОЧКИ
   ======================================== */

.card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 15px 35px var(--shadow-color);
}

/* ========================================
   TRUST BADGES
   ======================================== */

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
  padding: 20px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.badge .icon {
  font-size: 24px;
}

.badge span:last-child {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

/* ========================================
   СЕКЦИЯ УСЛУГ
   ======================================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.service h3 {
  margin: 8px 0;
}

.service img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  filter: contrast(1.02) brightness(0.85);
  transition: all 0.3s ease;
}

.service:hover img {
  transform: scale(1.05);
  filter: contrast(1.1) brightness(0.9);
}

/* ========================================
   СЕКЦИЯ СТАТИСТИКИ
   ======================================== */

#stats {
  margin-top: 40px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  margin: 0;
  color: var(--accent-primary);
}

.stat-number.accent-2 {
  color: var(--accent-secondary);
}

.stat-label {
  margin: 8px 0 0 0;
  color: var(--text-muted);
}

[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ========================================
   FAQ СЕКЦИЯ
   ======================================== */

#faq .card h3 {
  user-select: none;
  -webkit-user-select: none;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  margin-top: 36px;
  color: var(--text-muted);
  text-align: center;
  padding: 18px;
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА И POPUP
   ======================================== */

.modal-overlay {
  backdrop-filter: blur(4px);
}

.exit-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  z-index: 10000;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.exit-popup.show {
  transform: translate(-50%, -50%) scale(1);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.popup-btn {
  display: inline-block;
  text-decoration: none;
}

/* ========================================
   ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ
   ======================================== */

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border: 1px solid var(--border-color);
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 30px var(--shadow-color);
  animation: slideInUp 0.5s ease-out;
}

.scroll-to-top:hover {
  transform: scale(1.1) translateY(-2px);
}

.fab-whatsapp {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  z-index: 1000;
  animation: bounce 2.5s infinite;
  text-decoration: none;
}

.fab-whatsapp svg {
  display: block;
  fill: white;
}

/* ========================================
   УТИЛИТАРНЫЕ КЛАССЫ
   ======================================== */

.brand-name {
  font-weight: 700;
  font-size: 16px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.mt-20 {
  margin-top: 20px;
}

.text-center {
  text-align: center;
}

.concerns-list {
  margin: 8px 0 0 18px;
  color: var(--text-muted);
}

.service-btn {
  margin-top: 10px;
  display: inline-block;
}

.about-text {
  margin: 0;
  color: var(--text-secondary);
}

.about-text-secondary {
  margin: 12px 0 0 0;
  color: var(--text-secondary);
}

.about-list {
  margin-top: 12px;
  color: var(--text-secondary);
}



.review-text {
  margin: 6px 0 0 0;
  color: var(--text-secondary);
}

.contact-text {
  color: var(--text-secondary);
}

.contact-cta {
  margin-top: 20px;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========================================
   АНИМАЦИИ
   ======================================== */

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   МЕДИА-ЗАПРОСЫ
   ======================================== */

/* Мобильные устройства (до 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  h2 {
    font-size: 22px;
  }

  .container {
    padding: 14px;
    margin: 14px auto;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 14px 18px;
  }

  .service-btn {
    width: 100%;
  }

  .card {
    padding: 16px;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .stat-number {
    font-size: 28px;
  }

  header {
    padding: 14px;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-subtitle {
    font-size: 11px;
  }
}

/* Планшеты и мобильные (до 768px) */
@media (max-width: 768px) {
  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .badge {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  p.lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .btn, .ghost {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  nav {
    display: none;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .fab-whatsapp {
    bottom: 80px;
    right: 14px;
    width: 50px;
    height: 50px;
  }

  .scroll-to-top {
    bottom: 140px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .exit-popup {
    width: 95%;
    padding: 24px;
  }
}

/* Десктоп маленький (до 980px) */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-img {
    display: none;
  }

  .container {
    padding: 18px;
  }
}
