/* Базовые настройки для всего сайта */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b120f; /* Темно-зелено-черный фон как на скриншоте */
    color: #f0f0f0; /* Светло-серый текст */
    font-family: 'Tenor Sans', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ограничитель ширины, чтобы сайт не разъезжался на огромных мониторах */
.header, .main-content, .footer {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхняя панель */
.header {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9ba89e; /* Приглушенный зеленый текст */
}

/* Секция с главным заголовком */
.hero {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #799a7b; /* Зеленый цвет надзаголовка */
    margin-bottom: 20px;
}

.main-title {
    font-family: 'Bodoni Moda', serif; /* Красивый шрифт с засечками */
    font-size: 64px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #ffffff;
}

.subtitle {
    font-size: 14px;
    color: #b0beb4;
}

/* Сетка карточек */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 колонки на компьютере */
    gap: 20px;
    margin-bottom: 80px;
}

/* Сама карточка */
.category-card {
    position: relative;
    height: 240px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Эффект при наведении (немного увеличивается) */
.category-card:hover {
    transform: scale(1.02);
}

/* Затемнение картинки, чтобы текст лучше читался */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
}

/* Текст на карточке */
.category-card h2 {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Bodoni Moda', serif;
    font-size: 32px;
    color: #ffffff;
    font-weight: 500;
    z-index: 2;
}

/* Последняя карточка "Цветы" занимает всю ширину (2 колонки) */
.category-card:last-child {
    grid-column: 1 / -1;
}

/* Подвал сайта */
.footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #1f2a24;
    font-size: 11px;
    color: #6a7a70;
    margin-top: auto; /* Прижимает подвал к низу */
}

/* Адаптация под мобильные телефоны */
@media (max-width: 600px) {
    .main-title {
        font-size: 42px;
    }
    .categories-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефоне */
    }
}
/* --- СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ С РАСТЕНИЯМИ --- */

.section-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    font-weight: 500;
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Карточки сами подстроятся под ширину экрана */
    gap: 25px;
    margin-bottom: 80px;
}

.plant-card {
    background-color: #0f1612; /* Чуть светлее общего фона */
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #1a241e;
}

.plant-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.plant-info {
    padding: 20px;
}

.plant-category, .plant-subcategory {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #799a7b;
    text-transform: uppercase;
}

.plant-name {
    font-family: 'Bodoni Moda', serif;
    font-size: 28px;
    margin: 12px 0;
    color: #ffffff;
    font-weight: 400;
}

.buttons-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #2a3a31;
    background: transparent;
    color: #b0beb4;
    transition: 0.2s;
}

.btn:hover {
    border-color: #4a6355;
    color: #ffffff;
}

/* Выпадающее меню (Pop-up) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    bottom: 110%; /* Появляется над кнопкой */
    left: 0;
    width: 100%;
    background-color: #121a16;
    border: 1px solid #2a3a31;
    border-radius: 6px;
    padding: 15px;
    z-index: 10;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.dropdown-menu.show {
    display: block; /* Показывается при клике */
}

.dropdown-header {
    font-family: 'Bodoni Moda', serif;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #1f2a24;
    padding-bottom: 10px;
}

.dropdown-item {
    display: block;
    color: #b0beb4;
    text-decoration: none;
    padding: 8px 0;
    font-size: 13px;
    transition: 0.2s;
}

.dropdown-item:hover {
    color: #ffffff;
}
/* Кнопка НАЗАД */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 13px;
    color: #b0beb4;
    text-decoration: none;
    margin-top: 20px;
    margin-bottom: -20px; /* Чтобы не сбивать отступы заголовка */
    transition: color 0.2s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.back-button:hover {
    color: #ffffff;
}

.back-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}