/* ============================================================
   CSS ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    --bg: #f7f3ec;
    --bg-light: #fbf8f2;
    --bg-warm: #efe7d8;
    --white: #ffffff;

    --text: #2e2e2e;
    --text-mid: #4d4a45;
    --text-muted: #6a6257;
    --text-faint: #7e756a;
    --text-hint: #8a7d6b;
    --text-subtle: #5f574d;

    --teal: #2f4f4f;
    --teal-dark: #243f3f;
    --teal-light: #24484a;

    --gold: #d9b98b;
    --gold-dark: #cfaf7c;
    --gold-text: #2f281e;

    --heading: #30343a;

    --green-bg: #dcecdf;
    --green-hover: #bfdcc5;
    --green-text: #2f4f4f;
    --green-strong: #2f7d4f;

    --red-bg: #ead6d6;
    --red-text: #9a4a4a;
    --red-strong: #a33a3a;
    --red-error: #b33a3a;
    --red-busy: #d85d5d;

    --pending-bg: #fff3d9;
    --pending-text: #8a5b00;

    --border: #eee2d2;
    --border-alt: #ece6db;
    --border-input: #e3d6c3;

    --shadow-sm: 0 14px 35px rgba(0, 0, 0, .08);
    --shadow-md: 0 18px 45px rgba(0, 0, 0, .06);
    --shadow-lg: 0 22px 55px rgba(0, 0, 0, .08);
    --shadow-xl: 0 24px 70px rgba(0, 0, 0, .14);

    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-xl: 30px;
    --radius-pill: 999px;

    --font-serif: Georgia, "Times New Roman", serif;
    --font-sans: Arial, sans-serif;

    --container: min(1300px, 92%);
    --container-lg: min(1400px, 92%);
}

/* ============================================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================================ */
*,
html,
body {
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ============================================================
   ГЕРОЙ (ГЛАВНАЯ)
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 37, 64, .42), rgba(0, 37, 64, .42)),
        url("/static/rentals/images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: white;
}

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    padding: 34px 64px;
    display: grid;
    grid-template-columns: 320px 1fr 260px;
    align-items: center;
    gap: 30px;
}

