/* Пошаговая запись, календарь и уведомления. */
.booking-page {
    padding-top: 32px;
}
.booking-page h1 {
    font-size: clamp(42px, 5vw, 74px);
}
.booking-progress {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    margin: 42px 0;
}
.booking-progress::before {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    height: 1px;
    background: var(--copper);
}
.booking-progress button,
.booking-progress > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    border: 0;
    background: none;
    font-size: 12px;
    padding: 0;
    position: relative;
    opacity: 1;
}
.booking-progress .route-dot {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    display: grid;
    place-items: center;
}
.booking-progress .current .route-dot {
    outline: 2px solid var(--copper);
    outline-offset: 4px;
    border-color: var(--cream);
    box-shadow: 0 0 18px #ee9f5e;
}
.booking-progress .complete .route-dot {
    background: var(--copper);
    color: var(--graphite);
    border-color: var(--copper);
}
.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}
.booking-panel {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-width: 0;
}
.booking-panel > h2 {
    font-size: 31px;
    margin-bottom: 24px;
}
.booking-panel > .search-field {
    margin-bottom: 24px;
}
.choice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 540px;
    overflow: auto;
    padding: 5px;
}
.choice-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 17px;
    text-align: left;
    background: #30282088;
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 12px;
    color: var(--cream);
}
.choice-card.chosen {
    border-color: var(--copper);
    box-shadow: inset 3px 0 var(--copper);
    background: #684b3433;
}
.choice-card img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    flex-shrink: 0;
}
.choice-card strong {
    font: 22px/1.18 var(--serif);
    display: block;
}
.choice-card small {
    font: 12px/1.4 var(--sans);
    display: block;
    margin-top: 7px;
    color: var(--taupe);
}
.choice-card b {
    margin-left: auto;
    font: 21px var(--serif);
    white-space: nowrap;
    font-weight: 400;
}
.choice-card .route-dot {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}
.avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--espresso);
    color: var(--copper);
    font: 23px var(--serif);
}
.time-picker {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 26px;
}
.time-options {
    padding-left: 26px;
    border-left: 1px solid var(--line);
}
.time-options h2 {
    font-size: 29px;
    margin-bottom: 16px;
}
.time-options > .fine-print:last-child {
    margin-top: 30px;
}
.calendar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
}
.calendar-heading h3 {
    font-size: 24px;
    text-transform: capitalize;
}
.calendar-heading .icon-button {
    border: 0;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px 3px;
}
.calendar-weekday {
    text-align: center;
    font-size: 11px;
    color: var(--taupe);
    padding-bottom: 12px;
}
.calendar-grid button {
    background: none;
    border: 0;
    border-radius: 50%;
    min-height: 38px;
    aspect-ratio: 1;
    padding: 2px;
    font-size: 14px;
}
.calendar-grid .chosen {
    background: var(--copper);
    color: var(--graphite);
}
.calendar-grid .other-month {
    color: var(--taupe);
    opacity: 0.5;
}
.calendar-grid button:disabled {
    opacity: 0.22;
}
.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.slots > button {
    min-height: 44px;
    border: 1px solid var(--taupe);
    border-radius: 10px;
    background: transparent;
    padding: 10px 18px;
}
.slots > .chosen {
    background: var(--copper);
    color: var(--graphite);
    border-color: var(--copper);
    box-shadow: 0 0 18px #e8ab7b22;
}
.booking-summary {
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.booking-summary > h2 {
    font-size: 29px;
    margin-bottom: 25px;
}
.summary-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}
.summary-item > img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}
.summary-item h3 {
    font-size: 22px;
}
.summary-item p {
    font-size: 12px;
    color: var(--taupe);
    margin-top: 7px;
}
.summary-item small {
    color: var(--taupe);
}
.booking-summary dl {
    margin: 26px 0 20px;
}
.booking-summary dl > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    margin-top: 15px;
    font-size: 14px;
}
.booking-summary dt {
    color: var(--taupe);
}
.booking-summary dd {
    text-align: right;
}
.booking-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin: 28px 0 64px;
}
.booking-navigation .legend-line {
    flex: 1;
}
.booking-navigation .button {
    min-width: 160px;
}
.wide {
    width: 100%;
    margin-top: 25px;
}
.reservation-page {
    max-width: 1050px;
    margin: auto;
}
.reservation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}
.reservation-form {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.reservation-form h2 {
    font-size: 32px;
    margin-bottom: 22px;
}
.reservation-review > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    margin: 14px 0;
}
.reservation-review dt {
    color: var(--taupe);
    font-size: 13px;
}
.reservation-review dd {
    overflow-wrap: anywhere;
}
.reservation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.reservation-buttons > * {
    flex: 1;
}
.home-notifications {
    margin: 18px var(--space) 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}
