.detejling-hero {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 7.7rem;
    margin-bottom: 10rem;
}

.detejling__title {
    font-weight: 600;
    font-size: 4rem;
    line-height: 100%;
    margin-bottom: 1.6rem;
}

.detejling__subtitle {
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 2.592rem;
    margin-bottom: 2.4rem;
}

.detejling__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 3rem;
    border-radius: .5rem;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 2.2rem;
    text-align: center;
    color: #fff;
    background-color: #1E5D9D;
}

.detejling__btn span {
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 2.2rem;
    text-align: center;
    color: #fff;
}

.detejling-hero__image {
    width: 81.5rem;
    flex: 0 0 auto;
    height: 41rem;
}

.detejling-hero__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.detejling-hero__image picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/****/
.detailing-calc {

    margin-bottom: 10rem;

}

.detailing-calc__container {
    background-color: #F1F8FD;
    padding: 2.4rem;
    border-radius: 2.4rem;
}

.detailing-calc__services {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1.6rem;
    max-height: 54.8rem;
    overflow: auto;
}

.detailing-calc__services::-webkit-scrollbar {
    width: .8rem;
}

.detailing-calc__services::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: .5rem;
}

.detailing-calc__services::-webkit-scrollbar-thumb {
    background-color: #1E5D9D;
    border-radius: .5rem;
    border: 2px solid #f4f4f4;
    transition: background 0.3s;
}

.detailing-calc__services::-webkit-scrollbar-thumb:hover {
    background-color: #272727;
}

.detailing-calc__services {
    scrollbar-width: thin;
    scrollbar-color: #1E5D9D #f4f4f4;
}

.detailing-calc__title {
    font-weight: 600;
    font-size: 3.2rem;
    line-height: 3.84rem;
    margin-bottom: 3.2rem;
}

.detailing-calc__layout {
    display: grid;
    grid-template-columns: 46.9rem 1fr;
    gap: 2rem;
}

.detailing-calc__category + .detailing-calc__category {
    margin-top: 10px;
}

.detailing-calc__category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 1.6rem 3.2rem;
    border: 1px solid #e5e9f2;
    background: #fff;
    text-align: left;
    font-size: 1.6rem;
    line-height: 120%;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 1.6rem;
    min-height: 8.3rem;
}

.detailing-calc__category--active .detailing-calc__category-btn {
    border-color: #1E5D9D;
}

.detailing-calc__category--selected .detailing-calc__category-btn {
    border-color: #1E5D9D;
    font-weight: 600;
}

.detailing-calc__category {
    position: relative;
}

.detailing-calc__category:after {
    display: none;
    content: '';
    width: 1.2rem;
    height: 1.2rem;
    background-color: #1E5D9D;
    border-radius: 50%;
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
}

/*
.detailing-calc__category:hover::after,
.detailing-calc__category.detailing-calc__category--selected:after,*/
.detailing-calc__category.detailing-calc__category--checked:after
 {
    display: block;
}

.detailing-calc__services-title {
    font-weight: 600;
    font-size: 2rem;
    line-height: 120%;
    margin-bottom: .8rem;
}

.detailing-calc__services-list {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
}

.detailing-calc__services-list.detailing-calc__services-list--active {
    display: flex;
}

.detailing-calc__service-card {
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 2rem;
    border-radius: 1.6rem;
    border: 1px solid #EAEAEA;
    background: #fff;
    transition: 0.2s;
    min-height: 8.6rem;
    cursor: pointer;
}

.detailing-calc__service-card:hover {
    border-color: #1E5D9D;
}

.detailing-calc__service-card:hover .detailing-calc__service-name {
    color: #1E5D9D;
}

.detailing-calc__service--selected .detailing-calc__service-card {
    border-color: #1E5D9D;
}

.detailing-calc__service--selected .detailing-calc__service-card .detailing-calc__service-name {
    color: #1E5D9D;
}

