/* Основные переменные и сброс */
:root {
  --primary: #e68722;
  --primary-dark: #c96e0e;
  --dark: #1a1a1a;
  --darker: #0f0f0f;
  --light: #f8f9fa;
  --gray: #6c757d;
  --white: #ffffff;
  --font-main: 'Open Sans', sans-serif;
  --font-head: 'Catamaran', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
}

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

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title.light {
  color: var(--white);
}

strong {
  color: var(--primary);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Шапка */
.header {
  background-color: var(--darker);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 2px solid var(--primary);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-family: var(--font-head);
  font-weight: 800;
  text-decoration: none;
}

/* Навигация */
.nav-list {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-list a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1rem;
}

.nav-list a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Герой */
.hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/mega1.png') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-overlay {
  width: 100%;
  padding: 60px 0;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Преимущества */
.advantages {
  padding: 80px 0;
  background-color: var(--light);
}

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

.advantage-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.advantage-item:hover {
  transform: translateY(-10px);
}

.advantage-item i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.advantage-item h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Howto секция */
.howto {
  padding: 80px 0;
}

.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.howto-image img {
  width: 100%;
  border-radius: 10px;
}

.howto-list {
  padding-left: 20px;
  margin-top: 20px;
}

.howto-list li {
  margin-bottom: 10px;
}

/* Защита */
.protection {
  margin-top: 60px;
}

.protection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.protection-item {
  padding: 25px;
  background: var(--light);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

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

.protection-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Безопасность */
.security {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--darker) 0%, #2a2a2a 100%);
  color: var(--white);
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.security-text {
  grid-column: 1 / 2;
}

.security-image {
  grid-column: 2 / 3;
}

.security-video {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.security-video video {
  width: 100%;
  border-radius: 10px;
}

.progress-bars {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.progress-item {
  margin-bottom: 20px;
}

.progress-item h4 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #444;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 5px;
  transition: width 1s ease;
}

.security-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
}

.security-link:hover {
  text-decoration: underline;
}

/* Сравнение */
.comparison {
  padding: 80px 0;
  background-color: var(--light);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.comparison-item {
  padding: 40px 20px;
  background: var(--white);
  border-radius: 10px;
  transition: all 0.3s;
}

.comparison-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comparison-item i:first-child {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.comparison-item h3 {
  margin-bottom: 20px;
}

.comparison-item a {
  color: var(--primary);
  font-size: 2rem;
  transition: transform 0.3s;
  display: inline-block;
}

.comparison-item a:hover {
  transform: translateX(5px);
}

/* Статистика */
.stats {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('images/mega3.png') center/cover no-repeat;
  color: var(--white);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  margin: 50px 0;
}

.stat-item i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.stat-item .counter {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-head);
  line-height: 1;
}

.stats-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
}

/* Функции */
.features {
  padding: 80px 0;
}

.features-subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: var(--gray);
}

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

.feature-item {
  padding: 25px;
  background: var(--light);
  border-radius: 10px;
  border-bottom: 3px solid var(--primary);
}

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

.feature-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Подход */
.approach {
  padding: 60px 0;
  background-color: var(--darker);
  color: var(--white);
}

.approach-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.approach h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary);
}

.approach p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Футер */
.footer {
  background-color: var(--darker);
  color: #aaa;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

.footer-list a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-list a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 25px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Кнопка наверх */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
}

/* Адаптивность */
@media (max-width: 992px) {
  h2 {
      font-size: 2rem;
  }

  .hero-title {
      font-size: 2rem;
  }

  .security-grid {
      grid-template-columns: 1fr;
  }

  .security-image, .security-video, .progress-bars {
      grid-column: auto;
  }

  .stats-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-icon {
      display: block;
  }

  .nav {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background-color: var(--darker);
      transition: left 0.3s;
      padding: 40px 20px;
      overflow-y: auto;
  }

  .menu-toggle:checked ~ .nav {
      left: 0;
  }

  .nav-list {
      flex-direction: column;
      align-items: center;
      gap: 20px;
  }

  .nav-list a {
      font-size: 1.2rem;
  }

  .howto-grid {
      grid-template-columns: 1fr;
  }

  .footer-bottom-content {
      flex-direction: column;
      text-align: center;
  }

  .footer-links {
      flex-wrap: wrap;
      justify-content: center;
  }

  .hero-buttons {
      justify-content: center;
  }
}

@media (max-width: 576px) {
  .stats-grid {
      grid-template-columns: 1fr;
  }

  .advantages-grid {
      grid-template-columns: 1fr;
  }

  .protection-grid {
      grid-template-columns: 1fr;
  }

  .features-grid {
      grid-template-columns: 1fr;
  }

  .footer-grid {
      grid-template-columns: 1fr;
  }
}