.logo {
    color: white;
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 31px;
    font-weight: 400;
    white-space: nowrap;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

.menu {
    display: flex;
    justify-content: center;
    gap: 42px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 21px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

.phone {
    justify-self: end;
    font-size: 26px;
    white-space: nowrap;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

.hero-content {
    min-height: 100vh;
    padding: 130px 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    margin: 0 0 28px;
    font-family: var(--font-serif);
    font-size: clamp(56px, 6.8vw, 112px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: .01em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .22);
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 46px;
    font-size: 27px;
    line-height: 1.45;
    text-shadow: 0 3px 16px rgba(0, 0, 0, .25);
}

.hero-location {
    margin-bottom: 24px;
    font-size: 18px;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.hero-button {
    display: inline-block;
    padding: 22px 50px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #e7c98f, #cfa866);
    color: var(--gold-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    transition: .2s;
}

.hero-button:hover {
    transform: translateY(-2px);
}

/* Мобильная кнопка меню */
.mobile-menu-button {
    display: none;
}

/* ============================================================
   ШАПКА ВНУТРЕННИХ СТРАНИЦ
   ============================================================ */
.inner-header {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 6%;
    min-height: 350px;
    background-image: linear-gradient(rgba(0, 37, 64, .25), rgba(0, 37, 64, .45)), url("/static/rentals/images/hero.png");
    background-size: cover;
    background-position: center;
    border-bottom: 0;
}

.inner-logo {
    font-family: var(--font-serif);
    font-size: 28px;
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

.inner-back {
    color: white;
    text-decoration: none;
    font-size: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

/* ============================================================
   КОНТЕЙНЕР И СЕКЦИИ
   ============================================================ */
.section-container {
    width: var(--container-lg);
    margin: 0 auto;
}

.section-container h2 {
    margin: 0 0 48px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 400;
    color: var(--heading);
}

/* ============================================================
   ДОМИКИ — ПРЕВЬЮ (ГЛАВНАЯ)
   ============================================================ */
.houses-preview {
    padding: 86px 0 60px;
    background: var(--bg);
}

.houses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 34px;
}

.house-card {
    overflow: hidden;
    background: white;
    border-radius: 28px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .12);
    transition: .25s;
    position: relative;
}

.house-card:hover {
    transform: translateY(-8px);
}

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

.house-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
    border-radius: 0 0 28px 28px;
}

.house-card-content h3 {
    color: white;
}

.house-card-content p {
    color: rgba(255, 255, 255, .85);
}

.house-card-content .price {
    color: white;
}

.house-card-content h3 {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 400;
}

.house-card-content p {
    margin: 0;
    font-size: 18px;
    color: var(--text-muted);
}

.price {
    margin-top: 18px;
    font-size: 26px;
    font-weight: 700;
    color: var(--teal);
}

/* ============================================================
   ДОМИК — СТРАНИЦА
   ============================================================ */
.house-page {
    background: var(--bg);
}

.house-hero {
    width: var(--container);
    margin: 0 auto;
    padding: 80px 0 42px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-end;
}

.house-hero h1 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 78px;
    font-weight: 400;
    color: var(--heading);
}

.house-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 24px;
    line-height: 1.45;
    color: var(--text-muted);
}

.house-price {
    flex: 0 0 auto;
    padding: 20px 28px;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: var(--gold-text);
    font-size: 24px;
    font-weight: 700;
}

.house-gallery {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 16px;
}

.house-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.house-gallery img:first-child {
    grid-row: span 2;
    height: 536px;
}

.gallery-item {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-item img {
    transition: transform .25s, filter .25s;
}

.gallery-item:hover img {
    transform: scale(1.02);
    filter: brightness(.92);
}

.house-info {
    width: var(--container);
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 60px;
}

.house-description {
    background: var(--white);
    padding: 42px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.house-description h2,
.season-prices h2 {
    margin: 0 0 24px;
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    color: var(--heading);
}

.house-description p {
    margin: 0;
    font-size: 21px;
    line-height: 1.7;
    color: var(--text-mid);
}

.house-sidebar {
    align-self: start;
    background: var(--white);
    padding: 34px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.house-sidebar h3 {
    margin: 0 0 16px;
    font-size: 24px;
    color: var(--teal);
}

.house-sidebar ul {
    margin: 0 0 30px;
    padding-left: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.booking-button {
    display: block;
    padding: 18px 24px;
    border-radius: var(--radius-pill);
    background: var(--teal);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.season-prices {
    width: var(--container);
    margin: 70px auto 110px;
    background: var(--white);
    padding: 42px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.price-table {
    display: grid;
    gap: 14px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-size: 20px;
}

.price-row:last-child {
    border-bottom: none;
}

/* ============================================================
   ЛАЙТБОКС
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, .86);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(1200px, 94vw);
    max-height: 88vh;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: white;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: white;
    font-size: 64px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, .28);
}

.lightbox-prev {
    left: 28px;
}

.lightbox-next {
    right: 28px;
}

/* ============================================================
   ЭКСКУРСИИ
   ============================================================ */
.excursions-preview {
    padding: 40px 0 120px;
    background: var(--bg-warm);
}

.excursions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 34px;
}

.excursion-card {
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .10);
    transition: .25s;
}

.excursion-card:hover {
    transform: translateY(-8px);
}

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

.excursion-card-content {
    padding: 28px;
}

.excursion-card-content h3 {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
}

.excursion-card-content p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.45;
    color: var(--text-muted);
}

.excursion-meta {
    margin-top: 12px;
    font-size: 17px;
    color: var(--teal);
    font-weight: 700;
}

.excursion-cover {
    width: var(--container);
    margin: 0 auto;
}

.excursion-cover img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.empty-text {
    font-size: 22px;
    color: var(--text-muted);
}

/* ============================================================
   О НАС (СЕКЦИЯ НА ГЛАВНОЙ)
   ============================================================ */
.about-section {
    padding: 100px 0 120px;
    background: var(--bg);
}

.about-container {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 60px;
    align-items: center;
}

.about-content {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    margin: 0 0 26px;
    font-family: var(--font-serif);
    font-size: 54px;
    font-weight: 400;
    color: var(--heading);
}

.about-content p {
    margin: 0;
    font-size: 21px;
    line-height: 1.75;
    color: var(--text-mid);
}

.about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ============================================================
   О НАС (СТРАНИЦА)
   ============================================================ */
.about-page {
    width: var(--container);
    margin: 0 auto;
    padding: 80px 0 120px;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 60px;
    align-items: flex-start;
}

.about-page-content {
    background: var(--white);
    padding: 52px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-page-content h1 {
    margin: 0 0 28px;
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 400;
    color: var(--heading);
}

.about-page-content p {
    margin: 0;
    font-size: 22px;
    line-height: 1.75;
    color: var(--text-mid);
}

.about-page-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts-page {
    min-height: 100vh;
    background: var(--bg);
}

.contacts-hero {
    width: var(--container);
    margin: 0 auto;
    padding: 80px 0 44px;
}

.contacts-hero h1 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 400;
    color: var(--heading);
}

.contacts-hero p {
    margin: 0;
    max-width: 760px;
    font-size: 24px;
    line-height: 1.5;
    color: var(--text-muted);
}

.contacts-layout {
    width: var(--container);
    margin: 0 auto;
    padding-bottom: 110px;
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 40px;
    align-items: stretch;
}

.contacts-card {
    background: var(--white);
    padding: 38px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contacts-card h2 {
    margin: 0 0 24px;
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    color: var(--heading);
}

.contacts-list {
    display: grid;
    gap: 18px;
    margin-bottom: 38px;
}

.contacts-list div {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.contacts-list span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-hint);
    font-size: 15px;
}

.contacts-list strong {
    display: block;
    font-size: 22px;
    color: var(--teal);
}

.contacts-list strong a {
    color: inherit;
    text-decoration: none;
}

.contacts-list strong a:hover {
    text-decoration: underline;
}

.how-to-get {
    margin: 0;
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-mid);
}

.contacts-map {
    overflow: hidden;
    min-height: 560px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: 0;
    display: block;
}

.dg-map-container {
    position: relative;
    min-height: 600px;
}

.dg-map-container>ymaps,
.dg-map-container>div,
.dg-map-container iframe {
    width: 100%;
    min-height: 600px;
}

/* ============================================================
   СООБЩЕНИЯ
   ============================================================ */
.messages-block {
    width: var(--container);
    margin: 40px auto 0;
}

.site-message {
    padding: 20px 26px;
    border-radius: 18px;
    font-size: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.site-message.success {
    border-left: 6px solid var(--green-strong);
}

.site-message.error {
    border-left: 6px solid var(--red-error);
}

/* ============================================================
   ФОРМА БРОНИРОВАНИЯ
   ============================================================ */
.booking-section {
    width: var(--container);
    margin: 70px auto 120px;
}

.booking-card {
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.booking-card h2 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 46px;
    font-weight: 400;
    color: var(--heading);
}

.booking-card p {
    margin: 0 0 34px;
    max-width: 720px;
    font-size: 20px;
    line-height: 1.55;
    color: var(--text-muted);
}

.booking-form {
    display: grid;
    gap: 28px;
}

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

.form-field {
    display: grid;
    gap: 8px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 16px;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    font-size: 18px;
    font-family: var(--font-sans);
    color: var(--text);
}

.form-field textarea {
    resize: vertical;
}

.form-help {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-hint);
}

.booking-submit {
    justify-self: start;
    padding: 18px 34px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--teal);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.booking-submit:hover {
    background: var(--teal-dark);
}

.booking-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.booking-warning {
    min-height: 28px;
    font-size: 17px;
    font-weight: 600;
    color: var(--red-error);
}

/* Сводка бронирования (в форме) */
.booking-summary {
    margin: 26px 0;
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1px solid rgba(47, 79, 79, .12);
}

.booking-summary h3 {
    margin: 0 0 16px;
    font-size: 22px;
    color: var(--teal);
}

.booking-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(47, 79, 79, .1);
}

.booking-summary-row:last-of-type {
    border-bottom: 0;
}

.booking-summary-row[hidden] {
    display: none;
}


.booking-summary-row span {
    color: var(--text-muted);
}

.booking-summary-row strong {
    color: var(--heading);
}

.booking-summary-note {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-hint);
}

/* ============================================================
   СТРАНИЦА БРОНИРОВАНИЯ (детали брони)
   ============================================================ */
.booking-page {
    width: min(900px, 92%);
    margin: 80px auto 120px;
}

.booking-page-card {
    background: var(--white);
    border-radius: 34px;
    padding: 48px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .08);
}

.booking-status {
    margin-bottom: 26px;
}

.status-pending,
.status-confirmed,
.status-cancelled {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
}

.status-pending {
    background: var(--pending-bg);
    color: var(--pending-text);
}

.status-confirmed {
    background: var(--green-bg);
    color: var(--green-strong);
}

.status-cancelled {
    background: #f6d7d7;
    color: var(--red-strong);
}

.booking-page-card h1 {
    margin: 0 0 36px;
    font-size: 46px;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text);
}

