.service-hero,
.service-hero * {
    box-sizing: border-box;
}

.service-hero {
    margin-top: 2.75rem;
    margin-bottom: 2.75rem;
    font-family: Geologica, sans-serif;
}

.service-hero .allon4-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 750px) minmax(0, 1fr);
    grid-template-areas:
    "head visual"
    "features visual"
    "form visual";
    column-gap: 24px;
    row-gap: 32px;
    min-height: 760px;
    padding: 46px 40px 32px 60px;
    overflow: hidden;
    border-radius: 36px;
    background: #d2f3e7;
}

.service-hero .allon4-hero__head {
    grid-area: head;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.service-hero .allon4-hero__breadcrumbs.breadcrumbs {
    padding: 0;
    width: 100%;
}

.service-hero .allon4-hero__breadcrumbs .container_center {
    max-width: none;
    margin: 0;
    padding: 0;
}

.service-hero .kama_breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 11.5px;
    line-height: 14px;
    font-weight: 400;
}

.service-hero .kama_breadcrumbs a,
.service-hero .kama_breadcrumbs span {
    color: #4c5355;
}

.service-hero .kama_breadcrumbs .kb_sep {
    width: 3px;
    height: 3px;
    margin: 0 12px;
    transform: none;
    background-color: #4c5355;
}

.service-hero .kama_breadcrumbs .kb_title {
    color: #2a7831;
    font-weight: 700;
}

.service-hero .allon4-hero__title {
    margin: 0;
    max-width: 736px;
    color: #2a2a2a;
    font-family: Geologica, sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
}

.service-hero .allon4-hero__offer {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px 0 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}

.service-hero .allon4-hero__price {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    background: #ef5b5b;
    border-radius: 16px;
    color: #fff;
    white-space: nowrap;
}

.service-hero .allon4-hero__price-current {
    font-size: 34px;
    font-weight: 700;
    line-height: 34px;
}

.service-hero .allon4-hero__price-old {
    position: relative;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2;
}

.service-hero .allon4-hero__price-old::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #fff;
}

.service-hero .allon4-hero__offer-text {
    color: #2a2a2a;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.service-hero .allon4-hero__notes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* max-width: 427px; */
    margin-top: -8px;
    color: #666;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
}

.service-hero .allon4-hero__features {
    grid-area: features;
    display: flex;
    gap: 6px;
    max-width: 678px;
    position: relative;
    z-index: 2;
}

.service-hero .allon4-hero__feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 165px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
}

.service-hero .allon4-hero__feature img {
    width: 24px;
    height: 24px;
    display: block;
}

.service-hero .allon4-hero__feature p {
    margin: 0;
    color: #2a2a2a;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.service-hero .allon4-hero__feature p strong {
    font-weight: 700;
}

.service-hero .allon4-hero__form-wrap {
    grid-area: form;
    max-width: 678px;
    align-self: end;
    position: relative;
    z-index: 2;
}

.service-hero .allon4-hero__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
    "input button"
    "agree agree";
    gap: 12px;
}

.service-hero .allon4-hero__input {
    grid-area: input;
    width: 100%;
    min-width: 0;
    height: 58px;
    padding: 18px 32px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #183749;
    font-family: Geologica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    outline: none;
}

.service-hero .allon4-hero__input::placeholder {
    color: rgba(24, 55, 73, 0.6);
}

