/* -------------------------------------------------------------
 * STYLE SYSTEM FOR NAROCH-DOM.BY (QUIET LUXURY & ECO-MINIMALISM)
 * BEM Methodology compliant, mobile-first design.
 * ------------------------------------------------------------- */

/* Variables & Design System */
:root {
    /* Harmonious Color Palette */
    --color-bg-base: #FBFBF9;
    /* Soft alabaster cream */
    --color-bg-card: #FFFFFF;
    /* Pure white */
    --color-bg-light: #F4F5F2;
    /* Off-white / light slate */
    --color-primary: #1C2E24;
    /* Deep evergreen forest */
    --color-secondary: #8F9779;
    /* Sage / moss green */
    --color-accent: #C4A484;
    /* Warm light wood */
    --color-text-main: #2D3E35;
    /* Dark charcoal green */
    --color-text-muted: #6A7B72;
    /* Slate green */
    --color-border: #E1E3DE;
    /* Very light olive gray */
    --color-overlay: rgba(28, 46, 36, 0.45);
    /* Forest dark overlay */
    --color-error: #A24A3D;
    /* Earthy brick red */
    --color-success: #3E7A5A;
    /* Deep emerald green */

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 12px rgba(28, 46, 36, 0.04);
    --shadow-md: 0 12px 30px rgba(28, 46, 36, 0.08);
    --shadow-lg: 0 20px 48px rgba(28, 46, 36, 0.12);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Layout */
    --container-width: 1200px;
    --container-narrow: 800px;
    --header-height: 80px;
}

/* Reset & Global Rules */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* Common Components */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section-padding {
    padding: 50px 0;
    /* Reduced from 80px for a more compact and connected flow */
}

@media (min-width: 992px) {
    .section-padding {
        padding: 80px 0;
        /* Reduced from 120px for high-end modern breathing room */
    }
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}

.section-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border: 1px solid var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(143, 151, 121, 0.3);
}

.btn--primary:disabled,
.btn--primary[disabled] {
    background-color: var(--color-border) !important;
    border-color: var(--color-border) !important;
    color: rgba(28, 46, 36, 0.3) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn--outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn--outline-white {
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    background: transparent;
}

.btn--outline-white:hover {
    background-color: #FFFFFF;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.btn__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 0.8s linear infinite;
}

.hidden {
    display: none !important;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #FFFFFF;
}

.header--static {
    position: relative;
    background-color: var(--color-bg-base);
    border-bottom: 1px solid rgba(225, 227, 222, 0.5);
    color: var(--color-text-main);
}

.header--scrolled {
    background-color: rgba(251, 251, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(225, 227, 222, 0.5);
    box-shadow: 0 4px 20px rgba(14, 25, 20, 0.05);
    color: var(--color-text-main);
}

.header__container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.header__logo:hover {
    transform: scale(1.02);
}

.header__logo-svg {
    color: #FFFFFF;
    transition: color 0.4s ease, transform 0.4s ease;
}

.header:hover .header__logo-svg,
.header--scrolled .header__logo-svg,
.header--static .header__logo-svg {
    transform: rotate(5deg) scale(1.05);
}

.header--scrolled .header__logo-svg,
.header--static .header__logo-svg {
    color: var(--color-primary);
}

.header__logo-text {
    display: flex;
    flex-direction: column;
}

.header__logo-main {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    line-height: 1.1;
    transition: color 0.4s ease;
}

.header--scrolled .header__logo-main,
.header--static .header__logo-main {
    color: var(--color-primary);
}

.header__logo-sub {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: color 0.4s ease;
}

.header--scrolled .header__logo-sub,
.header--static .header__logo-sub {
    color: var(--color-secondary);
}

@media (max-width: 991px) {
    .header__logo-sub {
        display: none;
    }
}

/* Mobile responsive adjustments for header and logo */
@media (max-width: 768px) {
    .header__logo-main {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .header__logo {
        gap: 8px;
    }

    .header__logo-main {
        font-size: 1.1rem;
    }

    .header__actions {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header__logo-text {
        display: none;
    }
}

.header__nav {
    display: none;
    /* Mobile first hidden */
}

@media (min-width: 992px) {
    .header__nav {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}

.header__nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: color 0.4s ease;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #FFFFFF;
    transition: var(--transition);
}

.header--scrolled .header__nav-link::after,
.header--static .header__nav-link::after {
    background-color: var(--color-secondary);
}

.header__nav-link:hover {
    color: #FFFFFF;
}

.header--scrolled .header__nav-link,
.header--static .header__nav-link {
    color: var(--color-text-main);
}

.header--scrolled .header__nav-link:hover,
.header--static .header__nav-link:hover {
    color: var(--color-secondary);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
    width: 100%;
}

.header__nav-link.active {
    color: #FFFFFF !important;
}

.header--scrolled .header__nav-link.active,
.header--static .header__nav-link.active {
    color: var(--color-secondary) !important;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn--header {
    display: none;
}

@media (min-width: 768px) {
    .btn--header {
        display: inline-flex;
    }
}

/* Burger Button */
.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 110;
}

@media (min-width: 992px) {
    .header__burger {
        display: none;
    }
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    transition: var(--transition);
}

.header--scrolled .header__burger span,
.header--static .header__burger span {
    background-color: var(--color-primary);
}

.header__burger.active span {
    background-color: #FFFFFF !important;
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Currency Switcher */
.currency-switcher {
    position: relative;
}

.currency-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition);
}

.header--scrolled .currency-switcher__trigger,
.header--static .currency-switcher__trigger {
    background-color: rgba(143, 151, 121, 0.08);
    color: var(--color-text-main);
}

.currency-switcher__trigger:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header--scrolled .currency-switcher__trigger:hover,
.header--static .currency-switcher__trigger:hover {
    background-color: rgba(143, 151, 121, 0.15);
}

.currency-switcher__icon {
    transition: var(--transition);
}

.currency-switcher.active .currency-switcher__icon {
    transform: rotate(180deg);
}

.currency-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 200;
}

.currency-switcher.active .currency-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-switcher__link {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition);
}

.currency-switcher__link:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.currency-switcher__link.active {
    font-weight: 600;
    color: var(--color-secondary);
    background-color: rgba(143, 151, 121, 0.05);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition);
}

