/* Публичная онлайн-запись GIPIX — отдельный визуальный слой */
:root {
    --ob-brand: #1e3a5f;
    --ob-warm: #e8a87c;
    --ob-bg-tint: #eef2f7;
    --ob-accent: #e91e63;
    --ob-ink: #0c1222;
    --ob-muted: #5c6578;
    --ob-card: #ffffff;
    --ob-line: rgba(12, 18, 34, 0.08);
    --ob-radius: 20px;
    --ob-radius-sm: 12px;
    --ob-shadow: 0 4px 24px rgba(12, 18, 34, 0.06);
    --ob-shadow-lg: 0 20px 50px rgba(12, 18, 34, 0.12);
    --ob-font-head: "Outfit", system-ui, sans-serif;
    --ob-font: "Outfit", system-ui, sans-serif;
    --ob-mono: "IBM Plex Mono", ui-monospace, monospace;
    --ob-trans: 0.2s;
}

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

html { scroll-behavior: smooth; }

.ob-header h1,
.ob-hero h2,
.ob-wizard h3 {
    font-family: var(--ob-font-head);
}

body.ob-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--ob-font);
    color: var(--ob-ink);
    background:
        radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--ob-brand) 18%, transparent), transparent 55%),
        radial-gradient(900px 500px at -5% 30%, color-mix(in srgb, var(--ob-warm) 15%, transparent), transparent 50%),
        var(--ob-bg-tint);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

body.ob-body.ob-reduced-motion *,
body.ob-body.ob-reduced-motion *::before,
body.ob-body.ob-reduced-motion *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
}

body.ob-body.ob-fs-small .ob-app { font-size: clamp(0.98rem, 0.94rem + 0.5vw, 1.02rem); }
body.ob-body.ob-fs-large .ob-app { font-size: clamp(1.12rem, 1.05rem + 1.2vw, 1.2rem); }

body.ob-body.ob-anim-slow { --ob-trans: 0.32s; }
body.ob-body.ob-anim-fast { --ob-trans: 0.12s; }

.ob-app {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1.1rem calc(3rem + env(safe-area-inset-bottom, 0px));
    font-size: clamp(1.0625rem, 1rem + 0.9vw, 1.125rem);
}

/* Header */
.ob-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0 1.25rem;
}

@media (max-width: 600px) {
    .ob-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .ob-header__brand {
        max-width: 100%;
    }

    .ob-header__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .ob-header__text h1 {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
        word-break: break-word;
    }

    .ob-header__text p {
        white-space: normal;
    }

    .ob-cabinet-pill {
        max-width: min(100%, 300px);
    }
}

.ob-header__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.ob-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--ob-radius-sm);
    background: linear-gradient(145deg, var(--ob-brand), color-mix(in srgb, var(--ob-brand) 65%, #2a5a8a));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--ob-shadow);
}

.ob-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ob-header__text { min-width: 0; }

.ob-header__text h1 {
    margin: 0;
    font-size: clamp(1.1rem, 1rem + 1vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ob-header__text p {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    color: var(--ob-muted);
}

.ob-header__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ob-header-logout {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    border: 1px solid color-mix(in srgb, #c62828 35%, var(--ob-line));
    border-radius: var(--ob-radius-sm);
    background: color-mix(in srgb, #ffebee 40%, #fff);
    color: #b71c1c;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--ob-font);
    cursor: pointer;
    transition: background var(--ob-trans), transform var(--ob-trans);
}

.ob-header-logout.is-visible {
    display: inline-flex;
}

.ob-header-logout:hover {
    background: #ffebee;
}

.ob-cabinet-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.45rem 0.65rem 0.45rem 0.45rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ob-brand) 12%, #fff), #fff);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--ob-brand) 18%, transparent), 0 0 0 1px color-mix(in srgb, var(--ob-brand) 15%, transparent);
    cursor: pointer;
    text-align: left;
    font-family: var(--ob-font);
    transition: transform var(--ob-trans), box-shadow var(--ob-trans);
    max-width: min(220px, 52vw);
}

.ob-cabinet-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--ob-brand) 22%, transparent), 0 0 0 1px color-mix(in srgb, var(--ob-brand) 22%, transparent);
}