/* Строки данных брони */
.booking-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-alt);
}

.booking-row span {
    color: var(--text-muted);
    font-size: 18px;
}

.booking-row strong {
    color: var(--teal);
    font-size: 20px;
}

.booking-prepayment strong {
    font-size: 28px;
}

.booking-actions {
    display: grid;
    gap: 18px;
    margin-top: 40px;
}

.booking-pay-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 62px;
    border-radius: var(--radius-pill);
    background: var(--teal);
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.booking-pay-button.disabled {
    opacity: .45;
    cursor: not-allowed;
}

.booking-home-link {
    text-align: center;
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
}

/* ============================================================
   СТРАНИЦА ПОДТВЕРЖДЕНИЯ БРОНИ
   ============================================================ */
.booking-confirm-page {
    min-height: calc(100vh - 86px);
    padding: 80px 20px 120px;
    background: var(--bg);
}

.booking-confirm-card {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 52px;
    border-radius: 34px;
    background: var(--white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .10);
}

.booking-confirm-badge {
    display: inline-flex;
    margin-bottom: 26px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--pending-bg);
    color: var(--pending-text);
    font-size: 15px;
    font-weight: 700;
}

.booking-confirm-card h1 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 54px;
    font-weight: 400;
    color: var(--heading);
}

.booking-confirm-lead {
    max-width: 680px;
    margin: 0 0 34px;
    font-size: 21px;
    line-height: 1.55;
    color: var(--text-muted);
}

.booking-confirm-house {
    margin-bottom: 28px;
    padding: 22px 26px;
    border-radius: var(--radius-md);
    background: var(--bg);
    font-family: var(--font-serif);
    font-size: 34px;
    color: var(--teal);
}

.booking-confirm-grid {
    display: grid;
    gap: 16px;
}

.booking-confirm-grid div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.booking-confirm-grid span {
    font-size: 18px;
    color: var(--text-faint);
}

.booking-confirm-grid strong {
    font-size: 20px;
    color: var(--teal);
    text-align: right;
}

.booking-confirm-prepay strong {
    font-size: 30px;
}

.booking-confirm-actions {
    display: grid;
    gap: 18px;
    margin-top: 42px;
}

.booking-confirm-pay {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 64px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--teal);
    color: white;
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
}

.booking-confirm-pay.disabled {
    opacity: .45;
    cursor: not-allowed;
}

.booking-confirm-home {
    text-align: center;
    color: var(--teal);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

/* ============================================================
   БЛОК ОПЛАТЫ
   ============================================================ */
.booking-payment-section {
    margin-top: 42px;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--bg);
}

.booking-payment-section h2 {
    margin: 0 0 18px;
    font-size: 34px;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--teal);
}

.booking-payment-text {
    margin: 0 0 28px;
    font-size: 19px;
    line-height: 1.55;
    color: var(--text-muted);
}

.booking-payment-card {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.booking-payment-qr {
    width: 260px;
    height: 260px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.booking-payment-info {
    display: grid;
    gap: 18px;
}

.booking-payment-info span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-faint);
    font-size: 15px;
}

.booking-payment-info strong {
    font-size: 22px;
    color: var(--teal);
}

.booking-payment-instructions {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--white);
    line-height: 1.7;
    color: var(--text-subtle);
}

