/* ===== СОВРЕМЕННЫЙ МИНИМАЛИСТИЧНЫЙ ДИЗАЙН ===== */

:root {
    /* Цветовая палитра - современная монохромная с акцентами */
    --primary-black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --accent-primary: #00d4ff;
    --accent-secondary: #ff6b6b;
    --accent-tertiary: #9b59b6;
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #9b59b6 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --gradient-card: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    
    /* Анимации */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  }
  
  [data-theme="light"] {
    --primary-black: #ffffff;
    --dark-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --light-gray: #dee2e6;
    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4a;
    --text-muted: #8a8a8a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  /* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СВЕТЛОЙ ТЕМЫ ===== */
  [data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--light-gray);
  }
  
  [data-theme="light"] .nav-link {
    color: var(--text-secondary);
  }
  
  [data-theme="light"] .nav-link:hover {
    color: var(--text-primary);
  }
  
  [data-theme="light"] .theme-toggle {
    background: var(--light-gray);
    border-color: var(--medium-gray);
  }
  
  [data-theme="light"] .theme-toggle:hover {
    border-color: var(--accent-primary);
  }
  
  [data-theme="light"] .panel {
    background: var(--primary-black);
    border-color: var(--light-gray);
  }
  
  [data-theme="light"] .panel-header h2 {
    color: var(--text-primary);
  }
  
  [data-theme="light"] .control label {
    color: var(--text-primary);
  }
  
  [data-theme="light"] .select {
    background: var(--primary-black);
    border-color: var(--light-gray);
    color: var(--text-primary);
  }
  
  [data-theme="light"] .select:focus {
    border-color: var(--accent-primary);
  }
  
  [data-theme="light"] .switch span {
    color: var(--text-primary);
  }
  
  [data-theme="light"] .tip {
    background: var(--light-gray);
    border-color: var(--medium-gray);
    color: var(--text-secondary);
  }
  
  [data-theme="light"] .map-wrap {
    background: var(--primary-black);
    border-color: var(--light-gray);
  }
  
  [data-theme="light"] .about {
    background: var(--primary-black);
  }
  
  [data-theme="light"] .about h2 {
    color: var(--text-primary);
  }
  
  [data-theme="light"] .about p {
    color: var(--text-secondary);
  }
  
  [data-theme="light"] .footer {
    background: var(--primary-black);
    border-top-color: var(--light-gray);
  }
  
  [data-theme="light"] .footer a {
    color: var(--text-secondary);
  }
  
  [data-theme="light"] .footer a:hover {
    color: var(--accent-primary);
  }
  
  [data-theme="light"] .toast-item {
    background: var(--primary-black);
    border-color: var(--light-gray);
    color: var(--text-primary);
  }
  
  /* ===== БАЗОВЫЕ СТИЛИ ===== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--dark-gray);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* ===== ТИПОГРАФИЯ ===== */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
  }
  
  p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
  }
  
  /* ===== ЛЕЙАУТ ===== */
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  /* ===== HEADER ===== */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--medium-gray);
    padding: 1rem 0;
    transition: all 0.3s var(--ease-out);
  }
  
  .header.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 10, 0.98);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s var(--ease-out);
  }
  
  .brand:hover {
    transform: translateX(-2px);
  }
  
  .logo {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
  }
  
  .logo::before {
    content: '🚀';
    font-size: 1.5rem;
  }
  
  .logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
  }
  
  .brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
  }
  
  .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s var(--ease-out);
    z-index: -1;
  }
  
  .nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
  }
  
  .nav-link:hover::before {
    left: 0;
  }
  
  /* ===== КНОПКА ТЕМЫ ===== */
  .theme-toggle {
    background: var(--medium-gray);
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
  }
  
  .theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
  }
  
  .theme-icon {
    font-size: 1.25rem;
    transition: transform 0.3s var(--ease-out);
  }
  
  .theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
  }
  
  /* ===== HERO SECTION ===== */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    animation: float 6s var(--ease-in-out) infinite;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
  }
  
  .hero .title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
  }
  
  .cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
  }
  
  /* ===== КНОПКИ ===== */
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
  }
  
  .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s var(--ease-out);
  }
  
  .button:hover::before {
    left: 100%;
  }
  
  .button.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
  }
  
  .button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .button.secondary {
    background: var(--medium-gray);
    color: var(--text-primary);
    border: 1px solid var(--light-gray);
  }
  
  .button.secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
  }
  
  /* ===== APP LAYOUT ===== */
  .app {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    margin: 4rem 0;
    min-height: 600px;
  }
  
  /* ===== PANEL ===== */
  .panel {
    background: var(--gradient-card);
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 6rem;
    box-shadow: var(--shadow-lg);
  }
  
  .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .panel-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  .chip {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
  }
  
  .control {
    margin-bottom: 1.5rem;
  }
  
  .control label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }
  
  .select {
    width: 100%;
    padding: 1rem;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
  }
  
  .select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  }
  
  .buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .toggles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
  }
  
  .switch input {
    width: 3rem;
    height: 1.5rem;
    background: var(--medium-gray);
    border-radius: 1rem;
    position: relative;
    transition: all 0.3s var(--ease-out);
    appearance: none;
  }
  
  .switch input:checked {
    background: var(--accent-primary);
  }
  
  .switch input::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s var(--ease-out);
  }
  
  .switch input:checked::before {
    transform: translateX(1.5rem);
  }
  
  /* ===== MAP ===== */
  .map-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
    background: var(--dark-gray);
    height: 600px;
    box-shadow: var(--shadow-lg);
  }
  
  .map-container {
    width: 100%;
    height: 100%;
  }
  
  /* ===== ABOUT SECTION ===== */
  .about {
    padding: 6rem 0;
    text-align: center;
    background: var(--gradient-dark);
    border-radius: 20px;
    margin: 4rem 0;
  }
  
  .about h2 {
    margin-bottom: 2rem;
  }
  
  .about p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
  }
  
  /* ===== FOOTER ===== */
  .footer {
    background: var(--gradient-dark);
    border-top: 1px solid var(--medium-gray);
    padding: 3rem 0;
    text-align: center;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .footer-links {
    display: flex;
    gap: 2rem;
  }
  
  .footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
  }
  
  .footer a:hover {
    color: var(--accent-primary);
  }
  
  /* ===== АНИМАЦИИ ===== */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  @keyframes shimmer {
    0% {
      left: -100%;
    }
    100% {
      left: 100%;
    }
  }
  
  /* ===== АДАПТИВНОСТЬ ===== */
  @media (max-width: 1024px) {
    .app {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .panel {
      position: static;
    }
  }
  
  @media (max-width: 768px) {
    .container {
      padding: 0 1rem;
    }
    
    .header-content {
      padding: 0 1rem;
    }
    
    .nav {
      gap: 1rem;
    }
    
    .nav-link {
      padding: 0.5rem 1rem;
      font-size: 0.875rem;
    }
    
    .hero {
      padding: 6rem 0 3rem;
    }
    
    .cta {
      flex-direction: column;
      align-items: center;
    }
    
    .button {
      width: 100%;
      max-width: 300px;
    }
    
    .app {
      margin: 2rem 0;
    }
  }
  
  @media (max-width: 480px) {
    .brand-title {
      display: none;
    }
    
    .hero .title {
      font-size: 2rem;
    }
    
    .hero .subtitle {
      font-size: 1rem;
    }
  }
  
  /* ===== УТИЛИТЫ ===== */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .text-center {
    text-align: center;
  }
  
  .mb-4 {
    margin-bottom: 2rem;
  }
  
  /* ===== ПЛАВНЫЕ ПЕРЕХОДЫ ===== */
  * {
    transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  }
  /* Добавить в конец файла, перед медиа-запросами */

/* ===== TOAST УВЕДОМЛЕНИЯ ===== */
.toast {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.toast-item {
  background: var(--gradient-card);
  border: 1px solid var(--medium-gray);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--ease-out);
  transform: translateX(0);
  opacity: 1;
}

.toast-item.success {
  border-left: 4px solid var(--success);
}

.toast-item.error {
  border-left: 4px solid var(--error);
}

.toast-item.info {
  border-left: 4px solid var(--accent-primary);
}

/* ===== SPINNER ДЛЯ ГЕОЛОКАЦИИ ===== */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== NOSCRIPT СТИЛИ ===== */
.noscript-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--error);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  z-index: 10000;
}

