/*
Theme Name: Udacha Houses
Author: Dmitry
Version: 0.4
*/

:root {
    --bg: #f3efe6;
    --surface: #fffdf8;
    --dark: #1f3028;
    --green: #365c48;
    --accent: #b97943;
    --text: #27312c;
    --muted: #6e756f;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 18px;
    left: 50%;
    width: min(1180px, calc(100% - 40px));
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    background: rgba(22, 38, 30, 0.72);
    color: white;
    backdrop-filter: blur(14px);
}

.logo {
    font-size: 21px;
    font-weight: 700;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.navigation a {
    opacity: 0.8;
}

.navigation a:hover {
    opacity: 1;
}

.hero {
    min-height: 100vh;
    padding: 150px 0 80px;
    display: flex;
    align-items: end;
    color: white;
    background:
        linear-gradient(
            180deg,
            rgba(15, 25, 20, 0.15),
            rgba(15, 25, 20, 0.8)
        ),
        linear-gradient(135deg, #577461, #17291f);
}

.hero-content {
    max-width: 780px;
}

.video-placeholder {
    margin-bottom: 24px;
    opacity: 0.7;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 22px;
    font-family: Georgia, serif;
    font-size: clamp(52px, 8vw, 108px);
    font-weight: 400;
    line-height: 0.92;
}

.hero p {
    max-width: 600px;
    margin: 0 0 32px;
    font-size: 19px;
    opacity: 0.85;
}

.button {
    min-height: 52px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 100px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: 700;
}

.button-light {
    background: white;
    color: var(--dark);
}

.section {
    padding: 110px 0;
}

.section-dark {
    color: white;
    background: var(--dark);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section h2 {
    margin: 0 0 16px;
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.05;
}

.section-heading p {
    color: var(--muted);
    font-size: 18px;
}

.section-dark .section-heading p {
    color: rgba(255, 255, 255, 0.65);
}

.houses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.house-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

.house-image {
    min-height: 330px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #78917f, #294134);
}

.house-content {
    padding: 28px;
}

.house-content h3 {
    margin: 0 0 10px;
    font-family: Georgia, serif;
    font-size: 30px;
}

.house-meta {
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.price {
    font-size: 20px;
    font-weight: 700;
}

.booking-box {
    padding: 45px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
}

.booking-placeholder {
    min-height: 260px;
    padding: 30px;
    display: grid;
    place-items: center;
    border: 2px dashed #c9c4b9;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 230px;
    gap: 18px;
}

.gallery-item {
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #9b9a7d, #435a49);
    color: white;
}

.gallery-item:first-child {
    grid-row: span 2;
}

.routes-grid,
.reviews-grid,
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    padding: 28px;
    border-radius: 20px;
    background: var(--surface);
}

.card h3 {
    margin-top: 0;
}

.stars {
    color: var(--accent);
    letter-spacing: 4px;
}

.contacts {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer {
    padding: 30px 0;
    background: #14221b;
    color: rgba(255, 255, 255, 0.65);
}


@media (max-width: 900px) {
    .navigation {
        display: none;
    }

    .houses-grid,
    .routes-grid,
    .reviews-grid,
    .posts-grid,
    .contacts {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .container,
    .site-header {
        width: min(100% - 24px, 1180px);
    }

    .site-header {
        top: 10px;
    }

    .hero {
        min-height: 760px;
        padding-bottom: 50px;
    }

    .section {
        padding: 75px 0;
    }

    .houses-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item:first-child {
        grid-row: auto;
    }

    .booking-box {
        padding: 20px;
    }
}
