/* ============================================
   KBAVRORA - MAIN STYLESHEET
   ============================================ */

/* ============================================
   1. СБРОС И ПЕРЕМЕННЫЕ
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

:root {
  --bg-body: #0a0f1c;
  --text-color: #eef5ff;
  --card-bg: #111827;
  --border-color: rgba(0, 242, 255, 0.2);
  --neon-blue: #00f2ff;
  --neon-purple: #b500ff;
  --secondary-text: #9ca3af;
}

body.light-theme {
  --bg-body: #f0f4ff;
  --text-color: #111827;
  --card-bg: #ffffff;
  --border-color: rgba(0, 100, 200, 0.2);
  --neon-blue: #0077b6;
  --neon-purple: #7b2cbf;
  --secondary-text: #4b5563;
}

/* ============================================
   2. БАЗОВЫЕ СТИЛИ
   ============================================ */
body {
  background: var(--bg-body);
  color: var(--text-color);
  font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   3. ШАПКА (HEADER) И НАВИГАЦИЯ
   ============================================ */
header {
  position: sticky;
  top: 0;
  background: var(--bg-body);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-img {
  transition: width 0.2s, height 0.2s;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 28px;
}

.nav-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 450;
}

.nav-links li ul li a {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 450;
}

.nav-links a:hover {
  color: var(--neon-blue);
}

.nav-links li {
  list-style: none;
  padding-left: 10px;
  margin: 0;
}

/* ============================================
   4. ВЫПАДАЮЩИЕ МЕНЮ
   ============================================ */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 10px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 100;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  padding: 8px 20px;
}

.dropdown-menu li a {
  display: block;
}

.dropdown-menu li a:hover {
  color: var(--neon-blue);
}

.dropdown-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* ============================================
   5. СОЦИАЛЬНЫЕ ИКОНКИ + ЯЗЫК В ОДИН РЯД
   ============================================ */
.social-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.3s;
  width: 60px;
  height: 44px;
  flex-shrink: 0;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

.social-icon img {
  width: 44px;
  height: 44px;
  display: block;
}

/* 👇 ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ В РЯДУ С СОЦСЕТЯМИ */
.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-current {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.lang-current:hover {
  border-color: var(--neon-blue);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  list-style: none;
  padding: 8px 0;
  margin-top: 8px;
  min-width: 35px;
  opacity: 0;
  visibility: hidden;
  text-align: center;
  transition: 0.2s;
  z-index: 100;
}

.lang-dropdown:hover .lang-dropdown-menu,
.lang-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
}

.lang-dropdown-menu li {
  padding: 8px 17px;
  font-size: 1.0rem;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-dropdown-menu li:hover {
  background: var(--neon-blue);
  color: #0a0f1c;
}

.lang-btn.active {
  background: var(--neon-blue);
  color: #0a0f1c;
  border-color: var(--neon-blue);
}

/* ============================================
   7. БУРГЕР-МЕНЮ
   ============================================ */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 5px;
  z-index: 101;
  background: transparent;
  border: none;
  pointer-events: auto !important;
}

.burger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   8. ГЕРОЙ (HERO)
   ============================================ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--neon-blue), var(--neon-purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--secondary-text);
}

.btn-group {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.btn-primary {
  background: var(--neon-blue);
  color: #0a0f1c;
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

.btn-outline {
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--neon-blue);
  color: #0a0f1c;
  transform: translateY(-2px);
}

/* ============================================
   9. СЛАЙДЕР
   ============================================ */
.slider-section {
  padding: 40px 0;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 48px;
  text-align: center;
  position: relative;
  display: block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 3px;
}

.slider-container {
  position: relative;
  max-width: 2000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 900px;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 60px 30px 30px;
  text-align: left;
}

.slide-caption h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--neon-blue);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 50%;
  transition: 0.2s;
}

.slider-btn:hover {
  background: var(--neon-blue);
  color: #0a0f1c;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.slider-dots {
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
}

.dot.active {
  background: var(--neon-blue);
  transform: scale(1.2);
}

