:root {
    --bg: #f6f1ec;
    --bg-2: #efe6dc;
    --ink: #2b2420;
    --muted: #6a5f58;
    --accent: #a55a3a;
    --accent-2: #7b3f26;
    --card: #fffdf9;
    --line: rgba(123, 63, 38, 0.15);
    --shadow: 0 18px 40px rgba(24, 18, 14, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 20% 20%, #fbece1 0, transparent 55%),
        radial-gradient(circle at 80% 0%, #f0e2d6 0, transparent 45%),
        linear-gradient(180deg, #f8f1ea 0%, #f1e6da 45%, #f7f1ea 100%);
}

h1,
h2,
h3 {
    font-family: "PT Serif", "Times New Roman", serif;
    margin: 0;
    font-weight: 400;
}

p {
    margin: 0 0 14px;
    line-height: 1.6;
    color: var(--muted);
}

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

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 35px;
}

/* Hero section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(165, 90, 58, 0.2), transparent 70%);
}

.hero__title {
    font-size: clamp(26px, 2.6vw, 38px);
    color: var(--ink);
}

.hero__subtitle {
    margin: 15px 0 14px;
    font-size: 18px;
    color: var(--muted);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(165, 90, 58, 0.12);
    color: var(--accent-2);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--accent-2);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 20px;
}

.hero__brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(40, 26, 18, 0.25);
    background: #fff;
    padding: 6px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero__image {
    position: relative;
}

.hero__image img {
    width: 100%;
    height: 415px;
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(40, 26, 18, 0.25);
    display: block;
    object-fit: cover;
    object-position: center top;
}

.hero__info {
    margin-top: 18px;
    display: grid;
    gap: 8px;
    font-size: 15px;
    color: var(--muted);
}

.hero__info strong {
    color: var(--ink);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--accent-2);
    border: 1px solid var(--accent);
}

/* Sections */
.section {
    margin-top: 48px;
}

.disclaimer {
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(165, 90, 58, 0.12);
    border: 1px solid rgba(165, 90, 58, 0.35);
    font-weight: 600;
    color: #7b3f26;
}

.section__title {
    font-size: 30px;
    margin-bottom: 16px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.feature {
    background: var(--card);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(32, 22, 16, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature img {
    width: 42px;
    height: 42px;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-header strong {
    margin: 0;
}

.feature p {
    margin: 0;
}

.feature strong {
    font-size: 18px;
}

/* Services */
.services-variant {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.services-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.services-v2 .service-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(123, 63, 38, 0.18);
    display: grid;
    gap: 10px;
}

.services-v2 .service-card .row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-v2 img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.service-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0;
    overflow: hidden;
    flex: 0 0 auto;
    cursor: pointer;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Cards */
.card {
    background: var(--card);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.gallery button {
    border: none;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}

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

.gallery button:hover img {
    transform: scale(1.05);
}

/* Cabinet */
.cabinet-photo {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    object-fit: cover;
    display: block;
    box-shadow: 0 12px 26px rgba(32, 22, 16, 0.12);
}

.cabinet-card {
    display: flex;
    flex-direction: column;
}

.cabinet-card p {
    margin: 0;
}

.cabinet-card .cabinet-photo {
    flex: 1;
    min-height: 360px;
}

/* Contact form */
.form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form input,
.form textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
}

.form textarea {
    height: 140px;
    resize: vertical;
}

.form .field {
    margin-bottom: 14px;
}

.captcha-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: center;
}

.captcha-row img {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    width: 180px;
    height: 60px;
}

/* Status messages */
.status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    display: none;
    border: 1px solid transparent;
}

.status.success {
    background: #e7f5ec;
    color: #1d6a3a;
    border-color: #b8e2c6;
    display: block;
}

.status.error {
    background: #fdecec;
    color: #8b1e1e;
    border-color: #f4b6b6;
    display: block;
}

.status.pending {
    background: #fff6e8;
    color: #7a4a1f;
    border-color: #f5d7b2;
    display: block;
}

/* Footer */
.footer {
    margin-top: 50px;
    text-align: center;
    color: rgba(43, 36, 32, 0.6);
    font-size: 14px;
}

/* Modal / Lightbox */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 10, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal__inner {
    position: relative;
    max-width: min(900px, 95vw);
    width: 100%;
}

.modal__inner img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
}

.modal__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #3a2a22;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Map */
.map-embed {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 360px;
    border: 1px solid var(--line);
    background: #fff;
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-embed a {
    color: #eee;
    font-size: 12px;
    position: absolute;
    top: 0;
    z-index: 2;
}

.map-embed a.map-link-secondary {
    top: 14px;
}

.map-photo {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    border: 1px solid var(--line);
    object-fit: cover;
    display: block;
    margin-top: 16px;
}

/* Booking form styles */
.booking-card {
    background: linear-gradient(135deg, var(--card) 0%, #fff9f5 100%);
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.booking-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(165, 90, 58, 0.15), transparent 70%);
    pointer-events: none;
}

.booking-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 18px;
}

.booking-badge svg {
    width: 24px;
    height: 24px;
}

.booking-form {
    display: grid;
    gap: 16px;
}

.booking-form .field {
    margin-bottom: 0;
}

.booking-form input {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(165, 90, 58, 0.15);
}

.booking-form input:disabled {
    background: #f5f2ef;
    color: var(--muted);
    cursor: not-allowed;
}

.booking-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.booking-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.time-select-wrapper {
    position: relative;
}

.time-select {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.time-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(165, 90, 58, 0.15);
}

.time-select:disabled {
    background: #f5f2ef;
    color: var(--muted);
    cursor: not-allowed;
}

.time-select option:disabled {
    color: #b0a8a0;
    background: #f5f2ef;
}

.time-select-wrapper::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--muted);
    pointer-events: none;
}

.booking-terms {
    margin: 16px 0;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.booking-terms ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
}

.booking-terms li {
    position: relative;
    padding: 4px 0;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.25;
}

.booking-terms li::before {
    content: "•";
    position: absolute;
    left: -16px;
    color: var(--accent);
    font-weight: bold;
}

.booking-terms li strong {
    color: var(--ink);
}

.booking-terms li:last-child {
    color: var(--accent-2);
    font-weight: 500;
}

.price-info {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(165, 90, 58, 0.08);
    border-radius: 12px;
    margin-top: 4px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.price-row.highlight {
    font-weight: 600;
    font-size: 16px;
    color: var(--accent-2);
    padding-top: 8px;
    border-top: 1px solid rgba(165, 90, 58, 0.2);
}

.btn-book {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    margin-top: 8px;
}

.btn-book:disabled {
    background: #c4b5ac;
    cursor: not-allowed;
    transform: none;
}

.btn-book:disabled:hover {
    background: #c4b5ac;
    transform: none;
}

.field-error {
    font-size: 13px;
    color: #b34040;
    margin-top: 4px;
    display: none;
}

.field-error.visible {
    display: block;
}

/* Flatpickr custom styles */
.flatpickr-calendar {
    font-family: "Montserrat", sans-serif;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(24, 18, 14, 0.18);
}

.flatpickr-day.selected {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

.flatpickr-day:hover {
    background: rgba(165, 90, 58, 0.15) !important;
}

.flatpickr-day.flatpickr-disabled {
    color: #ccc !important;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

    .captcha-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .booking-row {
        grid-template-columns: 1fr;
    }
}
