/* =========================================
   PRIVATE EQUESTRIAN ESTATE
   Main Stylesheet
========================================= */

/* Цветовая палитра */
:root {
    --forest: #10251d;
    --forest-light: #18382b;
    --gold: #c6a667;
    --bronze: #927044;
    --ivory: #f4ebdd;

    --header-height: 82px;
}

/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: var(--forest);
    color: var(--ivory);
    overflow-x: hidden;
}

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

button {
    font: inherit;
}

/* =========================================
   FIXED HEADER
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 0 4%;

    background: rgba(16, 37, 29, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(198, 166, 103, 0.5);
}

.site-logo {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

.desktop-nav a {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--gold);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--gold);
    white-space: nowrap;
}

.language-switch button {
    border: none;
    background: transparent;
    color: var(--ivory);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
}

.language-switch button:hover,
.language-switch button.active {
    color: var(--gold);
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: calc(var(--header-height) + 45px) 24px 95px;

    background-image:
        linear-gradient(
            180deg,
            rgba(9, 25, 18, 0.52) 0%,
            rgba(9, 25, 18, 0.36) 45%,
            rgba(9, 25, 18, 0.78) 100%
        ),
        url("../assets/backgrounds/hero-desktop.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Содержимое главного экрана */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    text-align: center;
}

.hero-eyebrow {
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 5px;
}

.hero h1 {
    color: var(--gold);
    font-size: clamp(34px, 4.5vw, 70px);
    font-weight: normal;
    letter-spacing: 4px;
    line-height: 1.18;

    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.65);
}

.hero-divider {
    margin: 20px auto;
    color: var(--gold);
    font-size: 25px;
}

.hero-subtitle {
    font-size: clamp(17px, 1.8vw, 25px);
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* =========================================
   GOLDEN NAVIGATION ICONS
========================================= */

.hero-links {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(35px, 7vw, 110px);

    margin-top: 75px;
    transform: translateY(50px);
}

/* DESKTOP — смещение навигационных иконок вправо */
@media (min-width: 769px) {
    .hero-links {
        transform: translate(200px, 70px);
    }
}

.hero-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    width: 220px;
    color: var(--ivory);

    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;

    transition: transform 0.3s ease;
}

.hero-icon {
    display: block;
    width: 165px;
    height: 165px;
    object-fit: contain;

    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));

    transition: filter 0.3s ease, transform 0.3s ease;
}

.hero-link:hover {
    transform: translateY(-5px);
}

.hero-link:hover .hero-icon {
    filter:
        drop-shadow(0 0 12px rgba(198, 166, 103, 0.7))
        drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.hero-link:focus-visible,
.desktop-nav a:focus-visible,
.language-switch button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 6px;
}

/* =========================================
   SCROLL INDICATOR
========================================= */

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);

    color: var(--gold);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* =========================================
   NEXT SECTION PLACEHOLDER
========================================= */

.placeholder-section {
    min-height: 55vh;
    padding: 120px 24px;

    background: var(--forest);
    text-align: center;
}