/* ============================================================
   ДОСТУПНОСТЬ — ГЛАВНАЯ (календарь-месяцы)
   ============================================================ */
.home-availability {
    padding: 50px 0 40px;
    background: var(--bg);
}

/* Устаревший вариант (полоска дат) — оставлен для совместимости */
.home-availability-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 12px;
}

.home-date {
    min-height: 76px;
    border-radius: 18px;
    text-decoration: none;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
}

.home-date span {
    font-size: 24px;
    font-weight: 700;
}

.home-date small {
    font-size: 13px;
    text-transform: uppercase;
}

.home-date.available {
    background: var(--green-bg);
    color: var(--green-text);
}

.home-date.available:hover {
    background: var(--green-hover);
}

.home-date.busy {
    background: var(--red-bg);
    color: var(--red-text);
    opacity: .65;
}

.home-availability-text {
    max-width: 1200px;
    margin: 0 0 34px;
    font-size: 20px;
    line-height: 1.55;
    color: var(--text-muted);
}

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

.home-month-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
}

.home-month-card h3 {
    margin: 0 0 22px;
    font-size: 28px;
    color: var(--teal);
}

.home-month-weekdays,
.home-month-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 9px;
}

.home-month-weekdays {
    margin-bottom: 10px;
}

.home-month-weekdays span {
    text-align: center;
    font-size: 14px;
    color: var(--text-faint);
}

.home-month-day {
    height: 48px;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--teal-light);
}

.home-month-day-num {
    font-size: 16px;
    line-height: 1;
}

.home-month-day-price {
    font-size: 9px;
    line-height: 1;
    opacity: .75;
}

.home-month-day.available.has-discount {
    background: #e9c46a;
    color: #3a2f1a;
}

.home-month-day.available {
    background: var(--green-bg);
}

.home-month-day.available:hover {
    background: var(--green-hover);
}

.home-month-day.busy {
    background: var(--red-bg);
    color: var(--red-text);
    opacity: .7;
}

.home-month-day.empty {
    background: transparent;
}

/* ============================================================
   ДОСТУПНОСТЬ — СТРАНИЦА
   ============================================================ */
.availability-page {
    min-height: 100vh;
    background: var(--bg);
}

.availability-hero {
    padding: 70px 0 36px;
}

.availability-hero h1 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 58px;
    font-weight: 400;
    color: var(--heading);
}

.availability-hero p {
    max-width: 860px;
    margin: 0;
    font-size: 21px;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Секция карточек */
.availability-section {
    width: var(--container);
    margin: 70px auto 0;
}

.availability-card {
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.availability-card h2 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 46px;
    font-weight: 400;
    color: var(--heading);
}

.availability-card p {
    margin: 0 0 28px;
    max-width: 860px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-muted);
}

.availability-cards-section {
    padding: 24px 0 120px;
}

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

.availability-house-card-v2 {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.availability-house-image-v2 {
    display: block;
    overflow: hidden;
}

.availability-house-image-v2 img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

.availability-house-body-v2 {
    padding: 28px;
}

.availability-house-body-v2 h2 {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    color: var(--heading);
}

.availability-house-body-v2 p {
    margin: 0 0 18px;
    font-size: 18px;
    color: var(--text-muted);
}

.availability-card-price {
    margin-bottom: 26px;
    font-size: 25px;
    font-weight: 700;
    color: var(--teal);
}

.availability-house-body-v2 .availability-legend {
    margin-top: 22px;
}

/* Статус доступности */
.availability-status {
    display: inline-flex;
    align-items: center;
    margin: 0 0 24px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
}

.availability-status.available {
    background: var(--green-bg);
    color: var(--green-text);
}

.availability-status.busy {
    background: var(--red-bg);
    color: var(--red-text);
}

.availability-hint {
    margin: 20px 0 0;
    font-size: 15px;
    color: var(--text-muted);
}

/* Мини-календарь */
.availability-mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.availability-mini-day {
    min-height: 54px;
    border-radius: 13px;
    text-decoration: none;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
}

.availability-mini-day span {
    font-size: 18px;
    font-weight: 700;
}

.availability-mini-day small {
    font-size: 10px;
    text-transform: uppercase;
}

.availability-mini-day.available {
    background: var(--green-bg);
    color: var(--green-text);
}

.availability-mini-day.available:hover {
    background: var(--green-hover);
}

.availability-mini-day.busy {
    background: var(--red-bg);
    color: var(--red-text);
    opacity: .75;
}

.availability-mini-day.selected {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

/* Strip (полоска дат) */
.availability-houses {
    padding: 24px 0 110px;
}

.availability-house-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    margin-bottom: 34px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.availability-house-photo {
    display: block;
    overflow: hidden;
    border-radius: 24px;
}

.availability-house-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.availability-house-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
}

.availability-house-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.availability-house-top h2 {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 400;
    color: var(--heading);
}

.availability-house-top p {
    margin: 0;
    font-size: 18px;
    color: var(--text-muted);
}

.availability-house-price {
    flex: 0 0 auto;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: var(--gold-text);
    font-size: 20px;
    font-weight: 700;
}

.availability-strip {
    display: grid;
    grid-template-columns: repeat(31, minmax(42px, 1fr));
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.availability-strip-day {
    min-width: 42px;
    min-height: 58px;
    border-radius: 14px;
    text-decoration: none;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
}

.availability-strip-day span {
    font-size: 18px;
    font-weight: 700;
}

.availability-strip-day small {
    font-size: 10px;
    text-transform: uppercase;
}

.availability-strip-day.available {
    background: var(--green-bg);
    color: var(--green-text);
}

.availability-strip-day.available:hover {
    background: var(--green-hover);
}

.availability-strip-day.busy {
    background: var(--red-bg);
    color: var(--red-text);
    opacity: .7;
}

.availability-strip-day.selected {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

/* Легенда */
.availability-legend {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 15px;
    color: var(--text-muted);
}

.availability-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Старый календарь (availability.html) */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 36px;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--text-mid);
}

.calendar-legend i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
}

