:root {
    --pine-deep: #082930;
    --pine-brand: #0c4753;
    --pine-muted: #165663;
    --brass: #d8ba8e;
    --brass-dark: #b89564;
    --linen: #f5f1ea;
    --linen-card: #ece6dc;
    --ink: #172225;
    --ink-muted: #526064;
    --border-light: rgba(216, 186, 142, 0.25);
    --border-dark: rgba(23, 34, 37, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--linen);
    color: var(--ink);
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background-color: var(--pine-brand);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--brass);
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--brass);
    display: block;
    line-height: 1.1;
}

.brand-caption {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.72);
    display: block;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--brass);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-phone {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-light);
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--brass);
    margin: 4px 0;
}

.btn-brass,
.btn-solid,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-brass {
    background-color: var(--brass);
    color: var(--pine-deep);
}

.btn-brass:hover {
    background-color: #e4ca9f;
    transform: translateY(-1px);
}

.btn-solid {
    background-color: var(--pine-deep);
    color: var(--brass);
    border-color: var(--brass);
    padding: 10px 20px;
}

.btn-solid:hover {
    background-color: var(--brass);
    color: var(--pine-deep);
}

.btn-ghost {
    border-color: var(--border-light);
    color: #fff;
}

.btn-ghost:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.btn-full {
    width: 100%;
}

.hero {
    background-color: var(--pine-brand);
    color: #fff;
    padding: 72px 0 84px;
    border-bottom: 1px solid var(--border-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 56px;
    align-items: start;
}

.location-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 24px;
    color: #fff;
}

.hero-lead {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.84);
    max-width: 640px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-specs {
    border-left: 1px solid var(--border-light);
    padding-left: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.spec-card {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brass);
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.spec-value a {
    color: #fff;
    text-decoration: none;
}

.spec-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

section {
    padding: 88px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.eyebrow {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--pine-brand);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
}

.section-subtitle {
    max-width: 420px;
    font-size: 14px;
    color: var(--ink-muted);
}

.directions-table-wrap {
    overflow-x: auto;
    border-top: 2px solid var(--pine-brand);
}

.directions-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--linen);
}

.directions-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-dark);
    font-weight: 600;
}

.directions-table td {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border-dark);
    vertical-align: top;
    font-size: 15px;
}

.directions-table tr {
    transition: background-color 0.2s ease;
}

.directions-table tbody tr:hover {
    background-color: var(--linen-card);
}

.col-title {
    white-space: nowrap;
}

.row-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--pine-brand);
    margin-right: 10px;
    font-weight: 700;
}

.section-stable {
    background-color: var(--linen-card);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.stable-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: start;
}

.stable-intro p {
    margin: 20px 0 32px;
    color: var(--ink-muted);
}

.stable-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border-dark);
    border-left: 1px solid var(--border-dark);
}

.stable-item {
    padding: 32px;
    border-right: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    background: var(--linen);
}

.stable-index {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--pine-brand);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.stable-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.stable-item p {
    font-size: 14px;
    color: var(--ink-muted);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-dark);
    padding: 8px 16px;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--pine-brand);
    color: #fff;
    border-color: var(--pine-brand);
}

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

.gallery-item {
    cursor: pointer;
    border: 1px solid var(--border-dark);
    background: #fff;
    transition: transform 0.25s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-img-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--pine-deep);
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.04);
}

.gallery-caption {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--ink);
    border-top: 1px solid var(--border-dark);
}

.section-news {
    padding-top: 20px;
}

.news-list {
    border-top: 2px solid var(--pine-brand);
}

.news-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border-dark);
}

.news-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-meta time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
}

.news-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pine-brand);
    border: 1px solid var(--pine-brand);
    padding: 2px 8px;
}

.news-body h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.news-body p {
    color: var(--ink-muted);
    font-size: 15px;
}

.section-booking {
    background-color: var(--pine-brand);
    color: #fff;
}

.booking-panel {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.booking-info .eyebrow {
    color: var(--brass);
}

.booking-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.15;
    margin-bottom: 20px;
}

.booking-info p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 28px;
}

.booking-rules {
    list-style: none;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.booking-rules li {
    position: relative;
    padding-left: 18px;
}

.booking-rules li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--brass);
}

.booking-form {
    background-color: var(--pine-deep);
    padding: 40px;
    border: 1px solid var(--border-light);
}

.field-group {
    margin-bottom: 20px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brass);
    margin-bottom: 8px;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 13px 14px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(216, 186, 142, 0.3);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.field-group select option {
    background-color: var(--pine-deep);
    color: #fff;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: var(--brass);
}

.form-feedback {
    margin-top: 16px;
    font-size: 14px;
}

.site-footer {
    background-color: var(--pine-deep);
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-address {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--brass);
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    margin-bottom: 14px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.contact-label {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.contact-list a,
.map-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--brass);
}

.wa-link a {
    color: var(--brass);
    border-bottom: none;
}

.footer-route-note {
    font-size: 14px;
    margin-bottom: 14px;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.admin-link:hover {
    color: var(--brass);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 25, 30, 0.94);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    max-width: 960px;
    width: 100%;
    text-align: center;
}

.lightbox-content img {
    max-height: 80vh;
    max-width: 100%;
    border: 1px solid var(--brass);
}

.lightbox-caption {
    color: var(--brass);
    margin-top: 14px;
    font-size: 15px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 960px) {
    .hero-grid,
    .stable-layout,
    .booking-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-specs {
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding-left: 0;
        padding-top: 28px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--pine-deep);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-light);
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .stable-specs-grid,
    .gallery-grid,
    .field-row,
    .news-row {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 24px;
    }

    .header-contacts .header-phone {
        display: none;
    }
}