.ob-cabinet-pill__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--ob-brand), color-mix(in srgb, var(--ob-accent) 35%, var(--ob-brand)));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ob-cabinet-pill__avatar.has-initials {
    font-size: 0.8rem;
    letter-spacing: -0.02em;
}

.ob-cabinet-pill__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.ob-cabinet-pill__label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ob-ink);
    line-height: 1.15;
}

.ob-cabinet-pill__sub {
    font-size: 0.75rem;
    color: var(--ob-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.ob-cabinet-pill__chev {
    color: var(--ob-muted);
    font-size: 0.75rem;
    margin-left: 0.15rem;
    flex-shrink: 0;
}

/* Быстрые контакты под hero */
.ob-quick-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0.15rem 0 1rem;
    margin: 0 -0.15rem;
    scrollbar-width: none;
}

.ob-quick-bar::-webkit-scrollbar { display: none; }

.ob-quick-bar__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 4.5rem;
    min-height: 4.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--ob-radius-sm);
    background: var(--ob-card);
    border: 1px solid var(--ob-line);
    box-shadow: var(--ob-shadow);
    color: var(--ob-brand);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--ob-trans), box-shadow var(--ob-trans);
}

.ob-quick-bar__item i {
    font-size: 1.35rem;
    opacity: 0.92;
}

.ob-quick-bar__item span {
    color: var(--ob-ink);
    text-align: center;
    line-height: 1.2;
}

.ob-quick-bar__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--ob-shadow-lg);
}

/* Hero — форма сразу в фокусе */
.ob-hero {
    margin-bottom: 1rem;
}

.ob-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--ob-accent) 55%, var(--ob-brand));
    background: color-mix(in srgb, var(--ob-accent) 14%, transparent);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.ob-hero h2 {
    margin: 0;
    font-size: clamp(1.65rem, 5vw + 0.5rem, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ob-hero__sub {
    margin: 0.5rem 0 0;
    font-size: 1.02rem;
    color: var(--ob-muted);
    max-width: 36em;
}

/* Card / wizard */
.ob-card {
    background: var(--ob-card);
    border-radius: var(--ob-radius);
    box-shadow: var(--ob-shadow-lg);
    border: 1px solid var(--ob-line);
    overflow: hidden;
}

.ob-wizard {
    padding: 1.35rem 1.2rem 1.65rem;
}

@media (min-width: 640px) {
    .ob-wizard { padding: 1.55rem 1.75rem 1.85rem; }
}

.ob-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 1.35rem;
    position: relative;
}

.ob-steps::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 2px;
    background: var(--ob-line);
    z-index: 0;
    transform: translateY(-50%);
}

.ob-step-dot {
    position: relative;
    z-index: 1;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: #e8ecf2;
    color: var(--ob-muted);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: background var(--ob-trans), color var(--ob-trans), transform var(--ob-trans);
}

.ob-step-dot.is-active {
    background: var(--ob-brand);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ob-accent) 45%, transparent);
}

.ob-step-dot.is-done {
    background: color-mix(in srgb, var(--ob-brand) 35%, #4caf50);
    color: #fff;
}

.ob-step-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--ob-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: -0.85rem;
    margin-bottom: 1.25rem;
    padding: 0 0.15rem;
}

.ob-step { display: none; }
.ob-step.is-active { display: block; }

.ob-step h3 {
    margin: 0 0 1rem;
    font-size: 1.18rem;
    font-weight: 700;
}

/* Calendar */
.ob-cal {
    background: color-mix(in srgb, var(--ob-bg-tint) 65%, #fff);
    border-radius: var(--ob-radius-sm);
    padding: 1rem;
    border: 1px solid var(--ob-line);
}

.ob-cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.ob-cal__month {
    font-weight: 600;
    font-size: 0.95rem;
}

.ob-cal__nav {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--ob-brand);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.15s;
}

.ob-cal__nav:hover { opacity: 0.92; transform: scale(1.03); }

.ob-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.ob-cal__dow {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ob-muted);
    padding: 0.35rem 0;
}

