/* ========== ОСНОВНЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9f5;
    color: #2c3e2f;
}

:root {
    --primary-green: #4a7c3f;
    --primary-green-light: #6a9c5a;
    --primary-green-dark: #2d5a24;
    --white: #ffffff;
    --black-footer: #1a1a1a;
    --brown-light: #8B7355;
    --brown-dark: #5C4033;
}

/* ========== ХЕДЕР ========== */
nav {
    background: var(--primary-green-dark);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 12px 0;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary-green-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text {
    display: inline-block;
}

.menu-center {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.menu-center .item {
    position: relative;
    list-style: none;
}

.menu-center .item > a {
    display: block;
    padding: 20px 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-green-dark);
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    border-radius: 0px 0px 10px 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu li a {
    display: block;
    padding: 8px 20px;
    color: white;
    text-decoration: none;
}

.submenu li a:hover {
    background: var(--primary-green-light);
}

.has-submenu > a::after {
    font-family: "Font Awesome 6 Free";
    font-size: 10px;
    font-weight: 900;
    content: "\f078";
    margin-left: 6px;
    display: inline-block;
}

/* ========== ДЕСКТОПНЫЙ НОМЕР И СОЦСЕТИ ========== */
.desktop-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.desktop-phone a {
    background: #f5a623;
    border-radius: 30px;
    padding: 8px 18px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.desktop-phone a:hover {
    background: #e69500;
    transform: translateY(-2px);
}

.desktop-social {
    display: flex;
    gap: 10px;
}

.desktop-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.desktop-social a:hover {
    background: #f5a623;
    transform: translateY(-2px);
}

/* ========== БУРГЕР МЕНЮ ========== */
.toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 15px 0;
}

/* Мобильные элементы (скрыты на десктопе) */
.mobile-phone,
.mobile-socials {
    display: none;
}

/* ========== КАРУСЕЛЬ ========== */
.carousel-item img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.7);
    width: 100%;
}

/* ========== БРОНИРОВАНИЕ (общий блок) ========== */
.booking-panel {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--primary-green-light);
}

.booking-title {
    color: var(--primary-green-dark);
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-green);
    padding-left: 15px;
}

.form-control, .flatpickr-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;

}

.form-control:focus {
    border-color: #4a7c3f;     /* Цвет рамки (можно изменить) */
    box-shadow: 0 0 0 0.25rem rgba(74, 124, 63, 0.25) !important; /* Цвет тени */
    /* В примере используется ваш цвет: --primary-green (#4a7c3f) */
}

/* ========== ГОСТИ ========== */
.guest-dropdown {
    position: relative;
}
.guest-selector {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.guest-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
    border: 1px solid #ddd;
}
.guest-panel.active {
    display: block;
}
.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.guest-row:last-child {
    border-bottom: none;
}
.guest-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.guest-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary-green);
    color: white;
    border-radius: 8px;
    cursor: pointer;
}
.guest-count {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}
.btn-book {
    background: var(--primary-green);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
}
.price-info {
    text-align: center;
    margin-top: 15px;
    color: var(--primary-green);
    font-weight: 500;
}

/* ========== ТАБЛИЦА УСЛУГ ========== */
.services-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 30px 0;
}

/* Десктопная таблица */
.services-table .desktop-table {
    width: 100%;
    border-collapse: collapse;
}

.services-table th {
    background: #2d5a24;
    color: white;
    padding: 15px;
    font-weight: 600;
}

.services-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0ecd9;
}

.service-price {
    font-weight: 700;
    color: #2c5a2e;
    white-space: nowrap;
}

.service-icon {
    font-size: 24px;
    color: #2c5a2e;
    width: 40px;
    text-align: center;
}

