:root {
    --bg: #f4f1ed;
    --surface: #ffffff;
    --surface-alt: #f8f6f3;
    --text: #1f1f1f;
    --muted: #5f5a54;
    --accent: #a03d2c;
    --accent-dark: #7b2f22;
    --border: rgba(31, 31, 31, 0.12);
    --shadow: 0 22px 60px rgba(22, 22, 22, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, #f8efe8 0%, #f4f1ed 40%, #efe9e3 100%);
    line-height: 1.6;
}

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

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

.page {
    min-height: 100vh;
}

.hero {
    padding: 56px 10vw 40px;
    background: linear-gradient(120deg, rgba(160, 61, 44, 0.08), rgba(248, 239, 232, 0.8));
    border-bottom: 1px solid var(--border);
}

.hero__content {
    max-width: 900px;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 12px;
}

h1,
h2 {
    font-family: "Playfair Display", "Times New Roman", serif;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(30px, 3.2vw, 44px);
}

h2 {
    font-size: clamp(22px, 2.2vw, 30px);
}

.hero__lead {
    font-size: 17px;
    color: var(--muted);
    max-width: 720px;
    margin: 0;
}

.hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 620px);
    align-items: center;
    gap: 8px;
}

.hero__media {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(22, 22, 22, 0.22);
    justify-self: end;
}

.hero__media img {
    width: 100%;
    height: auto;
    display: block;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero--image {
    position: relative;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(244, 241, 237, 0.92), rgba(244, 241, 237, 0.65)),
        url("spb.png") center/cover no-repeat;
    opacity: 0.8;
    z-index: 0;
}

.hero--image .hero__content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero--banner {
    display: grid;
    gap: 24px;
}

.hero__banner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(22, 22, 22, 0.2);
}

.hero__banner img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 280px;
}

.container {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 32px;
    padding: 32px 10vw 64px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: var(--surface);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card--sticky {
    position: sticky;
    top: 20px;
}

.form-note {
    color: var(--muted);
    margin: 0 0 16px;
    font-size: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.field label {
    font-weight: 600;
}

.field input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--surface-alt);
}

.field input:focus {
    outline: none;
    border-color: rgba(160, 61, 44, 0.5);
    box-shadow: 0 0 0 4px rgba(160, 61, 44, 0.12);
}

.field-error {
    color: #b02d1e;
    font-size: 13px;
    min-height: 16px;
}

.calculation {
    margin: 12px 0 18px;
    font-weight: 600;
    color: var(--accent-dark);
}

.primary-button {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(160, 61, 44, 0.25);
}

.primary-button:disabled {
    background: #c9c2bb;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.contact-card p {
    margin: 0 0 8px;
    color: var(--muted);
}

main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.desc p {
    margin: 0 0 12px;
}

.map {
    padding: 0;
    overflow: hidden;
}

.map__frame iframe {
    border: none;
    display: block;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery__header p {
    margin: 0;
    color: var(--muted);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.photo-card {
    border: none;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    position: relative;
    box-shadow: 0 14px 32px rgba(20, 20, 20, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.26);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inn {
    padding: 12px 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 12, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.lightbox.is-visible {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: min(90vw, 960px);
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.ui-datepicker {
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.18);
    padding: 10px;
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.ui-datepicker-header {
    background: var(--surface-alt);
    border: none;
    border-radius: 12px;
    padding: 8px 0;
}

.ui-datepicker th {
    font-weight: 600;
    color: var(--muted);
}

.ui-datepicker td a,
.ui-datepicker td span {
    border-radius: 8px;
    padding: 6px 8px;
}

.ui-datepicker td a.ui-state-active {
    background: var(--accent);
    color: #fff;
    border: none;
}

.ui-datepicker td a.ui-state-hover {
    background: rgba(160, 61, 44, 0.12);
    border: none;
}

@media (max-width: 1100px) {
    .container {
        grid-template-columns: 1fr;
        padding: 24px 6vw 56px;
    }

    .card--sticky {
        position: static;
    }

    .hero {
        padding: 40px 6vw 32px;
    }

    .hero--split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero__lead {
        font-size: 15px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .lightbox__close {
        top: 16px;
        right: 16px;
    }
}