.ob-cal__day {
    aspect-ratio: 1;
    max-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ob-cal__day:hover:not(.is-disabled):not(.is-selected) {
    border-color: color-mix(in srgb, var(--ob-brand) 35%, transparent);
}

.ob-cal__day.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent;
}

.ob-cal__day.is-today:not(.is-selected) {
    background: color-mix(in srgb, var(--ob-warm) 22%, #fff);
    font-weight: 700;
}

.ob-cal__day.is-selected {
    background: var(--ob-brand);
    color: #fff;
    font-weight: 700;
}

/* Time slots */
.ob-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin: 1rem 0 0.5rem;
    padding-bottom: 0.5rem;
}

.ob-slot {
    padding: 0.65rem 0.4rem;
    min-height: 46px;
    text-align: center;
    font-family: var(--ob-mono);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid var(--ob-line);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ob-slot:hover:not(.is-disabled):not(.is-booked):not(.is-selected) {
    border-color: color-mix(in srgb, var(--ob-brand) 45%, transparent);
}

.ob-slot.is-selected {
    background: var(--ob-brand);
    color: #fff;
    border-color: var(--ob-brand);
}

.ob-slot.is-booked {
    background: #f3e8e8;
    color: #8b3a3a;
    border-color: #e0bcbc;
    cursor: not-allowed;
    text-decoration: line-through;
    font-size: 0.72rem;
}

.ob-slot.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Form */
.ob-field { margin-bottom: 1rem; }

.ob-field label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ob-muted);
    margin-bottom: 0.35rem;
}

.ob-input, .ob-select, .ob-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    min-height: 48px;
    font-family: var(--ob-font);
    font-size: 1rem;
    border: 1px solid var(--ob-line);
    border-radius: var(--ob-radius-sm);
    background: #fafbfd;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ob-textarea {
    min-height: 5.75rem;
}

.ob-input:focus, .ob-select:focus, .ob-textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--ob-brand) 55%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ob-brand) 18%, transparent);
}

.ob-input.is-invalid, .ob-textarea.is-invalid { border-color: #c44; }

.ob-grid-2 {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 560px) {
    .ob-grid-2 { grid-template-columns: 1fr 1fr; }
}

.ob-hint { font-size: 0.82rem; color: var(--ob-muted); margin-top: 0.25rem; line-height: 1.45; }

.ob-hint--cabinet {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--ob-radius-sm);
    background: color-mix(in srgb, var(--ob-brand) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--ob-brand) 18%, transparent);
    color: var(--ob-ink);
    margin-bottom: 1rem;
}

.ob-hint--cabinet i {
    color: var(--ob-brand);
    margin-top: 0.12rem;
    flex-shrink: 0;
}

/* Buttons */
.ob-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
}

.ob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.78rem 1.2rem;
    min-height: 48px;
    font-family: var(--ob-font);
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: var(--ob-radius-sm);
    border: none;
    cursor: pointer;
    transition: transform var(--ob-trans), box-shadow var(--ob-trans), opacity var(--ob-trans), background var(--ob-trans);
}

.ob-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.ob-btn--primary {
    background: linear-gradient(135deg, var(--ob-brand), color-mix(in srgb, var(--ob-accent) 28%, var(--ob-brand)));
    color: #fff;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--ob-brand) 35%, transparent);
}

.ob-btn--primary:hover:not(:disabled) { transform: translateY(-1px); }

.ob-btn--ghost {
    background: transparent;
    color: var(--ob-brand);
    border: 1px solid color-mix(in srgb, var(--ob-brand) 28%, transparent);
}

.ob-btn--ghost:hover:not(:disabled) {
    background: color-mix(in srgb, var(--ob-brand) 8%, transparent);
}

.ob-btn--secondary {
    background: #eef1f6;
    color: var(--ob-ink);
}

/* Success */
.ob-success {
    text-align: center;
    padding: 1rem 0.5rem 0.5rem;
}

.ob-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #2e7d32, #43a047);
    color: #fff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ob-success__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.ob-linkcal {
    display: block;
    padding: 0.55rem;
    text-align: center;
    border-radius: 10px;
    background: #f0f4fa;
    color: var(--ob-brand);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
}

