/* Онлайн-запись: mobile-first */

.booking {
    --green: #89966f;
    --ink: #2f2f2f;
    --line: #e2e2e2;
    width: 100%;
    max-width: none;
    margin: 92px auto 70px;
    color: var(--ink);
    font-family: "SF Pro Display", Arial, sans-serif;
}

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


/*.booking button, .booking input, .booking select { font:inherit; }*/

.booking__top {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.booking__map {
    display: none;
    position: relative;
    min-height: 240px;
    overflow: hidden;
    background: linear-gradient(145deg, #b9e7a8 0 35%, #98d8ef 35% 48%, #d5edc8 48% 75%, #acd9e8 75%);
    border-radius: 16px;
}

.booking__map-label {
    position: absolute;
    top: 48%;
    left: 38%;
    padding: 7px 10px;
    font-size: 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px #71808b55;
}

.booking__map-pin {
    position: absolute;
    z-index: 1;
    width: 13px;
    height: 13px;
    background: var(--green);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 1px 4px #0005;
    transform: rotate(-45deg);
}

.booking__map-pin--one {
    top: 39%;
    left: 49%
}

.booking__map-pin--two {
    top: 55%;
    left: 43%
}

.booking__map-pin--three {
    top: 64%;
    left: 55%
}

.booking__settings {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.booking__settings label,
.booking__calendar legend {
    display: grid;
    gap: 7px;
    font-size: 14px;
}

.booking select, .booking__contact input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 14px;
    color: #444;
    background-color: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 14px;
    font: inherit;
    font-size: 14px;
}

.booking select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='m2 2 8 8 8-8' fill='none' stroke='%233a3a3a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 9px;
}

.booking select::-ms-expand {
    display: none;
}

.booking__address-control {
    position: relative;
    display: flex;
    gap: 10px;
}

.booking__address-select {
    min-width: 0;
    height: 74px!important;
    line-height: 1.25;
}

.booking__address-value {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    padding-right: 42px;
    color: #444;
    font-size: 14px;
    line-height: 1.3;
    pointer-events: none;
    transform: translateY(-50%);
}

.booking__address-select {
    color: transparent!important;
}

.booking__map-button {
    display: flex;
    flex: 0 0 74px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    color: var(--green);
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 14px;
    cursor: pointer;
}

.booking__map-button svg {
    width: 29px;
    height: 29px;
    fill: currentColor;
}

.booking__map-button span {
    display: none;
}

.booking__map-close {
    display: none;
}

.booking__calendar {
    padding: 0;
    margin: 0;
    border: 0;
}

.booking__calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    margin-top: 12px;
}

.booking__calendar-head button {
    text-align: center;
    width: 28px;
    height: 28px;
    border: 0;
    color: #424242;
    background: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.booking .appointment{
    overflow: hidden;
}
.booking__week,
.booking__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px 20px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.booking__week {
    padding-top: 12px;
    color: #888;
}

.booking__week span {
    min-width: 0;
}

.booking__days {
    padding-top: 0;
}

.booking__calendar-status {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    padding: 10px;
    color: #8b966f;
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    text-align: center;
}

.booking__calendar-status span:last-child {
    color: #8f8f8f;
}

.booking__day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0;
    color: #333;
    border: 0;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.booking__day.is-muted {
    color: #c5c5c5;
}

.booking__day.is-selected {
    color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green);
    background: #fff;
}

.booking__day:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.booking__dates {
    display: flex;
    gap: 8px;
    margin: 24px 0;
    overflow-x: none;
    overflow: hidden;
    padding-bottom: 3px;
}

.booking__dates button, .booking__times button {
    flex: 0 0 auto;
    padding: 8px 20px;
    font-size: 16px;
        color: #424242;
    background: #f5f5f5;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.booking__dates button.is-active,
.booking__times button.is-active {
    color: #fff;
    background: var(--green);
}

.booking__masters h1 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
}

.booking__master {
    display: grid;
    grid-template-columns: 76px 98px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-height: 88px;
    margin-bottom: 8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.booking__master img {
    grid-row: 1;
    width: 76px;
    height: 88px;
    object-fit: cover;
    border-radius: 13px 0 0 13px;
    display: block;
}

.booking__master h2,
.booking__master p {
    margin: 0;
}

.booking__master h2 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
}

.booking__master p {
    margin-top: 4px;
    color: #89966f;
    font-size: 14px;
}

.booking__times {
    display: flex;
    grid-column: 3;
    flex-wrap: wrap;
    gap: 5px;
    align-content: center;
}

.booking__times button {
    min-width: 35px;
    padding: 8px 16px;
        color: #424242;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    text-align: center;
    line-height: 1.1;
}

.booking__notice {
    grid-column: 3;
    margin: 0!important;
    color: #777!important;
    font-size: 9px!important;
    line-height: 1.25;
    text-align: center;
}
.booking__notice p{
    color: #2F2F2FB2;
}
.booking__wait {
    grid-column: 3;
    justify-self: center;
    padding: 10px 20px;
    color: #fff;
    background: var(--green);
    border: 0;
    border-radius: 999px;
    font-size: 14px;
}

