:root {
    --bg: #f7f3ee;
    --surface: #ffffff;
    --line: #e0d8ce;
    --text: #251f1c;
    --muted: #786d65;
    --accent: #8f3f56;
    --accent-hover: #733044;
    --soft: #fbebef;
    --danger: #9a3412;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(rgba(247, 243, 238, 0.88), rgba(247, 243, 238, 0.88)),
        url("https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; }

.page {
    min-height: 100vh;
    display: grid;
    align-items: center;
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
}

.booking {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 28px;
}

.header {
    margin-bottom: 22px;
}

.section-label {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

.form, .step-page {
    display: grid;
    gap: 16px;
}

.salon-info {
    display: grid;
    gap: 22px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.salon-info p {
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
}

.salon-actions,
.contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-list {
    align-items: center;
}

.contact-link,
.address-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--accent-hover);
    padding: 9px 12px;
    font-weight: 900;
    text-decoration: none;
}

.address-contact {
    width: 100%;
    justify-content: flex-start;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.address-contact:hover,
.contact-link:hover {
    border-color: var(--accent);
    background: var(--soft);
}

.icon-contact {
    width: 44px;
    height: 44px;
    padding: 0;
}

.text-contact {
    min-width: 64px;
    min-height: 44px;
}

.contact-link svg,
.address-contact svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: currentColor;
}

.phone-contact {
    min-height: 44px;
}

.step-header {
    display: grid;
    gap: 5px;
}

.step-header p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.choice-list {
    display: grid;
    gap: 10px;
}

.choice-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 14px;
    text-align: left;
    cursor: pointer;
}

.choice-card:hover,
.choice-card:focus {
    border-color: var(--accent);
    background: var(--soft);
    outline: none;
}

.choice-card strong {
    display: block;
    font-size: 18px;
}

.choice-card span,
.choice-card small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.service-choice b {
    flex: 0 0 auto;
    color: var(--accent-hover);
    white-space: nowrap;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 10px 12px;
}

textarea {
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(143, 63, 86, 0.16);
}

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

.slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.slot {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.slot:hover,
.slot:focus {
    border-color: var(--accent);
    background: var(--soft);
    color: var(--accent-hover);
    outline: none;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.primary-action, .secondary-action {
    min-height: 42px;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
}

.primary-action {
    border: 0;
    background: var(--accent);
    color: #ffffff;
}

.primary-action:hover { background: var(--accent-hover); }

.secondary-action {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
}

.empty {
    grid-column: 1 / -1;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 16px;
    text-align: center;
}

.reviews-modal {
    width: min(720px, calc(100% - 32px));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
}

.reviews-modal::backdrop {
    background: rgba(37, 31, 28, 0.42);
}

.reviews-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.reviews-list {
    display: grid;
    gap: 10px;
}

.review-card {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.review-card span {
    color: var(--accent-hover);
    font-weight: 900;
}

.review-card p {
    color: var(--muted);
    font-weight: 700;
}

.error { color: var(--danger); }
.is-hidden { display: none; }

@media (max-width: 760px) {
    .client-grid {
        grid-template-columns: 1fr;
    }

    .slot-header,
    .choice-card,
    .step-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .service-choice b {
        white-space: normal;
    }
}
