main {
    position: relative;
    z-index: 2;
}
main.desktop {
    display: block;
}
main.mobile {
    display: none;
}
main .tabs {
    border-radius: 35px;
    background: #fff;
    box-shadow: 0 0 25px 0 #DBEAFE80;
    padding: 36px;
}
main .tab {
    display: flex;
    gap: 50px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transition: opacity 0.3s ease;
    z-index: 0;
}
main .tab.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}
main .tab .photo {
    position: relative;
    width: 100%;
    height: 494px;
    border-radius: 35px 35px 0 35px;
    overflow: hidden;
}
main .tab .photo .icon {
    position: absolute;
    right: 0;
    bottom: 0;
}
main .tab .status-time {
    position: relative;
    font-size: 16px;
    color: #306339;
    line-height: 48px;
    background: #E2FBE9;
    border-radius: 24px;
    padding: 0 48px 0 34px;
    margin-bottom: 16px;
}
main .tab .status-time strong {
    font-weight: 500;
    color: #306339;
}
main .tab .status-time:before {
    content: '';
    width: 13px;
    height: 13px;
    background: #5EC16A;
    border-radius: 50%;
    position: absolute;
    top: 18px;
    right: 24px;
}
main .tab .status-time:after {
    content: '';
    width: 14px;
    height: 8px;
    background-image: url('/assets/img/arrow-time.svg');
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 21px;
    left: 14px;
}
main .tab .address {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    line-height: 1.5;
    margin: 10px 9px 0;
}
main .tab .buttons .button {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    width: calc(100% - 52px);
}
main .tab .buttons .button img {
    margin-left: 17px;
}
main .tab .blocks {
    width: 322px;
    height: 100%;
}
main .tab .blocks .block {
    position: relative;
    display: none;
    padding-bottom: 68px;
    height: calc(100% - 68px);
}
main .tab .blocks .block.active {
    display: block;
}
main .tab .times {
    border-top: 1px solid #F3F4F6;
    padding: 0 20px;
}
main .tab .times .name {
    font-size: 12px;
    color: #6B7280;
    margin: 16px 0 12px;
}
main .tab .times .list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
main .tab .time {
    display: block;
    font-size: 14px;
    color: #374151;
    line-height: 36px;
    text-align: center;
    background: #F1F9FF;
    border-radius: 36px;
    cursor: pointer;
}
main .tab .time.active {
    background: linear-gradient(180deg, #003EF5 0%, #002FB9 100%);
    color: #fff;
}
main .tab .view-calendar {
    position: relative;
    box-shadow: 0px 0px 25px 0px #DBEAFE80;
    border-radius: 27px;
    overflow: hidden;
}
main .tab .view-calendar .close {
    position: absolute;
    top: 7px;
    left: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1;
}
main .tab .name-2 {
    font-size: 35px;
    font-weight: 600;
    padding-top: 28px;
}
main .tab .list-address {
    margin-top: 36px;
}
main .tab .list-address .li {
    position: relative;
    font-size: 21px;
    padding-right: 34px;
    margin-bottom: 16px;
}
main .tab .list-address .li:before {
    content: '';
    width: 15px;
    height: 19px;
    background-image: url('/assets/img/marker-mini.svg');
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 3px;
    right: 0;
}

main .buttons-tab {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 28px;
}
main .buttons-tab .button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
main .buttons-tab .button svg path {
    fill: #C6C6C6;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}
main .buttons-tab .button.active svg path {
    fill: #002FB9;
}
main .buttons-tab .button .txt {
    position: relative;
    font-size: 29px;
    font-weight: 600;
    color: #C6C6C6;
}
main .buttons-tab .button.active .txt {
    color: #000;
}
main .buttons-tab .button .txt:before {
    content: none;
}
main .buttons-tab .button.active .txt:before {
    content: '';
    width: 86px;
    height: 4px;
    background: #002FB9;
    border-radius: 4px;
    position: absolute;
    bottom: -12px;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, 0);
}
.main-mobile {
    display: none;
}
main .corner-btn {
    position: absolute;
    right: 0;
    bottom: 0;
}
@media (max-width: 840px) {
    main.desktop {
        display: none;
    }
    main.mobile {
        display: block;
        padding: 0 17px;
        margin-top: 20px;
    }
    main .title {
        font-size: 25px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 16px;
    }
    main .status-time-block {
        border-radius: 35px;
        box-shadow: 0px 0px 25px 0px #DBEAFE80;
        max-width: 322px;
        margin: 0 auto;

    }
    main .status-time-block .status-time {
        position: relative;
        font-size: 16px;
        color: #306339;
        line-height: 48px;
        background: #E2FBE9;
        border-radius: 24px;
        padding: 0 48px 0 34px;
    }
    main .status-time-block .status-time strong {
        font-weight: 600;
        color: #306339;
    }
    main .status-time-block .status-time:before {
        content: '';
        width: 13px;
        height: 13px;
        background: #5EC16A;
        border-radius: 50%;
        position: absolute;
        top: 18px;
        right: 22px;
    }
    main .buttons-tab {
        gap: 18px;
        margin-top: 54px;
    }
    main .buttons-tab .button:first-child:before {
        content: '';
        position: absolute;
        top: 4px;
        left: -11px;
        width: 1px;
        height: 11px;
        border-right: 1px solid #e3e3e3;
    }
    main .buttons-tab .button.active .txt:before {
        width: 54px;
        height: 3px;
    }
    main .buttons-tab .button {
        gap: 7px
    }
    main .buttons-tab .button .txt {
        font-size: 18px;
    }
    main .buttons-tab .button .icon svg {
        height: 14px;
    }
    main .status-time-block .time-list {
        padding: 14px 24px 2px 20px;
    }
    main .status-time-block .line {
        display: flex;
        justify-content: space-between;
        margin-bottom: 14px;
    }
    main .status-time-block .line .txt-f {
        font-size: 15px;
        font-weight: 500;
    }
    main .status-time-block .line .value {
        font-size: 15px;
    }
    main .tab {
        display: none;
        position: relative;
        flex-wrap: wrap;
    }
    main .tab.active {
        display: flex;
    }
    main .tab .photo, main .tab .maps {
        position: relative;
        width: 50%;
        overflow: hidden;
        border-radius: 17px;
        height: 246px;
    }
    main .tab .photo .icon img {
        width: 28px;
    }
    main .tabs {
        padding: 30px 0 0;
        background: transparent;
        box-shadow: unset;
    }
    main .tab {
        gap: 18px;
    }
    main .tab .flex-tab {
        display: flex;
        gap: 8px;
    }
    main .tab .maps .link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #A6A6A6;
        line-height: 28px;
        padding: 0 12px;
        border-radius: 28px;
        background: rgba(255,255,255,0.8);
        position: absolute;
        bottom: 9px;
        left: 50%;
        margin-right: -50%;
        transform: translate(-50%, 0);
    }
    main .tab .title-3 {
        font-size: 18px;
        font-weight: 600;
        margin: 12px 0 0;
    }
    main .tab .address {
        gap: 10px;
        font-size: 16px;
        font-weight: 500;
        margin: 6px 0 0;
    }
    main .tab .block-tab-1 {
        position: relative;
        padding: 12px 10px 68px;
        border-radius: 26px;
        box-shadow: 0px 0px 25px 0px #DBEAFE80;
        width: 100%;
    }
    main .tab .buttons .button {
        font-weight: 400;
        line-height: 41px;
        right: 10px;
        bottom: 12px;
        width: calc(100% - 72px);
    }
    main .tab .times {
        border-top: 0;
        padding: 0 10px 64px;
        margin-top: -12px;
    }
    main .tab .time {
        font-size: 12px;
        line-height: 30px;
    }
    main .tab .times .list {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 7px;
    }
    main .tab .view-calendar {
        display: none;
    }
    main .tab .view-calendar.active {
        display: block;
        position: absolute;
        top: 0;
        background: #fff;
        width: 100%;
    }
    main .tab.tab-2 .photo {
        width: 100%;
    }
    main .tab .name-2 {
        font-size: 18px;
        padding-top: 13px;
    }
    main .tab .list-address {
        display: flex;
        gap: 5px;
        margin-top: 14px;
    }
    main .tab .list-address .li {
        font-size: 15px;
        padding-right: 18px;
        margin-bottom: 0;
    }
    main .tab .list-address .li:before {
        width: 11px;
        height: 14px;
        background-size: contain;
        top: 0;
        right: 0;
    }
    main .tab .blocks {
        width: 100%;
    }
    main .tab .blocks .block {
        position: inherit;
        padding-bottom: 0;
    }
    main .tab .blocks .block {
        display: block;
    }

    .main-mobile {
        display: block;
        padding: 0 16px;
    }
    .main-mobile .image {
        position: relative;
        width: 100%;
        height: auto;
        border-radius: 35px;
        padding-bottom: 4px;
        overflow: hidden;
    }
    .main-mobile .image img {
        width: 100%;
    }
    .main-mobile .image:before {
        content: '';
        width: 100%;
        height: 250px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, 110px, #ffffff 100%);
        position: absolute;
        bottom: 0;
        z-index: 1;
    }
    .main-mobile .image .text {
        width: 100%;
        position: absolute;
        bottom: 0;
        z-index: 2;
    }
    .main-mobile .image .text .txt-1 {
        display: table;
        font-size: 35px;
        font-weight: 600;
        color: #000A67;
        text-align: center;
        max-width: 304px;
        margin: 0 auto;
    }
    .main-mobile .txt-2 {
        display: table;
        font-size: 18px;
        color: #000A67;
        text-align: center;
        max-width: 260px;
        margin: 10px auto 0;
    }
    .main-mobile .list {
        position: relative;
        height: 20px;
        margin-bottom: 10px;
    }
    .main-mobile .list .li {
        position: absolute;
        top: 0;
        left: 50%;
        margin-right: -50%;
        opacity: 0;
        transform: translate(-50%, 0);
        transition: 0.4s ease;
        font-size: 18px;
        font-weight: 500;
        color: #000A67;
        padding-right: 20px;
    }
    .main-mobile .list .li.active {
        opacity: 1;
    }
    .main-mobile .list .li:before {
        content: '';
        width: 11px;
        height: 8px;
        background-image: url(/assets/img/check-2.svg);
        background-position: center;
        background-repeat: no-repeat;
        position: absolute;
        top: 4px;
        right: 0;
    }
}
@media (max-width: 390px) {
    main .buttons-tab .button .txt {
        font-size: 16px;
    }
}