:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #00b4d8;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  padding-top: 70px; /* Добавляем отступ для фиксированного хедера */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles - ИСПРАВЛЕННЫЙ */
#site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px; /* Фиксированная высота */
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.navbar-brand img {
  height: 35px;
  width: auto;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-nav .nav-item {
  margin: 0 5px;
}

.navbar-nav .nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(106, 17, 203, 0.1);
}

/* Mobile menu styles */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.navbar-toggler-icon {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

/* Hero Section - обновленный отступ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 0 60px; /* Уменьшенные отступы */
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0; /* Убираем лишний отступ */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/images/mega1.webp') center/cover no-repeat;
  opacity: 0.1;
}

.hero-logo {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn {
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: white;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: var(--dark-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.features-list {
  list-style: none;
  margin-top: 25px;
}

.features-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.features-list i {
  color: var(--primary-color);
  margin-right: 12px;
  font-size: 1.1rem;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--light-color);
}

.features-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: var(--dark-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-card {
  background: white;
  padding: 30px 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  color: white;
  font-size: 1.8rem;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
  font-size: 1.3rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
  background: white;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2.2rem;
  color: var(--dark-color);
}

.gallery-subtitle {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
  color: var(--text-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 250px;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 50px 30px;
  border-radius: 15px;
  color: white;
  text-align: center;
}

.stats-section h3 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
}

.stat-item {
  padding: 15px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 8px;
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* How-to Section */
.how-to-section {
  padding: 80px 0;
  background: var(--light-color);
}

.how-to-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: var(--dark-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.step {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 auto 15px;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.step-icon i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.step h3 {
  margin-bottom: 12px;
  color: var(--dark-color);
  font-size: 1.2rem;
}

.step p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Security Tips */
.security-tips {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.security-tips h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark-color);
  font-size: 1.6rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.tip-card {
  text-align: center;
  padding: 25px 15px;
  background: var(--light-color);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-3px);
}

.tip-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.tip-card h4 {
  margin-bottom: 12px;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.tip-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Contacts Section */
.contacts-section {
  padding: 80px 0;
  background: white;
}

.contacts-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: var(--dark-color);
}

.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-method i {
  color: var(--primary-color);
  margin-right: 12px;
  font-size: 1.1rem;
}

.security-notice ul {
  list-style: none;
}

.security-notice li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.security-notice li:before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Footer */
.main-footer {
  background: var(--dark-color);
  color: white;
  padding: 40px 0 15px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

.footer-logo img {
  height: 35px;
  margin-bottom: 12px;
}

.footer-logo p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links h4,
.footer-info h4 {
  margin-bottom: 15px;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-info p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  color: #ccc;
  font-size: 1.3rem;
  margin-right: 12px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #444;
  color: #ccc;
  font-size: 0.85rem;
}

.disclaimer {
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
      padding-top: 60px;
  }
  
  #site-header {
      height: 60px;
      padding: 8px 0;
  }
  
  .navbar-brand img {
      height: 30px;
  }
  
  .navbar-toggler {
      display: block;
  }
  
  .navbar-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      flex-direction: column;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      padding: 15px;
  }
  
  .navbar-nav.show {
      display: flex;
  }
  
  .navbar-nav .nav-item {
      margin: 5px 0;
      width: 100%;
  }
  
  .navbar-nav .nav-link {
      display: block;
      padding: 12px 15px;
      text-align: center;
  }
  
  .hero-section {
      padding: 60px 0 40px;
  }
  
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 10px;
  }
  
  .btn {
      width: 200px;
      text-align: center;
  }
  
  .about-grid,
  .contacts-content,
  .footer-content {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .gallery-grid {
      grid-template-columns: 1fr;
  }
  
  .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
  }
  
  .tips-grid {
      grid-template-columns: 1fr;
  }
  
  .steps-grid {
      grid-template-columns: 1fr;
  }
  
  .feature-card,
  .step,
  .tip-card {
      padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
      font-size: 1.8rem;
  }
  
  .hero-content p {
      font-size: 1rem;
  }
  
  .about-section h2,
  .features-section h2,
  .gallery-section h2,
  .how-to-section h2,
  .contacts-section h2 {
      font-size: 1.8rem;
  }
  
  .stats-grid {
      grid-template-columns: 1fr;
  }
  
  .stat-number {
      font-size: 2rem;
  }
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}