.notification-heading > div {
    display: flex;
    align-items: center;
    gap: 14px;
}
.notification-heading svg {
    color: var(--copper);
}
.notification-heading h2 {
    font-size: 26px;
}
.notification-heading > a {
    font-size: 13px;
    color: var(--copper);
}
.home-notice-list {
    display: grid;
    gap: 10px;
}
.home-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: #71533722;
    border: 1px solid #a6795055;
    border-radius: 10px;
}
.home-notice.hour {
    border-color: var(--copper);
}
.home-notice > svg {
    color: var(--copper);
}
.home-notice > div {
    flex: 1;
}
.home-notice h3 {
    font-size: 24px;
}
.home-notice p {
    color: var(--taupe);
    font-size: 13px;
    margin-top: 8px;
}
.home-notice .button,
.push-settings .button {
    min-height: 38px;
    padding: 8px 18px;
    font-size: 12px;
}
.push-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
}
.result-backdrop {
    position: fixed;
    inset: 0;
    background: #0009;
    display: grid;
    place-items: center;
    z-index: 150;
    padding: 24px;
    backdrop-filter: blur(4px);
}
.result-card {
    position: relative;
    max-width: 430px;
    width: 100%;
    background: linear-gradient(130deg, #2d2620, #1d1b18);
    border: 1px solid var(--copper);
    border-radius: 20px;
    padding: 38px 30px 28px;
    box-shadow: 0 20px 70px #0006;
    text-align: center;
}
.result-card > .icon-button {
    position: absolute;
    right: 12px;
    top: 12px;
    border: 0;
}
.result-symbol {
    width: 54px;
    height: 54px;
    border: 2px solid var(--copper);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 26px;
    color: var(--copper);
}
.result-symbol svg {
    width: 32px;
    height: 32px;
}
.result-card h2 {
    font-size: 36px;
    margin-bottom: 15px;
}
.result-card p {
    font-size: 14px;
    color: var(--taupe);
    margin-bottom: 20px;
}
.result-card .button {
    width: 100%;
    margin-top: 10px;
}
@media (max-width: 1100px) {
    .time-picker {
        grid-template-columns: 1fr;
    }
    .time-options {
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}
@media (max-width: 760px) {
    .booking-page h1 {
        font-size: 38px;
    }
    .booking-page .page-heading > p {
        font-size: 14px;
    }
    .booking-progress {
        gap: 8px;
        margin: 30px 0;
    }
    .booking-progress button,
    .booking-progress > div {
        font-size: 9px;
        gap: 12px;
    }
    .booking-progress .route-dot {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        font-size: 11px;
    }
    .booking-progress::before {
        top: 9px;
    }
    .booking-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .booking-panel,
    .booking-summary {
        width: 100%;
        padding: 20px 16px;
    }
    .booking-panel > h2 {
        font-size: 29px;
    }
    .booking-summary {
        order: 2;
    }
    .booking-summary h2 {
        font-size: 27px;
    }
    .choice-list {
        padding: 5px 1px;
        max-height: 520px;
    }
    .choice-card {
        gap: 12px;
        padding: 13px 10px;
        flex-wrap: wrap;
    }
    .choice-card > .route-dot {
        display: none;
    }
    .choice-card img {
        width: 48px;
        height: 48px;
    }
    .choice-card > span:not(.route-dot):not(.avatar) {
        flex: 1;
        min-width: 100px;
    }
    .choice-card strong {
        font-size: 21px;
    }
    .choice-card b {
        font-size: 19px;
        margin-left: 60px;
    }
    .time-picker {
        display: block;
    }
    .calendar-heading h3 {
        font-size: 25px;
    }
    .calendar-grid button {
        max-width: 48px;
        min-height: 36px;
    }
    .calendar-grid {
        gap: 5px 2px;
    }
    .booking-navigation {
        gap: 14px;
        margin-bottom: 30px;
    }
    .booking-navigation .button {
        min-width: 0;
        flex: 1;
        padding: 12px 18px;
    }
    .booking-navigation .legend-line {
        display: none;
    }
    .reservation-grid {
        display: flex;
        flex-direction: column;
    }
    .reservation-form {
        padding: 24px 18px;
    }
    .reservation-review > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .home-notifications {
        padding: 18px 15px;
        margin: 16px 16px 0;
    }
    .notification-heading {
        gap: 12px;
        align-items: flex-start;
    }
    .notification-heading h2 {
        font-size: 23px;
    }
    .notification-heading > a {
        font-size: 11px;
        white-space: nowrap;
        padding-top: 6px;
    }
    .home-notice {
        padding: 14px 12px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .home-notice > div {
        flex-basis: 75%;
    }
    .home-notice .button {
        margin-left: 34px;
    }
    .home-notice h3 {
        font-size: 22px;
    }
    .push-settings {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .result-backdrop {
        align-items: end;
        padding: 0;
    }
    .result-card {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }
}
.result-backdrop[hidden] {
    display: none;
}
.result-card {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}
.result-visit {
    text-align: left;
    border-block: 1px solid var(--line);
    padding-block: 12px;
}
.result-visit > div {
    margin-block: 10px;
}
.result-visit dt {
    color: var(--muted);
    font-size: 11px;
}
.result-visit dd {
    margin: 3px 0 0;
    font-size: 14px;
}
.error-symbol {
    color: var(--danger);
}
.booking-progress {
    scroll-margin-top: 20px;
}
@media (max-width: 760px) {
    .reservation-grid:has([data-review-step]:not([hidden])) .booking-summary {
        order: -1;
    }
}
