:root {
    --paper: #f7f4ee;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --ink: #24201b;
    --muted: #6f665d;
    --line: #e2d8cb;
    --accent: #8a5a35;
    --accent-dark: #5d3b22;
    --sage: #607466;
    --teal: #275f63;
    --clay: #b66b4a;
    --shadow: 0 18px 45px rgba(65, 48, 35, 0.12);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
    margin: 0 0 0.65rem;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.13;
}

h1 {
    max-width: 860px;
    font-size: clamp(2.25rem, 6vw, 4.7rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
    font-size: 1.32rem;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--teal);
    color: #fff;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(226, 216, 203, 0.86);
    background: rgba(255, 253, 248, 0.95);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-weight: 700;
}

.brand small {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.79rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    background: #eee5d8;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 12px 26px rgba(93, 59, 34, 0.2);
}

.button--ghost {
    background: transparent;
    color: var(--accent-dark);
}

.button--ghost:hover {
    background: #efe3d4;
    color: var(--accent-dark);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.header-cta {
    flex: 0 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 48px;
    background:
        linear-gradient(120deg, rgba(39, 95, 99, 0.12), transparent 38%),
        linear-gradient(180deg, #fffdf8 0%, #f7f4ee 100%);
}

.hero-grid,
.apartment-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 44px;
    align-items: center;
}

.hero-copy {
    padding: 20px 0;
}

.eyebrow {
    margin-bottom: 0.7rem;
    color: var(--sage);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lead {
    max-width: 720px;
    color: #4f463e;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.hero-panel img,
.apartment-hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.hero-stats span {
    min-width: 0;
    padding: 18px;
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-stats strong {
    display: block;
    color: var(--teal);
    font-size: 1.7rem;
    line-height: 1;
}

.section {
    padding: 72px 0;
}

.section--soft {
    background: #eee8dd;
}

.section--tight {
    padding-top: 26px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.card-grid,
.list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.list-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.apartment-card,
.info-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: 0 12px 28px rgba(65, 48, 35, 0.07);
}

.apartment-card__image-link {
    display: block;
}

.apartment-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.apartment-card__body,
.info-card {
    padding: 22px;
}

.apartment-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.fact-list,
.check-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 18px 0;
    list-style: none;
}

.fact-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-list li,
.check-list li {
    position: relative;
    padding-left: 22px;
    color: #534940;
}

.fact-list li::before,
.check-list li::before {
    position: absolute;
    left: 0;
    color: var(--clay);
    content: "•";
    font-weight: 900;
}

.comparison-table {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: 0 10px 24px rgba(65, 48, 35, 0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 930px;
}

th,
td {
    padding: 15px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f5efe6;
    color: var(--accent-dark);
    font-size: 0.87rem;
}

tr:last-child td {
    border-bottom: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    align-items: start;
}

.highlight-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--surface-strong);
    box-shadow: 0 10px 24px rgba(65, 48, 35, 0.07);
}

.detail-card-list {
    display: grid;
    gap: 18px;
    margin: 26px 0 34px;
}

.detail-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--surface-strong);
}

.detail-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    object-fit: cover;
}

.detail-card h3 {
    font-size: 1.18rem;
}

.detail-card strong {
    display: block;
    margin-top: 8px;
    color: var(--accent-dark);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 14px 0 8px;
    list-style: none;
}

.pill-list li {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8f1e8;
    color: #534940;
    font-size: 0.9rem;
    font-weight: 700;
}

.text-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    font-weight: 800;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
}

.faq-list summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--ink);
    font-weight: 800;
}

.faq-list details p {
    padding: 0 20px 18px;
}

.page-hero {
    padding: 62px 0;
    background:
        linear-gradient(120deg, rgba(96, 116, 102, 0.18), transparent 44%),
        #fffdf8;
}

.compact-hero {
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--teal);
}

.apartment-hero {
    padding-bottom: 44px;
}

.apartment-hero-image {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.facts-panel {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
}

.facts-panel div {
    min-width: 0;
    padding: 20px;
    border-right: 1px solid var(--line);
}

.facts-panel div:last-child {
    border-right: 0;
}

.facts-panel strong,
.facts-panel span {
    display: block;
}

.facts-panel strong {
    color: var(--teal);
}

.facts-panel span {
    color: var(--muted);
    font-size: 0.86rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    border-radius: var(--radius);
    object-fit: cover;
}

.gallery-grid img:first-child {
    grid-row: span 2;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    background: var(--surface-strong);
}

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

.link-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.readable {
    max-width: 820px;
}

.site-footer {
    padding: 54px 0 24px;
    background: #27241f;
    color: #f7f4ee;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
}

.site-footer p {
    color: #d7cec2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #f1dfc6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #cfc3b6;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .header-cta {
        width: 100%;
    }

    .hero-grid,
    .apartment-hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .facts-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .facts-panel div:nth-child(3) {
        border-right: 0;
    }

    .facts-panel div:nth-child(n + 4) {
        border-top: 1px solid var(--line);
    }

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

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .hero,
    .section,
    .page-hero {
        padding: 46px 0;
    }

    .brand {
        white-space: normal;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .main-nav a {
        background: #f3eadf;
        text-align: center;
    }

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

    .hero-stats span {
        border-bottom: 1px solid var(--line);
    }

    .hero-stats span:last-child {
        border-bottom: 0;
    }

    .fact-list.compact {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface-strong);
        box-shadow: 0 10px 20px rgba(65, 48, 35, 0.06);
    }

    td {
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
    }

    td::before {
        color: var(--muted);
        content: attr(data-label);
        font-weight: 800;
    }

    td:last-child {
        border-bottom: 0;
    }

    .facts-panel {
        grid-template-columns: 1fr;
    }

    .facts-panel div {
        border-right: 0;
        border-top: 1px solid var(--line);
    }

    .facts-panel div:first-child {
        border-top: 0;
    }

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

    .detail-card {
        grid-template-columns: 1fr;
    }

    .gallery-grid img:first-child {
        grid-row: auto;
    }

    .gallery-grid img {
        min-height: 210px;
    }

    .cta-band,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

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