.service-hero .allon4-hero__btn {
    grid-area: button;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 58px;
    padding: 18px 32px;
    border: 0;
    border-radius: 16px;
    background: #28a679;
    color: #fff;
    font-family: Geologica, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.service-hero .allon4-hero__btn:hover {
    background: #218c66;
}

.service-hero .allon4-hero__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.service-hero .allon4-hero__btn:disabled:hover {
    background: #28a679;
}

.allon4-hero__input.phone.input-error {
    border: 2px solid #E85454 !important;
}
.allon4-hero__input.phone.input-error::placeholder,
.hero-mosaic__input.phone.input-error::placeholder {
    color: #E85454;
    /* opacity: 1; */
    opacity: 0.5;
}

.allon4-hero__input.phone.input-error::-webkit-input-placeholder,
.hero-mosaic__input.phone.input-error::-webkit-input-placeholder {
    color: #E85454;
}

.allon4-hero__input.phone.input-error::-moz-placeholder,
.hero-mosaic__input.phone.input-error::-moz-placeholder {
    color: #E85454;
    /* opacity: 1; */
    opacity: 0.5;
}

.allon4-hero__agree.agree-error {
    color: #E85454 !important;
}

.allon4-hero__agree.agree-error input[type="checkbox"] {
    border-color: #E85454 !important;
}

.service-hero .allon4-hero__agree {
    grid-area: agree;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #2a2a2a;
    font-size: 13px;
    font-weight: 400;
    line-height: 15.6px;
}

.service-hero .allon4-hero__agree input {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #26966e;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.service-hero .allon4-hero__agree input:checked {
    background: #26966e url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.87 3.34 4.37 8.84a.38.38 0 0 1-.54 0L1.48 6.43a.38.38 0 1 1 .54-.54l2.16 2.16 5.26-5.26a.38.38 0 0 1 .54.54Z' fill='white'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.service-hero .allon4-hero__visual {
    grid-area: visual;
    position: relative;
    align-self: stretch;
    min-height: 620px;
    pointer-events: none;
}

.service-hero .allon4-hero__visual picture {
    position: absolute;
    right: -20px;
    top: -10px;
    width: min(637px, 48vw);
    height: 655px;
}

.service-hero .allon4-hero__visual img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center top;
}

.service-hero .allon4-hero__included {
    position: absolute;
    right: 90px;
    bottom: 40px;
    z-index: 3;
    width: 484px;
    padding: 32px;
    background: #14392c;
    border-radius: 24px;
}

.service-hero .allon4-hero__included-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 90px;
}

.service-hero .allon4-hero__included-title {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.service-hero .allon4-hero__badge {
    position: absolute;
    top: -5px;
    right: 0;
    padding: 6px 12px;
    background: #ef5b5b;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.service-hero .allon4-hero__included-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-hero .allon4-hero__included-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
}

.service-hero .allon4-hero__check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #29a67a;
    border-radius: 50%;
}

.service-hero .allon4-hero__check svg {
    width: 10px;
    height: 10px;
    display: block;
}

.service-hero .allon4-trust {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 0 0;
}

.service-hero .allon4-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 17px 12px 12px;
    background: #d2f3e7;
    border-radius: 16px;
}

.service-hero .allon4-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
}

