/* Подключение шрифтов */
@import 'fonts.css';

/* Сброс стандартных стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Корневые переменные для цветовой палитры и типографики */
:root {
    --primary-color: #4A6FA5; /* Приглушённый тёмно-голубой */
    --accent-color: #6B9AC4; /* Мягкий голубой */
    --secondary-color: #97D8C4; /* Пастельный мятный */
    --warm-color: #F4B942; /* Приглушённый золотистый */
    --bg-color: #FFFFFF; /* Чистый белый */
    --footer-bg: #F8F9FC; /* Очень светлый голубовато-серый */
    --text-color: #2C3E50; /* Тёмный серо-синий */
    --text-secondary: #5D6D7E; /* Серо-синий средней насыщенности */
    --text-on-accent: #FFFFFF; /* Белый */
    --shadow: rgba(74, 111, 165, 0.08);
    --shadow-hover: rgba(107, 154, 196, 0.25);
    --gradient: linear-gradient(135deg, #6B9AC4 0%, #4A6FA5 100%);
    --border-radius-card: 12px;
    --border-radius-btn: 8px;
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem; /* 16px */
    --font-size-md: 1.125rem; /* 18px */
    --font-size-lg: 1.5rem; /* 24px */
    --font-size-xl: 2rem; /* 32px */
    --font-size-xxl: 3rem; /* 48px */
    --font-size-hero: 3.5rem; /* 56px */
}

/* Глобальные стили */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: var(--font-size-base);
}

h1, h2, h3 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-hero);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

/* Шапка */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 2px 5px var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    color: var(--accent-color);
}

/* Гамбургер-меню */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle {
    display: none;
}

.menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.menu-toggle:checked ~ nav {
    display: block;
}

/* Hero-секция */
.hero {
    height: 100vh;
    background: var(--gradient), url('img/main.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-on-accent);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: var(--font-size-xxl);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.hero p {
    font-size: var(--font-size-md);
    margin-bottom: 2rem;
    color: var(--text-on-accent);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: var(--text-on-accent);
    border-radius: var(--border-radius-btn);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow);
    font-weight: 600;
}

.btn:hover {
    box-shadow: 0 6px 20px var(--shadow-hover);
    transform: translateY(-2px);
}

/* Секции */
.section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.about, .advantages, .goals, .cta {
    text-align: center;
}

.about p {
    margin-bottom: 2rem;
    font-size: var(--font-size-md);
    color: var(--text-secondary);
}

.services {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-item {
    flex: 1 1 200px;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.service-item .icon {
    font-size: var(--font-size-xl);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-style: normal;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.advantages .services {
    margin-bottom: 2rem;
}

.goals ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.goals li {
    flex: 1 1 200px;
    padding: 1rem;
    background-color: var(--footer-bg);
    border-radius: var(--border-radius-btn);
    color: var(--text-secondary);
}

/* Страница помещений */
.rooms {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.rooms p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: var(--font-size-md);
    color: var(--text-secondary);
}

.room-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.room-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-card);
    box-shadow: 0 8px 30px var(--shadow);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow);
}

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

.room-card h3 {
    padding: 1rem;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

.room-card p {
    padding: 0 1rem;
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.room-card .btn {
    margin: 1rem;
}

/* Страница бронирования */
.booking {
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.booking h1 {
    font-size: var(--font-size-xl);
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.booking .icon {
    font-size: var(--font-size-xxl);
    margin-bottom: 2rem;
}

.booking p {
    margin-bottom: 2rem;
    font-size: var(--font-size-md);
    color: var(--text-secondary);
}

/* Страница контактов */
.contacts {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-info, .contact-form {
    margin-bottom: 3rem;
}

.contact-info h2, .contact-form h2 {
    font-size: var(--font-size-lg);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-detail {
    flex: 1 1 200px;
}

.map {
    margin-bottom: 2rem;
}

.map img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-card);
}

form {
    max-width: 600px;
    margin: 0 auto;
}

form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(74, 111, 165, 0.1);
    border-radius: var(--border-radius-btn);
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Футер */
footer {
    background-color: var(--footer-bg);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: var(--font-size-md);
}

.social-links a {
    margin: 0 0.5rem;
    font-size: var(--font-size-lg);
    color: var(--accent-color);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Разделители */
.section::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gradient);
    margin: 2rem auto 0;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hamburger {
        display: flex;
        align-self: flex-end;
    }

    .hero h1 {
        font-size: var(--font-size-xl);
    }

    .hero p {
        font-size: var(--font-size-base);
    }

    .services {
        flex-direction: column;
    }

    .goals ul {
        flex-direction: column;
    }

    .room-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
