/* ===== Общие стили ===== */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: linear-gradient(to bottom, #0099cc, #006699, #003366, #001a33);
    color: #fff;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    color: #b2f0ff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

p, li {
    line-height: 1.6;
}

/* ===== Шапка ===== */
header {
    background: linear-gradient(to right, rgba(0, 153, 204, 0.8), rgba(0, 102, 153, 0.8));
    backdrop-filter: blur(5px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
}

.sub-logo {
    font-size: 0.9em;
    color: #b2f0ff;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #fff;
    cursor: pointer;
}

/* ===== Боковое меню ===== */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 204, 204, 0.95), rgba(0, 128, 128, 0.95), rgba(0, 51, 102, 0.95));
    backdrop-filter: blur(8px);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    transition: left 0.4s ease;
    z-index: 999;
    padding-top: 60px;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: #e0ffff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 20px;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar ul li a:hover {
    background: rgba(0, 255, 255, 0.2);
    border-left: 3px solid #00ffff;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
    cursor: pointer;
}

/* ===== Герой-секция ===== */
.hero {
    height: 90vh;
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    background: rgba(0, 51, 77, 0.5);
    padding: 20px;
    border-radius: 15px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Контентные блоки ===== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 100px 20px 50px;
}

.section {
    margin-bottom: 50px;
    background: rgba(0, 102, 153, 0.7);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* ===== Мозаика животных ===== */
.mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.animal-card {
    background: rgba(0, 128, 192, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
}

.animal-card:hover {
    transform: scale(1.03);
    background: rgba(0, 192, 255, 0.7);
}

.animal-card img {
    width: 100%;
    display: block;
}

.animal-info {
    padding: 15px;
}

/* ===== Кнопка "Наверх" ===== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(145deg, #00bfff, #006699);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5em;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    transition: transform 0.3s, background 0.3s;
}

.back-to-top:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #00ffff, #004466);
}

/* ===== Футер ===== */
footer {
    background: linear-gradient(to bottom, rgba(0, 34, 68, 0.95), rgba(0, 17, 34, 0.98));
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #99e6ff;
}
/* ===== Футер с волнами ===== */
footer {
    position: relative;
    background: linear-gradient(to bottom, #002244, #001122);
    overflow: hidden;
    color: #b2f0ff;
    padding-top: 60px;
    text-align: center;
}

.footer-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.footer-note {
    font-style: italic;
    color: #66d9ff;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #aee4ff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s, transform 0.3s;
}

.footer-links a:hover {
    color: #00ffff;
    transform: scale(1.2) rotate(-5deg);
}

/* ===== Анимированные волны ===== */
.footer-waves {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background-repeat: repeat no-repeat;
    background-size: 50% 100%;
    opacity: 0.5;
    animation: waveMove 8s linear infinite;
}

#wave1 {
    background-image: url('https://i.ibb.co/wCwqjzM/wave1.png');
    bottom: 0;
    animation-duration: 8s;
    z-index: 4;
    opacity: 0.7;
}

#wave2 {
    background-image: url('https://i.ibb.co/7z4MZ0p/wave2.png');
    bottom: 0;
    animation-duration: 10s;
    z-index: 3;
}

#wave3 {
    background-image: url('https://i.ibb.co/JrpVgSz/wave3.png');
    bottom: 0;
    animation-duration: 12s;
    z-index: 2;
    opacity: 0.4;
}

#wave4 {
    background-image: url('https://i.ibb.co/7z4MZ0p/wave2.png');
    bottom: 0;
    animation-duration: 15s;
    z-index: 1;
    opacity: 0.2;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* ===== Секция билетов ===== */
.tickets-section {
    text-align: center;
    background: rgba(0, 102, 153, 0.7);
    border-radius: 15px;
    padding: 40px 20px;
}

.ticket-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.ticket-card {
    background: linear-gradient(to bottom, rgba(0, 204, 255, 0.8), rgba(0, 102, 153, 0.8));
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ticket-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.ticket-card h3 {
    color: #fff;
    margin-bottom: 10px;
}

.ticket-card .price {
    font-size: 1.5em;
    color: #ffff99;
    margin-bottom: 15px;
}

.ticket-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.ticket-card ul li {
    margin: 8px 0;
}

.buy-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(145deg, #00ffff, #006699);
    color: #002244;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.buy-btn:hover {
    background: linear-gradient(145deg, #00ccff, #004466);
    transform: scale(1.05);
}
/* ===== Эффект повышения белости к концу текста ===== */
.fade-text {
    background: linear-gradient(to right, rgba(255,255,255,0.6), rgba(255,255,255,1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Попап для билетов ===== */
#ticket-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: rgba(0, 51, 77, 0.95);
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 0 20px rgba(0,255,255,0.5);
}

.popup-content p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

#close-popup {
    background: linear-gradient(145deg, #00ffff, #006699);
    color: #002244;
    font-weight: bold;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#close-popup:hover {
    background: linear-gradient(145deg, #00ccff, #004466);
}
.sidebar-search {
    padding: 10px 15px;
    margin-bottom: 15px;
}

#sidebar-search-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 0.95em;
    background: rgba(0,255,255,0.1);
    color: #fff;
}

#sidebar-search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

#sidebar-links li a.highlight {
    background: rgba(0,255,255,0.3);
    border-radius: 5px;
}
.fact-popup {
    position: absolute;
    background: rgba(0, 150, 255, 0.9);
    color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    pointer-events: none;
    transition: transform 0.2s;
}
/* Отступы между секциями */
.section {
    margin-bottom: 60px; /* увеличиваем расстояние между секциями */
}

/* Отступы внутри карточек */
.animal-card, .ticket-card {
    margin-bottom: 30px; /* расстояние между карточками */
}

/* Для абонементов (билетов) */
.tickets-container {
    display: flex;
    gap: 20px; /* расстояние между блоками билетов */
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px; /* немного пространства сверху */
}