.header--scrolled .lang-switcher__trigger,
.header--static .lang-switcher__trigger {
    background-color: rgba(143, 151, 121, 0.08);
    color: var(--color-text-main);
}

.lang-switcher__trigger:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header--scrolled .lang-switcher__trigger:hover,
.header--static .lang-switcher__trigger:hover {
    background-color: rgba(143, 151, 121, 0.15);
}

.lang-switcher__icon {
    transition: var(--transition);
}

.lang-switcher.active .lang-switcher__icon {
    transform: rotate(180deg);
}

.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 200;
}

.lang-switcher.active .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__link {
    display: block;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--color-text-main);
    transition: var(--transition);
}

.lang-switcher__link:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.lang-switcher__link.active {
    font-weight: 600;
    color: var(--color-secondary);
    background-color: rgba(143, 151, 121, 0.05);
}

/* Mobile Nav Modal View */
@media (max-width: 991px) {
    .header__nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(14, 25, 20, 0.97);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        gap: 32px;
        z-index: 105;
        animation: fadeIn 0.4s ease forwards;
    }

    .header__nav.active .header__nav-link {
        font-size: 1.6rem;
        color: #FFFFFF;
        font-family: var(--font-serif);
        font-weight: 400;
        letter-spacing: 0.1em;
        opacity: 0;
        transform: translateY(20px);
        animation: slideUpIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    }

    .header__nav.active .header__nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .header__nav.active .header__nav-link:nth-child(2) {
        animation-delay: 0.18s;
    }

    .header__nav.active .header__nav-link:nth-child(3) {
        animation-delay: 0.26s;
    }

    .header__nav.active .header__nav-link:nth-child(4) {
        animation-delay: 0.34s;
    }

    .header__nav.active .header__nav-link:nth-child(5) {
        animation-delay: 0.42s;
    }
}

@keyframes slideUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    padding-top: var(--header-height);
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero__image,
.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
}

.hero__video {
    transform: scale(1.08);
    /* Увеличение масштаба для обрезки надписи */
    transform-origin: center top;
    /* Масштабирование от верха, скрывающее нижний край */
}

.hero__image {
    transform: scale(1.02);
    animation: panHero 20s ease-in-out infinite alternate;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 46, 36, 0.5) 0%, rgba(28, 46, 36, 0.35) 50%, rgba(28, 46, 36, 0.65) 100%);
}

