﻿:root {
    --beige: #FDF8F3;
    --beige-dark: #F5EDE4;
    --brown: #A67C52;
    --brown-dark: #8B6644;
    --brown-footer: #5C4033;
    --teal: #5B9A8B;
    --teal-light: #E8F4F1;
    --white: #ffffff;
    --text: #3D3229;
    --text-muted: #6B5D52;
    --shadow: 0 8px 32px rgba(92, 64, 51, 0.08);
    --shadow-card: 0 4px 24px rgba(92, 64, 51, 0.06);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Open Sans', system-ui, sans-serif;
    --container: 1140px;
    --header-h: 72px;
    --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--beige);
    line-height: 1.65;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    text-align: center;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.section { padding: clamp(3rem, 6vw, 5rem) 0; position: relative; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.9rem 1.75rem; border-radius: var(--radius); font-family: var(--font-sans);
    font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
    border: 2px solid transparent; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-primary {
    background: var(--brown); color: var(--white); border-color: var(--brown);
    text-transform: uppercase;
}
.btn-primary:hover { background: var(--brown-dark); border-color: var(--brown-dark); }
.btn-outline {
    background: transparent; color: var(--brown); border-color: var(--brown);
}
.btn-outline:hover { background: rgba(166, 124, 82, 0.08); }
.btn-book {
    background: var(--teal); color: var(--white); border-color: var(--teal);
    width: 100%; padding: 1rem; font-size: 0.95rem; border-radius: var(--radius);
}
.btn-book:hover { background: #4a8578; border-color: #4a8578; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.78rem; }

/* Header */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 200;
    background: rgba(253, 248, 243, 0.92);
    backdrop-filter: blur(10px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h); gap: 1rem;
}
.logo {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--text);
}
.logo-mark {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 12px;
    background: rgba(166, 124, 82, 0.12); color: var(--brown);
}
.main-nav ul { display: flex; gap: clamp(0.5rem, 2vw, 1.75rem); flex-wrap: wrap; }
.main-nav a {
    font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
    padding: 0.35rem 0; transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--brown); }
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero {
    margin-top: var(--header-h);
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
    background: linear-gradient(135deg, var(--beige) 0%, #F0F5F3 45%, #E8F0ED 100%);
    position: relative; overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3.5vw, 2.65rem);
    font-weight: 600; line-height: 1.25;
    color: var(--text); margin-bottom: 1.25rem;
}
.hero-lead {
    font-size: 1rem; color: var(--text-muted);
    margin-bottom: 2rem; max-width: 34ch;
}
.hero-visual img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.hero-deco {
    position: absolute; color: rgba(91, 154, 139, 0.35); pointer-events: none;
}
.hero-deco--left { bottom: 2rem; left: 1.5rem; transform: rotate(-15deg); }
.hero-deco--right { top: 1rem; right: 2rem; color: rgba(166, 124, 82, 0.25); transform: rotate(20deg); }

/* Services */
.services-section { background: linear-gradient(180deg, var(--beige) 0%, var(--teal-light) 100%); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem 1.5rem; text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; margin-bottom: 1.25rem;
    color: var(--brown);
}
.service-card h3 {
    font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
    margin-bottom: 0.75rem; color: var(--text);
}
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* Specialists */
.specialists-section { background: var(--beige); }
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 760px; margin-inline: auto;
}
.specialist-card {
    background: var(--white); border-radius: var(--radius);
    padding: 1.5rem; text-align: center;
    box-shadow: var(--shadow-card);
}
.specialist-photo {
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden; margin-bottom: 1.25rem;
}
.specialist-photo img {
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
.specialist-card h3 {
    font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600;
    margin-bottom: 0.5rem;
}
.specialist-credentials {
    font-size: 0.82rem; font-weight: 600; color: var(--brown);
    margin-bottom: 0.65rem; line-height: 1.4;
}
.specialist-text { font-size: 0.88rem; color: var(--text-muted); }

/* Booking */
.booking-section { background: var(--beige-dark); }
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; align-items: start;
}
.booking-visual img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.booking-visual-caption {
    margin-top: 1.25rem;
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 1rem;
}
.booking-visual-caption h3 {
    font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
}
.booking-widget {
    background: var(--white); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow-card);
}
.calendar-widget { margin-bottom: 1.5rem; }
.calendar-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}
.calendar-title {
    font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
}
.calendar-nav {
    display: grid; place-items: center;
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: var(--beige); color: var(--text); cursor: pointer;
    transition: background 0.2s;
}
.calendar-nav:hover { background: var(--beige-dark); }
.calendar-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px; margin-bottom: 8px;
}
.calendar-weekdays span {
    text-align: center; font-size: 0.72rem; font-weight: 600;
    color: var(--text-muted); padding: 0.25rem;
}
.calendar-days {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.calendar-days button {
    aspect-ratio: 1; border: none; border-radius: 50%;
    background: transparent; font-size: 0.85rem; cursor: pointer;
    color: var(--text); transition: background 0.15s, color 0.15s;
}
.calendar-days button:hover:not(:disabled) { background: var(--beige); }
.calendar-days button.selected {
    background: var(--brown); color: var(--white); font-weight: 600;
}
.calendar-days button.other-month { color: #C4B8AE; }
.calendar-days button:disabled { opacity: 0.35; cursor: default; }
.calendar-days span.empty { aspect-ratio: 1; }

.booking-form { display: flex; flex-direction: column; gap: 0.85rem; }
.booking-form input,
.booking-form select {
    width: 100%; padding: 0.85rem 1rem;
    border: 1px solid rgba(166, 124, 82, 0.25);
    border-radius: calc(var(--radius) / 2);
    background: var(--beige);
}
.booking-form input:focus,
.booking-form select:focus {
    outline: 2px solid rgba(166, 124, 82, 0.35);
    border-color: var(--brown);
}

/* Articles */
.articles-section { background: var(--beige); }
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}
.article-card h3 {
    font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600;
    margin-bottom: 0.85rem; line-height: 1.35;
}
.article-card h3 a { transition: color 0.2s; }
.article-card h3 a:hover { color: var(--brown); }
.article-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* Footer */
.site-footer {
    background: var(--brown-footer);
    color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 2rem; align-items: start;
    padding-bottom: 2rem;
}
.footer-name {
    font-family: var(--font-serif); font-size: 1.35rem;
    display: block; margin-bottom: 1rem;
}
.footer-phones { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-phones a {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.92rem; opacity: 0.9; transition: opacity 0.2s;
}
.footer-phones a:hover { opacity: 1; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a {
    font-size: 0.88rem; opacity: 0.85; transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); color: var(--white);
    transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.2); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.82rem; opacity: 0.75; }

/* Toast */
.toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%);
    background: var(--brown-footer); color: var(--white);
    padding: 0.85rem 1.5rem; border-radius: var(--radius);
    font-size: 0.9rem; z-index: 999; opacity: 0;
    transition: transform 0.3s, opacity 0.3s; pointer-events: none;
    max-width: min(90vw, 420px); text-align: center;
    box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid,
    .booking-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
    .specialists-grid { grid-template-columns: 1fr; max-width: 360px; }
    .articles-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-phones { align-items: center; }
    .footer-social { justify-content: center; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--beige); padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid rgba(166, 124, 82, 0.15);
        transform: translateY(-120%); opacity: 0; pointer-events: none;
        transition: transform 0.25s, opacity 0.25s;
    }
    .main-nav.open {
        transform: translateY(0); opacity: 1; pointer-events: auto;
    }
    .main-nav ul { flex-direction: column; gap: 0.75rem; }
    .hero-deco--left { display: none; }
}