.detailing-calc__service-body {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.detailing-calc__service-info {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.detailing-calc__service-name {
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 120%;
}

.detailing-calc__service-desc {
    font-size: 1.4rem;
    color: #6F6F71;
}

.detailing-calc__service-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .8rem;
}

.detailing-calc__service-price {
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 120%;
    white-space: nowrap;
}

.detailing-calc__service-time {
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 120%;
    color: #6F6F71;
    white-space: nowrap;
}

.detailing-calc__footer {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 2rem;
    border-radius: 1.6rem;
}

.detailing-calc__selected {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.detailing-calc__selected-label {
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 120%;
}

.detailing-calc__selected-list {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.detailing-calc__selected-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 4rem;
    padding: 1.2rem 1.6rem;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 120%;
    border: 1px solid #EAEAEA;
    transition: .3s ease;
}

.detailing-calc__selected-item:hover {
    border-color: #1E5D9D;
}

.detailing-calc__selected-remove {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 3.2rem;
    font-weight: 400;
    color: #EAEAEA;
    transition: .3s ease;
}

.detailing-calc__selected-remove:hover {
    color: #1E5D9D;
}

.detailing-calc__summary {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-left: auto;
}

.detailing-calc__total {
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    white-space: nowrap;
}

.detailing-calc__submit {
    padding: 1.5rem 3rem;
    background: #1E5D9D;
    color: #fff;
    border: none;
    border-radius: .5rem;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 2rem;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.detailing-calc__submit:hover {
    background: #1f55c7;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-family: sans-serif;
    font-size: 1.6rem;
    position: relative;
}

.custom-checkbox input {
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.custom-checkbox .checkmark {
    width: 2rem;
    height: 2rem;
    border: 1px solid #1E5D9D;
    border-radius: .4rem;
    position: relative;
    transition: all 0.3s;
    background-color: white;
}

.custom-checkbox:hover .checkmark {
    border-color: #555;
    background-color: #f0f0f0;
}

.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    left: .7rem;
    top: .15rem;
    width: .6rem;
    height: 1.2rem;
    border: solid #fff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease-in-out;
}

.custom-checkbox input:checked + .checkmark {
    background-color: #1E5D9D;
    border-color: #1E5D9D;
}

.custom-checkbox input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.popup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .66);
    visibility: hidden;
    opacity: 0;
    z-index: -1;
    transition: opacity .3s ease;
}

.popup-container.visible {
    z-index: 501;
    visibility: visible;
    opacity: 1;
}

.popup.popup-detailing {
    display: flex !important;
    visibility: hidden;
    opacity: 0;
    z-index: -1;
    transition: opacity .3s ease;
}

.popup-container.visible .popup.popup-detailing {
    visibility: visible;
    opacity: 1;
    z-index: 1;
}

.popup-detailing {
    flex-direction: column;
    background-color: #fff;
    padding: 4rem;
    border-radius: 2rem;
    width: 56.6rem;
    position: relative;
}

.popup__close {
    position: absolute;
    top: -3.2rem;
    right: -3.2rem;
    width: 3.2rem;
    height: 3.2rem;
    cursor: pointer;
    flex: 0 0 auto;
}

.popup__close svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popup-detailing .popup__title {
    font-weight: 600;
    font-size: 3.2rem;
    text-align: center;
    line-height: 116%;
    margin-bottom: 2.4rem;
}

.popup__head {
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
    padding: 2rem 1.6rem;
    border-radius: 1rem;
    margin-bottom: 2.4rem;
}

.popup__subtitle {
    font-size: 2rem;
    line-height: 116%;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.popup__total {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.6rem;
    border-top: 1px solid #EAEAEB;
}

.popup__services {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-height: 18rem;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 1.6rem;
}

.popup__services li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid #EAEAEB;
}

.popup__services li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.popup__services-name,
.popup__services-price,
.popup__total-name,
.popup__total-price {
    font-size: 1.6rem;
    line-height: 116%;
}

.popup__services-name,
.popup__services-price {
    font-weight: 500;
}

.popup__services-name {
    flex: 1;
}

.popup__services-price {
    white-space: nowrap;
}

.popup__total-name,
.popup__total-price {
    font-weight: 600;
}

.popup__items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.popup__item {
    width: 100%;
}

.popup__item input {
    width: 100%;
    height: 5rem;
    border: 1px solid #EAEAEB;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 100%;
    padding: 1.6rem 1.2rem;
}

.popup__item input::placeholder {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 100%;
}

.popup__item button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    width: 100%;
    height: 5rem;
    background-color: #1E5D9D;
    color: #fff;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 100%;
}

.popup__agreement {
    font-weight: 400;
    font-size: 1rem;
    line-height: 116%;
}