/* Мобильные карточки - по умолчанию скрыты */
.services-table .services-cards {
    display: none;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */
@media (max-width: 768px) {
    /* Скрываем таблицу на мобильных */
    .services-table .desktop-table {
        display: none;
    }
    
    /* Показываем карточки */
    .services-table .services-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 15px;
    }
    
    .service-card-item {
        background: white;
        border-radius: 16px;
        padding: 18px 12px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid #e8f0e5;
    }
    
    .service-card-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    
    .service-card-icon {
        margin-bottom: 12px;
    }
    
    .service-card-icon i {
        font-size: 32px;
        color: #2c5a2e;
    }
    
    .service-card-info h4 {
        font-size: 15px;
        font-weight: 700;
        color: #1a4a1a;
        margin: 0 0 5px 0;
    }
    
    .service-card-info p {
        font-size: 12px;
        color: #777;
        margin: 0 0 8px 0;
        line-height: 1.4;
    }
    
    .service-card-price {
        font-size: 14px;
        font-weight: 700;
        color: #2c5a2e;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e0ecd9;
    }
}

/* Планшеты (между 481px и 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .services-table .services-cards {
        gap: 20px;
        padding: 20px;
    }
    
    .service-card-item {
        padding: 20px 15px;
    }
    
    .service-card-icon i {
        font-size: 35px;
    }
}

/* Очень маленькие телефоны (до 400px) */
@media (max-width: 400px) {
    .services-table .services-cards {
        gap: 12px;
        padding: 15px 12px;
    }
    
    .service-card-item {
        padding: 14px 10px;
    }
    
    .service-card-icon i {
        font-size: 28px;
    }
    
    .service-card-info h4 {
        font-size: 14px;
    }
    
    .service-card-info p {
        font-size: 11px;
    }
    
    .service-card-price {
        font-size: 13px;
    }
}

/* Для экранов меньше 340px - переключаем на 1 колонку */
@media (max-width: 340px) {
    .services-table .services-cards {
        grid-template-columns: 1fr;
    }
    
    .service-card-item {
        display: flex;
        text-align: left;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }
    
    .service-card-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .service-card-icon i {
        font-size: 30px;
    }
    
    .service-card-info {
        flex: 1;
    }
    
    .service-card-info h4 {
        margin-bottom: 3px;
    }
    
    .service-card-price {
        margin-top: 5px;
        padding-top: 5px;
    }
}

/* ========== ДОМИКИ (ГЛАВНАЯ) ========== */
.section-title {
    text-align: center;
    margin: 60px 0 30px;
    color: var(--primary-green-dark);
    font-weight: 700;
}
.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    margin: 12px auto 0;
}

.glamping-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glamping-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.glamping-info {
    padding: 20px;
    flex-grow: 1;
}

.glamping-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.glamping-features span {
    font-size: 13px;
    color: #666;
    background: #f0f4ec;
    padding: 5px 10px;
    border-radius: 20px;
}

.glamping-features i {
    color: var(--primary-green);
    margin-right: 5px;
}

.glamping-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-green);
    /* margin: 15px 0; */
}

.btn-sm-book {
    background: var(--primary-green);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 30px;
    width: 100%;
    font-weight: 600;
}

/* ========== МЕРОПРИЯТИЯ (ГЛАВНАЯ) ========== */
.event-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    height: 100%;
    border: 1px solid #e0ecd9;
}

.event-icon {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.btn-event {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 8px 20px;
    border-radius: 30px;
    margin-top: 15px;
}

/* ========== СТРАНИЦА ДОМИКА (HOUSE) ========== */
.house-header {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    color: white;
    text-align: center;
}

.house-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.house-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #f5a623;
    transform: translateX(-5px);
}

.house-gallery {
    margin-bottom: 40px;
}