.ob-linkcal:hover { background: #e4eaf5; }

/* About collapsible */
.ob-about {
    margin-top: 1.5rem;
    border-radius: var(--ob-radius);
    border: 1px solid var(--ob-line);
    background: color-mix(in srgb, var(--ob-card) 92%, transparent);
    overflow: hidden;
}

.ob-about--lite {
    margin-top: 1rem;
    opacity: 0.96;
}

.ob-about--lite summary {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    color: var(--ob-muted);
}

.ob-about__summary-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ob-about summary {
    padding: 1rem 1.15rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ob-about summary::-webkit-details-marker { display: none; }

.ob-about__chev { transition: transform 0.2s; opacity: 0.5; }
.ob-about[open] .ob-about__chev { transform: rotate(180deg); }

.ob-about__body {
    padding: 0 1.15rem 1.15rem;
    font-size: 0.9rem;
    color: var(--ob-muted);
    border-top: 1px solid var(--ob-line);
}

.ob-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.ob-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ob-socials a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef1f6;
    color: var(--ob-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s;
}

.ob-socials a:hover { background: #e0e6ef; }

/* Footer */
.ob-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.78rem;
    color: var(--ob-muted);
}

.ob-footer a { color: var(--ob-brand); }

/* Modal cabinet */
.ob-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.ob-modal.is-open { display: flex; }

.ob-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 28, 0.45);
    backdrop-filter: blur(4px);
}

.ob-modal__panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(92vh, 720px);
    background: var(--ob-card);
    border-radius: var(--ob-radius) var(--ob-radius) 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    padding: 1.25rem 1.25rem 1.5rem;
    overflow-y: auto;
    animation: obSlideUp 0.28s ease-out;
}

.ob-cabinet-panel {
    max-width: 480px;
    max-height: min(94dvh, 820px);
    padding: 0 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border-radius: calc(var(--ob-radius) + 4px) calc(var(--ob-radius) + 4px) 0 0;
}

@media (min-width: 480px) {
    .ob-cabinet-panel {
        border-radius: calc(var(--ob-radius) + 2px);
        padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
    .ob-modal { align-items: center; padding: 1rem; }
    .ob-modal__panel { border-radius: var(--ob-radius); }
}

@keyframes obSlideUp {
    from { transform: translateY(100%); opacity: 0.85; }
    to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ob-modal__panel { animation: none; }
}

.ob-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    background: #f0f2f6;
    border-radius: 10px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ob-muted);
}

.ob-modal__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    padding-right: 2.5rem;
}

.ob-modal__lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ob-muted);
}

/* Личный кабинет — шапка и профиль */
.ob-cabinet__hero {
    padding: 1.35rem 1.25rem 1.1rem;
    margin: 0;
    background: linear-gradient(145deg, color-mix(in srgb, var(--ob-brand) 16%, #fff) 0%, color-mix(in srgb, var(--ob-warm) 10%, #fff) 55%, #fff 100%);
    border-bottom: 1px solid var(--ob-line);
    border-radius: inherit;
}

.ob-cabinet__hero.is-compact {
    padding: 0.85rem 1.15rem 0.75rem;
}

.ob-cabinet__hero.is-compact .ob-cabinet__hero-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.ob-cabinet__hero.is-compact .ob-modal__title {
    font-size: 1.15rem;
}

.ob-cabinet__hero.is-compact .ob-modal__lead {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.ob-cabinet__hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ob-brand), color-mix(in srgb, var(--ob-accent) 25%, var(--ob-brand)));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--ob-brand) 35%, transparent);
}

.ob-cabinet-userbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
    border-bottom: 1px solid var(--ob-line);
}

.ob-cabinet-userbar__main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.ob-cabinet-userbar__avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--ob-brand), color-mix(in srgb, var(--ob-accent) 30%, var(--ob-brand)));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--ob-shadow);
}

.ob-cabinet-userbar__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ob-ink);
    line-height: 1.25;
}

.ob-cabinet-userbar__phone {
    font-size: 0.88rem;
    color: var(--ob-muted);
    font-family: var(--ob-mono);
    margin-top: 0.15rem;
}

