* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    background: white;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-weight: 700;
    text-decoration: none;
    color: #222;
}

nav a {
    margin-left: 20px;
    color: #222;
    text-decoration: none;
}

nav a:hover,
.logo:hover {
    text-decoration: underline;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    color: white;
    padding: 60px 8%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .35);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
}

.button {
    display: inline-block;
    background: white;
    color: #222;
    padding: 12px 20px;
    margin-right: 10px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.button.secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.section {
    padding: 50px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid article {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.photo-strip {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 18px;
}

.photo-strip img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}

.photo-strip img:first-child {
    height: 360px;
    grid-row: span 2;
}

.text-link {
    font-weight: 700;
    color: #222;
}

.features {
    width: 100%;
    border-collapse: collapse;
}

.features th,
.features td {
    border-bottom: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.energy-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0 36px;
}

.energy-labels figure {
    margin: 0;
}

.energy-labels img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.energy-labels figcaption {
    margin-top: 8px;
    font-weight: 700;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.photo-section {
    margin-top: 42px;
}

.photo-section h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 18px;
}

.gallery img {
    width: 100%;
    height: clamp(280px, 28vw, 380px);
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
    image-rendering: auto;
}

.gallery figure {
    margin: 0;
}

.gallery figcaption {
    font-size: .9rem;
    color: #666;
    margin-top: 6px;
}

.contact-form {
    max-width: 700px;
}

.contact-form label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font: inherit;
}

.checkbox {
    font-weight: normal;
}

.checkbox input {
    display: inline;
    width: auto;
    margin-right: 8px;
}

button {
    padding: 12px 22px;
    border: 0;
    border-radius: 6px;
    background: #222;
    color: white;
    font: inherit;
    cursor: pointer;
}

.success {
    padding: 12px;
    border: 1px solid #8bbf8b;
    background: #edf8ed;
    border-radius: 6px;
}

.error {
    padding: 12px;
    border: 1px solid #d79a8c;
    background: #fff0ed;
    border-radius: 6px;
}

.captcha {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f8f8;
}

.site-footer {
    border-top: 1px solid #ddd;
    padding: 25px 0;
    color: #666;
}

@media (max-width: 800px) {
    .site-header .container {
        display: block;
    }

    nav a {
        display: inline-block;
        margin: 10px 12px 0 0;
    }

    .grid,
    .gallery,
    .energy-labels,
    .photo-strip {
        grid-template-columns: 1fr;
    }

    .photo-strip img,
    .photo-strip img:first-child {
        height: 240px;
        grid-row: auto;
    }
}