.booking__checkout {
    margin-top: 22px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.booking__checkout>h2 {
    margin: -14px -14px 18px;
    padding: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    background: var(--green);
}

.booking__checkout-grid {
    display: grid;
    gap: 20px;
}

.booking__checkout h3 {
    margin: 0 0 9px;
    font-size: 14px;
    font-weight: 500;
}

.booking__contact {
    display: grid;
    gap: 8px;
}

.booking__contact fieldset {
    display: grid;
    gap: 12px;
    padding: 10px 0 0;
    border: 0;
    font-size: 14px;
    margin-top: 10px;
}

.booking__contact legend {
    margin-bottom: 7px;
    font-size: 14px;
}

.booking__contact label {
    cursor: pointer;
}

.booking__contact fieldset label {
    display: flex;
    align-items: center;
    gap: 10px;
        color: #424242;
    font-size: 14px;
    line-height: 1.2;
}

.booking__contact input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    cursor: pointer;
}

.booking__contact input[type="radio"]:checked {
    background: var(--green);
    border-color: var(--green);
    box-shadow: inset 0 0 0 3px #fff;
}

.booking__reminder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
        color: #424242;
    font-size: 14px;
    cursor: pointer;
}

.booking__reminder input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.booking__reminder i {
    position: relative;
    flex: 0 0 33px;
    width: 33px;
    height: 18px;
    background: #c9c9c9;
    border-radius: 999px;
    transition: background .2s ease;
}

.booking__reminder i::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    content: "";
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px #0003;
    transition: transform .2s ease;
}

.booking__reminder input:checked + i {
    background: var(--green);
}

.booking__reminder input:checked + i::after {
    transform: translateX(15px);
}