.ob-cabinet-userbar__logout {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    min-height: 44px;
    border-radius: var(--ob-radius-sm);
    border: 1px solid color-mix(in srgb, #c62828 28%, var(--ob-line));
    background: #fff;
    color: #b71c1c;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--ob-font);
    cursor: pointer;
    transition: background var(--ob-trans), transform var(--ob-trans);
}

.ob-cabinet-userbar__logout:hover {
    background: #ffebee;
}

.ob-cabinet-login {
    padding: 1.25rem 1.25rem 0.5rem;
}

.ob-field--cab label {
    font-size: 0.88rem;
    color: var(--ob-ink);
}

.ob-input--cab {
    font-size: 1.05rem !important;
    padding: 0.95rem 1.05rem !important;
    min-height: 52px !important;
}

.ob-input--code {
    text-align: center;
    font-family: var(--ob-mono) !important;
    font-size: 1.35rem !important;
    letter-spacing: 0.35em;
    font-weight: 600;
}

.ob-btn--cab-primary {
    width: 100%;
    min-height: 52px;
    font-size: 1.02rem;
    margin-top: 0.25rem;
}

.ob-btn--cab-secondary {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    margin-top: 0.35rem;
}

.ob-cabinet-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: var(--ob-radius-sm);
    background: color-mix(in srgb, var(--ob-brand) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--ob-brand) 12%, transparent);
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--ob-muted);
}

.ob-cabinet-hint i {
    color: var(--ob-brand);
    margin-top: 0.1rem;
}

.ob-cabinet-list {
    padding: 0 1.25rem;
}

.ob-cabinet-list__title {
    margin: 1rem 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ob-muted);
}

.ob-cabinet-appointments {
    max-height: min(42vh, 360px);
    overflow-y: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.ob-cabinet-footer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.25rem 0.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--ob-line);
    background: linear-gradient(0deg, #fff, color-mix(in srgb, var(--ob-bg-tint) 35%, #fff));
}

.ob-btn--cab-wide {
    width: 100%;
    min-height: 52px;
    font-size: 1.02rem;
}

.ob-cabinet-footer__logout {
    width: 100%;
    padding: 0.65rem;
    min-height: 44px;
    border: none;
    background: transparent;
    color: var(--ob-muted);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--ob-font);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.ob-cabinet-footer__logout:hover {
    color: #b71c1c;
}

.ob-cabinet-empty {
    text-align: center;
    padding: 1.5rem 0.75rem 1rem;
}

.ob-cabinet-empty__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--ob-brand) 10%, #fff);
    color: var(--ob-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.ob-cabinet-empty__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ob-ink);
}

.ob-cabinet-empty__text {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    color: var(--ob-muted);
    line-height: 1.45;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.ob-appt-card {
    border: 1px solid var(--ob-line);
    border-radius: var(--ob-radius-sm);
    padding: 1rem 1.05rem;
    margin-bottom: 0.75rem;
    background: #fafbfd;
    box-shadow: 0 2px 12px rgba(12, 18, 34, 0.04);
}

.ob-appt-card__date {
    font-family: var(--ob-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ob-brand);
}

.ob-appt-card__status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: #eef1f6;
    color: var(--ob-muted);
    margin-top: 0.35rem;
}

.ob-appt-card p {
    margin: 0.45rem 0 0;
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--ob-ink);
}

.ob-appt-chat {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ob-line);
}

