:root {
    --primary: #2e7d32;
    --primary-light: #60ad5e;
    --secondary: #ff8f00;
    --dark: #263238;
    --light: #f5f5f5;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fredoka One', cursive;
    color: #2C3E50;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}


/* Header Styles */

header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
}


/* About Section */

.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-content.equal-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.mission-center {
    display: block;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mission {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.mission h3 {
    text-align: left;
    font-size: 2.1rem;
    margin-bottom: 1.2rem;
}

.mission .zoo-values {
    display: block;
    text-align: left;
    margin-top: 1.5rem;
}

.mission-centered-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 2.5rem 7vw 2.5rem 7vw;
    margin: 2.5rem auto 2.5rem auto;
    max-width: 1100px;
}

.mission-centered-block h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.mission-centered-block p {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.zoo-values-centered {
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.zoo-values-centered ul {
    text-align: left;
    margin: 0 auto;
    font-size: 1.25rem;
    max-width: 900px;
    list-style: none;
    padding-left: 0;
}

.zoo-values-centered strong {
    font-size: 1.18rem;
    display: block;
    margin-bottom: 0.7em;
}


/* Animals Section */

.animals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.animal-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.animal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.animal-img {
    height: 250px;
    overflow: hidden;
}

.animal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.animal-card:hover .animal-img img {
    transform: scale(1.1);
}

.animal-info {
    padding: 1.5rem;
}

.animal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.animal-info p {
    margin-bottom: 1rem;
    color: #666;
}


/* Features Section */

.features {
    background-color: var(--primary-light);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


/* Footer */

footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}


/* Mobile Menu */

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* Responsive Design */

@media (max-width: 768px) {
    .nav-links {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2000 !important;
        padding: 2rem;
        transition: transform 0.3s ease-in-out;
        display: flex;
        transform: translateX(-100vw);
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links li {
        margin: 1.5rem 0;
    }
    .mobile-menu {
        display: block !important;
        position: absolute;
        top: 1.5rem;
        right: 2rem;
        font-size: 2.2rem;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2001 !important;
    }
    nav {
        position: relative;
    }
    .hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    .about-content.equal-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column {
        margin-bottom: 2rem;
    }
    .social-links {
        justify-content: center;
    }
    /* Улучшенные стили для карточек */
    .feature-card {
        padding: 1.5rem;
    }
    .feature-card h3 {
        font-size: 1.5rem;
    }
    /* Оптимизация для тач-устройств */
    .btn,
    .feature-card,
    .nav-links a {
        -webkit-tap-highlight-color: transparent;
    }
    /* Улучшенные отступы для мобильных устройств */
    section {
        padding: 3rem 0;
    }
    .container {
        padding: 0 1rem;
    }
    .header-content,
    .hero-animated,
    .features,
    .about,
    main,
    section,
    .container {
        z-index: 1 !important;
    }
}


/* Дополнительные стили для очень маленьких экранов */

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .btn {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
}

.site-logo {
    height: 64px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .site-logo {
        height: 44px;
    }
}

.hero-animated {
    position: relative;
    min-height: 600px;
    background: linear-gradient(120deg, #2e7d32 0%, #60ad5e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 4rem 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/forest-bg.jpg') center/cover no-repeat;
    opacity: 0.25;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    margin-top: 2rem;
}

.hero-title {
    font-family: 'Fredoka One', 'Montserrat', sans-serif;
    font-size: 3.2rem;
    color: #ffe082;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.18);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fffde7;
}

.hero-form {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 2rem auto;
    max-width: 600px;
}

.hero-form select,
.hero-form input[type="date"] {
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    outline: none;
    color: #263238;
}

.hero-form button {
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-form button:hover {
    background: #ff8f00;
    color: #fff;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.animal {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.animal-monkey {
    left: 12%;
    top: 55%;
    width: 90px;
    animation: monkey-move 4s ease-in-out infinite alternate;
}

.animal-toucan {
    left: 7%;
    top: 18%;
    width: 80px;
    animation: toucan-float 5s ease-in-out infinite alternate;
}

.animal-owl {
    right: 18%;
    top: 38%;
    width: 70px;
    animation: owl-float 6s ease-in-out infinite alternate;
}

.animal-sloth {
    left: 20%;
    bottom: 8%;
    width: 100px;
    animation: sloth-swing 7s ease-in-out infinite alternate;
}

@keyframes monkey-move {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-18px) rotate(-5deg);
    }
}

@keyframes toucan-float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-12px) rotate(3deg);
    }
}

@keyframes owl-float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-16px) rotate(-2deg);
    }
}

@keyframes sloth-swing {
    0% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(8deg);
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 2.1rem;
    }
    .animal-monkey,
    .animal-toucan,
    .animal-owl,
    .animal-sloth {
        width: 60px;
    }
}

