/* ===== ОБЩИЕ СТИЛИ ===== */
#maket {
  width: 100%;
  max-width: 20000px;
  min-width: 300px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

body {
  background-image: url(img/bestfoto.png);
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  overflow-x: hidden;
  animation: fadeIn 0.5s ease-in-out; /* плавное появление страницы */
}

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

h1, h2, h3, h4, h5, h6 {
  font-size: 15pt;
  color: #ff0000;
  padding-bottom: 30px;
  word-wrap: break-word;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
#text {
  color: #000000;
  font-size: 11pt;
  padding-bottom: 40px;
  position: relative;
  word-wrap: break-word;
}

#vse {
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 30px 30px 10px 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2), inset 0 1px 3px rgba(255,255,255,0.8);
  padding: 40px 6%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

#vse img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

/* Индивидуальные стили для изображений */
#img1 {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 20px 0;
}

#img2, #img4, #img5, #img6, #img7 {
  max-width: 100%;
  height: auto;
  float: none;
  margin: 10px auto;
  display: block;
  z-index: 9999;
}

@media (min-width: 768px) {
  #img2 { float: right; width: 200px; margin-left: 20px; padding-right: 0; }
  #img4 { float: right; width: 250px; margin-left: 20px; }
  #img5 { float: right; width: 150px; margin-left: 20px; }
  #img6 { float: right; width: 200px; margin-left: 20px; border-radius: 30px; overflow: hidden; }
  #img7 { float: right; width: 250px; margin-left: 20px; object-fit: cover; }
}

/* ===== ОТСТУПЫ И ТОЧКИ ===== */
#otstup { padding-bottom: 140px; }
#otstup2 { padding-bottom: 35px; }
#otstup3 { padding-bottom: 1px; }
#otstup4 { padding-bottom: 10px; }
#tochka {
  height: 5px;
  width: 5px;
  background-color: #6666cc;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

/* ===== МЕНЮ ===== */
:root {
  --menu-bg: #ffffff;
  --menu-text: #1d3557;
  --menu-hover: #e63946;
  --menu-border: #e0e0e0;
  --menu-dropdown-bg: #ffffff;
  --menu-accent: #e63946;
  --menu-light-bg: #f8f9fa;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* для кнопки */
}

#menu-header {
  background-color: #4B0082;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--menu-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  width: 100%;
  position: fixed;
}

#menu-header::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #e63946, #f1c40f, #e63946);
  width: 100%;
  position: absolute;
  bottom: -2px;
  left: 0;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 100%;
  max-width: none;
  margin: 0;
}

.menu-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

#logimgneg {
  height: 70px;
  width: 70px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  height: 100%;
}

.nav-item {
  position: relative;
  margin: 0 5px;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: flex;
  align-items: center;
  color: var(--menu-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 18px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  white-space: nowrap;
  height: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-item > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(230,57,70,0.3);
}

.nav-item:first-child > a {
  color: var(--menu-hover);
  background-color: rgba(230, 57, 70, 0.12);
}

.nav-item > a i:first-child {
  margin-right: 8px;
  font-size: 1.1rem;
  color: var(--menu-accent);
}

.nav-item > a i.fa-chevron-down {
  margin-left: 6px;
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.nav-item:hover > a {
  color: var(--menu-hover);
  background-color: rgba(230, 57, 70, 0.08);
}

.nav-item:hover > a i.fa-chevron-down {
  transform: rotate(180deg);
}

.nav-item.dropdown > a {
  color: #DAA520;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #6A5ACD;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 10px 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-top: 2px solid var(--menu-accent);
  border-left: 1px solid var(--menu-border);
  border-right: 1px solid var(--menu-border);
  border-bottom: 1px solid var(--menu-border);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 20px;
  transition: all 0.2s;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  color: var(--menu-hover);
  background-color: rgba(230,57,70,0.2);
  border-left-color: var(--menu-accent);
  padding-left: 30px;
}

.nav-item.current > a {
  color: var(--menu-hover);
  background-color: rgba(230, 57, 70, 0.12);
  position: relative;
}

.nav-item.current > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background-color: var(--menu-accent);
  border-radius: 1px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  padding: 0;
  margin-left: 20px;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--menu-text);
  position: absolute;
  left: 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 10px; }