.hero__container {
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.2rem;
    }
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 4rem;
    }
}

.hero__subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 1.25rem;
    }
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero__scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: var(--transition);
}

.hero__scroll-down:hover {
    color: #FFFFFF;
}

/* About Us Section (Concept 1: Asymmetric Triptych) */
.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

@media (min-width: 992px) {
    .about__grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 80px;
    }
}

.about__text--lead {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.about__text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Core Values Cards */
.about__values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.value-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.value-card__num {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1;
}

.value-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.value-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Asymmetric Triptych Gallery */
.about__gallery {
    position: relative;
    height: 600px;
    width: 100%;
}

/* Responsive adjustments handled below */

.triptych-frame {
    position: absolute;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease;
}

.triptych-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.triptych-frame--main {
    top: 0;
    left: 0;
    width: 75%;
    height: 65%;
    z-index: 2;
}

.triptych-frame--secondary {
    bottom: 0;
    right: 0;
    width: 60%;
    height: 55%;
    z-index: 3;
}

.triptych-frame--detail {
    bottom: 8%;
    left: 5%;
    width: 35%;
    height: 30%;
    z-index: 4;
    border: 3px solid var(--color-bg-card);
}

/* Triptych Interactive Effects */
.triptych-frame:hover {
    z-index: 10;
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 20px 40px rgba(14, 25, 20, 0.15);
}

.triptych-frame:hover .triptych-img {
    transform: scale(1.06);
}

/* Responsive adjustments: Transform overlapping triptych into a neat, modern grid on mobile */
@media (max-width: 768px) {
    .about__grid {
        gap: 24px !important;
    }

    .about__gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        height: auto;
        margin-top: 0;
    }

    .triptych-frame {
        position: relative !important;
        width: 100% !important;
        height: 150px !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        right: auto !important;
        border: none !important;
        box-shadow: var(--shadow-sm) !important;
    }

    .triptych-frame--main {
        grid-column: span 2;
        height: 220px !important;
    }

    .triptych-frame--secondary {
        grid-column: span 1;
    }

    .triptych-frame--detail {
        grid-column: span 1;
    }

    /* Optimize values cards padding and spacing on mobile */
    .about__values {
        gap: 12px;
        margin-top: 24px;
    }

    .value-card {
        padding: 16px;
        gap: 16px;
    }

    .value-card__num {
        font-size: 1.3rem;
    }

    /* Houses mobile styling */
    .house-card__footer {
        flex-direction: column;
        align-items: stretch !important;
        gap: 16px;
    }

    .house-card__price {
        justify-content: center;
    }

    .house-card__btn {
        width: 100%;
        text-align: center;
    }
}


/* Houses Section Refined (Concept 1: Floating Luxury Cards) */
.houses {
    background-color: #F8F9F6 !important;
    /* Soft, warm eco-background */
}

.houses__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    /* Prevents cards from stretching each other vertically in grid rows */
}

@media (min-width: 992px) {
    .houses__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px;
    }
}

.house-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    /* Spacing inside card container for floating effect */
    box-shadow: 0 10px 30px rgba(14, 25, 20, 0.03);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.5s ease, box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.house-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-secondary);
    box-shadow: 0 20px 40px rgba(14, 25, 20, 0.08);
}

/* Floating Image Wrapper */
.house-card__image-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    z-index: 2;
}

@media (max-width: 768px) {
    .house-card__image-wrapper {
        height: 200px;
    }
}

.house-card:hover .house-card__image-wrapper {
    transform: translateY(-12px);
    /* Pop image out even more on hover */
    box-shadow: var(--shadow-lg);
}

.house-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 2;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.house-card:hover .house-card__img {
    transform: scale(1.04);
}

/* Frosty glass soon overlay */
.house-card__blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 46, 36, 0.6);
    /* Semi-transparent olive dark */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    z-index: 10;
    text-align: center;
    color: #FFFFFF;
}

.house-card__soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.house-card__soon-icon {
    color: var(--color-secondary);
    margin-bottom: 4px;
}

.house-card__soon-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.house-card__soon-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: 240px;
}

/* Card Content Details */
.house-card__content {
    padding: 24px 8px 8px 8px;
    /* Offset spacing to balance floating image */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.house-card__title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 12px;
}

