/* ===== БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ ===== */
:root {
  --primary: #5078ab;
  --secondary: #fab81a;
  --accent: #6c9bd2;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-inverse: #ffffff;
  --highlight: #e0a614;
  --bg-light: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-neutral: #f9f9f7;
  --bg-card: #ffffff;
  --border-light: #e0e0e0;
  --border-dark: #444444;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --bg-body: var(--bg-neutral);
  --bg-header: var(--bg-light);
  --text-body: var(--text-primary);
  --border: var(--border-light);
}

html[data-theme="dark"] {
  --bg-body: var(--bg-dark);
  --bg-header: var(--bg-dark);
  --bg-card: #2a2a2a;
  --text-body: #f0f0f0;
  --text-secondary: #aaaaaa;
  --border: var(--border-dark);
  --highlight: #f0c040;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, 
               Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Основные контейнеры */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Секции */
.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
  color: var(--primary);
}

.section-title-sub {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
  color: var(--secondary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary);
}

.content-block-border {
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

/* Увеличенный отступ для элементов списка */
.content-block-border ul {
  list-style-type: none; /* Убираем стандартные маркеры */
  padding-left: 0; /* Сбрасываем стандартный отступ */
}

.content-block-border li {
  position: relative;
  padding-left: var(--spacing-lg); /* Желаемый отступ слева */
  margin-bottom: var(--spacing-sm); /* Отступ между пунктами */
}

/* Кастомные маркеры с использованием вторичного цвета */
.content-block-border li::before {
  content: "•";
  color: var(--secondary); /* Цвет маркера */
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -2px; /* Выравнивание по базовой линии */
  transform: translateY(-14%); /* Подстройка под конкретный шрифт */
}

/* ===== ШАПКА САЙТА ===== */
.header {
  background-color: var(--bg-header);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-md) 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.logo-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header-logo {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-body);
}