.legend-free,
.legend-busy,
.legend-sale {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-free {
    background: var(--green-bg);
}

.legend-busy {
    background: #d96a6a;
}

.legend-sale {
    background: #e9c46a;
}

.mini-calendar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.calendar-month {
    padding: 24px;
    border-radius: 24px;
    background: var(--bg-light);
}

.calendar-month h3 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
    color: var(--teal);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-faint);
}

.calendar-day {
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.calendar-day.available {
    background: var(--green-bg);
    color: var(--green-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(47, 79, 79, .14);
    border: 1px solid rgba(47, 79, 79, .12);
    transition: .2s;
}

.calendar-day.available:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(47, 79, 79, .18);
}

.calendar-day.busy {
    background: var(--red-busy);
    color: white;
}

.calendar-day.past {
    opacity: .35;
    cursor: default;
}

.calendar-day.empty {
    background: transparent;
}

/* ============================================================
   ЮРИДИЧЕСКИЕ ДОКУМЕНТЫ
   ============================================================ */
.legal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-subtle);
}

.legal-checkbox input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.legal-checkbox a {
    color: var(--teal);
    font-weight: 700;
}

.legal-page {
    min-height: 100vh;
    padding: 70px 20px 120px;
    background: var(--bg);
}

.legal-card {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 52px;
    border-radius: 34px;
    background: var(--white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .08);
}

.legal-card h1 {
    margin: 0 0 34px;
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    color: var(--heading);
}

.legal-text {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-subtle);
}

/* ============================================================
   СТРАНИЦА ОШИБОК
   ============================================================ */
.error-page {
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-card {
    width: min(720px, 100%);
    padding: 56px;
    border-radius: 34px;
    background: var(--white);
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .1);
}

.error-code {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
}

.error-card h1 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 54px;
    font-weight: 400;
    color: var(--heading);
}

.error-card p {
    max-width: 520px;
    margin: 0 auto 34px;
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-muted);
}

.error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 34px;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: var(--gold-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;
}