/* ===== TIP СТИЛИ ===== */
.tip {
  background: var(--dark-gray);
  border: 1px solid var(--medium-gray);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 2rem;
  text-align: center;
}
/* ===== СЛАЙДЕР МЕСТ ===== */
.places-slider-section {
    width: 100%;
    background: var(--gradient-dark);
    padding: 32px 0 24px 0;
    margin-top: 0;
    position: relative;
}

.places-slider {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 32px;
    padding: 0 32px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.places-slider::-webkit-scrollbar {
    display: none;
}

.place-slide {
    min-width: 320px;
    max-width: 340px;
    background: var(--gradient-card);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 18px 16px 18px;
    transition: transform 0.2s var(--ease-in-out), box-shadow 0.2s var(--ease-in-out);
    cursor: pointer;
}

.place-slide:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: var(--shadow-lg);
}

.place-slide.active-slide {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 0 0 3px var(--accent-primary), var(--shadow-lg);
}

.place-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.place-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 6px;
    text-align: center;
}

.place-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
}

/* ===== ФИЛЬТРЫ МЕСТ ===== */
.place-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.route-info {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
}

/* ===== АДАПТИВНОСТЬ СЛАЙДЕРА ===== */
@media (max-width: 768px) {
    .places-slider {
        padding: 0 16px;
        gap: 20px;
    }
    
    .place-slide {
        min-width: 280px;
    }
}
/* ===== СЛАЙДЕР МЕСТ ===== */
.places-slider-section {
    width: 100%;
    background: var(--gradient-dark);
    padding: 32px 0 24px 0;
    margin-top: 0;
    position: relative;
}