.logo:hover .header-logo {
  filter: drop-shadow(0 0 8px rgba(250, 184, 26, 0.7));
  transform: scale(1.05);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav a {
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  text-decoration: none;
}

.nav a.highlight {
  color: var(--highlight);
}

.nav a.active {
  color: var(--text-body);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
}

.nav a.highlight.active::after {
  background-color: var(--highlight);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s;
}

.nav a.highlight::after {
  background-color: var(--highlight);
}

.nav a:hover::after {
  width: 100%;
}

.nav a.highlight:hover {
  text-shadow: 0 0 8px var(--highlight), 0 0 12px rgba(224, 166, 20, 0.5);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-body);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon-sun,
.icon-moon {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-sun {
  display: none;
}
.icon-moon {
  display: block;
}

[data-theme="light"] .icon-sun {
  display: block;
}
[data-theme="light"] .icon-moon {
  display: none;
}

@keyframes themeSwitch {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.theme-switching .icon-sun,
.theme-switching .icon-moon {
  animation: themeSwitch 0.3s ease;
}

.theme-toggle:hover .icon-sun {
  transform: rotate(15deg);
}
.theme-toggle:hover .icon-moon {
  transform: rotate(15deg);
}

.theme-toggle:hover {
  transform: rotate(15deg);
  background-color: rgba(0,0,0,0.05);
  box-shadow: 0 0 10px rgba(250, 184, 26, 0.5); /* Лёгкое свечение для заметности */
}

html[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(255,255,255,0.1); /* Светлый фон для видимости в тёмной теме */
  box-shadow: 0 0 10px rgba(240, 192, 64, 0.5); /* Адаптированное свечение для тёмной темы */
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-body);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn .menu-icon {
  display: block;
}

.mobile-menu-btn .close-icon {
  display: none;
}

.mobile-menu-btn.active .menu-icon {
  display: none;
}

.mobile-menu-btn.active .close-icon {
  display: block;
}

/* ===== ГЛАВНАЯ СЕКЦИЯ ===== */
.hero {
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.main-logo {
  width: 400px;
  height: 400px;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.symbol-container {
  display: flex;
  justify-content: center;
}

.symbol-margin {
  margin-bottom: 0.5rem;
}

.main-logo:hover {
  filter: 
    drop-shadow(0 0 12px rgba(250, 184, 26, 0.8))
    brightness(1.1);
  transform: scale(1.05);
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  color: var(--text-secondary);
}

/* Кнопки */
.cta-button {
  display: inline-block;
  background: var(--primary); /* Синий цвет */
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--primary);
  text-decoration: none;
  cursor: pointer;
  position: relative; /* Нужно для псевдоэлемента */
  z-index: 1; /* Поднимаем над псевдоэлементом */
}

.cta-button:hover,
.cta-button:focus,
.cta-button:active {
  background: var(--primary); /* Оставляем синий фон */
  color: white; /* Белый текст */
  transform: translateY(-3px);
  box-shadow: none; /* Убираем стандартную тень */
}

a.cta-button {
	display: inline-flex;
	align-items: center;
}



/* Создаем эффект свечения */
.cta-button:hover::after,
.cta-button:focus::after,
.cta-button:active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px;
  box-shadow: 
    0 0 15px 5px var(--secondary), /* Желтое свечение */
    0 0 25px 10px rgba(255, 255, 0, 0.5); /* Второй слой для усиления */
  opacity: 1;
  z-index: -1; /* Отправляем за кнопку */
  animation: pulsate 2s infinite; /* Пульсация как у маяка */
}

/* Стили только для маленькой кнопки*/
.symbol-button-small {
  padding: 0.6rem 1.5rem;    /* Уменьшенные отступы */
  font-size: 0.9rem;         /* Уменьшенный размер текста */
  margin-top: 1.2rem;        /* Отступ сверху */
  display: inline-block;     /* Чтобы работали отступы */
}


/* Анимация пульсации */
@keyframes pulsate {
  0% {
    box-shadow: 
      0 0 10px 5px var(--secondary),
      0 0 20px 10px rgba(255, 255, 0, 0.5);
  }
  50% {
    box-shadow: 
      0 0 20px 10px var(--secondary),
      0 0 30px 15px rgba(255, 255, 0, 0.6);
  }
  100% {
    box-shadow: 
      0 0 10px 5px var(--secondary),
      0 0 20px 10px rgba(255, 255, 0, 0.5);
  }
}

/* Карточки */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
  min-height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 200px;
}

.card-body svg {
  margin-bottom: var(--spacing-sm);
  width: 32px;
  height: 32px;
}

.card-body .card-title {
  margin-bottom: var(--spacing-sm);
}

.card-body p {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
  min-height: 60px;
}

/*Улучшение карточек историй*/
/* Улучшенные стили для карточек историй */
.stories .card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  min-height: auto; /* Убираем фиксированную высоту */
  padding: 0;
}

.stories .card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stories .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary);
}

.stories .card-content {
  padding: var(--spacing-lg);
  position: relative;
  z-index: 2;
}

.stories .card h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
  position: relative;
  padding-left: var(--spacing-md);
}

.stories .card h3::before {
  /*content: "⚓";*/
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.stories .card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}


/* Увеличенные отступы для секции историй */
.stories.section {
  padding: var(--spacing-xl) 0;
}

.stories .cards {
  gap: 2rem;	
  margin-bottom: var(--spacing-md);
}

.stories .content-block {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.stories .content-block h2 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.stories .content-block p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}
/*-----*/
/* Стили для иконок контактов */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-sm);
}

.contact-icon {
    flex-shrink: 0;
    color: var(--accent); /* Цвет иконок */
    transition: all 0.3s ease;
	width: 1em;
	height: 1em;
	margin-right: 0em;
	flex-shrink: 0;
}


.contact-item:hover .contact-icon {
    color: var(--secondary); /* Цвет при наведении */
    transform: scale(1.1);
}


/* Стили для контейнера кнопок */
.cta-buttons-container {
    display: flex;
    flex-direction: column; /* На мобильных устройствах кнопки будут друг под другом */
    gap: 1rem; /* Отступ между кнопками */
    align-items: center; /* Выравнивание по центру */
    margin-top: 1rem; /* Отступ сверху, если нужно */
}