.ob-appt-chat__thread {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 0.65rem;
    padding: 0.5rem;
    background: color-mix(in srgb, var(--ob-bg-tint) 80%, #fff);
    border-radius: var(--ob-radius-sm);
    border: 1px solid var(--ob-line);
}

.ob-chat-bubble {
    margin-bottom: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.ob-chat-bubble--client {
    background: #fff;
    border: 1px solid var(--ob-line);
    margin-right: 1.5rem;
}

.ob-chat-bubble--staff {
    background: color-mix(in srgb, var(--ob-brand) 14%, #fff);
    border: 1px solid color-mix(in srgb, var(--ob-brand) 22%, transparent);
    margin-left: 1.5rem;
}

.ob-chat-meta {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ob-muted);
    margin-bottom: 0.2rem;
}

.ob-appt-chat__input {
    margin-bottom: 0.5rem;
    min-height: 3rem;
}

.ob-appt-chat-toggle {
    margin-top: 0.65rem;
    font-size: 0.92rem !important;
    padding: 0.55rem 1rem !important;
    min-height: 46px !important;
    width: 100%;
    justify-content: center;
}

/* ЛК: актуальные записи */
.ob-appt-card--active {
    border-color: color-mix(in srgb, #2e7d32 45%, var(--ob-line));
    background: linear-gradient(135deg, color-mix(in srgb, #e8f5e9 88%, #fff) 0%, #fafbfd 100%);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.12);
}

.ob-appt-card--active .ob-appt-card__date {
    color: #1b5e20;
}

.ob-appt-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.ob-appt-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ob-brand) 12%, #fff);
    color: var(--ob-brand);
    border: 1px solid color-mix(in srgb, var(--ob-brand) 22%, transparent);
}

.ob-appt-chat-badge--staff {
    background: #fff8e1;
    color: #f57f17;
    border-color: rgba(245, 127, 23, 0.35);
}

.ob-appt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.ob-appt-cancel--danger {
    color: #c62828 !important;
    border-color: rgba(198, 40, 40, 0.35) !important;
}

.ob-appt-cancel--danger:hover {
    background: #ffebee !important;
}

/* ЛК: кнопки в боковом меню */
button.ob-lk-nav__item {
    width: 100%;
    margin: 0;
    cursor: pointer;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    text-align: left;
}

button.ob-lk-nav__item:hover:not(:disabled) {
    background: color-mix(in srgb, var(--ob-brand) 6%, transparent);
}

.ob-lk-panel[hidden] {
    display: none !important;
}

/* ЛК: таймлайн истории */
.ob-timeline {
    margin: 0;
    padding: 0 0 0 0.5rem;
    list-style: none;
    position: relative;
}

.ob-timeline::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--ob-brand) 35%, var(--ob-line)),
        color-mix(in srgb, var(--ob-brand) 8%, var(--ob-line))
    );
}

.ob-timeline__item {
    position: relative;
    padding: 0 0 1.35rem 3.1rem;
    margin: 0;
}

.ob-timeline__item:last-child {
    padding-bottom: 0.25rem;
}

.ob-timeline__dot {
    position: absolute;
    left: 0.55rem;
    top: 0.15rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid color-mix(in srgb, var(--ob-brand) 40%, var(--ob-line));
    color: var(--ob-brand);
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(12, 18, 34, 0.08);
    z-index: 1;
}

.ob-timeline__body {
    background: #fff;
    border: 1px solid var(--ob-line);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 4px 18px rgba(12, 18, 34, 0.05);
}

.ob-timeline__label {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ob-ink);
    letter-spacing: -0.02em;
}

.ob-timeline__detail {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--ob-muted);
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.ob-timeline__meta {
    margin: 0.5rem 0 0;
    font-family: var(--ob-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ob-muted);
}

.ob-timeline-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ob-muted);
    font-size: 0.95rem;
}

.ob-timeline-kind--cancelled .ob-timeline__dot {
    border-color: #bdbdbd;
    color: #757575;
}

.ob-timeline-kind--completed .ob-timeline__dot {
    border-color: #2e7d32;
    color: #2e7d32;
}

/* Notifications */
.ob-toast {
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 3000;
    max-width: min(92vw, 400px);
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--ob-shadow-lg);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ob-toast.is-visible { transform: translateX(-50%) translateY(0); }

.ob-toast--ok { background: #1b4332; color: #fff; }
.ob-toast--err { background: #5c1010; color: #fff; }
.ob-toast--info { background: var(--ob-ink); color: #fff; }

/* Progress */
.ob-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ob-brand), var(--ob-warm));
    z-index: 4000;
    width: 0;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.2s;
}

.ob-progress.is-on { opacity: 1; }

/* Loading inline */
.ob-loading {
    text-align: center;
    padding: 1.5rem;
    color: var(--ob-muted);
    font-size: 0.9rem;
}

.ob-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--ob-line);
    border-top-color: var(--ob-brand);
    border-radius: 50%;
    animation: obSpin 0.7s linear infinite;
    margin: 0 auto 0.65rem;
}