/* ============================================
   10. СТАТИСТИКА
   ============================================ */
.stats {
  padding: 60px 0;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  background: var(--card-bg);
  border-radius: 60px;
  padding: 40px 20px;
  border: 1px solid var(--border-color);
}

.stat-item {
  flex: 1;
  min-width: 150px;
  padding: 0 20px;
  position: relative;
}

.stat-item:not(:last-child) {
  border-right: 2px solid var(--neon-blue);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--neon-blue);
  line-height: 1.2;
}

.stat-label {
  font-size: 1rem;
  color: var(--secondary-text);
  margin-top: 8px;
}

/* ============================================
   11. НАПРАВЛЕНИЯ
   ============================================ */
.directions {
  padding: 60px 0;
}

.directions-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.direction-card {
  width: 260px;
  min-height: 340px;
  background: var(--card-bg);
  border-radius: 28px;
  padding: 40px 24px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.direction-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-blue);
  box-shadow: 0 10px 25px rgba(0, 242, 255, 0.1);
}

.direction-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.direction-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--neon-blue);
}

.direction-card p {
  color: var(--secondary-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ============================================
   12. ПРЕИМУЩЕСТВА
   ============================================ */
.advantages {
  padding: 60px 0;
  background: rgba(0, 242, 255, 0.03);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.advantage-card {
  text-align: center;
  padding: 24px;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, border-color 0.2s;
}

.advantage-card:hover {
  transform: translateY(-3px);
  border-color: var(--neon-blue);
}

.adv-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.advantage-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--neon-blue);
}

.advantage-card p {
  color: var(--secondary-text);
}

/* ============================================
   13. СТРАНИЦА ПРОЕКТОВ (ОБЩАЯ)
   ============================================ */
.page-banner {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-body) 100%);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--neon-blue));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.page-banner p {
  font-size: 1.2rem;
  color: var(--secondary-text);
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 60px auto;
  justify-content: center;
  justify-items: center;
}

.project-grid-card {
  max-width: 380px;
  min-width: 300px;
  flex: 0 1 320px;
  width: 100%;
  flex: 0 1 320px;  /* Базовый размер, но может расти до 320px */
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
  justify-self: center;
}

.project-grid-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-blue);
  box-shadow: 0 10px 25px rgba(0, 242, 255, 0.1);
}

.project-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-card-content {
  padding: 20px;
}

.project-card-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--neon-blue);
}

.project-card-desc {
  color: var(--secondary-text);
  margin-bottom: 20px;
  line-height: 1.4;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s;
}

.project-card-link:hover {
  gap: 12px;
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--neon-blue);
  text-decoration: none;
  font-size: 25px;
  transition: transform 0.2s;
}

.back-link:hover {
  text-decoration: underline;
  transform: translateX(-5px);
}

/* ============================================
   14. СТРАНИЦА ПРОЕКТА (ДЕТАЛЬНАЯ)
   ============================================ */
.project-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.project-hero {
  padding: 40px 0 20px;
  text-align: center;
}

.project-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--neon-blue));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Верхняя секция: галерея + информация */
.project-top-section {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.project-gallery-wrapper {
  flex: 0 0 60%;
  min-width: 0;
}

.project-info-wrapper {
  flex: 1;
  min-width: 0;
}

.project-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--neon-blue));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.project-short-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--secondary-text);
  margin-bottom: 20px;
}

.project-quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-quick-links .btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-quick-links .btn-primary {
  background: var(--neon-blue);
  color: #0a0f1c;
  border: 1px solid var(--neon-blue);
}

.project-quick-links .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4);
}

.project-quick-links .btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-color);
  background: transparent;
}

.project-quick-links .btn-outline:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  transform: translateY(-2px);
}

/* ============================================
   15. ГАЛЕРЕЯ И ЛАЙТБОКС
   ============================================ */
.main-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
  background: var(--card-bg);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
  z-index: 2;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.gallery-nav:hover {
  background: var(--neon-blue);
  color: #0a0f1c;
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.image-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.thumbnail-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  padding: 5px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-blue) transparent;
}