.places-slider {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 32px;
    padding: 0 32px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.places-slider::-webkit-scrollbar {
    display: none;
}

.place-slide {
    min-width: 320px;
    max-width: 340px;
    background: var(--gradient-card);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 18px 16px 18px;
    transition: transform 0.2s var(--ease-in-out), box-shadow 0.2s var(--ease-in-out);
    cursor: pointer;
}

.place-slide:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: var(--shadow-lg);
}

.place-slide.active-slide {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 0 0 3px var(--accent-primary), var(--shadow-lg);
}

.place-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.place-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 6px;
    text-align: center;
}

.place-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
}

/* ===== ФИЛЬТРЫ МЕСТ ===== */
.place-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.route-info {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
    display: inline-block;
    margin-top: 1rem;
}

/* ===== АДАПТИВНОСТЬ СЛАЙДЕРА ===== */
@media (max-width: 768px) {
    .places-slider {
        padding: 0 16px;
        gap: 20px;
    }
    
    .place-slide {
        min-width: 280px;
    }
}
/* Добавьте это в конец файла styles.css */

/* Скрываем элементы управления Яндекс Карт */
.ymaps-2-1-79-controls__control {
    opacity: 0.9;
}

/* Скрываем линейку масштаба */
.ymaps-2-1-79-controls__ruler {
    display: none !important;
}

/* Скрываем панель маршрутизации */
.ymaps-2-1-79-route-panel {
    display: none !important;
}

/* Улучшаем внешний вид карты */
.ymaps-2-1-79-map {
    border-radius: 12px;
}

/* Стили для разноцветных сегментов маршрута */
.ymaps-2-1-79-polyline {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Добавьте эти стили в конец файла */



/* Стили для кнопки-ссылки */
.cta .button.primary {
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.cta .button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
/* Добавьте этот стиль в конец файла */
.no-break {
    white-space: nowrap;
}

/* Адаптивность - на очень маленьких экранах разрешаем перенос */
@media (max-width: 480px) {
    .no-break {
        white-space: normal;
    }
}
.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
    max-width: 700px; /* Ограничиваем ширину */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Альтернативный вариант - если нужно точнее контролировать */
.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
    width: 85%; /* Занимает 85% ширины контейнера */
    max-width: 650px; /* Максимальная ширина */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-align: center;
}
/* ===== АККОРДЕОН ДЛЯ СЛАЙДОВ ===== */
.place-slide {
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.place-slide.expanded {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 0 3px var(--accent-primary), var(--shadow-lg);
    z-index: 100;
    position: relative;
}

.place-slide.hidden {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
    filter: blur(1px);
}

.place-slide .place-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    margin: 0;
    line-height: 1.5;
}

.place-slide.expanded .place-desc {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--medium-gray);
}