.mobile-menu-toggle span:nth-child(3) { top: 20px; }

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
  background-color: var(--menu-accent);
}
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
  background-color: var(--menu-accent);
}

/* ===== СТИЛИ ДЛЯ ЗАГОЛОВКОВ С ИКОНКАМИ ===== */
.text-icon {
  margin-right: 8px;
  color: var(--menu-accent, #e63946);
}

h1, h2, h3, h4 {
  position: relative;
  padding-left: 50px;
  margin: 30px 0 20px;
  border-bottom: 2px dashed var(--menu-accent, #e63946);
  padding-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: text-shadow 0.3s;
}

h1 .text-icon, h2 .text-icon, h3 .text-icon, h4 .text-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--menu-accent, #e63946);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* ===== СТИЛИ ДЛЯ АБЗАЦЕВ ===== */
#text p {
  line-height: 1.8;
  margin: 15px 0;
  color: #2c3e50;
  font-size: 1.1rem;
  text-align: justify;
  border-left: 3px solid #e63946;
  padding-left: 20px;
  background: linear-gradient(to right, rgba(230,57,70,0.05), transparent);
}

#text p b, #text p strong {
  color: #c0392b;
  font-size: 1.15rem;
}

#text a {
  color: #e63946;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding: 0 2px;
}

#text a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #e63946, #DAA520, #e63946);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

#text a:hover::after {
  transform: scaleX(1);
}

/* ===== УНИКАЛЬНЫЙ ПОДВАЛ ===== */
.enduro-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #4B0082 100%);
  color: #fff;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 3px solid #e63946;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enduro-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, #e63946, #DAA520 20px, #e63946 40px);
  opacity: 0.7;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-icon {
  font-size: 4rem;
  color: #e63946;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(230,57,70,0.5));
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(230,57,70,0.5)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 20px rgba(218,165,32,0.8)); transform: scale(1.05); }
}

.footer-city {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
  background: linear-gradient(45deg, #e63946, #DAA520, #e63946);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0 5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.footer-year {
  font-size: 2rem;
  color: #e6b800;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 30px;
  font-style: italic;
  border-bottom: 1px dashed #e63946;
  padding-bottom: 15px;
  display: inline-block;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 25px 0;
}

.footer-social a {
  color: #fff;
  font-size: 1.8rem;
  transition: all 0.3s;
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e63946;
  box-shadow: 0 0 15px rgba(230,57,70,0.3);
  line-height: 1;
  text-decoration: none;
  border-bottom: none;
}

.footer-social a:hover {
  transform: translateY(-8px) rotate(8deg);
  background: #e63946;
  border-color: #DAA520;
  box-shadow: 0 10px 20px rgba(230,57,70,0.6);
  text-decoration: none;
  border-bottom: none;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #888;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.footer-copyright i {
  color: #e63946;
  margin: 0 5px;
}

@media (max-width: 600px) {
  .footer-city { font-size: 2.5rem; letter-spacing: 4px; }
  .footer-year { font-size: 1.5rem; }
  .footer-social a { width: 45px; height: 45px; font-size: 1.4rem; }
}

/* ===== АНИМАЦИЯ МОТОЦИКЛА ===== */
#rider {
  position: fixed;
  bottom: 0;
  left: -150px;
  height: 80px;
  width: auto;
  animation: rideAcross 90s linear infinite;
  animation-delay: 90s;
  z-index: 9999999999999;
  pointer-events: none;
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.3));
}

#rider::after {
  content: '✧ ГРЯЗЬ В КРОВИ ✧';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #e6b800;
  text-shadow: 1px 1px 0 #000, 2px 2px 0 rgba(0,0,0,0.5);
  white-space: nowrap;
  font-weight: bold;
  letter-spacing: 2px;
  opacity: 0.8;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 0.6; text-shadow: 1px 1px 0 #000, 2px 2px 0 rgba(0,0,0,0.5); }
  50% { opacity: 1; text-shadow: 2px 2px 0 #000, 4px 4px 0 rgba(230,57,70,0.3); }
}