.thumbnail-container::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-container::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnail-container::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: 2px;
}

.thumbnail-item {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.thumbnail-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail-item.active {
  border-color: var(--neon-blue);
  opacity: 1;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Лайтбокс */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: bold;
  transition: transform 0.2s;
  z-index: 10000;
}

.lightbox .close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  color: var(--neon-blue);
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10000;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  background: var(--neon-blue);
  color: #0a0f1c;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

.lightbox .counter {
  position: absolute;
  bottom: 30px;
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 20px;
  border-radius: 20px;
  z-index: 10000;
}

/* ============================================
   16. ВКЛАДКИ
   ============================================ */
.project-tabs {
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.tabs-header {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 15px 25px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-text);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--text-color);
}

.tab-btn.active {
  color: var(--neon-blue);
  border-bottom-color: var(--neon-blue);
}

.tabs-content {
  padding: 30px 0;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   17. ОПИСАНИЕ И ХАРАКТЕРИСТИКИ
   ============================================ */

/* ===== КНОПКИ ДЕЙСТВИЙ ===== */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.action-btn {
  flex: 1;  /* 👈 Все кнопки растягиваются на одинаковую ширину */
  min-width: 150px;  /* Минимальная ширина */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #4f86ab 0%, #4b49bf 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #4f86ab 0%, #4b49bf 100%);
}

.action-btn:active {
  transform: translateY(0px);
}

.action-btn .btn-icon {
  font-size: 20px;
}

.action-btn .btn-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.action-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.action-btn:hover::after {
  left: 100%;
}

.description-content {
  font-size: 16px;
  color: var(--text-color);
}

.description-content p {
  margin-bottom: 4px;
  line-height: 1.6;
  margin-top: 24px;
}

.description-content p:last-of-type {
  margin-bottom: 0;
}

.description-content ul,
.description-content ol {
  margin: 0 0 4px 20px;
  padding-left: 0;
  list-style: none;
}

.description-content ul li {
  position: relative;
  padding-left: 0;
}

.description-content ul li::before {
  content: "▸";
  color: var(--neon-blue);
  position: absolute;
  left: -16px;
  top: 0;
  font-size: 14px;
}

.description-content ol {
  counter-reset: item;
}

.description-content ol li {
  counter-increment: item;
  position: relative;
  padding-left: 0;
}

.description-content ol li::before {
  content: counter(item) ".";
  color: var(--neon-blue);
  position: absolute;
  left: -24px;
  top: 0;
  font-weight: 600;
}

.description-content li {
  margin-bottom: 1px;
  line-height: 1.5;
  padding-left: 0;
}

.description-content li:last-child {
  margin-bottom: 0;
}

.description-content p + ul,
.description-content p + ol {
  margin-top: 0 !important;
}

/* Характеристики */
.specs-content {
  padding: 10px 0;
}

.spec-category {
  margin-bottom: 30px;
}

.spec-category:last-child {
  margin-bottom: 0;
}

.spec-category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--neon-blue);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--neon-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-category-title::before {
  content: "◆";
  font-size: 10px;
  color: var(--neon-blue);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
  border-radius: 8px;
}

.spec-item:hover {
  background: rgba(0, 242, 255, 0.05);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item-full {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
  border-radius: 8px;
}

.spec-item-full:hover {
  background: rgba(0, 242, 255, 0.05);
}

.spec-item-full:last-child {
  border-bottom: none;
}

.spec-label-full {
  font-weight: 500;
  color: var(--secondary-text);
  font-size: 14px;
  line-height: 1.5;
  display: block;
  word-break: break-word;
}

.spec-label {
  font-weight: 500;
  color: var(--secondary-text);
  font-size: 14px;
  line-height: 1.5;
  flex: 0 0 45%;
  word-break: break-word;
}

.spec-value {
  color: var(--text-color);
  font-weight: 600;
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
  flex: 0 0 50%;
  word-break: break-word;
}

/* ============================================
   18. ЗАГРУЗКИ
   ============================================ */
.downloads-content {
  padding: 10px 0;
}

.downloads-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.download-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--neon-blue);
}