@keyframes obSpin { to { transform: rotate(360deg); } }

/* Autocomplete */
.ob-ac-wrap { position: relative; }

.ob-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 2px;
    background: #fff;
    border: 1px solid var(--ob-line);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--ob-shadow);
}

.ob-suggestions div {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    cursor: pointer;
}

.ob-suggestions div:hover { background: #f4f6f9; }

/* Ссылка «Личный кабинет» в шапке публичной записи */
a.ob-cabinet-pill--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.ob-cabinet-pill--link:hover {
    color: inherit;
}

/* Полноэкранный личный кабинет (/booking/<slug>/cabinet) */
.ob-lk-page {
    min-height: 100dvh;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ob-bg-tint) 55%, #fff) 0%, #f4f6fa 48%, #eef1f6 100%);
}

.ob-lk-layout {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.ob-lk-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--ob-line);
    box-shadow: 0 4px 24px rgba(12, 18, 34, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.ob-lk-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.ob-lk-topbar__brand:hover {
    color: inherit;
    opacity: 0.92;
}

.ob-lk-topbar__logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.ob-lk-topbar__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ob-lk-topbar__name {
    font-family: var(--ob-font-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ob-ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(56vw, 320px);
}

.ob-lk-topbar__sub {
    font-size: 0.82rem;
    color: var(--ob-muted);
    margin-top: 0.1rem;
}

.ob-lk-topbar__cta {
    flex-shrink: 0;
    min-height: 44px;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.92rem;
    gap: 0.45rem;
    display: inline-flex;
    align-items: center;
}

.ob-lk-shell {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 2.5rem;
    display: grid;
    grid-template-columns: min(260px, 32%) 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 880px) {
    .ob-lk-shell {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 2rem;
    }
}

.ob-lk-aside {
    background: #fff;
    border: 1px solid var(--ob-line);
    border-radius: var(--ob-radius);
    box-shadow: var(--ob-shadow);
    padding: 1.1rem 1rem 1.15rem;
}

@media (max-width: 880px) {
    .ob-lk-aside {
        order: 2;
    }
}

.ob-lk-aside__label {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ob-muted);
}

.ob-lk-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ob-lk-nav__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--ob-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ob-ink);
    border: 1px solid transparent;
}

.ob-lk-nav__item i {
    width: 1.15rem;
    text-align: center;
    color: var(--ob-brand);
    opacity: 0.9;
}

.ob-lk-nav__item.is-active {
    background: color-mix(in srgb, var(--ob-brand) 10%, #fff);
    border-color: color-mix(in srgb, var(--ob-brand) 18%, transparent);
}

.ob-lk-nav__item--soon {
    color: var(--ob-muted);
    font-weight: 500;
    cursor: default;
    opacity: 0.85;
}

.ob-lk-nav__item--soon::after {
    content: 'скоро';
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ob-muted);
    opacity: 0.75;
}

.ob-lk-aside__hint {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ob-muted);
}

.ob-lk-main {
    min-width: 0;
}

.ob-cabinet-panel-page {
    background: var(--ob-card, #fff);
    border-radius: var(--ob-radius);
    border: 1px solid var(--ob-line);
    box-shadow: var(--ob-shadow-lg);
    overflow: hidden;
}

.ob-lk-page .ob-cabinet__hero {
    border-radius: 0;
}

.ob-lk-page .ob-cabinet-appointments {
    max-height: none;
    min-height: 120px;
}

.ob-lk-page .ob-cabinet-login {
    padding-bottom: 1.5rem;
}

.ob-lk-footer-book {
    text-decoration: none;
    justify-content: center;
    box-sizing: border-box;
}

.ob-lk-notify-list {
    list-style: none;
    margin: 0;
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ob-lk-notify-card {
    border-radius: var(--ob-radius-sm);
    border: 1px solid var(--ob-line);
    padding: 0.85rem 1rem;
    background: color-mix(in srgb, var(--ob-brand) 4%, #fff);
}

.ob-lk-notify-card__meta {
    font-size: 0.75rem;
    color: var(--ob-muted);
    margin-bottom: 0.35rem;
}

.ob-lk-notify-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.ob-lk-notify-card__body {
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-wrap;
}