.placeholder-section h2 {
    color: var(--gold);
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.placeholder-section p {
    font-size: 18px;
    line-height: 1.7;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .site-header {
        gap: 12px;
        padding: 0 20px;
    }

    .site-logo {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .desktop-nav {
        gap: 12px;
    }

    .desktop-nav a {
        font-size: 10px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    :root {
        --header-height: 66px;
    }

    .site-header {
        padding: 0 18px;
    }

    .site-logo {
        font-size: 11px;
        letter-spacing: 1px;
        white-space: normal;
        max-width: 210px;
    }

    /* Мобильное меню добавим следующим этапом */
    .desktop-nav {
        display: none;
    }

    .hero {
        padding: 110px 18px 95px;

        background-image:
            linear-gradient(
                180deg,
                rgba(9, 25, 18, 0.55) 0%,
                rgba(9, 25, 18, 0.42) 45%,
                rgba(9, 25, 18, 0.82) 100%
            ),
            url("../assets/backgrounds/hero-mobile.webp");

        background-position: center;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .hero h1 {
        font-size: clamp(31px, 8vw, 46px);
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-links {
        gap: 18px;
        margin-top: 36px;
    }

    .hero-link {
        width: 145px;
        gap: 12px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hero-icon {
        width: 115px;
        height: 115px;
    }

    .scroll-indicator {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .placeholder-section {
        padding: 90px 20px;
    }

    .placeholder-section h2 {
        font-size: 24px;
    }
}

/* Очень узкие телефоны */
@media (max-width: 360px) {

    .hero-link {
        width: 125px;
    }

    .hero-icon {
        width: 95px;
        height: 95px;
    }

    .hero-links {
        gap: 10px;
    }
}

/* Уважение к настройкам уменьшенной анимации */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-link,
    .hero-icon,
    .desktop-nav a {
        transition: none;
    }
}

/* =========================================
   MUSIC CONTROL — CHOPIN
   ========================================= */

.music-toggle {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1000;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--gold);
    border-radius: 50%;

    background: rgba(16, 37, 29, 0.85);
    color: var(--gold);

    font-size: 26px;
    cursor: pointer;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.music-toggle:hover {
    background: rgba(24, 56, 43, 0.95);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.music-toggle:focus-visible {
    outline: 2px solid var(--ivory);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .music-toggle {
        right: 18px;
        bottom: 18px;
        width: 46px;
        height: 46px;
        font-size: 23px;
    }
}
/* =========================================
   GOLD TYPOGRAPHY — HERO & NAVIGATION
   ========================================= */

/* Золотые надписи верхнего меню */
.desktop-nav a {
    color: var(--gold);
}

/* Белые надписи при наведении */
.desktop-nav a:hover {
    color: var(--ivory);
}

/* Золотой подзаголовок главного экрана */
.hero-subtitle {
    color: var(--gold);
}
/* ==========================================
   RESIDENCE — РЕЗИДЕНЦИЯ
========================================== */

.residence-section {
    background: var(--forest);
    padding: 120px 24px;
    min-height: 70vh;
    text-align: center;
}

.residence-container {
    max-width: 1200px;
    margin: 0 auto;
}

.residence-eyebrow {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.residence-title {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: 5px;
    margin: 0;
}

.residence-divider {
    color: var(--gold);
    font-size: 22px;
    margin: 28px 0;
}

.residence-description {
    color: var(--ivory);
    font-size: 17px;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .residence-section {
        padding: 85px 20px;
    }

    .residence-title {
        letter-spacing: 2px;
    }

    .residence-description {
        font-size: 15px;
    }
}
/* ==========================================
   RESIDENCE — PHOTO GALLERY
========================================== */

.residence-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 75px;
}

.residence-card {
    margin: 0;
    text-align: left;
    overflow: hidden;
}

.residence-card img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.residence-card:hover img {
    transform: scale(1.025);
}

.residence-card figcaption {
    padding: 22px 0;
    border-bottom: 1px solid rgba(198, 166, 103, 0.35);
}

.residence-card-number {
    color: var(--bronze);
    font-size: 12px;
    letter-spacing: 2px;
}

.residence-card h3 {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 12px 0 8px;
}

.residence-card p {
    color: var(--ivory);
    font-size: 15px;
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 768px) {
    .residence-gallery {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 50px;
    }

    .residence-card img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}


/* CONTACTS — PRIVATE EQUESTRIAN ESTATE */

.estate-contacts {
    min-height: 70vh;
    padding: 110px 24px;
    background: #142820;
    color: #f2e8d5;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 90px;
}

.estate-contacts-inner {
    width: 100%;
    max-width: 760px;
    text-align: center;
}

.estate-contacts-eyebrow {
    color: #c9aa71;
    font-size: 11px;
    letter-spacing: 0.3em;
    margin-bottom: 25px;
}

.estate-contacts h2 {
    color: #e4d0a6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: normal;
    margin-bottom: 22px;
}

.estate-contacts-intro {
    color: #d5d0c4;
    line-height: 1.8;
    margin-bottom: 48px;
}

.estate-contacts-details {
    display: grid;
    gap: 30px;
    margin-bottom: 42px;
}

.estate-contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.estate-contact-item span {
    color: #c9aa71;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.estate-contact-item a {
    color: #f2e8d5;
    font-size: clamp(15px, 2.4vw, 20px);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.estate-contact-item a:hover {
    color: #c9aa71;
}

.estate-messengers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 38px;
}

.estate-messengers a {
    color: #e4d0a6;
    border: 1px solid #9b8158;
    padding: 12px 24px;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background 0.25s, color 0.25s;
}

.estate-messengers a:hover {
    background: #c9aa71;
    color: #142820;
}

.estate-contacts-note {
    color: #bdb6a8;
    font-size: 13px;
}

@media (max-width: 600px) {
    .estate-contacts {
        padding: 85px 20px;
    }

    .estate-messengers {
        gap: 10px;
    }

    .estate-messengers a {
        padding: 12px 18px;
    }
}

/* =========================================
   FOR SALE — HERO BADGE
========================================= */

.estate-sale-badge {
    position: absolute;
    left: 5%;
    bottom: 8%;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 185px;
    padding: 18px 24px;

    background: rgba(16, 37, 29, 0.74);
    border: 1px solid rgba(198, 166, 103, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #c6a667;
    text-align: center;
    text-decoration: none;

    transition: background 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease;
}

.estate-sale-badge:hover {
    background: rgba(16, 37, 29, 0.92);
    border-color: #e4d0a6;
    transform: translateY(-4px);
}

.estate-sale-badge:focus-visible {
    outline: 2px solid #e4d0a6;
    outline-offset: 5px;
}

.estate-sale-ornament {
    font-size: 15px;
    line-height: 1;
}

.estate-sale-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    letter-spacing: 0.17em;
    line-height: 1.2;
    white-space: nowrap;
}

.estate-sale-caption {
    color: #f4ebdd;
    font-size: 9px;
    letter-spacing: 0.13em;
    white-space: nowrap;
}

/* Mobile */

@media (max-width: 768px) {
    .estate-sale-badge {
        right: 50%;
        bottom: 24px;
        transform: translateX(50%);
        min-width: 155px;
        padding: 12px 18px;
        gap: 5px;
    }

    .estate-sale-badge:hover {
        transform: translateX(50%);
    }

    .estate-sale-title {
        font-size: 19px;
    }

    .estate-sale-caption {
        font-size: 8px;
    }

    .estate-sale-ornament {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estate-sale-badge {
        transition: none;
    }
}

/* =========================================
   MOBILE NAVIGATION
========================================= */

/* На компьютере мобильное меню скрыто */
.mobile-menu-toggle,
.mobile-nav {
    display: none;
}

/* Меню для телефонов и планшетов */
@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        background: transparent;
        border: 1px solid rgba(198, 166, 103, 0.5);
        color: #c6a667;

        width: 38px;
        height: 38px;
        padding: 0;

        font-size: 23px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;

        flex-direction: column;
        gap: 0;

        background: rgba(16, 37, 29, 0.97);
        border-top: 1px solid rgba(198, 166, 103, 0.3);
        border-bottom: 1px solid rgba(198, 166, 103, 0.5);
        padding: 12px 24px;
    }

    .mobile-nav.is-open {
        display: flex;
    }

    .mobile-nav a {
        display: block;
        padding: 15px 8px;

        color: #e4d0a6;
        text-decoration: none;
        font-size: 13px;
        letter-spacing: 0.08em;
        border-bottom: 1px solid rgba(198, 166, 103, 0.15);
    }

    .mobile-nav a:last-child {
        border-bottom: none;
    }

    .mobile-nav a:active {
        color: #ffffff;
    }
}