.error-button:hover {
    background: var(--gold-dark);
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
@media (max-width: 1100px) {
    .topbar {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 28px 36px;
    }

    .logo {
        font-size: 30px;
        white-space: nowrap;
        line-height: 1.1;
    }

    .mobile-menu-button {
        position: relative;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-button span {
        display: block;
        width: 34px;
        height: 4px;
        border-radius: var(--radius-pill);
        background: white;
    }

    .menu {
        position: absolute;
        top: 86px;
        left: 36px;
        right: 36px;
        width: auto;
        z-index: 1000;
        display: none;
        padding: 22px;
        border-radius: 24px;
        background: rgba(0, 0, 0, .58);
        backdrop-filter: blur(14px);
        gap: 20px;
    }

    .menu.is-open {
        display: grid;
    }

    .menu a {
        padding: 16px 8px;
        font-size: 26px;
        font-weight: 600;
    }

    .phone {
        display: none;
    }

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

    .home-months-grid {
        grid-template-columns: 1fr;
    }

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

    .availability-house-image-v2 img {
        height: 260px;
    }
}

/* ============================================================
   ПЛАНШЕТ (≤900px)
   ============================================================ */
@media (max-width: 900px) {
    .section-container h2 {
        margin-bottom: 24px;
        font-size: 40px;
    }

    /* Герой */
    .hero-content h1 {
        font-size: 48px;
        line-height: 1.08;
    }

    .hero-content p {
        font-size: 20px;
    }

    .hero-button {
        width: 260px;
        text-align: center;
    }

    /* Домик */
    .house-hero {
        display: block;
        padding-top: 46px;
    }

    .house-hero h1 {
        font-size: 48px;
    }

    .house-price {
        display: inline-block;
        margin-top: 20px;
        padding: 16px 24px;
    }

    .house-gallery {
        grid-template-columns: 1fr;
    }

    .house-gallery img,
    .house-gallery img:first-child {
        height: 260px;
        grid-row: auto;
    }

    .house-info {
        grid-template-columns: 1fr;
    }

    .price-row {
        flex-direction: column;
    }

    /* Экскурсии */
    .excursions-grid {
        grid-template-columns: 1fr;
    }

    .excursion-card img {
        height: 250px;
    }

    /* О нас */
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 32px;
    }

    .about-content h2 {
        font-size: 40px;
    }

    .about-content p {
        font-size: 18px;
    }

    .about-image img {
        height: 320px;
    }

    .about-page {
        grid-template-columns: 1fr;
        padding: 44px 0 80px;
    }

    .about-page-content {
        padding: 32px;
    }

    .about-page-content h1 {
        font-size: 44px;
    }

    .about-page-content p {
        font-size: 18px;
    }

    .about-page-image img {
        height: 330px;
    }

    /* Контакты */
    /* Контакты */
    .contacts-hero {
        padding: 32px 0 24px;
    }

    .contacts-hero h1 {
        font-size: 35px;
        line-height: 1.05;
    }

    .contacts-hero p {
        font-size: 20px;
        line-height: 1.5;
    }

    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contacts-card {
        padding: 28px 28px;
        border-radius: 24px;
    }

    .contacts-card h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .contacts-list span {
        font-size: 15px;
    }

    .contacts-list strong {
        font-size: 22px;
    }

    .how-to-get {
        font-size: 18px;
        line-height: 1.7;
    }

    .contacts-map,
    .contacts-map iframe {
        min-height: 420px;
        height: 420px;
        border-radius: 24px;
    }

    /* Availability */
    .availability-hero h1 {
        font-size: 42px;
    }

    .availability-card {
        padding: 18px;
    }

    .availability-card h2 {
        font-size: 36px;
    }

    .availability-house-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .availability-house-photo img {
        height: 240px;
    }

    .availability-house-top {
        display: block;
    }

    .availability-house-price {
        display: inline-block;
        margin-top: 16px;
    }

    .availability-strip {
        grid-template-columns: repeat(31, 44px);
    }

    .mini-calendar {
        grid-template-columns: 1fr;
    }

    .calendar-month {
        padding: 18px;
    }

    .calendar-day {
        height: auto;
        aspect-ratio: 1;
    }

    .calendar-day-num {
        font-size: 13px;
    }

    .calendar-day-price {
        font-size: 8px;
    }
}

/* ============================================================
   МОБИЛЬНЫЙ (≤800px) — формы
   ============================================================ */
@media (max-width: 800px) {
    .booking-card {
        padding: 30px;
    }

    .booking-card h2 {
        font-size: 36px;
    }

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

    .booking-submit {
        width: 100%;
    }
}

/* ============================================================
   МОБИЛЬНЫЙ (≤700px)
   ============================================================ */
@media (max-width: 700px) {
    .logo {
        font-size: 28px;
    }

    .house-card img {
        height: 280px;
    }

    .hero-content {
        padding-top: 160px;
    }

    .hero-content h1 {
        font-size: 52px;
        line-height: 1.08;
    }

    .hero-content p {
        font-size: 21px;
        line-height: 1.45;
    }

    /* Лайтбокс */
    .lightbox-nav {
        width: 58px;
        height: 58px;
        font-size: 52px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    /* Брони */
    .booking-page-card {
        padding: 30px;
    }

    .booking-page-card h1 {
        font-size: 34px;
    }

    .booking-row {
        flex-direction: column;
        gap: 8px;
    }

    .booking-confirm-page {
        padding-top: 40px;
    }

    .booking-confirm-card {
        padding: 30px;
    }

    .booking-confirm-card h1 {
        font-size: 38px;
    }

    .booking-confirm-house {
        font-size: 28px;
    }

    .booking-confirm-grid div {
        display: grid;
        gap: 8px;
    }

    .booking-confirm-grid strong {
        text-align: left;
    }

    .booking-payment-section {
        padding: 24px;
    }

    .booking-payment-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-payment-qr {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    /* Юридические */
    .legal-card {
        padding: 30px;
    }

    .legal-card h1 {
        font-size: 34px;
    }

    /* Ошибки */
    .error-card {
        padding: 36px 24px;
    }

    .error-card h1 {
        font-size: 36px;
    }

    .error-card p {
        font-size: 17px;
    }

    /* Доступность */
    .home-availability {
        padding: 40px 0 20px;
    }

    .houses-preview {
        padding: 40px 0 30px;
    }


    .home-months-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-month-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .home-month-card h3 {
        font-size: 24px;
    }

    .home-month-weekdays,
    .home-month-days {
        gap: 6px;
    }

    .home-month-day {
        height: 42px;
        border-radius: 11px;
        font-size: 15px;
    }

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

    .availability-house-image-v2 img {
        height: 230px;
    }

    .availability-house-body-v2 {
        padding: 22px;
    }

    .availability-house-body-v2 h2 {
        font-size: 34px;
    }

    .availability-mini-calendar {
        gap: 6px;
    }

    .availability-mini-day {
        min-height: 46px;
        border-radius: 10px;
    }

    .availability-mini-day span {
        font-size: 15px;
    }

    .availability-mini-day small {
        font-size: 9px;
    }

    .house-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .house-gallery img {
        height: 180px;
    }

    .house-gallery img:first-child {
        grid-row: auto;
        height: 180px;
    }

    .house-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* ============================================================
   О НАС
   ============================================================ */
.about-wrap {
    width: var(--container);
    margin: 0 auto;
}

.about-title {
    margin: 60px auto 32px;
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 400;
    color: var(--heading);
}

.about-main-photo img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 30px;
    display: block;
    box-shadow: var(--shadow-xl);
    cursor: zoom-in;
    margin-bottom: 40px;
}

.about-text-card {
    background: white;
    padding: 48px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 60px;
}

.about-text-card p {
    margin: 0;
    font-size: 21px;
    line-height: 1.75;
    color: var(--text-mid);
}

.about-gallery {
    margin-bottom: 80px;
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.about-gallery-grid .gallery-item {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.about-gallery-grid img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 22px;
}

@media (max-width: 900px) {
    .about-title {
        font-size: 48px;
        margin: 44px auto 24px;
    }

    .about-main-photo img {
        height: 260px;
    }

    .about-text-card {
        padding: 20px;
    }

    .about-text-card p {
        font-size: 15px;
    }
}

@media (max-width: 700px) {
    .about-title {
        font-size: 36px;
        margin: 32px auto 20px;
    }

    * центральное фото мобила * .about-main-photo img {
        height: 250px;
        border-radius: 20px;
    }

    .about-text-card {
        padding: 20px;
        border-radius: 22px;
        margin-bottom: 32px;
    }

    .about-text-card p {
        font-size: 15px;
        line-height: 1.75;
    }


    .about-gallery-grid .gallery-item {
        display: block;
        width: 100%;
    }

    .about-gallery-grid img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
        border-radius: 22px;
    }
}


.calendar-day.range-start,
.calendar-day.range-end {
    background: var(--teal);
    color: white;
    font-weight: 700;
}

.calendar-day.range-selected {
    background: var(--green-hover);
    color: var(--teal);
}

.home-about {
    padding: 20px 0 30px;
    background: var(--bg);
}

.home-about-wrap {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.home-about h2 {
    margin: 0 0 34px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 400;
    color: var(--heading);
}

.home-about-image {
    margin-bottom: 34px;
}

.home-about-image img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
}

.home-about-text {
    font-size: 22px;
    line-height: 1.75;
    color: var(--text-mid);

}

.home-about-link {
    margin: 24px 0 0;
}

.home-about-link a {
    color: var(--teal);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.home-about-link a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .home-about {
        padding: 16px 0 16px;
    }

    .home-about h2 {
        font-size: 44px;
        margin-bottom: 20px;
    }

    .home-about-image img {
        height: 260px;
        border-radius: 24px;
    }

    .home-about-text {
        font-size: 18px;
        line-height: 1.65;
    }

    .home-about-link a {
        font-size: 18px;
    }
}


.houses-preview h2 {
    font-size: 54px;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 50px;
}

@media (max-width: 700px) {
    .houses-preview h2 {
        font-size: 22px;
        line-height: 1.15;
    }
}

.availability-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.availability-weekdays span {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-faint);
}

.availability-empty-day {
    min-height: 54px;
}


/* ============================================================
   ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ (TOAST)
   ============================================================ */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(560px, 92%);
}

.toast {
    position: relative;
    padding: 20px 52px 20px 26px;
    border-radius: 18px;
    font-size: 17px;
    line-height: 1.45;
    background: white;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    animation: toast-in .3s ease;
}

.toast.success {
    border-left: 6px solid var(--green-strong);
}

.toast.error {
    border-left: 6px solid var(--red-error);
}

.toast-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.toast.fade-out {
    animation: toast-out .4s ease forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-16px);
    }
}