.place-slide .place-title {
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.place-slide.expanded .place-title {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* Кнопка закрытия */
.place-slide .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s var(--ease-out);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-slide.expanded .close-btn {
    opacity: 1;
    transform: scale(1);
}

.place-slide .close-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

/* Адаптивность для раскрытого состояния */
@media (max-width: 768px) {
    .place-slide.expanded {
        min-width: 92vw !important;
        max-width: 92vw !important;
    }
    
    .place-slide.hidden {
        opacity: 0.1;
        transform: scale(0.9);
    }
}

/* Плавная прокрутка слайдера */
.places-slider {
    scroll-behavior: smooth;
    transition: all 0.3s var(--ease-out);
}

/* Индикатор раскрытого состояния */
.place-slide::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.place-slide.expanded::after {
    opacity: 0; /* Скрываем, так как есть кнопка закрытия */
}

/* Улучшаем изображение в раскрытом состоянии */
.place-slide.expanded img {
    height: 220px;
    transition: height 0.4s var(--ease-out);
}
/* ===== АККОРДЕОН ДЛЯ СЛАЙДОВ ===== */
.place-slide {
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.place-slide.expanded {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 0 3px var(--accent-primary), var(--shadow-lg);
    z-index: 100;
    position: relative;
}

.place-slide.hidden {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
    filter: blur(1px);
}

.place-slide .place-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    margin: 0;
    line-height: 1.5;
}

.place-slide.expanded .place-desc {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--medium-gray);
}

.place-slide .place-title {
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.place-slide.expanded .place-title {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* Кнопка закрытия */
.place-slide .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s var(--ease-out);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-slide.expanded .close-btn {
    opacity: 1;
    transform: scale(1);
}

.place-slide .close-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

/* Адаптивность для раскрытого состояния */
@media (max-width: 768px) {
    .place-slide.expanded {
        min-width: 92vw !important;
        max-width: 92vw !important;
    }
    
    .place-slide.hidden {
        opacity: 0.1;
        transform: scale(0.9);
    }
}

/* Плавная прокрутка слайдера */
.places-slider {
    scroll-behavior: smooth;
    transition: all 0.3s var(--ease-out);
}

/* Индикатор раскрытого состояния */
.place-slide::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.place-slide.expanded::after {
    opacity: 0; /* Скрываем, так как есть кнопка закрытия */
}

/* Улучшаем изображение в раскрытом состоянии */
.place-slide.expanded img {
    height: 220px;
    transition: height 0.4s var(--ease-out);
}
/* ===== АККОРДЕОН ДЛЯ СЛАЙДОВ ===== */
.place-slide {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.place-slide.expanded {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    background: var(--gradient-card);
}

.place-slide.hidden {
    opacity: 0.3;
    pointer-events: none;
}

.place-slide .place-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
}

.place-slide.expanded .place-desc {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--medium-gray);
}

/* Кнопка закрытия */
.place-slide .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-slide.expanded .close-btn {
    opacity: 1;
}
.places-slider {
    scroll-behavior: smooth;
    padding: 0 2rem;
    box-sizing: border-box;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .places-slider {
        padding: 0 1rem;
    }
}

.place-slide {
    min-width: 280px; /* стартовая ширина */
    max-width: 340px; /* чтобы все были одинаковыми по умолчанию */
    background: var(--gradient-card);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 18px 16px 18px;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    min-height: auto;
}

.place-slide.expanded {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 0 3px var(--accent-primary), var(--shadow-lg);
    z-index: 100;
    position: relative;

    min-width: fit-content !important;  /* ширина = по контенту */
    max-width: 95%;                     /* ограничиваем, чтобы не уехало за экран */
    min-height: auto !important;        /* высота = по контенту */
    padding-bottom: 40px !important;
}

/* Скрытые карточки */
.place-slide.hidden {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
    filter: blur(1px);
}

/* Контент внутри раскрытой карточки */
.place-slide.expanded .place-desc {
    max-height: none !important;
    opacity: 1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--medium-gray);
    line-height: 1.6;
}

.place-slide.expanded img {
    height: auto; /* картинка сама подстраивается */
    max-height: 300px;
    width: 100%;
    object-fit: cover;
    transition: height 0.3s var(--ease-out);
}

.place-slide.expanded .place-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent-primary);
}