/* Capacity Badge */
.house-card__capacity-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: rgba(143, 151, 121, 0.08);
    border-radius: 20px;
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 24px;
}

.house-card__badge-icon {
    stroke-width: 2;
}

/* Premium Features List with Emoji icons */
.house-card__features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    /* Reduced from 32px for compact premium layout */
    flex-grow: 1;
}

.house-card__feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-text-main);
    font-weight: 300;
}

.feature-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-text {
    line-height: 1.4;
}

/* Card Footer */
.house-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    margin-top: auto;
}

.house-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.house-card__price-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.house-card__price-display {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.house-card__price-unit {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.house-card__btn {
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}

/* Expandable Amenities CSS */
.house-card__amenities-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: 20px;
    width: fit-content;
    transition: color 0.3s ease;
}

.house-card__amenities-toggle:hover {
    color: var(--color-primary);
}

.house-card__amenities-toggle svg {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.house-card__amenities-toggle.active svg {
    transform: rotate(180deg);
}

.house-card__amenities-collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, margin-bottom 0.4s ease;
}

.house-card__amenities-collapse.open {
    max-height: 400px;
    /* Enough height to prevent cutting off */
    opacity: 1;
    margin-bottom: 24px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background-color: rgba(143, 151, 121, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(143, 151, 121, 0.1);
}

@media (max-width: 480px) {
    .amenities-grid {
        grid-template-columns: 1fr;
        /* Single column on tiny screens */
        gap: 10px;
    }
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-main);
    font-weight: 300;
}

.amenity-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.amenity-text {
    line-height: 1.4;
}

/* Gallery Section */
.gallery__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.gallery__filter-btn {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    background: transparent;
    padding: 8px 4px;
    position: relative;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.gallery__filter-btn::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery__filter-btn:hover {
    color: var(--color-primary);
}

.gallery__filter-btn.active {
    color: var(--color-primary);
    font-weight: 600;
}

.gallery__filter-btn.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.gallery__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.gallery__item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 240px;
    /* Mobile height default */
    box-shadow: 0 10px 30px rgba(28, 46, 36, 0.03);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}

.gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(28, 46, 36, 0.08);
}

.gallery__item.fade-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    z-index: -10;
}

