:root {
    color-scheme: light;
    font-family: Inter, Arial, sans-serif;
    --bg: #fcfbfc;
    --surface: #ffffff;
    --surface-muted: #f6f3f6;
    --line: #e6dde3;
    --text: #17141c;
    --muted: #6e6973;
    --accent: #cc667f;
    --accent-dark: #b6546d;
    --success-bg: #eef8ef;
    --success-text: #245c2d;
    --error-bg: #fff1f1;
    --error-text: #9b3131;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.page {
    min-height: 100vh;
    padding: 20px 16px 32px;
    max-width: 720px;
    margin: 0 auto;
}

.app-header,
.screen,
.booking-section,
.services-section {
    display: grid;
    gap: 12px;
}

.app-header {
    padding: 10px 0 18px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.language-switcher {
    display: grid;
    gap: 8px;
    min-width: 128px;
    font-size: 14px;
    color: var(--muted);
}

.language-switcher select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--surface);
}

.stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.step-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    padding: 12px 10px;
}

.step-chip.active {
    border-color: var(--accent);
    background: #fff8fb;
    color: var(--text);
}

.step-chip.enabled {
    color: var(--text);
}

.step-chip:disabled {
    cursor: default;
    opacity: 1;
}

.step-index {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--surface-muted);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600;
}

.step-chip.active .step-index {
    background: var(--accent);
    color: #fff;
}

.screen-stack {
    display: grid;
}

.screen {
    gap: 16px;
}

.screen-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.muted {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.small-text {
    font-size: 13px;
}

h1,
h2,
h3 {
    margin: 0;
}

.specialist-cards {
    display: grid;
    gap: 12px;
}

.specialist-card {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    text-align: left;
}

.specialist-card.active {
    border-color: var(--accent);
    background: #fff8fb;
}

.specialist-card img {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-muted);
    border: 1px solid var(--line);
}

.specialist-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.profile-block,
.services-section,
.booking-section,
.selection-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.specialist-short {
    margin: 0;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    color: var(--accent-dark);
    text-decoration: none;
}

.portfolio-gallery {
    display: grid;
    gap: 12px;
}

.portfolio-stage {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-muted);
}

.portfolio-stage img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.portfolio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(23, 20, 28, 0.48);
    color: #fff;
    display: grid;
    place-items: center;
    padding: 0;
}

.portfolio-nav.prev {
    left: 10px;
}

.portfolio-nav.next {
    right: 10px;
}

.portfolio-caption {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.portfolio-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.portfolio-thumb {
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
}

.portfolio-thumb.active {
    border-color: var(--accent);
    background: #fff8fb;
}

.portfolio-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.service-chips,
.slots-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip,
.slot-button {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 12px;
}

.chip {
    text-align: left;
    min-width: 160px;
    flex: 1 1 160px;
}

.chip.active,
.slot-button.active {
    border-color: var(--accent);
    background: #fff8fb;
}

.chip strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.chip span,
.slot-button span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.selection-summary {
    display: grid;
    gap: 12px;
}

.summary-label {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
}

.booking-grid {
    display: grid;
    gap: 12px;
}

.booking-grid label {
    display: grid;
    gap: 8px;
}

.booking-grid input,
.booking-grid textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--surface);
}

.full-width {
    grid-column: 1 / -1;
}

.primary-button,
.secondary-button {
    border-radius: 8px;
    padding: 12px 14px;
}

.primary-button {
    border: 0;
    background: var(--accent);
    color: #fff;
}

.secondary-button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.message {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
}

.message.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.message.error {
    background: var(--error-bg);
    color: var(--error-text);
}

.empty-box {
    color: var(--muted);
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    width: 100%;
}

@media (min-width: 720px) {
    .booking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selection-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 719px) {
    .header-row,
    .screen-head {
        flex-direction: column;
        align-items: stretch;
    }

    .language-switcher {
        min-width: 100%;
    }

    .stepper {
        grid-template-columns: 1fr;
    }

    .portfolio-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
