/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2d2d2d;
    line-height: 1.5;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0B4F3A;
    margin-bottom: 2rem;
    text-align: center;
}

/* Шапка */
.header {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0B4F3A;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #F9A826;
}

/* Навигация */
.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F9A826;
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: #0B4F3A;
}

.nav__link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
}

.dropdown__toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.dropdown:hover .dropdown__toggle i {
    transform: rotate(180deg);
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    list-style: none;
    padding: 0.8rem 0;
    margin-top: 0.5rem;
}

.dropdown__menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -4px 4px rgba(0,0,0,0.05));
}

.dropdown:hover .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__menu .nav__link {
    display: block;
    padding: 0.7rem 1.5rem;
    white-space: nowrap;
    color: #2d2d2d;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown__menu .nav__link::after {
    display: none;
}

.dropdown__menu .nav__link:hover {
    background-color: #f9f9f9;
    color: #0B4F3A;
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.burger span {
    width: 28px;
    height: 3px;
    background-color: #0B4F3A;
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__title {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Статистика */
.stats {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: #fff;
    padding: 1.5rem 0.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.2rem;
    text-align: center;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0B4F3A;
    line-height: 1.2;
}

.stat-unit {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0B4F3A;
    margin-left: 0.1rem;
}

.stat-label {
    width: 100%;
    font-size: 0.9rem;
    color: #5a5a5a;
    margin-top: 0.2rem;
    font-family: 'Inter', sans-serif;
}

/* Направления деятельности (сетка 3 колонки на десктопе) */
.directions {
    padding: 4rem 0;
}

.directions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.direction-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #2d2d2d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 3px solid #F9A826;
}

.direction-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-status {
    display: inline-block;
    background-color: #f0f0f0;
    color: #0B4F3A;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin: 1rem 1.5rem 0 1.5rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid rgba(11, 79, 58, 0.1);
}

.direction-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
    color: #0B4F3A;
}

.direction-card p {
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.4;
    margin: 0 1.5rem 1.5rem 1.5rem;
}

/* Ссылка-обёртка карточки (для туристического кластера) */
.direction-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.direction-card__link p {
    text-decoration: none;
}

/* Кнопка Glamping Nations */
.glamping-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #0B4F3A;
    border-radius: 50px;
    padding: 0.5rem 1.2rem 0.5rem 0.5rem;
    margin: 0.5rem auto 1.5rem auto;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #0B4F3A;
    font-weight: 500;
    max-width: fit-content;
}

.glamping-btn:hover {
    background-color: #0B4F3A;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(11, 79, 58, 0.3);
}

.glamping-btn__logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 10px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.glamping-btn:hover .glamping-btn__logo {
    transform: rotate(360deg);
}

/* Партнёры */
.partners {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.partners__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: stretch;
}

.partner-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 280px;
    width: 100%;
    transition: box-shadow 0.3s;
    border: 1px solid #eeeeee;
}

.partner-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.partner-image-wrapper {
    height: 100px;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.partner-card img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-card:hover img {
    filter: grayscale(0);
}

.partner-card:nth-child(3) .partner-image-wrapper {
    background-color: #0B4F3A;
    border-radius: 4px;
    padding: 10px;
}

.partner-description {
    font-size: 0.8rem;
    color: #5a5a5a;
    text-align: center;
    margin-top: 0.5rem;
}

/* Новости */
.news {
    padding: 4rem 0;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.news-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.news-item time {
    font-size: 0.9rem;
    color: #5a5a5a;
    display: block;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    margin-bottom: 0.75rem;
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
}

.news-item a {
    text-decoration: none;
    color: #0B4F3A;
    transition: color 0.3s;
}

.news-item a:hover {
    color: #F9A826;
}

/* Футер */
.footer {
    background-color: #0B4F3A;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer__logo {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.footer__info p {
    margin-bottom: 0.5rem;
}

.footer__social a {
    color: #fff;
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s;
}

.footer__social a:hover {
    color: #F9A826;
}

.footer__bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* Медиа-запросы для мобильных устройств (ДОЛЖНЫ ИДТИ ПОСЛЕ ГЛОБАЛЬНЫХ СТИЛЕЙ) */

/* Планшеты */
@media (max-width: 992px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 1.5rem 0;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 1.5rem;
    }

    .nav__item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav__item:last-child {
        border-bottom: none;
    }

    .nav__link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav__link::after {
        display: none;
    }

    .dropdown {
        position: static;
    }

    .dropdown__toggle {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown__menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        background-color: #f9f9f9;
    }

    .dropdown__menu::before {
        display: none;
    }

    .dropdown.show .dropdown__menu {
        max-height: 400px;
        padding: 0.5rem 0;
    }

    .dropdown__menu .nav__link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .dropdown__menu .nav__link:hover {
        background-color: #e9e9e9;
    }

    .dropdown__toggle i {
        transition: transform 0.3s;
    }

    .dropdown.show .dropdown__toggle i {
        transform: rotate(180deg);
    }

    /* Направления: 2 колонки на планшете */
    .directions__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Телефоны */
@media (max-width: 576px) {
    /* Hero */
    .hero__title {
        font-size: 2rem;
    }
    .hero__subtitle {
        font-size: 1rem;
    }

    .nav {
        padding: 1rem 0;
    }

    .nav__list {
        padding: 0 1rem;
    }

    .nav__link {
        font-size: 1rem;
        padding: 0.8rem 0;
    }

    .dropdown__menu .nav__link {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Направления: 1 колонка */
    .directions__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .direction-card h3 {
        margin: 1rem 1rem 0.5rem 1rem;
        font-size: 1.2rem;
    }

    .direction-card p {
        margin: 0 1rem 1rem 1rem;
        font-size: 0.9rem;
    }

    .project-status {
        margin: 1rem 1rem 0 1rem;
        padding: 0.2rem 0.8rem;
        font-size: 0.8rem;
    }

    .glamping-btn {
        margin: 0.5rem auto 1rem auto;
        padding: 0.4rem 1rem 0.4rem 0.4rem;
    }

    .glamping-btn__logo {
        width: 24px;
        height: 24px;
    }

    .glamping-btn__text {
        font-size: 0.85rem;
    }

    /* Статистика на мобильном */
    .stats__grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stat-item {
        padding: 1.2rem 0.5rem;
    }
}

/* Точная подстройка иконки стрелки на десктопе */
@media (min-width: 993px) {
    .dropdown__toggle i {
        transform: translateY(1px);
    }
}