.house-gallery img {
    border-radius: 20px;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.house-gallery-thumbs {
    margin-top: 15px;
}

.house-gallery-thumbs img {
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.house-gallery-thumbs img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.house-description {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.house-description h3 {
    color: var(--primary-green-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.house-description p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.house-amenities {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.house-amenities h3 {
    color: var(--primary-green-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0f4ec;
    border-radius: 10px;
}

.amenity-item i {
    color: var(--primary-green);
    font-size: 20px;
    width: 30px;
}

.amenity-item span {
    font-size: 14px;
}

.house-rules {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.house-rules h3 {
    color: var(--primary-green-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

.house-rules li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.house-rules li i {
    color: var(--primary-green);
    width: 25px;
}

.house-price-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    position: sticky;
    top: 100px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--primary-green-light);
    margin-bottom: 28px;
}

.house-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.house-price small {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

/* ========== СТРАНИЦА КОНТАКТОВ ========== */
.contacts-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/contacts-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.contacts-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contacts-header p {
    font-size: 16px;
    opacity: 0.9;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-card .icon {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.contact-card h3 {
    color: var(--primary-green-dark);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.contact-card p {
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.contact-card a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-green);
}

.working-hours {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.working-hours p {
    margin-bottom: 3px;
    font-size: 13px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.map-container iframe {
    width: 100%;
    height: 430px;
    border: none;
}

.social-links-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links-row a {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links-row a:hover {
    background: var(--primary-green-dark);
    transform: translateY(-3px);
}

/* ========== СТРАНИЦА БАНИ / УСЛУГ ========== */
.service-header {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-light) 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    color: white;
    text-align: center;
}

.service-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.service-gallery {
    margin-bottom: 40px;
}

.service-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.service-description {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-description h3 {
    color: var(--primary-green-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-description p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-features {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* ========== ОБЩИЕ БЛОКИ (FEATURES GRID, PACKAGES, FORM) ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f0f4ec;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 32px;
    color: var(--primary-green);
    width: 50px;
    text-align: center;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-green-dark);
}

.feature-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* ========== ПАКЕТЫ УСЛУГ ========== */
.service-packages {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.package-card {
    background: #f0f4ec;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e0ecd9;
    margin-top: 1.5rem;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.package-card h4 {
    color: var(--primary-green-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 15px;
}

.package-price small {
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
}

.package-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.package-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #dee2d8;
}

.package-list li:last-child {
    border-bottom: none;
}

.package-list li i {
    color: var(--primary-green);
    width: 22px;
}

.btn-order {
    background: var(--primary-green);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-order:hover {
    background: var(--primary-green-dark);
    transform: scale(1.02);
}

/* ========== ФОРМЫ НА СТРАНИЦАХ УСЛУГ ========== */
.service-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 90px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--primary-green-light);
    margin-bottom: 28px;
}

.service-form h3 {
    color: var(--primary-green-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* ========== ФУТЕР ========== */
footer {
    background: #1a1a1a;;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-menu {
    list-style: none;
    padding: 0;
}
.footer-menu li {
    margin-bottom: 10px;
}
.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-menu a:hover {
    color: var(--primary-green-light);
    padding-left: 5px;
}
.payment-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}
.payment-icons i {
    font-size: 32px;
    color: #ddd;
    transition: all 0.3s ease;
}
.payment-icons img {
    transition: all 0.3s ease;
}
.payment-icons i:hover,
.payment-icons img:hover {
    transform: translateY(-3px);
    cursor: pointer;
}
.social-icons {
    margin-top: 15px;
}
.social-icons a {
    color: #ccc;
    font-size: 24px;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}
.social-icons a:hover {
    color: var(--primary-green-light);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: var(--primary-green-light);
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты */
@media (min-width: 768px) and (max-width: 991px) {
    .glamping-card {
        margin-bottom: 25px;
    }
    .event-card {
        margin-bottom: 25px;
    }
    .row {
        row-gap: 25px;
    }
    .house-gallery img {
        height: 350px;
    }
    .service-gallery img {
        height: 350px;
    }
}

/* Мобильные телефоны */
@media (max-width: 767px) {
    .carousel-item img {
        height: 300px;
    }
    
    .booking-panel {
        margin-top: 20px;
        padding: 20px;
    }
    
    .section-title {
        margin: 40px 0 25px;
        font-size: 1.5rem;
    }
    
    .glamping-card {
        margin-bottom: 25px;
    }
    
    .event-card {
        margin-bottom: 25px;
    }
    
    [class*="col-"] {
        margin-bottom: 20px;
    }
    
    .row:last-child [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    
    .services-table {
        margin: 20px 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .booking-panel .row > div {
        margin-bottom: 15px;
    }
    
    .booking-panel .row > div:last-child {
        margin-bottom: 0;
    }
    
    /* House page */
    .house-header {
        padding: 40px 0;
    }
    .house-title {
        font-size: 2rem;
    }
    .house-subtitle {
        font-size: 1rem;
    }
    .house-price-card {
        position: static;
        margin-top: 20px;
    }
    
    /* Contacts page */
    .contacts-header {
        padding: 30px 0;
    }
    .contacts-header h1 {
        font-size: 28px;
    }
    .map-container iframe {
        height: 280px;
    }
    .contact-card {
        padding: 15px;
    }
    
    /* Service page */
    .service-header {
        padding: 40px 0;
    }
    .service-title {
        font-size: 2rem;
    }
    .service-subtitle {
        font-size: 1rem;
    }
    .service-gallery img {
        height: 250px;
    }
    .service-form {
        position: static;
        margin-top: 20px;
    }
}

/* Мобильные до 480px */
@media (max-width: 480px) {
    .glamping-features span {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .glamping-price {
        font-size: 18px;
    }
    
    .glamping-card {
        margin-bottom: 20px;
    }
    
    .event-card {
        margin-bottom: 20px;
    }
    
    .logo-text {
        display: inline-block !important;
    }
    
    .house-title {
        font-size: 1.5rem;
    }
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    .service-title {
        font-size: 1.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
@media (max-width: 991px) {
    .toggle {
        display: block;
    }
    
    .logo-text {
        display: inline-block !important;
    }
    
    .menu.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-green-dark);
        z-index: 1001;
        overflow-y: auto;
        display: block !important;
    }
    
    .menu.active .logo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        width: 100%;
    }
    
    .menu.active .logo a {
        padding: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .menu.active .toggle {
        display: none;
    }
    
    .menu.active .close-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        color: white;
    }
    
    .menu.active .close-menu:hover {
        background: #f5a623;
    }
    
    .menu.active .menu-center {
        display: block !important;
        padding: 0;
        background: transparent;
        width: 100%;
    }
    
    .desktop-right {
        display: none;
    }
    
    .menu-center {
        display: none;
        width: 100%;
    }
    
    .menu-center .item {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
    }
    
    .menu-center .item > a {
        padding: 14px 20px;
        display: block;
    }
    
    .mobile-phone {
        display: block;
        text-align: center;
        padding: 15px 20px;
        border-top: 1px solid rgba(255,255,255,0.2);
        width: 100%;
    }
    
    .mobile-phone a {
        background: #f5a623;
        border-radius: 30px;
        padding: 12px 20px;
        color: white;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        width: 90%;
        transition: all 0.3s ease;
    }
    
    .mobile-phone a:hover {
        background: #e69500;
        transform: scale(1.02);
    }
    
    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 30px;
        padding: 15px 20px;
        border-top: 1px solid rgba(255,255,255,0.2);
        width: 100%;
    }
    
    .mobile-socials a {
        color: white;
        font-size: 28px;
        transition: all 0.3s;
        text-decoration: none;
    }
    
    .mobile-socials a:hover {
        color: #f5a623;
        transform: translateY(-3px);
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #1e4a18;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
    }
    
    .has-submenu > a::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
    font-size: 16px;
    float: right;
    vertical-align: middle;
    }
    
    .has-submenu.active-sub > a::after {
        content: "\f078";
    }
    
    .submenu li a {
        padding: 10px 30px;
    }
    
    .has-submenu .submenu {
        display: none;
    }
    
    .has-submenu.active-sub .submenu {
        display: block !important;
    }
    
    .has-submenu > a {
        cursor: pointer;
    }
}





/* ========== СТРАНИЦА КОРПОРАТИВА ========== */
.event-header {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    color: white;
    text-align: center;
}

.event-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.event-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #f5a623;
    transform: translateX(-5px);
}

.event-gallery {
    margin-bottom: 40px;
}

.event-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.event-description {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.event-description h3 {
    color: var(--primary-green-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.event-description p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-features {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f0f4ec;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 32px;
    color: var(--primary-green);
    width: 50px;
    text-align: center;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-green-dark);
}

.feature-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.event-packages {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.package-card {
    background: #f0f4ec;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e0ecd9;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.package-card h4 {
    color: var(--primary-green-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 15px;
}

.package-price small {
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
}

.package-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.package-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #dee2d8;
}

.package-list li:last-child {
    border-bottom: none;
}

.package-list li i {
    color: var(--primary-green);
    width: 22px;
}

.btn-order {
    background: var(--primary-green);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-order:hover {
    background: var(--primary-green-dark);
    transform: scale(1.02);
}

.event-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 90px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--primary-green-light);
    margin-bottom: 28px;
}

.event-form h3 {
    color: var(--primary-green-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}


/* ОТЗЫВЫ - СЛАЙДЕР */
.reviews-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    padding: 0 15px;
    overflow: visible;
}

.reviews-slider-wrapper {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.reviews-slider {
    display: flex;
    flex-direction: row;
    gap: 25px;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.reviews-slider .review-card {
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px -10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Размеры карточек для разных устройств */
@media (min-width: 1400px) {
    .reviews-slider .review-card {
        width: 365px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .reviews-slider .review-card {
        width: 305px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .reviews-slider .review-card {
        width: 380px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .reviews-slider .review-card {
        width: 260px;
    }
}

@media (max-width: 767px) {
    .reviews-slider .review-card {
        width: 377px;
    }
}

@media (max-width: 480px) {
    .reviews-slider .review-card {
        width: 315px;
    }
}

/* iPhone 14 Pro Max, Samsung S23 Ultra, Google Pixel 7 Pro и другие крупные телефоны */
@media (max-width: 430px) {
    .reviews-slider .review-card {
        width: 280px;
    }
    .review-card {
        padding: 15px;
    }
    .review-text {
        font-size: 13px;
    }
    .review-author h4 {
        font-size: 14px;
    }
    .reviews-container {
        gap: 10px;
        padding: 0 10px;
    }
}

/* iPhone 14 Pro, Samsung S23, Xiaomi 12 и другие стандартные телефоны */
@media (max-width: 390px) {
    .reviews-slider .review-card {
        width: 250px;
    }
    .review-card {
        padding: 14px;
    }
    .review-stars i {
        font-size: 14px;
    }
    .review-text {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* iPhone SE, iPhone 12 mini, Samsung S22 и другие компактные телефоны */
@media (max-width: 375px) {
    .reviews-slider .review-card {
        width: 233px;
    }
    .review-card {
        padding: 12px;
    }
    .review-stars {
        margin-bottom: 10px;
    }
    .review-text {
        font-size: 12px;
        margin-bottom: 15px;
    }
    .review-author {
        padding-top: 12px;
    }
}

/* iPhone 5/5S/SE (старые модели) и очень маленькие телефоны */
@media (max-width: 320px) {
    .reviews-slider .review-card {
        width: 240px;
    }
    .review-card {
        padding: 10px;
    }
    .review-text {
        font-size: 11px;
    }
    .review-author h4 {
        font-size: 13px;
    }
    .review-author span {
        font-size: 10px;
    }
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.15);
}

.review-stars {
    margin-bottom: 15px;
}

.review-stars i {
    color: #FFD700;
    font-size: 16px;
    margin-right: 2px;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    border-top: 1px solid #e0ecd9;
    padding-top: 15px;
}

.review-author h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a4a1a;
    margin-bottom: 5px;
}

.review-author span {
    font-size: 11px;
    color: #888;
}

/* Кнопки навигации */
.review-nav {
    background: #2d5a24;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.review-nav:hover {
    background: #1a4a1a;
    transform: scale(1.05);
}

.review-nav:active {
    transform: scale(0.95);
}

@media (max-width: 576px) {
    .review-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}


/* FAQ - вертикальный список с отступами */
.faq-section {
    margin: 40px 0 60px;
    padding: 0 15px;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f0f4ec;
}

.faq-question h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-green-dark);
    margin: 0;
}

.faq-question i {
    color: var(--primary-green);
    transition: transform 0.3s ease;
    font-size: 18px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f9faf8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 18px 25px;
}

.faq-answer p {
    margin-top: 25px;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 768px) {
    .faq-question h4 {
        font-size: 14px;
    }
    .faq-question {
        padding: 14px 18px;
    }
    .review-card {
        padding: 18px;
    }
    .review-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .faq-section {
        padding: 0 10px;
    }
}

/* CSS ДЛЯ СЛОГАНА ПОВЕРХ КАРУСЕЛИ */
.carousel-slogan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 15;
    color: white;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 700px;
    pointer-events: none; /* Чтобы слоган не мешал нажатию на кнопки карусели */
}

/* Если внутри есть интерактивные элементы (кнопка) — включаем им pointer-events */
.carousel-slogan .slogan-btn {
    pointer-events: auto;
}

.slogan-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff, #f5d78c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.slogan-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.slogan-divider {
    width: 70px;
    height: 3px;
    background: #f5c542;
    margin: 1rem auto;
    border-radius: 4px;
}

.slogan-btn {
    display: inline-block;
    background: #f5b81b;
    color: #2c3e2b;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.slogan-btn:hover {
    background: #ffce44;
    transform: scale(1.03);
    color: #1e3a1e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .slogan-title {
        font-size: 1.8rem;
    }
    .slogan-subtitle {
        font-size: 1rem;
    }
    .slogan-btn {
        padding: 8px 24px;
        font-size: 0.9rem;
    }
    .carousel-slogan {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .slogan-title {
        font-size: 1.4rem;
    }
    .slogan-subtitle {
        font-size: 0.85rem;
    }
    .slogan-btn {
        padding: 6px 18px;
        font-size: 0.8rem;
    }
}

/* Стили для центрального блока заглушки */
.under-construction {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.5rem 2rem 0rem 2rem;
}
.coming-soon-card {
    max-width: 750px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 48px;
    padding: 3rem 2rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(200, 180, 120, 0.3);
    border: 1px solid rgba(255, 215, 140, 0.6);
    transition: 0.2s;
}
.construction-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: subtlePulse 2s infinite;
}
h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2b5e2b, #c7a252);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}
.lead-message {
    font-size: 1.3rem;
    color: #2c3a2b;
    margin: 1.5rem 0;
    line-height: 1.4;
}
.separator {
    width: 80px;
    height: 3px;
    background: #c2a156;
    margin: 20px auto;
    border-radius: 10px;
}
.contact-line {
    margin-top: 2rem;
    font-size: 1rem;
    background: #f3efdf;
    display: inline-block;
    padding: 8px 24px;
    border-radius: 60px;
    color: #1f4f1f;
}
.contact-line i {
    margin-right: 8px;
    color: #2c5a2e;
}
@keyframes subtlePulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}
@media (max-width: 650px) {
    h1 { font-size: 2rem; }
    .lead-message { font-size: 1rem; }
}

.alert-custom {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Базовые стили для уведомлений */
.alert-custom {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 500px;
    width: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Анимация появления */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.alert-custom.hiding {
    animation: slideOut 0.3s ease forwards;
}

/* Типы уведомлений */
.alert-success { 
    background: rgba(212, 237, 218, 0.95); 
    color: #a8e6b8; 
    border-left: 4px solid #28a745; 
}

.alert-error { 
    background: rgba(248, 215, 218, 0.95); 
    color: #721c24; 
    border-left: 4px solid #dc3545; 
}

.alert-warning { 
    background: rgba(255, 243, 205, 0.95); 
    color: #856404; 
    border-left: 4px solid #ffc107; 
}

.alert-info { 
    background: rgba(209, 236, 241, 0.95); 
    color: #0c5460; 
    border-left: 4px solid #17a2b8; 
}

/* Кнопка закрытия */
.alert-close { 
    cursor: pointer; 
    font-size: 20px; 
    font-weight: bold; 
    margin-left: auto;
    padding: 0 5px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    color: inherit;
    line-height: 1;
}

.alert-close:hover { 
    opacity: 1; 
}

/* Иконки в уведомлениях */
.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    word-break: break-word;
}

/* Стили для полей ввода */
.input-error { 
    border-color: #dc3545 !important; 
    background-color: #fff8f8 !important; 
}

.error-message { 
    color: #dc3545; 
    font-size: 12px; 
    margin-top: 5px; 
    display: none; 
}

.error-message i { 
    margin-right: 5px; 
}

/* ===== АДАПТАЦИЯ ДЛЯ ВСЕХ УСТРОЙСТВ ===== */

/* Планшеты и маленькие ноутбуки */
@media screen and (max-width: 1024px) {
    .alert-custom {
        top: 15px;
        right: 15px;
        min-width: 250px;
        max-width: 400px;
        padding: 14px 18px;
        font-size: 14px;
    }
}

/* Большие планшеты в портретной ориентации */
@media screen and (max-width: 768px) {
    .alert-custom {
        top: 15px;
        right: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
        width: calc(100% - 30px);
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 10px;
        margin-bottom: 0;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 480px) {
    .alert-custom {
        top: 10px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
        min-width: auto;
        max-width: none;
        box-shadow: 0 3px 15px rgba(0,0,0,0.15);
        gap: 10px;
    }

    .alert-close {
        font-size: 18px;
        padding: 0 3px;
    }

    .alert-icon {
        font-size: 18px;
    }

    .error-message {
        font-size: 11px;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 360px) {
    .alert-custom {
        top: 8px;
        right: 8px;
        left: 8px;
        width: calc(100% - 16px);
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 8px;
        gap: 8px;
    }

    .alert-close {
        font-size: 16px;
    }

    .alert-icon {
        font-size: 16px;
    }
}

/* Альбомная ориентация на мобильных */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .alert-custom {
        top: 10px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: 60%;
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Планшеты в альбомной ориентации */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .alert-custom {
        max-width: 450px;
        min-width: 280px;
    }
}

/* Большие экраны (десктопы) */
@media screen and (min-width: 1025px) {
    .alert-custom {
        padding: 18px 24px;
        font-size: 15px;
        min-width: 320px;
        max-width: 550px;
        border-radius: 14px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    }

    .alert-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    }

    .alert-close {
        font-size: 22px;
    }
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    .alert-success { 
        background: rgba(26, 70, 40, 0.95); 
        color: #a8e6b8; 
        border-left-color: #2ecc71; 
    }
    
    .alert-error { 
        background: rgba(70, 26, 30, 0.95); 
        color: #f8a5a5; 
        border-left-color: #e74c3c; 
    }
    
    .alert-warning { 
        background: rgba(70, 60, 20, 0.95); 
        color: #f0d58a; 
        border-left-color: #f39c12; 
    }
    
    .alert-info { 
        background: rgba(20, 60, 70, 0.95); 
        color: #8ad4e6; 
        border-left-color: #3498db; 
    }
    
    .input-error { 
        border-color: #e74c3c !important; 
        background-color: rgba(231, 76, 60, 0.1) !important; 
    }
    
    .error-message { 
        color: #e74c3c; 
    }
}

/* Поддержка высокой контрастности */
@media (prefers-contrast: high) {
    .alert-custom {
        border: 2px solid currentColor;
    }
    
    .alert-success { 
        background: #d4edda; 
        border-left-color: #1a7a2a; 
    }
    
    .alert-error { 
        background: #f8d7da; 
        border-left-color: #a01020; 
    }
}

/* Уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
    .alert-custom {
        animation: none !important;
        transition: none !important;
    }
    
    .alert-custom.hiding {
        animation: none !important;
        display: none;
    }
}



