/*
Theme Name:     Foxiz child
Template:      	foxiz
Theme URI:      https://foxiz.themeruby.com
Author:         Theme-Ruby
Author URI:     https://themeforest.net/user/theme-ruby/portfolio/
Description:    Make your modifications to Foxiz in this child theme.
Version:        1.0
Tags:           custom-background, custom-menu, featured-images, theme-options, custom-colors, translation-ready, threaded-comments, translation-ready
License:        Themeforest Licence
License URI:    https://themeforest.net/licenses/standard
*/

/* Your CSS code goes here
-------------------------------------- */
/* =================================
   БАЗОВЫЕ СТИЛИ HIGHLIGHT-BOX
   ================================= */

/* Базовый highlight-box (ваш оригинал с анимацией) */
.highlight-box {
  background-color: #fff9e6;
  border-left: 4px solid #f4b400;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.highlight-box:hover {
  transform: translateX(8px);
}

/* =================================
   НОВЫЕ ВАРИАНТЫ HIGHLIGHT-BOX
   ================================= */

/* 1. Движение вверх с тенью */
.highlight-box-lift {
  background-color: #e8f5e8;
  border-left: 4px solid #4caf50;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlight-box-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

/* 2. Увеличение с пульсацией */
.highlight-box-pulse {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
}

.highlight-box-pulse:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

/* 3. Поворот с движением */
.highlight-box-rotate {
  background-color: #fce4ec;
  border-left: 4px solid #e91e63;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
}

.highlight-box-rotate:hover {
  transform: rotate(1deg) translateX(5px);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

/* 4. Комбо-эффект (движение + увеличение + свечение) */
.highlight-box-combo {
  background-color: #f3e5f5;
  border-left: 4px solid #9c27b0;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.highlight-box-combo:hover {
  transform: translateY(-4px) translateX(6px) scale(1.02);
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.25);
}

/* 5. Эффект волны */
.highlight-box-wave {
  background-color: #e0f2f1;
  border-left: 4px solid #009688;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.highlight-box-wave:hover {
  transform: translateX(10px);
}

.highlight-box-wave::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.highlight-box-wave:hover::before {
  left: 100%;
}

/* 6. Bounce эффект */
.highlight-box-bounce {
  background-color: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
}

.highlight-box-bounce:hover {
  transform: translateX(8px) scale(1.05);
}

/* 7. Slide-in эффект */
.highlight-box-slide {
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.highlight-box-slide::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: rgba(244, 67, 54, 0.1);
  transition: width 0.3s ease;
}

.highlight-box-slide:hover {
  transform: translateX(6px);
}

.highlight-box-slide:hover::after {
  width: 100%;
}

/* 8. Glow эффект */
.highlight-box-glow {
  background-color: #f1f8e9;
  border-left: 4px solid #8bc34a;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
}

.highlight-box-glow:hover {
  transform: translateX(5px);
  box-shadow: 
    0 0 20px rgba(139, 195, 74, 0.4),
    0 0 30px rgba(139, 195, 74, 0.2),
    0 0 40px rgba(139, 195, 74, 0.1);
}

/* =================================
   СОЦИАЛЬНЫЕ КНОПКИ (улучшенные)
   ================================= */

.social-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
}

.social-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  color: #333;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 18px;
  border: 1px solid #ccc;
  position: relative;
  overflow: hidden;
}

.social-buttons a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.social-buttons a:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-buttons a:hover::before {
  width: 100px;
  height: 100px;
}

/* =================================
   INFO-BOX-UA (с анимациями)
   ================================= */