.booking__reminder input:focus-visible + i {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.booking__order article,
.booking__add {
    display: block;
    width: 100%;
    padding: 13px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.booking__order article {
    font-size: 12px;
}

.booking__order article p {
    margin: 8px 0;
    color: #424242;
    line-height: 1.35;
}
.booking__order article p strong{
    color: black;
    font-weight: inherit;
}
.booking__add {
    margin-top: 9px;
        color: #424242;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking__submit {
    display: block;
    width: min(100%, 280px);
    min-height: 46px;
    margin: 24px auto 0;
    color: #fff;
    background: var(--green);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
}

.booking__agreement {
    max-width: 310px;
    margin: 15px auto 0;
    color: #aaa;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}

.booking-master-sheet {
/*    position: fixed;*/
    z-index: 1001;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    max-height: 100dvh;
    padding: 18px 16px 70px;
    overflow-y: auto;
    background: #fff;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -8px 28px #0002;
}

.booking-master-sheet__handle {
    width: 39px;
    height: 5px;
    margin: 0 auto 20px;
    background: #e4e4e4;
    border-radius: 999px;
}

.booking-master-sheet h2 {
    margin: 0 0 22px;
    color: #444;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.booking-master-sheet__list {
    display: grid;
    gap: 7px;
}

.booking-master-sheet__option {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 24px;
    gap: 15px;
    align-items: center;
    min-height: 70px;
    padding: 8px 16px 8px 10px;
    border: 1px solid #969696;
    border-radius: 19px;
    cursor: pointer;
}

.booking-master-sheet__option img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.booking-master-sheet__option span {
    display: grid;
    gap: 6px;
}

.booking-master-sheet__option strong {
    color: #424242;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.1;
}

.booking-master-sheet__option small {
    color: #424242;
    font-size: 12px;
}

.booking-master-sheet__option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.booking-master-sheet__option i {
    position: relative;
    width: 15px;
    height: 15px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
}

.booking-master-sheet__option input:checked + i {
    background: #89966f;
    border-color: #89966f;
}

.booking-master-sheet__option input:checked + i::after {
    position: absolute;
    top: 1px;
    left: 4px;
    width: 3px;
    height: 7px;
    content: "";
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.booking-master-sheet__apply {
    display: block;
    width: min(100%, 258px);
    height: 54px;
    margin: 50px auto 0;
    color: #fff;
    background: var(--green);
    border: 0;
    border-radius: 18px;
    font: inherit;
    font-size: 21px;
    cursor: pointer;
}

@media (max-width:767px) {
    .booking__order{
        order: 1;
    }
    .booking__contact{
        order: 2;
    }
    .booking__map.is-open {
        position: fixed;
        z-index: 1000;
        inset: 20px;
        display: block;
        min-height: 0;
        background: #fff;
        border: 1px solid var(--line);
        box-shadow: 0 12px 40px #0004
    }
    .booking__map.is-open iframe {
        height: 100%!important
    }
    .booking__map-close {
        display: flex;
        position: absolute;
        z-index: 2;
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        color: #333;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 50%;
        font-size: 24px;
        line-height: 1;
        cursor: pointer
    }


    .booking__master {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 16px;
        padding: 20px;
        background: #f5f5f5;
        border-radius: 20px;
    }

.booking__master img {
    width: 64px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    object-position: top;
}
    .booking__master p {
        text-align: left;
    }
.booking__info {
    align-self: center;
}

.booking__info h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.booking__info p {
    margin: 0;
    color: #777;
}

.booking__times {
    grid-column: 1 / -1; /* занимает всю ширину карточки */

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

.booking__times button {
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
    .booking__notice{
        grid-column: 1 / -1;
        /* display: grid; */
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    .booking__wait{
        width: 100%;
        text-align: center;
    }

    .sheet{
    position:fixed;
    inset:0;
    z-index:1000;
    pointer-events:none;
}

.sheet.active{
    pointer-events:auto;
}

.sheet__backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.35);
    opacity:0;
    transition:.35s;
}

.sheet.active .sheet__backdrop{
    opacity:1;
}

.sheet__content{
    position:absolute;
    left:0;
    right:0;
    bottom:0;

    background:#fff;
    border-radius:24px 24px 0 0;

    padding:16px;
    max-height:85vh;
    overflow:auto;

    transform:translateY(100%);
    transition:transform .35s cubic-bezier(.22,.9,.34,1);

    display:flex;
    flex-direction:column;
    gap:16px;
}

.sheet.active .sheet__content{
    transform:translateY(0);
}

.sheet__handle{
    width:44px;
    height:5px;
    border-radius:10px;
    background:#D5D5D5;
    margin:0 auto;
}

.sheet__title{
    text-align:center;
    font-size:16px;
    font-weight:500;
}

.sheet__list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.master-card{
    display:grid;
    grid-template-columns:48px 1fr 22px;
    gap:12px;
    align-items:center;

    padding:10px;
    border:1px solid #DADADA;
    border-radius:12px;
    cursor:pointer;
}

.master-card img{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
}

.master-card h3{
    font-size:14px;
    margin-bottom:3px;
}

.master-card p{
    font-size:12px;
    color:#777;
}

.master-card input{
    display:none;
}

.master-card__check{
    width:18px;
    height:18px;
    border:1px solid #B6B6B6;
    border-radius:4px;
    position:relative;
}

.master-card input:checked + img + .master-card__info + .master-card__check{
    background:#8F9670;
    border-color:#8F9670;
}

.master-card input:checked + img + .master-card__info + .master-card__check::before{
    content:"✓";
    color:#fff;
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    font-size:12px;
}

.sheet__button{
    height:48px;
    border:none;
    border-radius:12px;
    background:#8F9670;
    color:#fff;
    font-size:15px;
    cursor:pointer;
}






}

@media (min-width:768px) {
    .booking-master-sheet { display:none; }
    .booking {
        margin-top: 150px;
        padding: 0 24px
    }
    .booking__top {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 44px;
/*        align-items: start;*/
    }
    .booking__map {
        display: block;
        min-height: 510px;
        border-radius: 18px
    }
    .booking__settings {
        gap: 17px
    }
    .booking__settings label,
    .booking__calendar legend {
        font-size: 16px
    }
    .booking select {
        height: 46px;
        border-radius: 8px
    }
    .booking__address-select {
        height: 46px!important
    }
    .booking__address-value {
        display: none
    }
    .booking__address-select {
        color: #444!important
    }
    .booking__map-button {
        display: none
    }
    .booking__day {
        min-height: 26px;
        font-size: 12px
    }
    .booking__dates {
        margin: 30px 0
    }
    .booking__masters h1 {
        font-size: 20px;
    }
    .booking__master {
        grid-template-columns: 170px 130px minmax(0, 1fr);
        min-height: 88px;
        padding: 0;
        overflow: hidden;
        column-gap: 22px;
    }
    .booking__master img {
        width: 100%;
        height: 191px;
        display: block;
        border-radius: 13px 0 0 13px
    }
    .booking__master h2 {
        font-size: 20px;

    }
    .booking__master p {
        font-size: 16px
    }
    .booking__times {
        grid-column: 3
    }
    .booking__notice {
        grid-column: 3;
        padding: 0px 20px;
    }
    .booking__wait {
        grid-column: 3;
        justify-self: center;
        margin-top: 25px;
    }
    .booking__checkout {
        padding: 0;
        border: 0;
        border-radius: 0
    }
    .booking__checkout>h2 {
        margin: 0 0 18px;
        padding: 13px;
        font-size: 17px
    }
    .booking__checkout-grid {
        grid-template-columns: 1fr 1fr;
        gap: 45px
    }
    .booking__submit {
        min-width: 250px
    }
    .booking__contact input {
        height: 42px
    }
    .booking__dates button{
        font-size: 20px;
    }
    .booking__add{
        margin-top: 24px;
        font-size: 14px;
    }
    .booking__agreement{
        margin-top: 24px;
    }
    .booking__reminder{
        max-width: 50%;
    }
    .booking__contact fieldset{
        margin-top: 50px;
    }
}
