* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.logo img {
    max-width: 60px;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили для сообщений форм */
.form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.info {
    display: block;
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Индикатор загрузки */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Анимация для сообщений */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message {
    animation: fadeIn 0.3s ease;
}

/* Герой секция с фоновым изображением */
.hero {
    background: linear-gradient(rgb(26 95 30 / 40%), rgb(47 191 16 / 30%)), url(/images/main-bg.jpg) no-repeat center center / cover;
    color: white;
    padding: 80px 0;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-price,
.hero-distance {
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-price i,
.hero-distance i {
    color: #2ecc71;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-address {
    font-size: 1.3rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.hero-card h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #1a3a5f;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-form input {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.booking-form input:focus {
    border-color: #2b6cb0;
    outline: none;
}

.booking-form button {
    background: #005a00;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.booking-form button:hover {
    background: #00df00;
    transform: translateY(-2px);
}

/* Блок тарифов */
.tariffs {
    padding: 80px 0;
    background: #f1f5f9;
}

.tariffs .container>h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1a3a5f;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.tariff-card {
    background: white;
    color: #333;
    padding: 32px 28px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.tariff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #005a00;
}

.tariff-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: #1a3a5f;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(0, 90, 0, 0.08);
    border-left: 4px solid #005a00;
    display: inline-block;
}

.tariff-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #4a5568;
}

.tariff-time {
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-decoration: underline;
    color: #4a5568;
}

.tariff-list {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tariff-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #4a5568;
}

.tariff-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #005a00;
}

.tariff-note {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 16px;
}

.tariff-extra {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 16px;
}

.tariff-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2b6cb0;
}

.tariff-price span {
    font-size: 1.2rem;
    font-weight: 500;
}

.tariff-min {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 24px;
}

.tariff-btn {
    background: #005a00 !important;
    color: #fff !important;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin: 0;
    margin-top: auto;
    width: 100%;
}

.tariff-btn:hover {
    background: #00df00 !important;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .tariffs-grid {
        grid-template-columns: 1fr;
    }
}

/* Конференц залы */
.conference-rooms {
    padding: 80px 0;
    background: white;
}

.conference-rooms h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1a3a5f;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.room-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.room-image {
    height: 200px;
}

.room-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.5rem;
    color: #005a00;
}

.room-card p {
    padding: 0 20px;
    color: #4a5568;
}

/* Стили для изображений в карточках залов */
.room-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2b6cb0 !important;
    margin: 10px 0;
}

.btn-order {
    display: block;
    width: calc(100% - 40px);
    margin: 20px;
    padding: 12px;
    background: #005a00;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-order:hover {
    background: #4a5568;
}

.slide-image {
    height: 450px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    transition: all 0.3s linear;
    /* Фон на время загрузки */
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;

}

.slide-image img.loaded {
    opacity: 1;
}

.swiper-slide:hover .slide-image img {
    transform: scale(1.05);
}

/* Галерея с Swiper */
.gallery {
    padding: 80px 0;
    background: #f1f5f9;
}

.gallery h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1a3a5f;
}

.swiper-container {
    padding: 20px 0 60px;
}

.swiper {
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}

.swiper-wrapper {
    padding-bottom: 20px;
}

.swiper-slide {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    height: auto;
}

.swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.slide-image {
    height: 450px;
    overflow: hidden;
}

.slide-image .image-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.slide-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.slide-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1a3a5f;
}

.slide-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Swiper навигация */
.swiper-button-next,
.swiper-button-prev {
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #005a00;
    transition: all 0.3s;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #005a00;
    color: white;
    transform: scale(1.05);
}

/* Пагинация (точки) */
.swiper-pagination {
    position: relative;
    bottom: 0 !important;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #cbd5e0;
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background-color: #005a00;
    transform: scale(1.2);
}

.gallery .swiper-button-next,
.gallery .swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
}

.gallery .swiper-button-next:after,
.gallery .swiper-button-prev:after {
    font-size: 16px !important;
}

/* Блок «Лучшее место» и отзывы с карт */
.reviews-block {
    padding: 60px 0;
    background: white;
}

.reviews-block-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-block-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.reviews-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.reviews-badge img {
    display: block;
    width: 100%;
    height: 280px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.reviews-badge-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a3a5f;
}

.reviews-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.reviews-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    flex: 1;
    max-width: 320px;
    padding: 28px 32px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e2e8f0;
    background: #f8f9fa;
    transition: box-shadow 0.3s, transform 0.2s, border-color 0.3s;
}

.reviews-card-logo {
    display: block;
    margin-bottom: 12px;
    line-height: 0;
}

.reviews-card-logo svg {
    display: block;
}

.reviews-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #005a00;
}

.reviews-card-label {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 8px;
}

.reviews-card-title {
    font-size: 0.95rem;
    color: #4a5568;
}

.reviews-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a5f;
    margin: 4px 0;
}

.reviews-card-count {
    font-size: 0.9rem;
    color: #4a5568;
}

@media (max-width: 768px) {
    .reviews-block-inner {
        flex-direction: column;
    }

    .reviews-links {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .reviews-card {
        width: 100%;
    }
}

/* Локация с Яндекс.Картой */
.location {
    padding: 80px 0;
    background: white;
}

.location h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1a3a5f;
}

.location-info.mobile-info {
    display: none;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
}

.location-info.mobile-info p {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.map-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.map-wrapper {
    flex: 2;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-info.desktop-info {
    flex: 1;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 280px;
}

.map-info h3 {
    color: #1a3a5f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-info p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.map-info strong {
    color: #005a00;
}

.desktop-info a {
    color: #005a00;

}

.social-links a {
    color: #fff;
}

/* Футер */
footer {
    background: #03310e;
    color: white;
    padding: 30px 0;
}

footer p {
    margin: 10px 0;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}


/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1a3a5f;
}

#selectedRoom {
    margin-bottom: 20px;
    color: #4a5568;
    font-weight: bold;
}

#modalForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#modalForm input,
#modalForm textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#modalForm textarea {
    min-height: 100px;
    resize: vertical;
}

#modalForm button {
    background: #005a00;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

#modalForm button:hover {
    background: #4a5568;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .map-container {
        flex-direction: column;
    }

    .map-info.desktop-info {
        width: 100%;
    }

}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-card {
        padding: 25px;
    }

    .conference-rooms h2,
    .gallery h2,
    .location h2 {
        font-size: 1.8rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .location-info.mobile-info {
        display: block;
    }

    .map-info.desktop-info {
        display: none;
    }

    .map-wrapper {
        min-width: 100%;
    }

    .slide-image {
        height: 200px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h3 {
        font-size: 1.2rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }

    .slide-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-card h2 {
        font-size: 1.3rem;
    }

    .hero-address {
        font-size: 1.1rem;
    }
}