:root {
  --dark: #050818;
  --dark-light: #121629;
  --accent: #00d4ff;
  --accent-hover: #00b8d4;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --border: #2d3748;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: 'Inter', sans-serif; 
  background: var(--dark); 
  color: var(--text-primary); 
  line-height: 1.6; 
  overflow-x: hidden; 
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.page-header-spacer { height: 80px; }

/* --- HEADER --- */
header { 
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; 
  background: rgba(5, 8, 24, 0.9); backdrop-filter: blur(12px); 
  border-bottom: 1px solid var(--border); padding: 15px 0; 
}
.header-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 20px; color: var(--text-primary); }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 30px; }
.nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent); }
.header-actions { display: flex; gap: 15px; align-items: center; }

/* --- BUTTONS --- */
.btn { 
  padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; 
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: none; 
}
.btn-primary { 
  background: linear-gradient(135deg, var(--accent) 0%, #00a3cc 100%); 
  color: var(--dark); box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3); 
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4); }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* --- HERO --- */
.hero { padding-top: 140px; padding-bottom: 80px; background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.05), transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; font-weight: 800; margin-bottom: 24px; }
.hero-text h1 span { color: var(--accent); }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img { border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid var(--border); }

/* --- ADVANTAGES --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: var(--dark-light); padding: 30px; border-radius: 16px; border: 1px solid var(--border); text-align: center; transition: 0.3s; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.feature-icon { font-size: 40px; margin-bottom: 16px; display: inline-block; }
.feature-card h3 { margin-bottom: 10px; font-size: 18px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card { 
  background: var(--dark-light); padding: 30px; border-radius: 16px; border: 1px solid var(--border); 
  display: flex; flex-direction: column; justify-content: space-between; height: 100%; transition: 0.3s;
}
.service-card:hover { border-color: var(--accent); }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; flex-grow: 1; }
.service-price { color: var(--accent); font-weight: 700; margin-top: 15px; display: block; }
.price-tag { color: var(--accent); font-weight: 700; font-size: 16px; }

/* --- FAQ SECTION (NEW) --- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item.active { border-color: var(--accent); background: #151b2f; }
.faq-question {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
}
.faq-question h3 {
  font-size: 16px; font-weight: 600; margin: 0; color: var(--text-primary);
  line-height: 1.5; padding-right: 15px;
}
.faq-icon {
  font-size: 24px; font-weight: 400; color: var(--text-secondary);
  transition: transform 0.3s ease, color 0.3s ease; flex-shrink: 0; line-height: 1;
}
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
  padding: 0 24px;
}
.faq-answer p {
  padding-bottom: 24px; font-size: 14px; color: var(--text-secondary);
  line-height: 1.6; margin: 0;
}

/* --- CTA --- */
.cta-section { background: linear-gradient(135deg, var(--dark-light) 0%, #0a1025 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-box { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-box h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 16px; }

/* --- FOOTER --- */
footer { background: #02040c; border-top: 1px solid var(--border); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 16px; display: block; }
.footer-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; max-width: 300px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 16px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--text-secondary); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: 13px; color: var(--text-secondary); }

/* --- MOBILE --- */
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; }
.mobile-menu { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: var(--dark); z-index: 2000; padding: 40px; transform: translateX(100%); transition: 0.3s; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu.active { transform: translateX(0); box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
.mobile-menu a { font-size: 20px; font-weight: 700; color: #fff; }

@media (max-width: 900px) {
  .nav, .header-actions { display: none; }
  .mobile-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-btns { justify-content: center; }
  .hero-img { order: -1; max-height: 400px; object-fit: cover; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-grid { grid-template-columns: 1fr; }
}

/* --- ДОПОЛНЕНИЯ (Вставить в конец style.css) --- */

/* GALLERY SECTION */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* REVIEWS SECTION */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.review-card {
  background: var(--dark-light);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  align-items: center;
}
.review-stars {
  color: #fbbf24; /* Золотой цвет звезд */
  letter-spacing: 2px;
}
.review-date {
  font-size: 12px;
  color: var(--text-secondary);
}
.review-card p {
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.review-author {
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

/* АДАПТИВНОСТЬ ДЛЯ НОВЫХ БЛОКОВ */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CATEGORIES GRID (NEW) --- */
.categories-grid {
  display: grid;
  /* Адаптивная сетка: минимум 240px ширины, иначе перенос */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
  gap: 24px;
}

.category-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 20px; /* Более мягкие углы как на референсе */
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрируем по горизонтали */
  text-align: center;  /* Центрируем текст */
  transition: all 0.3s ease;
  height: 100%;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-7px);
  background: #151b2f; /* Чуть светлее при наведении */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-icon {
  font-size: 42px; /* Размер иконки */
  margin-bottom: 20px;
  line-height: 1;
  /* Если хочешь золотистый оттенок иконок как на скрине, раскомментируй ниже: */
  /* text-shadow: 0 0 20px rgba(255, 215, 0, 0.3); */
}

.category-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

.category-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Адаптив для мобильных: чтобы было по 1 карточке или по 2 узких */
@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: 1fr; /* Одна колонка на телефоне */
    gap: 16px;
  }
  .category-card {
    padding: 30px 20px;
    flex-direction: row; /* На телефоне иконка слева может быть удобнее */
    text-align: left;
    align-items: flex-start;
  }
  .category-icon {
    margin-bottom: 0;
    margin-right: 20px;
    font-size: 32px;
  }
}

/* --- BEFORE / AFTER SLIDER (CLEAN STYLE) --- */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Обертка теперь прозрачная, просто держит размер */
.ba-clean-wrapper {
  position: relative;
  width: 100%;
}

/* Слайдер контейнер */
.ba-slider {
  position: relative;
  width: 100%;
  height: 350px; /* Чуть выше, чтобы фото смотрелись круто */
  border-radius: 24px; /* Сильное скругление как на скрине */
  overflow: hidden;
  cursor: ew-resize;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Легкая тень */
}

.ba-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.ba-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0; left: 0;
}

/* Верхний слой (ПОСЛЕ) */
.ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #fff; /* Белая разделительная линия */
}