.service-hero .allon4-trust__icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.service-hero .allon4-trust__item span {
    color: #2a2a2a;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 1439px) {
    .service-hero .allon4-hero {
        grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 20px;
        min-height: 640px;
        padding: 32px 24px 24px 36px;
    }

    .service-hero .allon4-hero__head {
        gap: 20px;
    }

    .service-hero .allon4-hero__title {
        font-size: 38px;
        max-width: 620px;
    }

    .service-hero .allon4-hero__price {
        gap: 10px;
        padding: 12px 14px;
    }

    .service-hero .allon4-hero__price-current {
        font-size: 28px;
        line-height: 28px;
    }

    .service-hero .allon4-hero__price-old {
        font-size: 18px;
    }

    .service-hero .allon4-hero__offer {
        gap: 14px;
        padding-right: 14px;
    }

    .service-hero .allon4-hero__offer-text {
        font-size: 18px;
    }

    .service-hero .allon4-hero__notes {
        font-size: 13px;
    }

    .service-hero .allon4-hero__features {
        max-width: 620px;
        gap: 6px;
    }

    .service-hero .allon4-hero__feature {
        width: 148px;
        padding: 12px;
        gap: 8px;
    }

    .service-hero .allon4-hero__feature p {
        font-size: 14px;
    }

    .service-hero .allon4-hero__form-wrap {
        max-width: 620px;
    }

    .service-hero .allon4-hero__input,
    .service-hero .allon4-hero__btn {
        height: 52px;
        padding: 14px 22px;
        font-size: 16px;
    }

    .service-hero .allon4-hero__visual {
        min-height: 520px;
    }

    .service-hero .allon4-hero__visual picture {
        width: min(460px, 40vw);
        height: 500px;
        right: -28px;
        top: 0;
    }

    .service-hero .allon4-hero__included {
        right: 24px;
        bottom: 60px;
        width: 360px;
        padding: 20px;
        border-radius: 20px;
    }

    .service-hero .allon4-hero__included-title {
        font-size: 17px;
    }

    .service-hero .allon4-hero__included-list {
        gap: 8px;
    }

    .service-hero .allon4-hero__included-list li {
        font-size: 15px;
    }

    .service-hero .allon4-hero__badge {
        font-size: 13px;
    }

    .service-hero .allon4-trust__icon {
        width: 40px;
        height: 40px;
    }

    .service-hero .allon4-trust__item span {
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .service-hero .allon4-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
        "head"
        "visual"
        "features"
        "form"
        "included";
        min-height: 0;
        padding: 28px 24px 24px;
        row-gap: 0;
    }

    .service-hero .allon4-hero__title {
        font-size: 36px;
        max-width: none;
    }

    .service-hero .allon4-hero__features {
        max-width: 520px;
        width: 100%;
        margin: 0 auto 16px;
        flex-wrap: wrap;
        z-index: 2;
    }

    .service-hero .allon4-hero__feature {
        width: calc(50% - 4px);
        flex: 1 1 calc(50% - 4px);
    }

    .service-hero .allon4-hero__form-wrap {
        max-width: none;
        margin-top: 8px;
        margin-bottom: 16px;
        z-index: 2;
    }

    .service-hero .allon4-hero__visual {
        min-height: 0;
        height: 480px;
        margin: 12px -24px -180px;
        z-index: 1;
    }

    .service-hero .allon4-hero__visual picture {
        position: absolute;
        left: 50%;
        top: 0;
        right: auto;
        width: min(520px, 88vw);
        height: 500px;
        transform: translateX(-50%);
        border-radius: 0 0 600px 1000px;
        overflow: hidden;
    }

    .service-hero .allon4-hero__visual img {
        object-fit: cover;
    }

    .service-hero .allon4-hero__included {
        grid-area: included;
        position: static;
        width: 100%;
        margin-top: 0;
        right: auto;
        bottom: auto;
    }

    .service-hero .allon4-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .service-hero {
        margin-top: 0.75rem;
    }

    .service-hero .allon4-hero {
        padding: 24px 14px 20px;
        border-radius: 20px;
        row-gap: 0;
    }

    .service-hero .allon4-hero__head {
        gap: 24px;
    }

    .service-hero .kama_breadcrumbs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 6px;
        font-size: 11.5px;
        line-height: 14px;
    }

    .service-hero .kama_breadcrumbs .kb_sep {
        margin: 0 6px;
    }

    .service-hero .allon4-hero__title {
        font-size: 26px;
        line-height: 1.2;
    }

    .service-hero .allon4-hero__offer {
        gap: 12px;
        padding-right: 12px;
    }

    .service-hero .allon4-hero__price {
        gap: 12px;
        padding: 12px;
    }

    .service-hero .allon4-hero__price-current {
        font-size: 26px;
        line-height: 1.2;
    }

    .service-hero .allon4-hero__price-old {
        font-size: 16px;
    }

    .service-hero .allon4-hero__price-old::after {
        height: 1px;
    }

    .service-hero .allon4-hero__offer-text {
        max-width: 69px;
        font-size: 14px;
        font-weight: 500;
    }

    .service-hero .allon4-hero__notes {
        max-width: none;
        margin-top: 0;
        font-size: 11px;
        margin-bottom: 16px;
    }

    .service-hero .allon4-hero__visual {
        min-height: 0;
        height: 413px;
        margin: 16px -15px -204px;
        z-index: 1;
    }

    .service-hero .allon4-hero__visual picture {
        position: absolute;
        left: 50%;
        top: -30px;
        right: auto;
        width: 415px;
        max-width: none;
        height: 415px;
        transform: translateX(-50%);
        border-radius: 0 0 600px 1000px;
        overflow: hidden;
    }

    .service-hero .allon4-hero__visual img {
        object-fit: cover;
    }

    .service-hero .allon4-hero__features {
        z-index: 2;
        gap: 7px;
        margin-bottom: 16px;
    }

    .service-hero .allon4-hero__feature {
        width: calc(50% - 4px);
        flex: 1 1 calc(50% - 4px);
        padding: 14px;
        gap: 6px;
    }

    .service-hero .allon4-hero__feature p {
        font-size: 14px;
    }

    .service-hero .allon4-hero__form-wrap {
        margin-top: 8px;
        margin-bottom: 16px;
    }

    .service-hero .allon4-hero__form {
        grid-template-columns: 1fr;
        grid-template-areas:
        "input"
        "agree"
        "button";
    }

    .service-hero .allon4-hero__input {
        width: 100%;
        height: 56px;
        font-size: 16px;
    }

    .service-hero .allon4-hero__btn {
        width: 100%;
        height: auto;
        min-height: 56px;
        font-size: 16px;
        text-align: center;
    }

    .service-hero .allon4-hero__agree {
        font-size: 11px;
        width: 100%;
    }

    .service-hero .allon4-hero__agree input {
        width: 20px;
        height: 20px;
        border-radius: 4px;
    }

    .service-hero .allon4-hero__included {
        padding: 20px;
        border-radius: 20px;
        margin-top: 0;
    }

    .service-hero .allon4-hero__included-head {
        margin-bottom: 12px;
        padding-right: 80px;
    }

    .service-hero .allon4-hero__included-title {
        font-size: 16px;
    }

    .service-hero .allon4-hero__badge {
        top: -6px;
        right: -10px;
        padding: 6px 12px;
        font-size: 12px;
        letter-spacing: 0;
    }

    .service-hero .allon4-hero__included-list {
        gap: 6px;
    }

    .service-hero .allon4-hero__included-list li {
        gap: 6px;
        font-size: 13px;
        align-items: flex-start;
    }

    .service-hero .allon4-hero__check {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }

    .service-hero .allon4-hero__check svg {
        width: 8px;
        height: 8px;
    }

    .service-hero .allon4-trust {
        display: none;
    }
}