.gallery__item.fade-in {
    opacity: 1;
    transform: scale(1);
    animation: galleryFadeIn 0.4s ease forwards;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 2;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery__item:hover .gallery__img {
    transform: scale(1.04);
}

/* Floating magnetic glassmorphism button */
.gallery__hover {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(28, 46, 36, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: scale(0.6) translate(-50%, -50%);
    transform-origin: 0 0;
    z-index: 10;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery__play-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: rgba(28, 46, 36, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    pointer-events: none;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
}

.gallery__item:hover .gallery__play-btn {
    transform: scale(1.1);
    background-color: rgba(28, 46, 36, 0.9);
}

.gallery__play-btn svg {
    margin-left: 2px; /* Visual centering of triangle */
    width: 14px;
    height: 14px;
}

@media (min-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .gallery__item {
        height: 260px;
    }
    .gallery__item--large {
        grid-column: span 2;
        grid-row: span 2;
        height: 540px; /* 260 + 260 + 20 */
    }
}

@media (min-width: 992px) {
    .gallery__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
    .gallery__item {
        height: 260px;
    }
    .gallery__item--large {
        grid-column: span 2;
        grid-row: span 2;
        height: 544px; /* 260 + 260 + 24 */
    }
}

/* Gallery "Coming Soon" Block */
.gallery__soon {
    max-width: 650px;
    margin: 40px auto 0;
    padding: 48px 40px;
    background-color: rgba(28, 46, 36, 0.9); /* Frosty glass dark evergreen matching the Houses overlay */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px; /* Matching gallery items */
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery__soon.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery__soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gallery__soon-icon {
    color: var(--color-secondary); /* Same sage green color */
    margin-bottom: 4px;
}

.gallery__soon-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFFFFF; /* White */
    letter-spacing: 0.05em;
}

.gallery__soon-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    line-height: 1.6;
    max-width: 440px;
    margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .gallery__soon {
        padding: 36px 24px;
        margin: 24px 16px 0;
    }
    
    .gallery__soon-title {
        font-size: 1.4rem;
    }
    
    .gallery__soon-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Lightbox Modal Custom pure CSS/JS modal style */
.lightbox {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 25, 20, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox__content {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    animation: zoom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-lg);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #FFFFFF;
    font-size: 32px;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(28, 46, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
    z-index: 1020;
}

.lightbox__close:hover,
.lightbox__close:focus {
    color: var(--color-accent);
    background-color: var(--color-primary);
    border-color: var(--color-accent);
}

.lightbox__prev,
.lightbox__next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: var(--transition);
    user-select: none;
    background-color: rgba(28, 46, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 1010;
}

.lightbox__prev svg,
.lightbox__next svg,
.lightbox__close svg {
    pointer-events: none;
    /* Prevents nested element event targeting conflicts */
}

.lightbox__prev {
    left: 24px;
}

.lightbox__next {
    right: 24px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background-color: var(--color-primary);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

@media (max-width: 768px) {

    .lightbox__prev,
    .lightbox__next {
        width: 48px;
        height: 48px;
        font-size: 20px;
        background-color: rgba(28, 46, 36, 0.85);
        /* Highly readable on phone screens */
        border-color: rgba(255, 255, 255, 0.25);
    }

    .lightbox__prev {
        left: 12px;
    }

    .lightbox__next {
        right: 12px;
    }

    .lightbox__close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .lightbox__content {
        max-width: 95vw;
        max-height: 75vh;
        /* Keep space for close button on top */
    }
}

/* Booking Layout */
.booking__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .booking__layout {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 48px;
    }
}

.booking__form-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form__section--parameters {
    margin-bottom: 24px;
}

.booking__calc-card {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-radius: 4px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

@media (max-width: 991px) {
    .booking__layout {
        gap: 24px;
    }

    .booking__form-card {
        padding: 24px;
    }

    /* Hide the static calculation panel on mobile screens, as it is dynamically embedded in the submit button! */
    .booking__calc-card {
        display: none;
    }
}

.booking__calc-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.booking__calc-placeholder {
    text-align: center;
    padding: 48px 24px;
    color: rgba(255, 255, 255, 0.6);
}

.booking__calc-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.booking__calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 300;
}

.booking__calc-row strong {
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.booking__calc-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.booking__calc-row--total {
    font-size: 1.2rem;
    font-weight: 400;
}

.booking__calc-row--total strong {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-accent);
}

.price-secondary {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.75;
    margin-top: 4px;
    text-align: right;
}

.booking__calc-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 24px;
    line-height: 1.4;
}

/* Forms styling */
.form__group {
    margin-bottom: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .form__row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form__label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.form__input {
    width: 100%;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--color-text-main);
    transition: var(--transition);
}

.form__input:focus {
    border-color: var(--color-secondary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(143, 151, 121, 0.1);
}

select.form__input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231C2E24' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
    cursor: pointer;
}

.form__checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form__group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.form__checkbox-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.form__checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form__checkbox-label a:hover {
    color: var(--color-secondary);
}

.btn--submit {
    width: 100%;
    padding: 16px;
}

/* Forest Slider Captcha */
.form__captcha {
    margin-top: 8px;
    margin-bottom: 24px;
}

.captcha__container {
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.captcha__track {
    position: relative;
    height: 54px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 4px;
    transition: border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.captcha__progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: rgba(143, 151, 121, 0.12);
    transition: background-color 0.35s ease;
    pointer-events: none;
}

.captcha__text {
    position: absolute;
    left: 0;
    right: 0;
    padding: 0 44px 0 52px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s ease, color 0.35s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 375px) {
    .captcha__text {
        font-size: 0.72rem;
        padding: 0 38px 0 46px;
    }
}

.captcha__thumb {
    position: absolute;
    left: 4px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 3;
    box-shadow: 0 3px 8px rgba(28, 46, 36, 0.2);
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.captcha__thumb:active {
    cursor: grabbing;
    background-color: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(28, 46, 36, 0.35);
}

.captcha__thumb:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.captcha__icon {
    font-size: 1.35rem;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.captcha__thumb:hover .captcha__icon {
    transform: scale(1.18) rotate(15deg) translateY(-1px);
}

.captcha__target {
    position: absolute;
    right: 16px;
    font-size: 1.4rem;
    z-index: 2;
    opacity: 0.55;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Solved state */
.captcha--solved .captcha__track {
    border-color: #8F9779;
    background-color: rgba(143, 151, 121, 0.08);
}

.captcha--solved .captcha__progress {
    background-color: rgba(143, 151, 121, 0.25);
    width: 100% !important;
}

.captcha--solved .captcha__text {
    color: var(--color-primary);
    font-weight: 500;
}

.captcha--solved .captcha__thumb {
    background-color: #8F9779;
    cursor: default;
    box-shadow: none;
}

.captcha--solved .captcha__target {
    opacity: 1;
    transform: scale(1.25) rotate(-10deg);
}

/* Customizing Flatpickr Theme */
.flatpickr-calendar {
    font-family: var(--font-sans) !important;
    background-color: var(--color-primary) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-lg) !important;
}

.flatpickr-months .flatpickr-month {
    color: #FFFFFF !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #FFFFFF !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #FFFFFF !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-primary) !important;
    font-weight: bold;
}

.flatpickr-day.inRange {
    background: rgba(196, 164, 132, 0.2) !important;
    box-shadow: -5px 0 0 rgba(196, 164, 132, 0.2), 5px 0 0 rgba(196, 164, 132, 0.2) !important;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .contacts__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 992px) {
    .contacts__grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 64px;
    }
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 12px;
}

.contacts__item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.contacts__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.contacts__icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(143, 151, 121, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.contacts__item:hover .contacts__icon-box {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.contacts__text strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.contacts__text p,
.contacts__text a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.5;
}

.contacts__link {
    transition: color 0.3s ease;
}

.contacts__link:hover {
    color: var(--color-accent);
}

/* Messengers Dock Style */
.contacts__messengers {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.contacts__messengers-dock {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.dock-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.dock-btn__svg {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-btn--tg:hover {
    background-color: #2CA5E0;
    border-color: #2CA5E0;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(44, 165, 224, 0.3);
}

.dock-btn--viber:hover {
    background-color: #7D3DAF;
    border-color: #7D3DAF;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(125, 61, 175, 0.3);
}

.dock-btn--wa:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.dock-btn--max:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.dock-btn--inst:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.dock-btn:hover {
    transform: translateY(-5px);
}

.dock-btn:hover .dock-btn__svg {
    transform: scale(1.1) rotate(-8deg);
}

/* Messengers Tooltips */
.dock-btn__tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.dock-btn__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--color-primary) transparent transparent transparent;
}

.dock-btn:hover .dock-btn__tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Map Mock & Yandex Map */
.contacts__map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.contacts__map-container:hover {
    box-shadow: var(--shadow-lg);
}

.contacts__map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: var(--color-bg-light);
}

@media (min-width: 768px) {
    .contacts__map-wrapper {
        height: 520px;
    }
}

@media (min-width: 992px) {
    .contacts__map-wrapper {
        height: 600px;
    }
}

.contacts__map-coords {
    position: absolute;
    bottom: 64px;
    left: 16px;
    background-color: rgba(28, 46, 36, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
    max-width: calc(100% - 32px);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .contacts__map-coords {
        bottom: 68px;
        left: 24px;
        max-width: fit-content;
    }
}

.coords-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.coords-values {
    font-size: 0.9rem;
    font-weight: 500;
    color: #FFFFFF;
    font-family: var(--font-serif);
    letter-spacing: 0.02em;
}

.contacts__map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 46, 36, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__content {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: zoom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text-muted);
}

.modal__close:hover {
    color: var(--color-primary);
}

.modal__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.modal__desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal__btn {
    width: 120px;
}

.modal__content--error {
    border-color: var(--color-error);
}

.modal__icon--error {
    color: var(--color-error);
}

.modal__title--error {
    color: var(--color-error);
}

.btn--danger {
    background-color: var(--color-error);
    color: #FFFFFF;
    border: 1px solid var(--color-error);
}

.btn--danger:hover {
    background-color: #8A3D31;
    border-color: #8A3D31;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(162, 74, 61, 0.3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(28, 46, 36, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 16px 0;
    z-index: 900;
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s ease;
}

.cookie-banner.active {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.cookie-banner__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 768px) {
    .cookie-banner__container {
        flex-direction: row;
        gap: 40px;
    }
}

.cookie-banner__text {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-banner__text {
        text-align: left;
    }
}

.cookie-banner__btn {
    flex-shrink: 0;
}

/* Legal Pages Static styles */
.legal-page {
    padding: 80px 0;
    min-height: 70vh;
}

.legal-page__title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 32px;
    text-align: center;
}

@media (max-width: 480px) {
    .legal-page__title {
        font-size: 1.8rem;
    }
}

.legal-page__content h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: normal;
}

.legal-page__content p {
    margin-bottom: 16px;
    color: var(--color-text-main);
    line-height: 1.7;
}

.legal-page__content ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style-type: disc;
}

.legal-page__content li {
    margin-bottom: 8px;
    color: var(--color-text-main);
}

/* Footer Section */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (min-width: 576px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer__grid {
        grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
        gap: 30px;
    }
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__col--brand {
    max-width: 320px;
}

.footer__brand-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.footer__logo-main {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.footer__logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    font-weight: 500;
    margin-top: 2px;
}

.footer__quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}

.footer__col-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer__col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 1.5px;
    background-color: var(--color-accent);
}

.footer__nav-list,
.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav-item-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    transition: var(--transition);
}

.footer__nav-item-link:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer__contact-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: var(--transition);
}