/* ============================================================
   ПЛАВАЮЩАЯ КНОПКА КОНТАКТОВ
   ============================================================ */
.float-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.float-contact-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
    transition: transform .2s, background .2s;
}

.float-contact-button:hover {
    transform: translateY(-2px);
    background: var(--teal-dark);
}

.float-contact-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: 18px;
    font-weight: 800;
}

.float-contact-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s;
}

.float-contact.is-open .float-contact-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.float-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e7c98f, #cfa866);
    color: var(--gold-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    transition: transform .2s;
}

.float-contact-item:hover {
    transform: translateY(-2px);
}

.float-contact-icon {
    font-size: 20px;
}

.float-contact-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.float-contact-label {
    white-space: nowrap;
}


@media (max-width: 700px) {
    .float-contact {
        right: 16px;
        bottom: 16px;
    }

    .float-contact-button-text {
        display: none;
    }

    .float-contact-button {
        padding: 16px;
    }

    .float-contact-button-icon {
        width: 24px;
        height: 24px;
    }

    /* Кружочки только с иконкой */
    .float-contact-item {
        width: 54px;
        height: 54px;
        padding: 0;
        justify-content: center;
    }

    .float-contact-label {
        display: none;
    }
}

/* ============================================================
   ШАПКА ДОМИКА — КНОПКА + ЦЕНА
   ============================================================ */
.house-hero-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.house-book-button {
    padding: 20px 28px;
    border-radius: var(--radius-pill);
    background: var(--teal);
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}

.house-book-button:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
}

/* ============================================================
   ХАРАКТЕРИСТИКИ — БЛОК НА ВСЮ ШИРИНУ
   ============================================================ */