@keyframes rideAcross {
  0% { left: -150px; opacity: 1; }
  16.67% { left: 100%; opacity: 1; }
  16.68% { left: -150px; opacity: 0; }
  100% { left: -150px; opacity: 0; }
}

/* ===== УНИКАЛЬНЫЕ ЭФФЕКТЫ ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 30%, rgba(139, 69, 19, 0.15) 2px, transparent 4px),
    radial-gradient(circle at 95% 70%, rgba(101, 67, 33, 0.15) 3px, transparent 5px),
    radial-gradient(circle at 30% 80%, rgba(160, 82, 45, 0.15) 4px, transparent 6px),
    radial-gradient(circle at 70% 20%, rgba(120, 60, 30, 0.15) 2px, transparent 4px),
    radial-gradient(circle at 45% 50%, rgba(140, 70, 35, 0.15) 5px, transparent 7px);
  background-size: 250px 250px;
  pointer-events: none;
  z-index: 1;
  animation: mudSplash 40s linear infinite;
}

@keyframes mudSplash {
  0% { background-position: 0 0; }
  100% { background-position: 300px 300px; }
}

/* Левая полоса "след шин" */
body > div:first-of-type::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: repeating-linear-gradient(45deg, #e63946, #e63946 10px, #DAA520 10px, #DAA520 20px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 9997;
  transition: opacity 0.3s;
}
body:hover > div:first-of-type::before {
  opacity: 0.4;
}

/* ===== СТИЛИЗАЦИЯ ПОЛЗУНКА (ИСПРАВЛЕНО) ===== */
:root {
  --scrollbar-thumb-color: #e63946;   /* цвет ползунка в светлой теме */
  --scrollbar-track-color: #2d2d2d;   /* цвет дорожки в светлой теме */
}

/* Для Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
  -webkit-appearance: none;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track-color);
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-color);
  border-radius: 10px;
  border: 2px solid var(--scrollbar-track-color);
  background-clip: padding-box;
  transition: background 0.1s ease;
}

/* Для Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 992px) {
  #vse { padding: 30px 4%; }
  #text p { font-size: 1rem; padding-left: 15px; }
  .menu-container { flex-wrap: wrap; height: auto; padding: 10px 20px; }
  .nav-links {
    order: 3;
    width: 100%;
    margin-top: 15px;
    display: none;
    height: auto;
    flex-direction: column;
  }
  .nav-links.active { display: flex; }
  .nav-item {
    width: 100%;
    margin: 0;
    height: auto;
    display: block;
  }
  .nav-item > a {
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--menu-border);
    border-radius: 0;
    height: auto;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background-color: #6A5ACD;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-left: 20px;
  }
  .nav-item:hover .dropdown-menu,
  .nav-item.active .dropdown-menu { display: block; }
  .dropdown-menu a {
    padding: 12px 30px;
    font-size: 0.9rem;
    color: #ffffff;
  }
  .dropdown-menu a:hover { padding-left: 35px; }
  .nav-item.current > a::after { display: none; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .menu-logo i { font-size: 2rem; }
}

@media (max-width: 600px) {
  #vse { padding: 30px 15px; }
  h1, h2, h3, h4, h5, h6 { font-size: 14pt; }
  #text { font-size: 10pt; }
  h1, h2, h3, h4 { padding-left: 40px; }
  h1 .text-icon, h2 .text-icon, h3 .text-icon, h4 .text-icon { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .menu-container { padding: 10px 15px; }
  .menu-logo i { margin-right: 0; font-size: 2.2rem; }
}

/* ===== ТЕМНАЯ ТЕМА ===== */
body.dark-theme {
  background-image: url(img/bgfotolalala.png) !important;
  background-color: #121212;
  color: #f0f0f0;
  --scrollbar-track-color: #1a1a1a;
}

body.dark-theme #vse {
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(5px);
  color: #e0e0e0;
}

body.dark-theme #text {
  color: #e0e0e0;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: #ff8a8a;
}

