/*Основа*/
* {
    box-sizing: border-box;
    text-decoration: none;

}
/*Тело сайта*/
.body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #916767;
}
/*header*/
.header {
    background: #ffffff;
    color: #ffffff;
    padding: 20px 0;
    margin-left: 500px;
}

/*Шапка*/
.navbar{
    background-color: rgb(250, 250, 250);
    align-items: center;
    justify-content: center;
}

.nav-link{
    color: rgba(32, 66, 110, 0.534);
    margin-right: 50px;
    
}
/*Каруселька*/
.slider {
    position: relative;
    width: auto;
    height: 1000px;
    overflow: hidden;
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
    scroll-margin-block: 700px;
    border: 400px;
    border: color(srgb-linear rgb(0, 0, 0) green blue);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover; 
}

.prev, .next {
    position: absolute;
    top: 50%;
    background-color: rgb(255, 255, 255);
    color: rgba(32, 66, 110, 0.534);
    border: none;
    padding: 10px 20px; 
    cursor: pointer;
    z-index: 10; 
    border-radius: 50%;
    
}
.prev {
    left: 15px;
}
.prev:hover{
    background: black;
    color: rgb(253, 253, 253);
}

.next {
    right: 15px;
}
.next:hover{
    background: black;
    color: rgb(253, 253, 253);
}

.indicators {
    display: flex;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    justify-content: center;
    z-index: 10; 
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: #eaeaf897; 
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
}

.indicator.active {
    background-color: rgb(40, 42, 43); 
}

.card-text{
    margin-top: 20px;
    
}
.card-title{
    color: #ffffff;
}
/*Карта*/
.map{
    margin-top: 20px;
  
}
.map img{
    margin-left: 800px;
}
/*Заголовки*/
h1{
    text-align: center;
    color:  #293b8d;
}

.main {
    padding: 20px;
}
/*Табличка - 1 страница*/
.schedule {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(77, 45, 45, 0.1);
    padding: 20px;
}
/**/
.table {
    width: 100%;
    border-collapse: collapse;
    
}

.th, .td {
    padding: 10px;
    border: 1px solid #496683;
    text-align: left;
}

.th {
    background: #524747;
    color: #6b4848;
}


/*Адаптивность 1 страница*/
@media screen and (max-width: 1172px) {
    .slider {
    width: auto;
    height: auto;
    }
    .slide{
        width: auto;
        height: auto;
    }
}
/* 2 Страница*/
 .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 30%; 
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.card h3 {
    font-size: 1.5em;
    margin: 10px 0;
}

.card p {
    font-size: 20px;
    color: #666;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.btn:hover {
    background: #0056b3;
}

/*Адаптивность 2 страница*/
@media screen and (max-width: 793px) {
    .card-container{
    
        width: auto;
        height: auto;
        align-items: center;
      
    }
    .card{
        width: auto;
        height: auto;
        flex-direction: column;
     display: inline-flex
    
    }
    
}
    

/* 3 Страница*/
.form-control{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* 4 Страница*/;
.x{
    text-align: center;
      color:  #293b8d;
}
/*Адаптивность 3 страница*/
@media screen and (max-width: 793px) {
    .a{
        align-items: center;
        width: auto;
    }
}

/* ===== ТЁМНАЯ ТЕМА ===== */
:root {
    --bg: #ffffff;
    --bg-card: #ffffff;
    --text: #212529;
    --text-secondary: #666;
    --nav-bg: rgb(250, 250, 250);
    --nav-link: rgba(32, 66, 110, 0.534);
    --heading: #293b8d;
    --table-bg: #ffffff;
    --border: #496683;
    --th-bg: #524747;
    --th-text: #6b4848;
    --shadow: rgba(0, 0, 0, 0.1);
    --footer-bg: #f8f9fa;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.dark-theme {
    --bg: #1a1a2e;
    --bg-card: #16213e;
    --text: #e0e0e0;
    --text-secondary: #aaa;
    --nav-bg: #0f3460;
    --nav-link: #a8d8ea;
    --heading: #e94560;
    --table-bg: #16213e;
    --border: #0f3460;
    --th-bg: #0f3460;
    --th-text: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.4);
    --footer-bg: #0f3460;
}

.dark-theme .navbar {
    background-color: var(--nav-bg) !important;
}

.dark-theme .nav-link {
    color: var(--nav-link) !important;
}

.dark-theme .card {
    background-color: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.dark-theme .card-text {
    color: var(--text) !important;
}
.dark-theme .card p{
    color: #fff;
}

.dark-theme h1 {
    color: var(--heading) !important;
}

.dark-theme .schedule {
    background-color: var(--bg-card) !important;
    color: var(--text) !important;
}

.dark-theme .table {
    color: var(--text) !important;
}

.dark-theme .th {
    background-color: var(--th-bg) !important;
    color: var(--th-text) !important;
}

.dark-theme footer,
.dark-theme .bg-light {
    background-color: var(--footer-bg) !important;
    color: var(--text) !important;
}

.dark-theme .prev,
.dark-theme .next {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.dark-theme .indicator {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.dark-theme .indicator.active {
    background-color: #e94560 !important;
}

.dark-theme .form-control {
    background-color: #1a1a2e !important;
    border-color: #0f3460 !important;
    color: #e0e0e0 !important;
}

.dark-theme label,
.dark-theme .form-label {
    color: #e0e0e0 !important;
}

.dark-theme .text-dark {
    color: #e0e0e0 !important;
}
.dark-theme .form-control{
    color: #fff !important;
}

.dark-theme h2 {
    color: var(--heading) !important;
}

.dark-theme .btn-primary {
    background-color: #e94560 !important;
    border-color: #e94560 !important;
}

.dark-theme .btn-secondary {
    background-color: #0f3460 !important;
    border-color: #0f3460 !important;
    color: #e0e0e0 !important;
}

/* ===== КНОПКА ПЕРЕКЛЮЧЕНИЯ ТЕМЫ ===== */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #293b8d;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark-theme .td{
    color: #ebcaca !important;
    background: #007bff !important;
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    background: #e94560;
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.5);
}

.dark-theme .theme-toggle {
    background: #e94560;
}

.dark-theme .theme-toggle:hover {
    background: #ff6b6b;
}

/* ===== АНИМАЦИИ И ЭФФЕКТЫ ===== */
/* Плавное появление секций при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект навигации */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #293b8d;
    transition: width 0.3s ease;
}

.dark-theme .nav-link::after {
    background: #e94560;
}

.nav-link:hover::after {
    width: 100%;
}

/* Эффект для карточек */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Эффект для изображения карты */
.map img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.map img:hover {
    transform: scale(1.03);
    filter: brightness(1.1) contrast(1.05);
}

/* Анимированный градиент для футера */
footer {
    position: relative;
    overflow: hidden;
}
.dark-theme .card p{
    color: #fff;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #293b8d, #e94560, #293b8d);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Плавное появление страницы */
body {
    animation: pageFadeIn 0.6s ease;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Эффект для слайдера - glow */
.slider {
    transition: box-shadow 0.4s ease;
}

.slider:hover {
    box-shadow: 0 8px 30px rgba(41, 59, 141, 0.3) !important;
}

.dark-theme .slider:hover {
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.3) !important;
}

/* Пульсирующие индикаторы */
.indicator.active {
    animation: pulse 1.5s infinite;
}

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

/* Эффект для кнопок слайдера */
.prev, .next {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.prev:hover, .next:hover {
    transform: scale(1.2);
}

.prev:hover, .next:hover {
    transform: scale(1.2);
}