/* Стили для кнопок внутри контейнера */
.cta-buttons-container .cta-button {
    display: inline-flex;
    align-items: center; /* Выравнивание иконки и текста по вертикали */
    justify-content: center;
    width: 100%; /* На мобильных устройствах кнопки будут занимать всю ширину */
    max-width: 300px; /* Ограничиваем максимальную ширину на мобильных */
    text-align: center;
}

/* Стили для десктопной версии */
@media (min-width: 768px) {
    .cta-buttons-container {
        flex-direction: row; /* На десктопе кнопки будут в ряд */
        justify-content: center;
        align-items: center;
        width: auto;
    }

    .cta-buttons-container .cta-button {
        width: auto; /* На десктопе ширина кнопок будет по содержимому */
        max-width: none;
    }
}

/* Стили для иконки Telegram */
.cta-button .button-icon {
    width: 1.2em; /* Увеличиваем ширину иконки */
	height: 1.2em; / Увеличиваем высоту иконки */
    margin-right: 0.5em; /* Отступ справа от иконки */
    flex-shrink: 0; /* Предотвращает сжатие иконки */
	margin-right: 10px !important;
}


/* Адаптив для мобильных */
@media (max-width: 768px) {
    .contact-item {
        gap: 8px;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
    }
}



/* Карусель */
.carousel {
  max-width: 800px;
  margin: var(--spacing-lg) auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  height: 400px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.carousel-item img {
  max-width: 100%;
  max-height: calc(100% - 40px);
  object-fit: contain;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  min-height: 40px;
  box-sizing: border-box;
}

.carousel-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-indicator.active {
  background: white;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-button:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

/* Модальное окно для изображений */
#image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

#image-modal.active img {
  transform: scale(1);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: var(--spacing-lg) auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: var(--spacing-md);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--spacing-md);
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 100%;
  padding: var(--spacing-md);
}

.faq-toggle-all {
  margin-bottom: var(--spacing-md);
  display: block;
  margin-left: auto;
}

/* Правила */
.rules-toc {
  max-width: 800px;
  margin: var(--spacing-lg) auto var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.rules-toc-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.rules-toc ul {
  list-style: none;
  padding: 0;
}

.rules-toc li {
  margin-bottom: var(--spacing-sm);
}

.rules-toc a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.rules-toc a:hover {
  color: var(--highlight);
  text-decoration: underline;
}

.rules-section {
  max-width: 800px;
  margin: var(--spacing-lg) auto;
}

.rules-section h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.rules-section h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.rules-list {
  list-style: none;
  padding: 0;
}

.rules-item {
  display: flex;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.rules-item:hover {
  box-shadow: var(--shadow-md);
}

.rules-item svg {
  width: 24px;
  height: 24px;
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}

.rules-item div {
  flex: 1;
}

.rules-item strong {
  color: var(--primary);
}

.rules-conclusion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.rules-conclusion p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.rules-conclusion .cta-button {
  margin: 0 auto;
}

/* Футер */
.footer {
  background-color: var(--bg-header);
  color: var(--text-body);
  padding: var(--spacing-xl) 0;
  border-top: 2px solid var(--primary);
  margin-top: auto;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-about {
  flex: 1;
}

.footer-contacts {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.links {
  list-style: none;
  padding: 0;
  
}

.links li {
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
  color: var(--text-secondary);
}

a.links,
.links a {
  /*color: var(--text-secondary);*/
  text-decoration: none;/* Убираем подчёркивание, если нужно */
  /*transition: color 0.3s;*/
  color: var(--text-secondary); /* Базовый цвет текста, чтобы не конфликтовать с темой */
  transition: text-shadow 0.3s ease, color 0.3s ease; /* Плавный переход для подсветки */
  text-shadow: 0 0 1px var(--secondary); /* Слегка заметная подсветка в нормальном состоянии (мягкое свечение) */
}

a.links:hover,
.links a:hover {
  /*color: var(--primary);*/
  color: var(--secondary); /* Изменяем цвет на secondary при наведении для большей заметности */
  text-shadow: 0 0 1px var(--secondary); /* Увеличиваем подсветку при наведении */
  position: relative; /* Для позиционирования псевдоэлемента */
  animation: none; /* Отключаем анимацию по умолчанию */
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  color: white;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    position: relative;
  }

  .logo {
    order: 1;
    flex: 1;
  }

  .header-controls {
    order: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-sm);
    width: auto;
  }

  .theme-toggle {
    order: 1;
  }

  .mobile-menu-btn {
    order: 2;
    display: block;
  }

  .nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-header);
    box-shadow: var(--shadow-sm);
    z-index: 99;
  }

  .nav.active {
    max-height: 500px;
    padding-bottom: var(--spacing-md);
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .nav a {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) 0;
  }

  .footer-grid {
    flex-direction: column;
    /*align-items: center;
    text-align: center;*/
  }

  .footer-contacts {
    /*align-items: center;*/
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .faq-toggle-all {
    margin: var(--spacing-md) auto;
  }

  .rules-toc {
    text-align: center;
  }

  .rules-toc ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
   .contact-item {
        gap: 8px;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
    }
  
  .cta-button {
    -webkit-tap-highlight-color: transparent; /* Убирает подсветку при тапе */
    user-select: none; /* Запрещает выделение текста при клике */
  }
  
  .cta-button:active {
    transform: translateY(-1px) scale(0.98); /* Легкая анимация нажатия */
    transition: transform 0.1s ease;
  }
}

/* Для десктопной версии */
@media (min-width: 769px) {
  .header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-md);
  }
  
  .nav {
    order: 1;
  }

  .theme-toggle {
    order: 2;
  }

  .mobile-menu-btn {
    display: none;
  }
}