.house-specs {
    width: var(--container);
    margin: 70px auto 0;
    background: white;
    padding: 42px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.house-specs h2 {
    margin: 0 0 24px;
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    color: var(--heading);
}

.house-specs h3 {
    margin: 28px 0 16px;
    font-size: 26px;
    color: var(--teal);
}

.house-specs-list,
.house-amenities-list {
    margin: 0;
    padding-left: 22px;
    font-size: 20px;
    line-height: 1.9;
    color: var(--text-mid);
    columns: 2;
}

/* ============================================================
   О ДОМЕ — БЛОК НА ВСЮ ШИРИНУ
   ============================================================ */
.house-about {
    width: var(--container);
    margin: 32px auto 0;
    background: white;
    padding: 42px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.house-about h2 {
    margin: 0 0 24px;
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    color: var(--heading);
}

.house-about p {
    margin: 0;
    font-size: 21px;
    line-height: 1.7;
    color: var(--text-mid);
}

/* ============================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ СТРАНИЦЫ ДОМИКА
   ============================================================ */
@media (max-width: 900px) {
    .house-hero-actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .house-about,
    .house-specs {
        width: 96%;
        padding: 22px;
    }

    .season-prices,
    .availability-section {
        width: 96%;
        margin: 70px auto 0;
    }

    .house-specs-list,
    .house-amenities-list {
        columns: 1;
    }
}

@media (max-width: 700px) {
    .house-book-button {
        font-size: 20px;
        padding: 16px 24px;
    }

    .house-specs h2,
    .house-about h2 {
        font-size: 32px;
    }

    .house-specs-list,
    .house-amenities-list {
        font-size: 17px;
        line-height: 1.7;
    }

    .house-about p {
        font-size: 18px;
        line-height: 1.7;
    }

    /* Сезонные цены — ужать промежуток, крупнее шрифт */
    .season-prices .price-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        font-size: 17px;
    }

    /* Занятость — одна колонка */
    /* Календарь — на всю ширину карточки */
    .mini-calendar {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .calendar-month {
        width: 100%;
        padding: 16px;
    }

    .calendar-grid {
        gap: 6px;
    }

    .calendar-day {
        height: auto;
        aspect-ratio: 1;
        border-radius: 10px;
        gap: 1px;
    }

    .calendar-day-num {
        font-size: 13px;
    }

    .calendar-day-price {
        font-size: 8px;
    }

    .calendar-weekday {
        font-size: 12px;
    }

    /* Форма бронирования — шире, меньше полей по бокам */
    .booking-section {
        width: 96%;
    }

    .booking-card {
        padding: 24px;
    }

    /* шапка в мобилке*/

    .inner-header {
        padding: 16px 5%;
        min-height: 150px;
        background-position: center 35%;
    }

    .inner-logo {
        font-size: 20px;
        white-space: nowrap;
    }

    .inner-back {
        font-size: 0;
    }

    .inner-back::before {
        content: "←";
        font-size: 26px;
    }
}

/* ============================================================
   БАННЕР ВНУТРЕННИХ СТРАНИЦ
   ============================================================ */
.page-banner {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.page-banner img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

@media (max-width: 700px) {
    .page-banner img {
        height: 160px;
    }
}

/* видео в галерею домиков*/

.gallery-video {
    position: relative;
}

.gallery-video video,
.gallery-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: white;
    font-size: 26px;
    padding-left: 4px;
    pointer-events: none;
}


.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.calendar-day-num {
    font-size: 15px;
    line-height: 1;
}

.calendar-day-price {
    font-size: 9px;
    line-height: 1;
    opacity: .75;
}

.calendar-day.has-discount {
    background: #e9c46a;
    color: #3a2f1a;
}

.calendar-day.has-discount .calendar-day-price {
    opacity: .9;
    font-weight: 600;
}


.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}


.availability-mini-day span.availability-mini-price {
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    opacity: .75;
    margin-top: 1px;
}

.availability-mini-day.has-discount {
    background: #e9c46a;
    color: #3a2f1a;
}

.availability-mini-day.has-discount .availability-mini-price {
    opacity: .9;
    font-weight: 600;
}

/* Шапка-баннер страницы акций */

.promotions-heading {
    max-width: 920px;
    margin: 0 auto;
    padding: 50px 20px 0;
    text-align: center;
}

.promotions-heading h1 {
    font-size: 48px;
    color: var(--teal);
    margin: 0 0 10px;
}

.promotions-heading p {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0;
}

.promo-header-title h1 {
    color: #fff;
    font-size: 48px;
    margin: 0 0 8px;
}

.promo-header-title p {
    color: rgba(255, 255, 255, .85);
    font-size: 18px;
    margin: 0;
}

.promotions-section {
    max-width: 920px;
    margin: 0 auto;
    padding: 30px 20px 90px;
}

.promotions-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.promo-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(47, 79, 79, .1);
    border: 1px solid rgba(47, 79, 79, .08);
}

.promo-photo {
    position: relative;
    background: #f2ede4;
    text-align: center;
}

.promo-photo img {
    display: block;
    width: 100%;
    height: auto;
}



.promo-card::before {
    content: "";
    width: 8px;
    background: #e9c46a;
    flex-shrink: 0;
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e9c46a;
    color: #3a2f1a;
    font-weight: 800;
    font-size: 24px;
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(233, 196, 106, .4);
}

.promo-badge-nophoto {
    top: 24px;
    right: 24px;
}


.promo-card-body {
    padding: 28px 36px 32px;
}

.promo-card-body h2 {
    font-size: 28px;
    margin: 0 0 14px;
    color: var(--teal);
}

.promo-dates {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 8px;
}

.promo-countdown {
    color: #c1440e;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 18px;
}

.promo-text {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 26px;
    color: var(--text-dark, #2f4f4f);
}

.promo-button {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    padding: 15px 36px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    transition: .2s;
}

.promo-button:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
}

.promotions-empty {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    padding: 80px 0;
}

@media (max-width: 700px) {
    .promo-header {
        min-height: 220px;
    }

    .promo-header-title h1 {
        font-size: 32px;
    }

    .promo-header-title p {
        font-size: 15px;
    }


    .promo-card-body {
        padding: 20px 24px 28px;
    }

    .promo-card-body h2 {
        padding-right: 70px;
        font-size: 24px;
    }

    .promotions-heading h1 {
        font-size: 32px;
    }

    .promotions-heading p {
        font-size: 15px;
    }

}

/* баннер промо*/

.float-promo {
    position: fixed;
    left: 20px;
    top: 113px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: #e9c46a;
    color: #3a2f1a;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    transition: transform .2s, box-shadow .2s;
    line-height: 1.3;
}

.float-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

.float-promo strong {
    font-size: 20px;
}

.float-promo span {
    font-size: 13px;
}

@media (max-width: 700px) {
    .float-promo {
        left: 14px;
        top: 75px;
        padding: 12px 14px;
    }

    .float-promo strong {
        font-size: 14px;
    }

    .float-promo span {
        font-size: 12px;
    }
}