/* === Загальні стилі === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #c9a961;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #fff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Кнопки === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #b8943e;
    transform: translateY(-2px);
}

/* === Навігація === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Hero секція === */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(26, 54, 93, 0.7), rgba(26, 54, 93, 0.7)),
                url('[images.unsplash.com](https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1920)') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* === Секція номерів === */
.rooms {
    padding: 4rem 5%;
    background-color: var(--light-bg);
}

.rooms h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.room-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), #2d5a9e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.room-info {
    padding: 1.5rem;
}

.room-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.room-info .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.btn-book {
    width: 100%;
}

/* === Особливості === */
.features {
    padding: 4rem 5%;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* === Заголовки сторінок === */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 5%;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* === Про нас === */
.about-content {
    padding: 4rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    color: var(--primary-color);
}

.history {
    background: var(--light-bg);
    padding: 4rem 5%;
    text-align: center;
}

.history h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* === Контакти === */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--primary-color);
}

.contact-item a:hover {
    text-decoration: underline;
}

/* === Форми === */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* === Карта === */
.map-section {
    padding: 2rem 5% 4rem;
}

.map-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* === Модальне вікно === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* === Footer === */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* === Адаптивність === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem 5%;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}