@media (max-width: 600px) {
    .hero-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-content {
        margin-top: 1rem;
    }
    .animal-monkey,
    .animal-toucan,
    .animal-owl,
    .animal-sloth {
        display: none;
    }
}

.ticket-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.ticket-label {
    min-width: 150px;
    font-size: 1.1rem;
    color: #263238;
}

.ticket-price {
    font-weight: 700;
    color: #2e7d32;
    font-size: 1.2rem;
    margin-right: 1.2rem;
}

.ticket-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    border-radius: 2rem;
    padding: 0.2rem 0.7rem;
}

.counter-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.counter-btn:hover {
    background: var(--secondary);
}

.ticket-counter span {
    min-width: 24px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #263238;
}

.visitors-dropdown {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 2rem 1.5rem;
    max-width: 600px;
    min-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.tab-section {
    display: none;
}

.tab-section.active {
    display: block;
}

.faq-section {
    margin: 4rem 0 2rem 0;
}

.faq-title {
    font-size: 2.3rem;
    font-family: 'Fredoka One', cursive;
    margin-bottom: 2rem;
    color: #111;
    text-align: center;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 1.25rem;
    color: #12705a;
    text-align: left;
    padding: 1.2rem 0.5rem 1.2rem 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question:after {
    content: '\25B6';
    font-size: 1.1rem;
    color: #12705a;
    margin-left: 1rem;
    transition: transform 0.2s;
}

.faq-item.active .faq-question:after {
    transform: rotate(90deg);
}

.faq-answer {
    display: none;
    background: #f6f7f8;
    color: #333;
    font-size: 1.08rem;
    padding: 1.1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0 1.2rem 0;
    transition: all 0.2s;
}

.faq-item.active .faq-answer {
    display: block;
}

.no-bold {
    font-weight: 400 !important;
}

.logo-font {
    font-family: 'Montserrat', 'Fredoka One', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #222;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}


/* Анимированные карточки отзывов для about.html */

.card {
    width: 340px;
    min-height: 260px;
    background: #171717;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 8px 2px #f8f7f7;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 16px auto;
    transition: box-shadow 0.3s;
}

.card .content {
    border-radius: 16px;
    background: #ffffff;
    width: 96%;
    min-height: 240px;
    z-index: 2;
    padding: 24px 28px 20px 28px;
    color: #080808;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
}

.content::before {
    opacity: 0;
    transition: opacity 300ms;
    content: " ";
    display: block;
    background: rgb(255, 255, 255);
    width: 50px;
    height: 50px;
    position: absolute;
    filter: blur(50px);
}

.card:hover .content::before {
    opacity: 1;
}

.card::before {
    opacity: 1;
    content: "";
    position: absolute;
    display: block;
    width: 120px;
    height: 300px;
    transform: rotate(0deg) translateY(50%);
    background: linear-gradient(90deg, #60ad5e, transparent);
    transition: opacity 300ms;
    animation: rotation_9018 3000ms infinite linear;
    animation-play-state: paused;
    border-radius: 16px;
}

.card::after {
    opacity: 1;
    content: "";
    position: absolute;
    display: block;
    width: 120px;
    height: 300px;
    transform: rotate(0deg) translateY(-50%);
    background: linear-gradient(90deg, transparent, #2e7d32);
    transition: opacity 300ms;
    animation: rotation_9019 3000ms infinite linear;
    animation-play-state: paused;
    border-radius: 16px;
}

.card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

.card:hover .glass {
    opacity: 0;
}

.glass {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffff;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    z-index: 1;
    border-radius: 16px;
    transition-duration: 0.5s;
}

@keyframes rotation_9018 {
    0% {
        transform: rotate(0deg) translateY(50%);
    }
    100% {
        transform: rotate(360deg) translateY(50%);
    }
}

@keyframes rotation_9019 {
    0% {
        transform: rotate(0deg) translateY(-50%);
    }
    100% {
        transform: rotate(360deg) translateY(-50%);
    }
}


/* Сетка отзывов */

.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

@media (max-width: 900px) {
    .card {
        width: 95vw;
        min-width: 220px;
        max-width: 98vw;
    }
    .reviews-list {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
}

.shadow__btn {
    padding: 10px 20px;
    border: none;
    font-size: 1.35rem;
    color: #fff;
    border-radius: 50px;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-transform: none;
    transition: 0.3s;
    transition-property: box-shadow;
    background: linear-gradient(90deg, #ff9100b5 0%, #ff8000 100%);
    box-shadow: 0 0 25px #ff9100d5;
    font-family: 'Montserrat', Arial, sans-serif !important;
    text-decoration: none !important;
    display: inline-block;
}

.shadow__btn:hover {
    box-shadow: 0 0 5px #ff8f00, 0 0 25px #ff9100c8, 0 0 50px #ff91008f, 0 0 100px #ff7300;
}

.ticket-form .shadow__btn {
    display: block;
    margin: 2rem auto 0 auto;
    width: 100%;
    max-width: 420px;
}