:root[data-theme="light"] {
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f4f6;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --border-color: #e5e7eb;
  --header-bg: #111827;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --border-color: #4b5563;
  --header-bg: #0f172a;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --input-bg: #374151;
  --input-text: #f9fafb;
  --input-border: #4b5563;
  --input-placeholder: #9ca3af;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.bg-white {
  background-color: var(--bg-secondary) !important;
}

.bg-gray-50 {
  background-color: var(--bg-tertiary) !important;
}

.text-gray-600 {
  color: var(--text-secondary) !important;
}

.border-gray-200 {
  border-color: var(--border-color) !important;
}

:where([class^="ri-"])::before { content: "\f3c2"; }
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
}
.modal-content {
position: relative;
background-color: #fff;
margin: 5% auto;
padding: 2rem;
width: 90%;
max-width: 600px;
border-radius: 8px;
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
from {
transform: translateY(-100px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.close-modal {
position: absolute;
right: 1.5rem;
top: 1.5rem;
cursor: pointer;
}
.payment-methods {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-top: 2rem;
}
.payment-method {
display: flex;
flex-direction: column;
align-items: center;
padding: 1.5rem;
border: 1px solid #e5e7eb;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
.payment-method:hover {
border-color: #0047AB;
transform: translateY(-2px);
}
.payment-method i {
font-size: 2rem;
margin-bottom: 1rem;
}
.map-container {
position: relative;
width: 100%;
height: 400px;
overflow: hidden;
border-radius: 8px;
}
.map-marker {
position: absolute;
width: 20px;
height: 20px;
background-color: #0047AB;
border-radius: 50%;
transform: translate(-50%, -50%);
cursor: pointer;
}
.map-marker::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 40px;
height: 40px;
background-color: rgba(0, 71, 171, 0.2);
border-radius: 50%;
transform: translate(-50%, -50%);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) scale(2);
opacity: 0;
}
}
.hero-section {
position: relative;
overflow: hidden;
}
.hero-bg {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.hero-content {
position: relative;
z-index: 1;
}
.product-card {
transition: transform 0.3s ease;
}
.product-card:hover {
transform: translateY(-5px);
}
.custom-checkbox {
appearance: none;
width: 1.25rem;
height: 1.25rem;
border: 2px solid #0047AB;
border-radius: 4px;
position: relative;
cursor: pointer;
transition: background-color 0.2s;
}
.custom-checkbox:checked {
background-color: #0047AB;
}
.custom-checkbox:checked::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 0.5rem;
height: 0.5rem;
background-color: white;
border-radius: 1px;
}
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-animate-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.scroll-animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Эффекты и анимации */
@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(0, 71, 171, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 71, 171, 0.4); }
  100% { box-shadow: 0 0 5px rgba(0, 71, 171, 0.2); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes themeTransition {
  0% { opacity: 0.8; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Применение эффектов */
.theme-transition {
  transition: all 0.3s ease-in-out;
  animation: themeTransition 0.3s ease-out;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform: translateZ(-1px) scale(2);
  transition: transform 0.5s ease-out;
}

.hero-section:hover .hero-bg {
  transform: translateZ(-2px) scale(2.2);
}

.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.product-card:hover .product-icon {
  animation: float 3s ease-in-out infinite;
}

.product-icon {
  transition: all 0.3s ease;
}

.bg-primary {
  position: relative;
  overflow: hidden;
}

.bg-primary::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: 0.5s;
  opacity: 0;
}

.bg-primary:hover::after {
  animation: glow 2s infinite;
  opacity: 1;
}

.feature-icon {
  transition: all 0.3s ease;
}

.feature-icon:hover {
  animation: pulse 1s infinite;
}

.payment-method {
  transition: all 0.3s ease;
}

.payment-method:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--card-shadow);
}

.payment-method:hover i {
  animation: spin 1s linear infinite;
}

/* Улучшенные анимации для FAQ */
.faq-item {
  transition: all 0.3s ease;
}

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

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Эффект для кнопок в футере */
footer a {
  position: relative;
  transition: all 0.3s ease;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* Анимация для модального окна */
.modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-100px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Эффект для карты */
.map-marker {
  animation: pulse 2s infinite;
}

.map-marker:hover {
  animation: none;
  transform: scale(1.2);
}

/* Анимация для иконок в хедере */
#themeToggle i {
  transition: transform 0.3s ease;
}

#themeToggle:hover i {
  transform: rotate(180deg);
}

/* Эффект для форм */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.2);
  transition: box-shadow 0.3s ease;
}

/* Анимация для кнопок в формах */
button[type="submit"] {
  position: relative;
  overflow: hidden;
}

button[type="submit"]::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: 0.5s;
  opacity: 0;
}

button[type="submit"]:hover::after {
  animation: glow 2s infinite;
  opacity: 1;
}

/* Добавляем стили для иконок FAQ */
.faq-item button {
  transition: all 0.3s ease;
}

.faq-item button:hover {
  background-color: var(--bg-tertiary);
}

.faq-item button:hover .bg-blue-100 {
  background-color: var(--primary);
}

.faq-item button:hover .text-primary {
  color: white;
}

.faq-item.active button {
  background-color: var(--bg-tertiary);
}

.faq-item.active .bg-blue-100 {
  background-color: var(--primary);
}

.faq-item.active .text-primary {
  color: white;
}

.faq-item i.ri-lg {
  font-size: 1.5rem;
}

/* Стили для карты и регионов */
.map-container {
  position: relative;
  overflow: hidden;
}

.region-card {
  transition: all 0.3s ease;
}

.region-card:hover {
  transform: translateX(5px);
}

.region-card.active {
  background-color: var(--bg-tertiary);
}

.region-card.active .ri-arrow-right-s-line {
  transform: rotate(90deg);
}

.region-card .hidden {
  display: none;
}

.region-card.active .hidden {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

/* Стили для маркеров на карте */
.map-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  background-color: rgba(0, 71, 171, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

.map-marker:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.map-marker.active {
  background-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.3);
}

.contact-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.contact-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Стили для форм в темной теме */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: var(--input-bg);
  color: var(--input-text);
  border-color: var(--input-border);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--input-placeholder);
}

[data-theme="dark"] .modal-content {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .modal-content label {
  color: var(--text-primary);
}

[data-theme="dark"] .modal-content input,
[data-theme="dark"] .modal-content textarea,
[data-theme="dark"] .modal-content select {
  background-color: var(--input-bg);
  color: var(--input-text);
  border-color: var(--input-border);
}

[data-theme="dark"] .modal-content input::placeholder,
[data-theme="dark"] .modal-content textarea::placeholder {
  color: var(--input-placeholder);
}

[data-theme="dark"] .modal-content .text-gray-600 {
  color: var(--text-secondary);
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #10B981;
}

.notification-error {
    border-left: 4px solid #EF4444;
}

.notification-close {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 16px;
    margin-left: 16px;
}

.notification-close:hover {
    color: #374151;
}

[data-theme="dark"] .notification {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .notification-close {
    color: var(--text-secondary);
}

[data-theme="dark"] .notification-close:hover {
    color: var(--text-primary);
}

.variant-2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #2D3748 100%);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}
.variant-2 .title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.variant-2 .description {
  color: #F7FAFC;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.variant-2 .btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 15px 35px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.variant-2 .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
