:root {
    --ink: #13242c;
    --ink-soft: #4a5e67;
    --paper: #f3efe6;
    --snow: #fbf9f5;
    --line: #e3d9c8;
    --gold: #b0894d;
    --gold-soft: #e8d7b8;
    --pine: #1d5c57;
    --pine-deep: #123e3b;
    --white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--snow);
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
}

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

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

h1, h2, h3, h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.6rem;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(1120px, calc(100% - 2.4rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 249, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 42px;
    height: 42px;
    color: var(--pine);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.logo-text span {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.nav a:hover,
.nav a.is-active {
    color: var(--ink);
}

.header-phone {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pine);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
}

.hero,
.page-hero {
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(176, 137, 77, 0.16), transparent 32%),
        linear-gradient(180deg, #ece6d8 0%, var(--snow) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    max-width: 14ch;
}

.lead {
    max-width: 48ch;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
}

.btn-primary {
    background: var(--pine);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--pine-deep);
}

.btn-ghost {
    border-color: var(--line);
    background: var(--white);
}

.hero-card,
.panel,
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.hero-card {
    padding: 1.6rem;
    box-shadow: 0 18px 40px rgba(19, 36, 44, 0.06);
}

.hero-card h3 {
    font-size: 1.5rem;
}

.stat-row,
.grid-3,
.grid-2,
.doctors-grid,
.services-grid {
    display: grid;
    gap: 1rem;
}

.stat-row {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1.4rem;
}

.stat strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
}

.stat span {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.section {
    padding: 4rem 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
}

.section-head h2,
.page-hero h1 + p,
.section h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

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

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

.card,
.panel {
    padding: 1.4rem;
}

.card h3,
.panel h3 {
    font-size: 1.45rem;
}

.muted {
    color: var(--ink-soft);
}

.tag {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--paper);
    color: var(--pine);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.band {
    background: var(--ink);
    color: #f6f1e7;
    padding: 3.5rem 0;
}

.band h2 {
    color: #fff;
}

.band .muted {
    color: #c9d3d7;
}

.list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(227, 217, 200, 0.4);
}

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

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    color: var(--pine-deep);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.2rem;
}

.map {
    min-height: 360px;
    border: 0;
    width: 100%;
    border-radius: 18px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.2rem 0 2.8rem;
    background: var(--paper);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    gap: 1.2rem;
    color: var(--ink-soft);
}

@media (max-width: 860px) {
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav,
    .header-phone {
        display: none;
    }

    .nav.is-open {
        display: flex;
        position: absolute;
        inset: 78px 1.2rem auto;
        flex-direction: column;
        padding: 1rem;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 14px;
    }

    .hero-grid,
    .grid-3,
    .grid-2,
    .stat-row,
    .doctors-grid,
    .services-grid,
    .contact-grid,
    .section-head {
        grid-template-columns: 1fr;
        display: grid;
    }
}