body.dark-theme #text p {
  color: #d0d0d0;
  border-left-color: #ff6b6b;
  background: linear-gradient(to right, rgba(255,107,107,0.1), transparent);
}

body.dark-theme #text a {
  color: #ffa07a;
}

body.dark-theme #tochka {
  background-color: #ffa07a;
}

body.dark-theme .footer-social a {
  background: rgba(255,255,255,0.1);
  border-color: #ff6b6b;
}

body.dark-theme .footer-social a:hover {
  background: #ff6b6b;
  border-color: #ffd700;
}

body.dark-theme body > div:first-of-type::before {
  opacity: 0.4;
  background: repeating-linear-gradient(45deg, #ff6b6b, #ff6b6b 10px, #ffd700 10px, #ffd700 20px);
}

/* ===== ТЕМНАЯ ТЕМА ДЛЯ МЕНЮ ===== */
body.dark-theme #menu-header {
  background-color: #1a1a1a;
  border-bottom-color: #ff6b6b;
}

body.dark-theme .nav-item > a {
  color: #e0e0e0;
}

body.dark-theme .nav-item > a i:first-child {
  color: #ff6b6b;
}

body.dark-theme .nav-item:first-child > a {
  color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.15);
}

body.dark-theme .nav-item.dropdown > a {
  color: #ffd700;
}

body.dark-theme .nav-item:hover > a {
  color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.15);
}

body.dark-theme .dropdown-menu {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-theme .dropdown-menu a {
  color: #e0e0e0;
}

body.dark-theme .dropdown-menu a:hover {
  color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.2);
  border-left-color: #ff6b6b;
}

body.dark-theme .nav-item.current > a {
  color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.15);
}

body.dark-theme .mobile-menu-toggle span {
  background-color: #e0e0e0;
}

body.dark-theme .mobile-menu-toggle.active span {
  background-color: #ff6b6b;
}

/* ===== КНОПКА ПЕРЕКЛЮЧЕНИЯ ТЕМЫ (с пульсацией 1 сек активной / 15 сек паузы) ===== */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 65px;
  height: 65px;
  background: #333;
  color: #ffd700;
  font-size: 2rem;
  border: 3px solid var(--menu-accent, #e63946);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 0 20px #e63946;
  transition: var(--transition, all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275));
  animation: pulseGlowLight 16s infinite; /* 1с пульсации + 15с паузы */
}

@keyframes pulseGlowLight {
  0% {
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 0 20px #e63946;
  }
  3% {  /* примерно 0.5с от начала (16с * 0.03 ≈ 0.48с) */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 40px #DAA520;
  }
  6% {  /* примерно 1с от начала */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 0 20px #e63946;
  }
  100% {
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 0 20px #e63946;
  }
}

#theme-toggle:hover {
  transform: scale(1.15) rotate(360deg);
  border-color: #DAA520;
  animation: none; /* отключаем пульсацию при наведении */
}

body.dark-theme #theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-color: #ff6b6b;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px #ff6b6b;
  animation: pulseGlowDark 16s infinite;
}

@keyframes pulseGlowDark {
  0% {
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px #ff6b6b;
  }
  3% {
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 40px #ffd700;
  }
  6% {
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px #ff6b6b;
  }
  100% {
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px #ff6b6b;
  }
}

body.dark-theme #theme-toggle:hover {
  background: #fff;
  color: #000;
  border-color: #ffd700;
  animation: none;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
  #theme-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}/* ===== КНОПКА-ССЫЛКА "ПРАВИЛА" (только размер и позиция) ===== */
.rules-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: block;
  height: 100px;           /* фиксированная высота */
  width: auto;             /* ширина подстраивается под пропорции картинки */
  text-decoration: none;
  border: none;
}

.rules-image {
  height: 100%;            /* занимает всю высоту ссылки */
  width: auto;             /* ширина пропорциональна высоте */
  display: block;
}

/* Адаптация для мобильных устройств (при желании можно оставить) */
@media (max-width: 600px) {
  .rules-link {
    height: 80px;          /* чуть меньше на мобильных */
    bottom: 15px;
    right: 15px;
  }
}