.footer__contact-link:hover {
    color: var(--color-accent);
}

.footer__hours-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.footer__socials-dock {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.footer__social-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.footer__social-badge:hover {
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.08);
}

.footer__social-badge--tg:hover {
    background-color: #0088cc;
}

.footer__social-badge--viber:hover {
    background-color: #7360f2;
}

.footer__social-badge--wa:hover {
    background-color: #25d366;
}

.footer__social-badge--max:hover {
    background-color: var(--color-accent);
}

.footer__social-badge--inst:hover {
    background-color: #e1306c;
}

.footer__action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 220px;
}

.footer__action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    text-decoration: none;
}

.footer__action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(28, 46, 36, 0.15);
}

.footer__action-btn-icon {
    font-size: 1rem;
}

.footer__action-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: var(--color-secondary);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
}

.footer__action-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-secondary);
}

.footer__action-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.footer__divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 30px;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer__legal {
    text-align: center;
    max-width: 800px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.75rem;
    line-height: 1.6;
}

.footer__bottom-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .footer__bottom-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer__policy-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__divider-dot {
    color: rgba(255, 255, 255, 0.2);
}

.footer__copy {
    color: rgba(255, 255, 255, 0.25);
}

.footer__dev {
    margin-top: 16px;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.2);
}

.footer__dev-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.32);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
    padding-bottom: 1px;
}

