/* Базовые стили и сброс */
:root {
    --primary-color: #2a5c45;
    --secondary-color: #d4a55e;
    --accent-color: #8b4513;
    --light-color: #f8f5f0;
    --dark-color: #1a2c24;
    --text-color: #333;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff !important;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Хедер */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.header-phone {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.header-phone i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Герой блок */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('https://images.unsplash.com/photo-1596394516093-9ba9d2d31669?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Форма бронирования */
.booking-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 180px;
    color:#000;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

/* Об отеле и галерея */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 515px;
}

/* Номера */
.rooms {
    background-color: #f0f0f0;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.room-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-10px);
}

.room-image {
    height: 250px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-image img {
    transform: scale(1.1);
}

.room-content {
    padding: 25px;
}

.room-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.room-price {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 15px 0;
}

.room-price span {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: normal;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.room-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.room-feature i {
    color: var(--secondary-color);
}

.room-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.room-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

/* Футер */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    animation: modalOpen 0.5s;
}

@keyframes modalOpen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 10;
    background: none;
    border: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-content {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }

    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: var(--shadow);
        transition: var(--transition);
        padding: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .header-phone {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 50px 0;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .room-buttons {
        flex-direction: column;
    }
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}
/* Стили для улучшенной формы */
.date-range-picker {
    position: relative;
}

.date-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.date-input-wrapper:hover {
    border-color: var(--primary-color);
}

.date-input-wrapper i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.date-display {
    flex: 1;
}

.date-placeholder {
    color: #999;
}

.calendar-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    /*width: 100%;*/
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 20px;
    margin-top: 10px;
    min-width: 600px;

}

.calendar-dropdown.active {
    display: block;
}

.calendar-container {
    display: flex;
    gap: 30px;
}

.single-month {
    flex: 1;
}

.double-month {
    display: flex;
    gap: 30px;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.calendar-header button:hover {
    background: #f0f0f0;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.calendar-day {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: #f0f0f0;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.in-range {
    background: rgba(42, 92, 69, 0.1);
    border-radius: 0;
}

.calendar-day.start-date,
.calendar-day.end-date {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
}

.calendar-day.in-range:first-child {
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}

.calendar-day.in-range:last-child {
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}

.date-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: none;
}

.date-summary.active {
    display: block;
}

.nights-count {
    font-weight: 600;
    color: var(--primary-color);
}

/* Стили для выбора гостей */
.guests-selector {
    position: relative;
}

.guests-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.guests-input-wrapper:hover {
    border-color: var(--primary-color);
}

.guests-input-wrapper i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.guests-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 20px;
    margin-top: 10px;
}

.guests-dropdown.active {
    display: block;
}

.guests-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.guests-type:last-child {
    margin-bottom: 0;
}

.guests-type-label h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.guests-type-label p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.counter-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.counter-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.counter-value {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.children-ages {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: none;
}

.children-ages.active {
    display: block;
}

.children-age-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
}

.children-age-item:last-child {
    margin-bottom: 0;
}

.age-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.remove-age {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}

/* Скрытые поля для дат */
.hidden-date-inputs {
    display: none;
}

/* Адаптивность для календаря */
@media (max-width: 768px) {
    .calendar-dropdown {
        min-width: 300px;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
    }

    .double-month {
        flex-direction: column;
        gap: 20px;
    }

    .calendar-day {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .guests-dropdown {
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
    }
}

@media (max-width: 576px) {
    .calendar-dropdown {
        padding: 15px;
    }

    .calendar-day {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}
/* Стили для слайдера в карточках номеров */
.room-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.room-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.room-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-image:hover .slider-controls {
    opacity: 1;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-image:hover .slider-dots {
    opacity: 1;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Стили для кнопки "Показать все номера" */
.rooms-show-more {
    text-align: center;
    margin-top: 50px;
    display: none;
}

.rooms-grid.hidden {
    max-height: 1100px;
    overflow: hidden;
    position: relative;
}

.rooms-grid.hidden:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #f0f0f0);
}

.rooms-grid.expanded {
    max-height: none;
}

.rooms-grid.expanded:after {
    display: none;
}

/* Стили для мобильного слайдера номеров */
.rooms-mobile-slider {
    display: none;
    position: relative;
    overflow: hidden;
}

.rooms-slider-container {
    display: flex;
    transition: transform 0.3s ease;
}

.room-card-slide {
    flex: 0 0 100%;
    padding: 0 10px;
}

.mobile-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.mobile-slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.mobile-slider-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.mobile-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mobile-slider-dots {
    display: flex;
    gap: 10px;
}

.mobile-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.mobile-slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Адаптивность для комнат */
@media (max-width: 992px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rooms-show-more {
        display: block;
    }
}

@media (max-width: 768px) {
    .rooms-grid {
        display: none;
    }

    .rooms-mobile-slider {
        display: block;
    }

    .rooms-show-more {
        display: none;
    }
}