/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e8f3e0; /* очень светлый зеленый */
    font-family: 'Open Sans', Arial, sans-serif; /* без засечек */
    color: #2c5e3a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== ШАПКА И МЕНЮ ===== */
header {
    background-color: rgba(208, 235, 186, 0.7); /* полупрозрачный нежно-зеленый */
    backdrop-filter: blur(5px);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(120, 150, 100, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif; /* витиеватый */
    font-size: 1.8rem;
    font-weight: 600;
    color: #1d4d2b;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Навигация для больших экранов */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    color: #1d4d2b;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.5rem 0.2rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-menu li a:hover {
    border-bottom-color: #7fb07f;
    color: #0f3b1a;
}

/* Иконка бургера (три полоски) - скрыта на десктопе */
.burger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1d4d2b;
    transition: transform 0.2s;
}

.burger:hover {
    transform: scale(1.1);
}

/* Чекбокс для управления меню */
#menu-toggle {
    display: none;
}

/* ===== КОНТЕНТ С ЛЯГУШКАМИ ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* витиеватый */
    color: #1d4d2b;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h1::after {
    content: "🐸";
    font-size: 2rem;
    margin-left: 15px;
    opacity: 0.7;
}

/* Галерея с лягушками */
.frog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.frog-card {
    background: white;
    border-radius: 30px 30px 20px 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(130, 160, 100, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #c8e0b0;
}

.frog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(90, 130, 70, 0.3);
}

.frog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid #b1d89b;
    background-color: #d9edc7; /* фон пока грузится */
}

/* Текстовые заглушки под фото (для демо) */
.frog-card p {
    padding: 1rem 1.2rem 1.5rem;
    font-size: 1.1rem;
    color: #2b5e34;
}

.frog-card p i {
    color: #5f8b4b;
    margin-right: 5px;
}

/* Дополнительный блок с текстом */
.peaceful-text {
    background: rgba(190, 220, 170, 0.4);
    padding: 2.5rem;
    border-radius: 60px 20px 60px 20px;
    margin: 2rem 0 3rem;
    border-left: 8px solid #7baa65;
}

.peaceful-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ===== ПОДВАЛ ===== */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    font-size: 0.95rem;
    color: #3d6b49;
    border-top: 2px dashed #b5d3a5;
}

/* ===== АДАПТАЦИЯ ПОД МАЛЕНЬКИЕ УСТРОЙСТВА ===== */
@media screen and (max-width: 768px) {
    body {
        padding: 1rem;
    }

    header {
        padding: 0.8rem 1.2rem;
        border-radius: 40px;
    }

    /* Показываем бургер */
    .burger {
        display: block;
        z-index: 10;
    }
    /* Скрытое меню по умолчанию */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(220, 240, 200, 0.98);
        backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 25px rgba(70, 100, 50, 0.2);
        z-index: 5;
        padding: 2rem 0;
    }

    /* Когда чекбокс отмечен — показываем меню */
    #menu-toggle:checked ~ .nav-menu {
        right: 0;
    }

    .nav-menu li a {
        font-size: 1.5rem;
        border-bottom: 2px dashed #98b68a;
    }

    /* Затемнение фона при открытом меню (опционально) */
    #menu-toggle:checked ~ .overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1);
        z-index: 4;
    }

    /* Корректировка заголовка */
    h1 {
        font-size: 2rem;
    }

    h1::after {
        content: "🐸";
        font-size: 1.8rem;
    }

    .frog-gallery {
        gap: 1.2rem;
    }

    .peaceful-text {
        padding: 1.8rem;
    }
}

/* Для совсем маленьких телефонов */
@media screen and (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .nav-menu {
        width: 85%;
    }

    .frog-card {
        border-radius: 20px;
    }

    .frog-img {
        height: 180px;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЗЕЛЕНЫЕ ШТРИХИ ===== */
::selection {
    background-color: #b1d8a0;
    color: #1b4c25;
}

/* Убираем стандартный отступ у списка */
ul {
    list-style: none;
}

/* Красивая полоса прокрутки (необязательно) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #ddecd0;
}

::-webkit-scrollbar-thumb {
    background: #7ca86c;
    border-radius: 20px;
    border: 3px solid #ddecd0;
}

::-webkit-scrollbar-thumb:hover {
    background: #5f8a4c;
}