.footer__dev-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.footer__dev-link svg {
    opacity: 0.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer__dev-link:hover svg {
    opacity: 1;
    transform: translateY(-1px);
}

/* Keyframes animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoom {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-8px) translateX(-50%);
    }

    60% {
        transform: translateY(-4px) translateX(-50%);
    }
}

@keyframes panHero {
    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.06);
    }
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
 * Legal Info Section - Asymmetric Editorial Style
 * ========================================================================== */
.legal-editorial {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .legal-editorial {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 80px;
    }
}

.legal-editorial__sidebar {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.legal-editorial__title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .legal-editorial__title {
        font-size: 1.8rem;
    }
}

@media (min-width: 768px) {
    .legal-editorial__title {
        font-size: 2.75rem;
    }
}

.legal-editorial__intro {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    border-left: 2px solid var(--color-secondary);
    padding-left: 20px;
    margin-top: 24px;
}

.legal-editorial__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.legal-editorial__section {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 32px;
}

.legal-editorial__section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-editorial__section-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.legal-editorial__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .legal-editorial__fields {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
    }
}

.legal-editorial__fields--full {
    grid-template-columns: 1fr !important;
}

.legal-editorial__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-editorial__field strong {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
}

.legal-editorial__field span,
.legal-editorial__field p {
    font-size: 0.95rem;
    color: var(--color-primary);
    line-height: 1.6;
    margin: 0;
}

.legal-editorial__link {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-editorial__link:hover {
    color: var(--color-accent);
}

.legal-editorial__mono {
    font-family: monospace;
    background-color: var(--color-bg-light);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem !important;
    display: inline-block;
    word-break: break-all;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    max-width: 100%;
}

.legal-editorial__content--full {
    max-width: 800px;
    margin: 0 auto;
}