.download-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.download-info {
  flex: 1;
}

.download-name {
  font-weight: 500;
  color: var(--text-color);
}

.download-size {
  font-size: 12px;
  color: var(--secondary-text);
  margin-top: 4px;
}

.download-action {
  color: var(--neon-blue);
  font-weight: 500;
}

/* ============================================
   19. ГАЛЕРЕЯ ВКЛАДКИ
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 1;
  border: 1px solid var(--border-color);
}

.gallery-grid-item:hover {
  transform: scale(1.05);
  border-color: var(--neon-blue);
  box-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   20. КНОПКИ РАСКРЫТИЯ И CTA
   ============================================ */
.expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-color);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
}

.expand-btn:hover {
  border-color: var(--neon-blue);
  background: rgba(0, 242, 255, 0.1);
  color: var(--neon-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
}

.expand-btn.expanded {
  border-color: var(--neon-blue);
  background: rgba(0, 242, 255, 0.15);
  color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.expand-btn .arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.expand-btn.expanded .arrow {
  transform: rotate(180deg);
}

.cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(181, 0, 255, 0.1));
  border-radius: 40px;
  margin: 40px auto;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: var(--secondary-text);
}

/* ============================================
   21. ФУТЕР
   ============================================ */
footer {
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 32px 0;
  color: var(--secondary-text);
}

/* ============================================
   22. АНИМАЦИИ
   ============================================ */
@keyframes neonSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    filter: brightness(1.5);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ============================================
   23. LangMobile
   ============================================ */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mobile-nav {
  display: none;
}

.mobile-lang {
  display: none !important;
}

.desktop-lang {
  display: inline-flex !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;  /* Прижимаем к правому краю */
}

/* ============================================
   23. АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1500px) {
  .burger-menu {
    display: flex !important;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-body);
    flex-direction: column;
    align-items: center;
    padding: 20px 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 100;
  }

  .nav-links.open {
    transform: scaleY(1);
  }

  .nav-links li {
    padding: 6px 0;
    list-style: none;
    width: 100%;
  }

  .nav-links a {
    font-size: 1rem;
    display: block;
    padding: 6px 0;
  }


  .mobile-lang {
    display: inline-flex !important;
  }

  .nav-right {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
  }

  .mobile-nav li {
    list-style: none;
    padding: 4px 0;
  }

  .mobile-nav a {
    font-size: 1rem;
    display: block;
    padding: 6px 0;
    color: var(--text-color);
    text-decoration: none;
  }

  .mobile-nav a:hover {
    color: var(--neon-blue);
  }

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

  .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .social-icons-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 8px 0;
    flex-wrap: nowrap !important;
    width: 100%;
  }

  .social-icons-row .social-icon {
    width: 40px;
    height: 40px;
    padding: 3px;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .social-icons-row .social-icon img {
    width: 40px;
    height: 40px;
  }

  .social-icons-row .lang-dropdown {
    width: auto;
    display: inline-flex !important;
    align-items: center;
    position: relative;
    flex-shrink: 0;
  }
}

/*@media (max-width: 1024px) {*/
/*    .project-top-section {*/
/*        gap: 30px;*/
/*    }*/

/*    .project-title {*/
/*        font-size: 28px;*/
/*    }*/
/*}*/

/*@media (max-width: 800px) {*/
/*    .hero h1 {*/
/*        font-size: 2rem;*/
/*    }*/

/*    .section-title {*/
/*        font-size: 1.8rem;*/
/*    }*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .project-top-section {*/
/*        flex-direction: column;*/
/*        gap: 20px;*/
/*    }*/

/*    .project-gallery-wrapper {*/
/*        width: 100%;*/
/*    }*/

/*    .project-info-wrapper {*/
/*        width: 100%;*/
/*    }*/

/*    .project-title {*/
/*        font-size: 24px;*/
/*    }*/