.info-box-ua {
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.info-box-ua:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.info-row {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  transition: all 0.2s ease;
  position: relative;
}

.info-row:hover {
  transform: translateX(3px);
}

.info-row.light {
  background: #fff;
  color: #333;
}

.info-row.dark {
  background: #f5f5f5;
  color: #333;
}

.info-row .label {
  min-width: 150px;
  font-weight: bold;
  margin-right: 10px;
  transition: color 0.2s ease;
}

.info-row:hover .label {
  color: #6b00ff;
}

.info-box-ua a {
  color: #6b00ff;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.info-box-ua a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6b00ff;
  transition: width 0.3s ease;
}

.info-box-ua a:hover {
  transform: translateX(2px);
}

.info-box-ua a:hover::after {
  width: 100%;
}

.info-row img {
  margin-right: 8px;
  transition: transform 0.2s ease;
}

.info-row:hover img {
  transform: scale(1.1);
}

/* =================================
   ТЕМНЫЙ РЕЖИМ - MEDIA QUERIES
   ================================= */

@media (prefers-color-scheme: dark) {
  .highlight-box {
    background-color: #2a2416;
    border-left-color: #ffd700;
    color: #e6d7a3;
  }
  
  .highlight-box-lift {
    background-color: #1a2e1a;
    border-left-color: #66bb6a;
    color: #c8e6c9;
  }
  
  .highlight-box-pulse {
    background-color: #0d1929;
    border-left-color: #42a5f5;
    color: #bbdefb;
  }
  
  .highlight-box-rotate {
    background-color: #2a1221;
    border-left-color: #ec407a;
    color: #f8bbd9;
  }
  
  .highlight-box-combo {
    background-color: #221929;
    border-left-color: #ba68c8;
    color: #e1bee7;
  }
  
  .highlight-box-wave {
    background-color: #0d1f1c;
    border-left-color: #26a69a;
    color: #b2dfdb;
  }
  
  .highlight-box-bounce {
    background-color: #2e1a0a;
    border-left-color: #ffb74d;
    color: #ffe0b2;
  }
  
  .highlight-box-slide {
    background-color: #2e0f0f;
    border-left-color: #ef5350;
    color: #ffcdd2;
  }
  
  .highlight-box-glow {
    background-color: #1a2e0f;
    border-left-color: #9ccc65;
    color: #dcedc8;
  }
  
  .info-box-ua {
    border-color: #444;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }
  
  .info-row.light {
    background: #2a2a2a;
    color: #e0e0e0;
  }
  
  .info-row.dark {
    background: #1a1a1a;
    color: #e0e0e0;
  }
  
  .info-box-ua a {
    color: #9d7bff;
  }
  
  .info-box-ua a::after {
    background: #9d7bff;
  }
}

/* =================================
   ТЕМНЫЙ РЕЖИМ - КЛАССЫ
   ================================= */

.dark .highlight-box,
[data-theme="dark"] .highlight-box,
body.dark-mode .highlight-box,
.dark-mode .highlight-box {
  background-color: #2a2416;
  border-left-color: #ffd700;
  color: #e6d7a3;
}

.dark .highlight-box-lift,
[data-theme="dark"] .highlight-box-lift,
body.dark-mode .highlight-box-lift,
.dark-mode .highlight-box-lift {
  background-color: #1a2e1a;
  border-left-color: #66bb6a;
  color: #c8e6c9;
}

.dark .highlight-box-pulse,
[data-theme="dark"] .highlight-box-pulse,
body.dark-mode .highlight-box-pulse,
.dark-mode .highlight-box-pulse {
  background-color: #0d1929;
  border-left-color: #42a5f5;
  color: #bbdefb;
}

.dark .highlight-box-rotate,
[data-theme="dark"] .highlight-box-rotate,
body.dark-mode .highlight-box-rotate,
.dark-mode .highlight-box-rotate {
  background-color: #2a1221;
  border-left-color: #ec407a;
  color: #f8bbd9;
}

.dark .highlight-box-combo,
[data-theme="dark"] .highlight-box-combo,
body.dark-mode .highlight-box-combo,
.dark-mode .highlight-box-combo {
  background-color: #221929;
  border-left-color: #ba68c8;
  color: #e1bee7;
}

.dark .highlight-box-wave,
[data-theme="dark"] .highlight-box-wave,
body.dark-mode .highlight-box-wave,
.dark-mode .highlight-box-wave {
  background-color: #0d1f1c;
  border-left-color: #26a69a;
  color: #b2dfdb;
}

.dark .highlight-box-bounce,
[data-theme="dark"] .highlight-box-bounce,
body.dark-mode .highlight-box-bounce,
.dark-mode .highlight-box-bounce {
  background-color: #2e1a0a;
  border-left-color: #ffb74d;
  color: #ffe0b2;
}

.dark .highlight-box-slide,
[data-theme="dark"] .highlight-box-slide,
body.dark-mode .highlight-box-slide,
.dark-mode .highlight-box-slide {
  background-color: #2e0f0f;
  border-left-color: #ef5350;
  color: #ffcdd2;
}

.dark .highlight-box-glow,
[data-theme="dark"] .highlight-box-glow,
body.dark-mode .highlight-box-glow,
.dark-mode .highlight-box-glow {
  background-color: #1a2e0f;
  border-left-color: #9ccc65;
  color: #dcedc8;
}

.dark .info-box-ua,
[data-theme="dark"] .info-box-ua,
body.dark-mode .info-box-ua,
.dark-mode .info-box-ua {
  border-color: #444;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.dark .info-row.light,
[data-theme="dark"] .info-row.light,
body.dark-mode .info-row.light,
.dark-mode .info-row.light {
  background: #2a2a2a;
  color: #e0e0e0;
}

.dark .info-row.dark,
[data-theme="dark"] .info-row.dark,
body.dark-mode .info-row.dark,
.dark-mode .info-row.dark {
  background: #1a1a1a;
  color: #e0e0e0;
}

.dark .info-box-ua a,
[data-theme="dark"] .info-box-ua a,
body.dark-mode .info-box-ua a,
.dark-mode .info-box-ua a {
  color: #9d7bff;
}

.dark .info-box-ua a::after,
[data-theme="dark"] .info-box-ua a::after,
body.dark-mode .info-box-ua a::after,
.dark-mode .info-box-ua a::after {
  background: #9d7bff;
}

/* =================================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ
   ================================= */

/* Отключить анимации для пользователей с настройкой "prefers-reduced-motion" */
@media (prefers-reduced-motion: reduce) {
  .highlight-box,
  .highlight-box-lift,
  .highlight-box-pulse,
  .highlight-box-rotate,
  .highlight-box-combo,
  .highlight-box-wave,
  .highlight-box-bounce,
  .highlight-box-slide,
  .highlight-box-glow,
  .social-buttons a,
  .info-box-ua,
  .info-row,
  .info-box-ua a {
    transition: none;
  }
  
  .highlight-box:hover,
  .highlight-box-lift:hover,
  .highlight-box-pulse:hover,
  .highlight-box-rotate:hover,
  .highlight-box-combo:hover,
  .highlight-box-wave:hover,
  .highlight-box-bounce:hover,
  .highlight-box-slide:hover,
  .highlight-box-glow:hover,
  .social-buttons a:hover,
  .info-box-ua:hover,
  .info-row:hover {
    transform: none;
  }
}



/* gallery */
.custom-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.custom-gallery a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.custom-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.custom-gallery .image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
    text-align: center;
    font-size: 14px;
}

.custom-gallery a:hover img {
    transform: scale(1.05);
}

.custom-gallery a:hover .image-caption {
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-gallery img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .custom-gallery {
        grid-template-columns: 1fr;
    }
    .custom-gallery img {
        height: 180px;
    }
    .custom-gallery .image-caption {
        font-size: 12px;
        padding: 8px;
    }
  .shorts-gallery {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 16px;
    scroll-snap-type: x mandatory;
  }
}

.instagram-style-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Уменьшены отступы между картинками */
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
}

.instagram-style-gallery a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.instagram-style-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.instagram-style-gallery .image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.instagram-style-gallery a:hover img {
    transform: scale(1.02);
}

.instagram-style-gallery a:hover .image-caption {
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .instagram-style-gallery {
        padding: 10px;
    }
    .instagram-style-gallery .image-caption {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .instagram-style-gallery {
        padding: 8px;
    }
    .instagram-style-gallery .image-caption {
        font-size: 12px;
        padding: 8px;
    }
}
/* =================================
   Меню выбора маленькое
   ================================= */
/* sort-container */
.sort-container {
  background: #6a0dad;
  width: 100%;
  padding: 15px 0;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.sort-menu {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 15px;
}

.sort-label {
  font-weight: bold;
  color: white;
  white-space: nowrap;
  font-size: 18px;
}

.sort-group {
  position: relative;
}

.sort-btn {
  background: white;
  color: #333;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 120px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sort-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dropdown {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 0;
  z-index: 10;
  top: 100%;
  left: 0;
  min-width: 100%;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 4px;
}

.dropdown a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.dropdown a:hover {
  background-color: #f8f8f8;
}

/* Улучшенный адаптив на узких экранах - "облачное" расположение */
@media (max-width: 768px) {
  .sort-container {
    border-radius: 20px;
    padding: 15px 0;
  }
  
  .sort-menu {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
  }
  
  .sort-label {
    font-size: 16px;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    order: -1;
  }
  
  .sort-group {
    width: auto;
    flex: 0 0 auto;
  }
  
  .sort-btn {
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
    min-width: auto;
    border-radius: 15px;
    white-space: nowrap;
  }
  
  .dropdown {
    width: max-content;
    min-width: 150px;
    border-radius: 10px;
    max-height: 180px;
  }
  
  .dropdown a {
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .sort-container {
    border-radius: 15px;
    padding: 12px 0;
  }
  
  .sort-menu {
    padding: 0 10px;
    gap: 6px;
  }
  
  .sort-label {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .sort-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 12px;
  }
  
  .dropdown {
    min-width: 140px;
  }
}

/* Темный режим - Media Queries */
@media (prefers-color-scheme: dark) {
  .sort-container {
    background: #4a0e4e;
  }
  
  .sort-btn {
    background: #2a2a2a;
    color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  
  .sort-btn:hover {
    background: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  }
  
  .dropdown {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }
  
  .dropdown a {
    color: #e0e0e0;
  }
  
  .dropdown a:hover {
    background-color: #3a3a3a;
  }
}

/* Темный режим - Классы для тем */
.dark .sort-container,
[data-theme="dark"] .sort-container,
body.dark-mode .sort-container,
.dark-mode .sort-container {
  background: #4a0e4e;
}

.dark .sort-btn,
[data-theme="dark"] .sort-btn,
body.dark-mode .sort-btn,
.dark-mode .sort-btn {
  background: #2a2a2a;
  color: #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dark .sort-btn:hover,
[data-theme="dark"] .sort-btn:hover,
body.dark-mode .sort-btn:hover,
.dark-mode .sort-btn:hover {
  background: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.dark .dropdown,
[data-theme="dark"] .dropdown,
body.dark-mode .dropdown,
.dark-mode .dropdown {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.dark .dropdown a,
[data-theme="dark"] .dropdown a,
body.dark-mode .dropdown a,
.dark-mode .dropdown a {
  color: #e0e0e0;
}

.dark .dropdown a:hover,
[data-theme="dark"] .dropdown a:hover,
body.dark-mode .dropdown a:hover,
.dark-mode .dropdown a:hover {
  background-color: #3a3a3a;
}

/* =================================
   Меню выбора (большое)
   ================================= */

  .container {
            max-width: 1140px;
            margin: 0 auto;
            background: linear-gradient(135deg, #6a0dad 0%, #764ba2 100%);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .menu-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
            margin-bottom: 25px;
        }

        .menu-button {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .menu-button:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .menu-button.active {
            background: rgba(255, 255, 255, 0.4);
            border-color: rgba(255, 255, 255, 0.6);
        }

        .title {
            text-align: center;
            color: white;
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 25px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .selectors-container {
            display: grid;
            grid-template-columns: 1fr 1fr 1.2fr;
            gap: 12px;
            align-items: end;
        }

        .selectors-container.two-columns {
            grid-template-columns: 1fr 1fr 1.2fr;
        }

        .single-select {
            grid-template-columns: 2fr 1.2fr;
        }

        .select-wrapper {
            position: relative;
        }

        .custom-select {
            width: 100%;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 10px;
            color: #333;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            appearance: none;
            transition: all 0.3s ease;
            outline: none;
        }

        .custom-select:hover {
            background: rgba(255, 255, 255, 1);
            border-color: rgba(255, 255, 255, 0.6);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .custom-select:focus {
            background: rgba(255, 255, 255, 1);
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
        }

        .select-wrapper::after {
            content: '▼';
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
            pointer-events: none;
            transition: transform 0.3s ease;
        }

        .select-wrapper:hover::after {
            color: #333;
        }

        .learn-button {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            border: none;
            color: white;
            padding: 12px 28px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
            width: 100%;
            min-width: 120px;
        }

        .learn-button:hover {
            background: linear-gradient(135deg, #ee5a24, #ff6b6b);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
        }

        .learn-button:active {
            transform: translateY(0);
        }

                    @media (max-width: 768px) {
            .container {
                padding: 20px;
                margin: 10px;
            }

            .menu-buttons {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .menu-button {
                padding: 10px 15px;
                font-size: 13px;
            }

            .title {
                font-size: 22px;
                margin-bottom: 25px;
            }

            .selectors-container {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .selectors-container.two-columns {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .single-select {
                grid-template-columns: 1fr;
            }

            .custom-select {
                padding: 12px 18px;
                font-size: 15px;
            }

            .learn-button {
                padding: 12px 25px;
                font-size: 15px;
                margin-top: 15px;
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 480px) {
            .menu-buttons {
                grid-template-columns: 1fr;
            }
        }

/* ================================
   ТЕМНЫЙ РЕЖИМ - Контейнер и элементы меню
   ================================ */

/* Авто-режим по системе */
@media (prefers-color-scheme: dark) {
  .container {
    background: linear-gradient(135deg, #2b1230 0%, #4a0e4e 100%);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  }

  .menu-buttons {
    /* оставляем сетку, но уменьшаем визуальную "яркость" */
    gap: 12px;
  }

  .menu-button {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.55);
  }

  .menu-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
  }

  .menu-button.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  }

  .selectors-container {
    /* визуально чуть темнее фон селектов */
  }

  .custom-select {
    width: 100%;
    padding: 12px 16px;
    background: #1f1f23; /* тёмный фон селекта */
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    color: #eaeaea;
    font-size: 15px;
    font-weight: 500;
    appearance: none;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  }

  .custom-select:hover {
    background: #2a2a2e;
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 6px 16px rgba(0,0,0,0.65);
  }

  .custom-select:focus {
    background: #2a2a2e;
    border-color: #8e6cf6; /* мягкий фиолетовый акцент */
    box-shadow: 0 0 0 3px rgba(142,108,246,0.14);
  }

  .select-wrapper::after {
    color: #d5d5d5;
  }

  .select-wrapper:hover::after {
    color: #fff;
  }

  .learn-button {
    background: linear-gradient(135deg, #ff8a65, #d9480f);
    box-shadow: 0 6px 20px rgba(217,72,15,0.22);
    color: #fff;
  }

  .learn-button:hover {
    background: linear-gradient(135deg, #d9480f, #ff8a65);
    box-shadow: 0 8px 24px rgba(217,72,15,0.32);
    transform: translateY(-2px);
  }
}

/* Классы для ручного переключателя темы */
.dark .container,
[data-theme="dark"] .container,
body.dark-mode .container,
.dark-mode .container {
  background: linear-gradient(135deg, #2b1230 0%, #4a0e4e 100%);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.dark .menu-button,
[data-theme="dark"] .menu-button,
body.dark-mode .menu-button,
.dark-mode .menu-button {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.55);
}

.dark .menu-button:hover,
[data-theme="dark"] .menu-button:hover,
body.dark-mode .menu-button:hover,
.dark-mode .menu-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

.dark .menu-button.active,
[data-theme="dark"] .menu-button.active,
body.dark-mode .menu-button.active,
.dark-mode .menu-button.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.dark .title,
[data-theme="dark"] .title,
body.dark-mode .title,
.dark-mode .title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.dark .custom-select,
[data-theme="dark"] .custom-select,
body.dark-mode .custom-select,
.dark-mode .custom-select {
  background: #1f1f23;
  border: 2px solid rgba(255,255,255,0.06);
  color: #eaeaea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.dark .custom-select:hover,
[data-theme="dark"] .custom-select:hover,
body.dark-mode .custom-select:hover,
.dark-mode .custom-select:hover {
  background: #2a2a2e;
  border-color: rgba(102, 126, 234, 0.2);
}

.dark .custom-select:focus,
[data-theme="dark"] .custom-select:focus,
body.dark-mode .custom-select:focus,
.dark-mode .custom-select:focus {
  border-color: #8e6cf6;
  box-shadow: 0 0 0 3px rgba(142,108,246,0.14);
}

.dark .select-wrapper::after,
[data-theme="dark"] .select-wrapper::after,
body.dark-mode .select-wrapper::after,
.dark-mode .select-wrapper::after {
  color: #d5d5d5;
}

.dark .learn-button,
[data-theme="dark"] .learn-button,
body.dark-mode .learn-button,
.dark-mode .learn-button {
  background: linear-gradient(135deg, #ff8a65, #d9480f);
  box-shadow: 0 6px 20px rgba(217,72,15,0.22);
  color: #fff;
}

/* ===== Birthday People Shortcode Styles ===== */
.birthday-people-container {
    margin: 20px 0;
    padding: 0;
}

.birthday-title {
    color: #333333;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    border-bottom: 2px solid #333333;
    padding-bottom: 10px;
    grid-column: 1 / -1; /* Заголовок на всю ширину */
}

/* Grid контейнер для колонок */
.birthday-people-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 колонки на ПК */
    gap: 20px;
    margin: 20px 0;
    padding: 0;
}

.birthday-person {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0; /* Убираем отступ, т.к. используется gap */
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: fit-content; /* Для равномерного распределения */
}

.birthday-person:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #333333;
}

.birthday-person::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #333333 0%, #666666 100%);
}

.birthday-photo {
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
}

.birthday-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333333;
    transition: transform 0.3s ease;
}

.birthday-photo:hover img {
    transform: scale(1.05);
}

.birthday-photo::after {
    content: '🎂';
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.birthday-info {
    flex: 1;
    min-width: 0;
}

.birthday-info h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
}

.birthday-info h4 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.birthday-info h4 a:hover {
    color: #666666;
}

.birthday-info p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.birthday-read-more {
    display: inline-block;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.birthday-read-more:hover {
    color: #666666;
    border-bottom-color: #666666;
}

.birthday-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.1em;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* Адаптивность - одинаковый макет на всех устройствах */
@media (max-width: 1024px) {
    .birthday-people-container {
        grid-template-columns: 1fr 1fr; /* 2 колонки на планшете */
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .birthday-people-container {
        grid-template-columns: 1fr; /* 1 колонка на мобильном */
        gap: 15px;
        margin: 15px 10px;
    }
    
    /* НЕ меняем структуру карточки - оставляем как на ПК */
    .birthday-person {
        padding: 15px;
    }
    
    .birthday-photo img {
        width: 80px;
        height: 80px;
    }
    
    .birthday-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .birthday-people-container {
        margin: 15px 5px;
        gap: 12px;
    }
    
    .birthday-person {
        padding: 12px;
    }
    
    .birthday-photo img {
        width: 70px;
        height: 70px;
    }
    
    .birthday-title {
        font-size: 1.2em;
        margin-bottom: 20px;
    }
}

/* Анимация загрузки */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.birthday-person {
    animation: fadeInUp 0.6s ease forwards;
}

.birthday-person:nth-child(2) { animation-delay: 0.1s; }
.birthday-person:nth-child(3) { animation-delay: 0.2s; }
.birthday-person:nth-child(4) { animation-delay: 0.3s; }
.birthday-person:nth-child(5) { animation-delay: 0.4s; }

/* Темная тема как на скриншоте - ПРИНУДИТЕЛЬНАЯ */
[data-theme="dark"] .birthday-people-container,
.dark-theme .birthday-people-container,
.dark-mode .birthday-people-container,
body.dark .birthday-people-container,
.wp-dark-mode-active .birthday-people-container {
    background: transparent;
}

[data-theme="dark"] .birthday-person,
.dark-theme .birthday-person,
.dark-mode .birthday-person,
body.dark .birthday-person,
.wp-dark-mode-active .birthday-person {
    background: #3e4041 !important;
    border: 1px solid #5a5a5a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .birthday-person:hover,
.dark-theme .birthday-person:hover,
.dark-mode .birthday-person:hover,
body.dark .birthday-person:hover,
.wp-dark-mode-active .birthday-person:hover {
    background: #4a4b4c !important;
    border-color: #666666 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .birthday-person::before,
.dark-theme .birthday-person::before,
.dark-mode .birthday-person::before,
body.dark .birthday-person::before,
.wp-dark-mode-active .birthday-person::before {
    background: linear-gradient(180deg, #ffffff 0%, #cccccc 100%) !important;
}

[data-theme="dark"] .birthday-info h4,
[data-theme="dark"] .birthday-info h4 a,
.dark-theme .birthday-info h4,
.dark-theme .birthday-info h4 a,
.dark-mode .birthday-info h4,
.dark-mode .birthday-info h4 a,
body.dark .birthday-info h4,
body.dark .birthday-info h4 a,
.wp-dark-mode-active .birthday-info h4,
.wp-dark-mode-active .birthday-info h4 a {
    color: #ffffff !important;
}

[data-theme="dark"] .birthday-info h4 a:hover,
.dark-theme .birthday-info h4 a:hover,
.dark-mode .birthday-info h4 a:hover,
body.dark .birthday-info h4 a:hover,
.wp-dark-mode-active .birthday-info h4 a:hover {
    color: #cccccc !important;
}

[data-theme="dark"] .birthday-info p,
.dark-theme .birthday-info p,
.dark-mode .birthday-info p,
body.dark .birthday-info p,
.wp-dark-mode-active .birthday-info p {
    color: #d4d4aa !important;
}

[data-theme="dark"] .birthday-title,
.dark-theme .birthday-title,
.dark-mode .birthday-title,
body.dark .birthday-title,
.wp-dark-mode-active .birthday-title {
    color: #ffffff !important;
    border-bottom-color: #ffffff !important;
}

[data-theme="dark"] .birthday-read-more,
.dark-theme .birthday-read-more,
.dark-mode .birthday-read-more,
body.dark .birthday-read-more,
.wp-dark-mode-active .birthday-read-more {
    color: #ffffff !important;
}

[data-theme="dark"] .birthday-read-more:hover,
.dark-theme .birthday-read-more:hover,
.dark-mode .birthday-read-more:hover,
body.dark .birthday-read-more:hover,
.wp-dark-mode-active .birthday-read-more:hover {
    color: #cccccc !important;
    border-bottom-color: #cccccc !important;
}

[data-theme="dark"] .birthday-no-results,
.dark-theme .birthday-no-results,
.dark-mode .birthday-no-results,
body.dark .birthday-no-results,
.wp-dark-mode-active .birthday-no-results {
    background: #3e4041 !important;
    color: #d4d4aa !important;
    border-color: #5a5a5a !important;
}

[data-theme="dark"] .birthday-photo img,
.dark-theme .birthday-photo img,
.dark-mode .birthday-photo img,
body.dark .birthday-photo img,
.wp-dark-mode-active .birthday-photo img {
    border-color: #ffffff !important;
}

/* Автоматическая темная тема по системным настройкам */
@media (prefers-color-scheme: dark) {
    .birthday-person {
        background: #3e4041 !important;
        border: 1px solid #5a5a5a !important;
        color: #ffffff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    }
    
    .birthday-person:hover {
        background: #4a4b4c !important;
        border-color: #666666 !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
    }
    
    .birthday-person::before {
        background: linear-gradient(180deg, #ffffff 0%, #cccccc 100%) !important;
    }
    
    .birthday-info h4,
    .birthday-info h4 a {
        color: #ffffff !important;
    }
    
    .birthday-info h4 a:hover {
        color: #cccccc !important;
    }
    
    .birthday-info p {
        color: #d4d4aa !important;
    }
    
    .birthday-title {
        color: #ffffff !important;
        border-bottom-color: #ffffff !important;
    }
    
    .birthday-read-more {
        color: #ffffff !important;
    }
    
    .birthday-read-more:hover {
        color: #cccccc !important;
        border-bottom-color: #cccccc !important;
    }
    
    .birthday-no-results {
        background: #3e4041 !important;
        color: #d4d4aa !important;
        border-color: #5a5a5a !important;
    }
    
    .birthday-photo img {
        border-color: #ffffff !important;
    }
    
    .birthday-photo::after {
        background: #3e4041 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    }
}

/* Фикс для галерей Elementor на мобильных */
@media (max-width: 768px) {
    .elementor-widget-image-gallery .gallery-item,
    .gallery-columns-2 .gallery-item {
        width: 50% !important;
        max-width: 170px !important;
    }
    
    .elementor-widget-image-gallery .gallery-item img,
    .gallery-columns-2 .gallery-item img {
        width: 100% !important;
        max-width: 170px !important;
        height: auto !important;
    }
}

/* Дополнительно ограничиваем максимальную ширину контейнера */
.elementor-image-gallery img {
    max-width: 100%;
    height: auto;
}