/* Общие стили и переопределения */
body {
  font-family: 'Raleway', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit', sans-serif;
}

/* Секция героя (Hero) */
.hero-section {
  position: relative;
  height: 50vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.lightning-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 80px;
}

/* Отступы для секций */
.section {
  padding: 120px 0;
  position: relative;
}

/* Кнопка .btn-primary */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(204, 0, 0, 0.2);
}

/* Анимация пульса для кнопки */
.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
  }
}

/* Стиль инпутов */
.input-field {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.input-field:focus {
  outline: none;
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* Слайдер (range input) */
.slider {
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff4444;
  cursor: pointer;
}

/* Блок-калькулятор */
.calculator {
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Навигационные ссылки */
.nav-link {
  position: relative;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #ff4444;
  bottom: -5px;
  left: 0;
  transition: all 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  position: relative;
  overflow: hidden;
}

.cta-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="%23ff4444" opacity="0.1"/></svg>');
  background-size: cover;
}

/* Переключатель языка (в мобильном меню - span.language-switcher) */
.language-switcher {
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.language-switcher:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact-section {
  background-color: #f9fafb;
  position: relative;
}

.contact-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.03) 0%, rgba(255, 68, 68, 0) 100%);
  z-index: 0;
}

.contact-content {
  position: relative;
  z-index: 1;
}

/* Соц-ссылки (иконки) */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  color: #1a202c;
  font-size: 24px;
  margin-right: 10px;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

/* Кнопки языка на десктопе */
.lang-button {
  outline: none;
  border: none;
}

.lang-button.active {
  background-color: #ef4444;
  color: #fff;
}

.lang-button:not(.active) {
  background-color: transparent;
  color: #1a202c;
}

@keyframes shimmer {
  0%   { background-position: 0 -100%; }
  50%  { background-position: 0 100%; }
  100% { background-position: 0 -100%; }
}
.shimmer {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 155, 155, 0.05) 50%,
    rgba(255, 245, 245, 0.05) 100%
  );
  background-size: 100% 200%;
  animation: shimmer 5s ease-in-out infinite;
}