.popup__agreement a {
    font-weight: 400;
    font-size: 1rem;
    line-height: 116%;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .detailing-calc__layout {
        grid-template-columns: repeat(1, 1fr);
        gap: 3.413rem;
    }
    .detailing-calc__container {
        border-radius: 2.731rem;
        padding: 1.707rem;
    }
    .detailing-calc__categories {
        display: block;
    }

    .detailing-calc__category-btn {
        width: 100%;
        text-align: left;
        background: #f7f7f7;
        border: 1px solid #ddd;
        cursor: pointer;
        border-radius: 1.365rem;
        line-height: 120%;
        font-size: 2.731rem;
        padding: 3.413rem 2.56rem;
    }

    .detailing-calc__services {
        padding: 1.707rem;
        max-height: unset;
        border-radius: 2.731rem;
    }
    .detailing-calc__services-list {
        display: none;
        gap: 2.048rem;
    }

    .detailing-calc__category--active + .detailing-calc__services-list {
        display: block;
    }

    .detejling-hero {
        flex-direction: column;
        gap: 13.653rem;
    }

    .detejling-hero__image {
        width: 100%;
        height: auto;
    }

    .detejling__title {
        margin: 0 0 3.413rem;
    }

    .detejling__subtitle {
        font-size: 2.731rem;
        line-height: 3.413rem;
    }

    .detejling__btn {
        width: 100%;
        padding: 2.56rem 5.12rem;
        font-size: 2.731rem;
        line-height: 100%;
    }

    .detejling__btn span {
        font-size: 2.731rem;
        line-height: 100%;
    }

    .detailing-calc__title {
        font-size: 4.096rem;
        line-height: 120%;
        margin-bottom: 3.413rem;
    }

    .detailing-calc__service-name,
    .detailing-calc__services-title {
        line-height: 120%;
        font-size: 2.731rem;
        margin-bottom: 0;
    }

    .detailing-calc__service-card {
        padding: 2.56rem;
        border-radius: 2.731rem;
    }

    .detailing-calc__service-card .custom-checkbox {
        order: 2;
    }

    .detailing-calc__service-body {
        flex-direction: column;
        justify-content: unset;
        order: 1;
        gap: 2.731rem;
    }

    .detailing-calc__service-info {
        gap: 1.365rem;
    }

    .detailing-calc__service-desc {
        font-size: 2.4rem;
        line-height: 120%;
    }

    .detailing-calc__service-meta {
        gap: 0.683rem;
        align-items: unset;
    }

    .detailing-calc__service-price {
        font-size: 2.4rem;
        line-height: 120%;
    }

    .detailing-calc__service-time {
        font-size: 2.4rem;
        line-height: 120%;
    }

    .detailing-calc__footer {
        position: fixed;
        bottom: 0;
        background: #fff;
        z-index: 102;
        flex-direction: column;
        left: 0;
        right: 0;
        width: 100%;
        align-items: unset;
        justify-content: unset;
        border-radius: 2.731rem 2.731rem 0 0;
        box-shadow: 0px -1px 15px 0px #00000029;
    }

    .detailing-calc__selected-label {
        font-size: 2.4rem;
        line-height: 120%;
    }

    .detailing-calc__summary {
        flex-direction: column;
        align-items: unset;
        margin-left: 0;
        gap: 2.731rem;
    }

    .detailing-calc__total {
        font-size: 3.413rem;
        line-height: 120%;
    }

    .detailing-calc__submit {
        width: 100%;
        padding: 2.56rem 11.947rem;
        border-radius: 0.853rem;
        line-height: 120%;
        font-size: 2.731rem;
    }

    .custom-checkbox .checkmark {
        width: 3.413rem;
        height: 3.413rem;
    }

    .custom-checkbox .checkmark::after {
        left: 1.2rem;
        top: .35rem;
        width: 1rem;
        height: 1.8rem;
    }

    .detailing-calc__selected-item {
        font-size: 2.048rem;
        line-height: 120%;
        padding: 1.536rem 2.048rem;
        border-radius: 6.827rem;
        gap: 0.853rem;
    }

    .popup-detailing {
        padding: 3.413rem;
    }

    .popup__title {
        font-size: 3.755rem;
        margin-bottom: 3.413rem;
    }

    .popup__head {
        padding: 2.048rem;
        border-radius: 1.707rem;
        margin-bottom: 3.413rem;
    }

    .popup__subtitle {
        font-size: 2.731rem;
        margin-bottom: 3.413rem;
    }

    .popup__services {
        gap: 2.048rem;
        margin-bottom: 2.048rem;
    }
    .popup__services li {
        padding-bottom: 2.048rem;
        gap: 1.707rem;
    }
    .popup__services-name, .popup__services-price, .popup__total-name, .popup__total-price {
        font-size: 2.34rem;
    }
    .popup__items {
        gap: 1.707rem;
        margin-bottom: 1.707rem;
    }
    .popup__item .select2.select2-container--default .select2-selection {
        height: 6.6rem;
    }

    .popup__item input {
        height: 6.6rem;
        padding: 1.707rem;
        font-size: 2.4rem;
    }
    .popup__item input::placeholder {
        font-size: 2.4rem;
    }
    .popup__item button[type="submit"] {
        padding: 1.707rem;
        height: auto;
        font-size: 2.4rem;
    }
    .popup__agreement,
    .popup__agreement a {
        font-size: 1.707rem;
    }



}