/* Download Buttons */
.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.download-button {
  display: inline-block;
  background: var(--primary); /* Единый цвет фона */
  color: var(--text-inverse); /* Белый текст для контраста */
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 700; /* Увеличена толщина шрифта для значимости */
  border-radius: 30px;
  font-size: 1.1rem; /* Немного увеличен размер текста */
  text-decoration: none;
  border: 3px solid var(--primary); /* Утолщенная обводка */
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  z-index: 1;
  /*box-shadow: 0 6px 18px rgba(80, 120, 171, 0.4), inset 0 4px 8px rgba(255, 255, 255, 0.3); *//* Усиленный выпуклый эффект */
  transform: translateY(0);
}

.download-button:hover {
  transform: translateY(-4px); /* Большее поднятие при наведении */
  /*box-shadow: 0 10px 24px rgba(80, 120, 171, 0.6), inset 0 6px 12px rgba(255, 255, 255, 0.4);*/ /* Усиленная тень и свечение */
}

/* Эффект свечения, как у cta-button */
.download-button:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px;
  /*box-shadow: 0 0 15px 5px var(--secondary), 0 0 25px 10px rgba(255, 255, 0, 0.5);*/
  opacity: 1;
  z-index: -1;
  animation: pulsate 2s infinite;
}

/* Анимация пульсации */
@keyframes pulsate {
  0% {
    box-shadow: 0 0 10px 5px var(--secondary), 0 0 20px 10px rgba(255, 255, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px 10px var(--secondary), 0 0 30px 15px rgba(255, 255, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 10px 5px var(--secondary), 0 0 20px 10px rgba(255, 255, 0, 0.5);
  }
}



/* Symbol Preview Image */
.symbol-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px; /* Фиксированная высота контейнера */
  margin: var(--spacing-lg) auto;
  width: 100%;
}

.symbol-preview img {
  max-height: 200px; /* Максимальная высота изображения */
  height: auto; /* Сохраняет пропорции */
  width: auto; /* Сохраняет пропорции */
  max-width: 100%; /* Гарантирует, что изображение не превысит ширину контейнера */
  object-fit: contain; /* Сохраняет пропорции */
  cursor: pointer;
}

/*Кнопка заказа*/
.order-action {
	margin-top: 1.5rem;
	
}