/*    .main-image-container {*/
/*        padding-top: 65%;*/
/*    }*/

/*    .thumbnail-item {*/
/*        width: 60px;*/
/*        height: 45px;*/
/*    }*/

/*    .gallery-nav {*/
/*        padding: 10px 8px;*/
/*        font-size: 18px;*/
/*    }*/

/*    .tab-btn {*/
/*        padding: 12px 16px;*/
/*        font-size: 14px;*/
/*    }*/

/*    .downloads-grid {*/
/*        grid-template-columns: 1fr;*/
/*    }*/

/*    .gallery-grid {*/
/*        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));*/
/*    }*/

/*    .spec-item {*/
/*        flex-direction: column;*/
/*        align-items: flex-start;*/
/*        gap: 4px;*/
/*    }*/

/*    .spec-value {*/
/*        text-align: left;*/
/*        width: 100%;*/
/*    }*/

/*    .project-quick-links {*/
/*        flex-direction: column;*/
/*    }*/

/*    .project-quick-links .btn {*/
/*        width: 100%;*/
/*        justify-content: center;*/
/*    }*/

/*    .stats-row {*/
/*        flex-direction: column;*/
/*        gap: 30px;*/
/*        border-radius: 40px;*/
/*    }*/

/*    .stat-item:not(:last-child) {*/
/*        border-right: none;*/
/*        border-bottom: 1px solid var(--border-color);*/
/*        padding-bottom: 20px;*/
/*    }*/

/*    .stat-item {*/
/*        width: 100%;*/
/*    }*/

/*    .direction-card {*/
/*        width: 100%;*/
/*        min-height: auto;*/
/*        padding: 30px 20px;*/
/*    }*/

/*    .project-hero h1 {*/
/*        font-size: 1.8rem;*/
/*    }*/
/*}*/

@media (max-width: 600px) {
  .logo-img {
    width: 200px;
    height: auto;
  }

  .hero {
    padding: 80px 0 60px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--neon-blue), var(--neon-purple));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--secondary-text);
  }

  .slider-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  }

  .stats-row {
    flex-direction: column;
    gap: 30px;
    border-radius: 40px;
  }

  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
  }

  .stat-item {
    width: 100%;
  }

  .direction-card {
    width: 100%;
    min-height: auto;
    padding: 30px 20px;
  }

  .project-hero h1 {
    font-size: 1.8rem;
  }

  .nav-links {
    padding: 16px;
  }

  .social-icons-row {
    gap: 6px;
  }

  .social-icons-row .social-icon {
    width: 34px;
    height: 34px;
  }

  .social-icons-row .social-icon img {
    width: 22px;
    height: 22px;
  }

  .social-icons-row .lang-current {
    height: 34px;
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .social-icons-row .lang-dropdown-menu {
    min-width: 50px;
  }

  .project-title {
    font-size: 20px;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .gallery-nav {
    padding: 8px 6px;
    font-size: 14px;
  }

  .thumbnail-item {
    width: 50px;
    height: 38px;
  }

  .image-counter {
    font-size: 12px;
    padding: 3px 10px;
  }

  .download-item {
    padding: 15px;
  }

  .download-icon {
    font-size: 24px;
  }
}

/* ============================================
   24. СВЕТЛАЯ ТЕМА
   ============================================ */
body.light-theme .main-image-container {
  background: #f0f4ff;
}

body.light-theme .gallery-nav {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
}

body.light-theme .gallery-nav:hover {
  background: var(--neon-blue);
  color: white;
}

body.light-theme .image-counter {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

body.light-theme .thumbnail-item.active {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 119, 182, 0.3);
}

body.light-theme .download-item {
  background: #f8f9fa;
}

body.light-theme .download-item:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body.light-theme .spec-category-title {
  color: var(--neon-blue);
}

body.light-theme .spec-row:hover {
  background: rgba(0, 119, 182, 0.05);
}

/* ============================================
   КОНЕЦ ФАЙЛА
   ============================================ */