/* Лейблы (До/После) */
.ba-label {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.6); /* Темная подложка */
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 13px;
  border-radius: 30px;
  pointer-events: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ba-label-before { left: 20px; z-index: 1; }
.ba-label-after { right: 20px; z-index: 3; }

/* Ползунок (input) */
.ba-range {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  z-index: 10;
  cursor: ew-resize;
  margin: 0;
}

/* Кнопка (кружок) */
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.ba-circle {
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .ba-slider { height: 300px; }
}

/* --- NEW SVG ICONS STYLES --- */
.category-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px; /* Фиксируем высоту контейнера иконки */
}

.category-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent); /* Твой голубой цвет */
  stroke-width: 1.5;     /* Толщина линий */
  fill: none;            /* Без заливки, только контур */
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s ease;
}

/* Эффект при наведении на карточку: иконка чуть всплывает и светлеет */
.category-card:hover .category-icon svg {
  transform: scale(1.1);
  stroke: #fff; /* Или можно оставить var(--accent), если хочешь */
  filter: drop-shadow(0 0 5px var(--accent));
}

/* --- SOCIAL ICONS (FOOTER) --- */
.social-links {
  display: flex;
  gap: 20px; /* Расстояние между иконками */
  align-items: center;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary); /* Цвет в покое (серый) */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавная пружинистая анимация */
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor; /* Иконка берет цвет текста */
}

/* Эффект при наведении */
.social-link:hover {
  color: var(--accent); /* Меняем цвет на голубой */
  transform: translateY(-5px) scale(1.1); /* Поднимаем и немного увеличиваем */
}

/* --- SCROLLING WHY US SECTION --- */
.marquee-section {
  /* Немного более темный фон для контраста */
  background: radial-gradient(circle at center, #1a2035 0%, #050818 100%);
  overflow: hidden; /* Скрываем то, что вылезает за экран */
  padding: 80px 0;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;
  /* Добавляем маску по бокам, чтобы карточки плавно исчезали */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  /* Выравнивание элементов */
  gap: 30px;
  /* Ширина определяется содержимым */
  width: max-content; 
}

.marquee-group {
  display: flex;
  gap: 30px;
  /* Анимация: сдвигаем весь блок влево */
  animation: scroll-left 40s linear infinite;
  /* При наведении мышки можно останавливать, если хочешь: */
  /* animation-play-state: paused; */ 
}

/* Сама карточка */
.why-card {
  width: 280px; /* Фиксированная ширина карточки */
  background: rgba(255, 255, 255, 0.03); /* Очень прозрачный фон */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  flex-shrink: 0; /* Чтобы карточки не сжимались */
  transition: all 0.3s ease;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent);
  transform: translateY(-5px);
}

/* Иконки */
.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Текст внутри карточки */
.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.why-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* АНИМАЦИЯ */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Сдвигаем на -100% ширины одной группы (половина трека) */
    transform: translateX(-100%);
  }
}

/* Адаптив для мобильных - можно ускорить анимацию или уменьшить карточки */
@media (max-width: 600px) {
  .why-card {
    width: 220px;
    padding: 20px 15px;
  }
  .marquee-group {
    gap: 20px;
    animation-duration: 30s; /* Чуть быстрее на мобилках */
  }
}

/* --- LOCATIONS SECTION (OFFICES) --- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.location-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.location-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.location-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.location-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon-box svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.location-title h3 {
  font-size: 24px;
  margin-bottom: 5px;
  color: #fff;
}

.location-title p {
  color: var(--text-secondary);
  font-size: 14px;
}

.location-details {
  margin-bottom: 30px;
  flex-grow: 1;
}

.loc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 15px;
}

.loc-row svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.location-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--dark);
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
  .location-card {
    padding: 30px 20px;
  }
  .location-btns {
    flex-direction: column;
  }
  .btn, .btn-outline {
    width: 100%;
  }
}