/* Имплантация: 3 карточки, зелёный подзаголовок, trust на мобилке */
.service-hero--implant .allon4-hero__offer-text {
    font-size: 16px;
    font-weight: 600;
}

.service-hero--implant .allon4-hero__feature {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}

.service-hero--implant .allon4-hero__feature p {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-hero--implant .allon4-hero__feature-note {
    color: #2a7831;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}
@media (max-width: 1500px) {
    .service-hero .allon4-hero__included{
        right: 30px;
    }
}
@media (max-width: 1439px) {
    .service-hero--implant .allon4-hero__offer-text {
        font-size: 16px;
    }

    .service-hero--implant .allon4-hero__feature {
        width: auto;
        flex: 1 1 0;
    }

    .service-hero--implant .allon4-hero__feature-note {
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .service-hero--implant .allon4-hero__feature {
        width: calc(50% - 4px);
        flex: 1 1 calc(50% - 4px);
    }
}

@media (max-width: 767px) {
    .service-hero--implant .allon4-hero__offer-text {
        font-size: 14px;
        font-weight: 600;
    }

    .service-hero--implant .allon4-hero__feature img {
        width: 18px;
        height: 18px;
    }

    .service-hero--implant .allon4-hero__feature:nth-child(1) {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }

    .service-hero--implant .allon4-hero__feature:nth-child(2),
    .service-hero--implant .allon4-hero__feature:nth-child(3) {
        order: 1;
        width: calc(50% - 4px);
        flex: 1 1 calc(50% - 4px);
    }

    .service-hero--implant .allon4-hero__feature-note {
        font-size: 14px;
    }

    .service-hero--implant .allon4-trust {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px 0 0;
    }

    .service-hero--implant .allon4-trust__item {
        flex: 1 1 calc(50% - 4px);
        max-width: calc(50% - 4px);
        padding: 8px;
        gap: 10px;
        border-radius: 12px;
    }

    .service-hero--implant .allon4-trust__icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .service-hero--implant .allon4-trust__icon img {
        width: 18px;
        height: 18px;
    }

    .service-hero--implant .allon4-trust__item span {
        font-size: 13px;
        line-height: 1.2;
    }
}
