.hero {
    position: relative;
    width: 100%;
    height: 1075px;
    overflow: visible;
    z-index: 2;
}

.hero__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    pointer-events: none;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero__bg--desktop {
    position: absolute;
    inset: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(1344px + 30vw);
    height: auto;
    object-fit: cover;
    object-position: center top;
    display: block;
    z-index: -2;
    pointer-events: none;
}

.hero__bg--mobile {
    display: none;
    position: absolute;
    top: 170px;
    left: clamp(100px, calc(-209.5px + 82.5vw), 500px);
    transform: translateX(calc(-50% + 24.5vw));
    width: 851px;
    height: auto;
    object-fit: cover;
    object-position: center top;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 860px) {
    .hero {
        height: 902px;
        margin-top: 0;
    }

    .hero__bg--desktop {
        display: none;
    }

    .hero__bg--mobile {
        display: block;
        top: 200px;
    }
}

@media (max-width: 540px) {
    .hero__subtitle {
        font-size: 35px;
    }

    .hero__bg--mobile {
        top: 130px;
    }
}

.hero__content {
    position: relative;
    z-index: 6;
    max-width: 900px;
    padding-inline: clamp(16px, 4.14vw, 80px);
    margin-left: clamp(0px, calc(300px - (1920px - 100vw) * 0.3), 300px);
    margin-top: clamp(78px, calc(196px - (1920px - 100vw) * 0.2), 196px);
    padding-right: 40px;
    display: flex;
    flex-direction: column;
}

.hero__subtitle {
    white-space: nowrap;
}

.hero__cta {
    position: relative;
    width: auto;
    display: block;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 540px) {
    .hero__cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 20px;
    }
}

.hero__cta button {
    margin-top: 84px;
}

.hero__cta-inner {
    position: relative;
    display: inline-block;
    margin-top: 115px;
    margin-left: 230px;
}

.hero__ellipse-1,
.hero__ellipse-2 {
    position: absolute;
    pointer-events: none;
    z-index: -3;
}

.hero__ellipse-1 {
    right: 0;
    top: 0;
    width: 1400px;
    height: 1400px;
}

.hero__ellipse-2 {
    left: 300px;
    top: 300px;
    width: 1200px;
    height: 1200px;
}

@media (max-width: 1080px) {
    .hero__cta-inner {
        margin-top: 70px;
        margin-left: 100px;
    }
}

@media (max-width: 860px) {
    .hero__subtitle {
        white-space: normal;
    }

    .hero__cta button {
        margin-top: 424px;
    }

    .hero__ellipse-1 {
        display: none;
    }

    .hero__cta-inner {
        margin-top: 32px;
        margin-left: 0;
    }

    .hero__cta-text.styled-border {
        width: 164px;
        text-wrap: nowrap;
        font-size: 16px;
        padding: 6px 51px;
        font-weight: 700;
    }

    .hero__cta-inner .hero__link img {
        width: 126px;
        height: 126px;
    }

    .hero__cta-inner .hero__link--telegram {
        top: 35px;
        left: -70px;
        right: 0;
    }

    .hero__cta-inner .hero__link--whatsapp {
        top: 120px;
        left: 90px;
        right: 0;
    }
}

.programs {
    position: relative;
    padding-inline: clamp(16px, 4.14vw, 80px);
    width: 100%;
    height: 1148px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: visible;
    z-index: 1;
}

.programs__main-img {
    position: absolute;
    top: calc(860 - 50vw + 3px);
    left: clamp(-50px, calc(20.95vw - 364px), 38px);
    bottom: auto;
    width: clamp(544px, calc(41.3vw + 414px), 1207px);
    height: auto;
    pointer-events: none;
    z-index: 0;
    margin-bottom: 30px;
}

.programs__title {
    position: relative;
    z-index: 2;
    margin-top: clamp(27px, calc(191px - (1920px - 100vw) * 0.15), 191px);
    max-width: 40vw;
    min-width: 470px;
    text-align: right;
    text-wrap: wrap;
}

.programs__logo {
    margin-bottom: clamp(44px, calc(175px - (1920px - 100vw) * 0.2), 175px);
    margin-top: auto;
    width: auto;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

.programs__ellipse {
    display: none;
    position: absolute;
    left: -75%;
    top: 10%;
    transform: translateY(-50%);
    width: 700px;
    height: 700px;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 1440px) {
    .programs {
        height: 1050px;
    }

    .programs__main-img {
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        margin-bottom: 0;
    }
}

@media (max-width: 840px) {
    .programs {
        height: 960px;
    }

    .programs__logo {
        bottom: clamp(44px, calc(175px - (1920px - 100vw) * 0.2), 175px);
    }

    .programs__ellipse {
        display: block;
    }
}

@media (max-width: 540px) {
    .programs {
        height: 854px;
        align-items: center;
    }

    .programs__main-img {
        top: 55%;
    }

    .programs__title {
        margin-top: 27px;
        max-width: 100%;
        min-width: 0;
    }
}

.info {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 52px;
    padding-inline: 15vw;
    align-items: center;
    gap: 40px;
    width: 100%;
    z-index: 1;
    overflow: visible;
}

.info h2 {
    max-width: 900px;
    width: 100%;
    margin: 0 auto 0 auto;
    text-align: left;
}

.info__article {
    width: 100%;
    max-width: 900px;
    height: auto;
    padding: 24px 48px;
    background: transparent;
    transition: background 200ms ease, box-shadow 200ms ease;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.info__article:hover {
    background: linear-gradient(90deg, var(--color-bg-yellow), var(--color-bg-accent));
}

.info__chip {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -10;
    pointer-events: none;
    transform-origin: left top;
    transform: translateY(0) scale(1);
    will-change: transform, opacity;
    width: auto;
    height: auto;
}

.info__chip img {
    display: block;
    max-width: none;
    width: auto;
    height: auto;
    pointer-events: none;
}

.info__ellipse {
    position: absolute;
    right: 0;
    z-index: -10;
    width: 800px;
    height: 800px;
}

@media (max-width: 1040px) {
    .info {
        padding-bottom: 154px;
    }
}

@media (max-width: 860px) {
    .info {
        padding-top: 21px;
        padding-inline: 16px;
        gap: 16px;
    }

    .info__article {
        padding: 16px 24px;
    }

    .info__chip {
        bottom: 0;
        transform: translateY(270px) scale(0.7);
    }

    .info__ellipse {
        top: 480px;
        z-index: -12;
    }
}

@media (max-width: 680px) {
    main {
        padding-bottom: 0;
    }
}

.features {
    position: relative;
    width: 100%;
    height: clamp(1040px, calc(33vw + 697px), 1330px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    z-index: 1;
}

.features__bg {
    position: absolute;
    height: auto;
    pointer-events: none;
    z-index: 0;
}

.features__bg--desktop {
    display: block;
    left: clamp(-150px, calc(17.86vw - 342.86px), 0px);;
    width: calc(480px + 75vw);
    object-fit: cover;
    object-position: left center;
}

.features__bg--mobile {
    margin-top: clamp(200px, calc(-6.02vw + 262.6px), 240px);
    display: none;
    left: 40%;
    transform: translateX(-50%);
    width: clamp(592px, calc(592px + (100vw - 375px) * 0.25), 800px);
}

.features__content {
    position: relative;
    z-index: 2;
    width: 464px;
    display: flex;
    flex-direction: column;
    margin-top: clamp(168px, 15.1vw, 290px);
    margin-right: 4.16vw;
    gap: 56px;
}

.features__title {
    text-align: right;
    text-wrap: nowrap;
}

.features__text-blocks {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.features__text-block {
    width: 100%;
    height: auto;
    padding: 24px 48px;
    background: black;
    transition: background 200ms ease;
    box-sizing: border-box;
}

.features__text-block.styled-border {
    border-radius: 24px;
    border: 2px solid transparent;
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.features__text-block:hover {
    background: linear-gradient(90deg, var(--color-bg-yellow), var(--color-bg-accent));
}

@media (max-width: 1040px) {
    .features {
        height: 1100px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .features__bg--desktop {
        display: none;
    }

    .features__bg--mobile {
        display: block;
    }

    .features__content {
        width: 100%;
        padding-inline: clamp(16px, 4.14vw, 80px);
        margin-top: 14px;
        margin-right: 0;
        gap: 16px;
    }

    .features__text-blocks {
        flex-direction: row;
        gap: 40px;
    }

    .features__text-block {
        padding: 16px 24px;
    }
}

@media (max-width: 840px) {
    .features {
        height: 944px;
    }

    .features__content {
        gap: 16px;
        width: 100%;
        max-width: none;
        padding-inline: 16px;
        margin-right: 0;
    }

    .features__text-blocks {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .features__title {
        text-align: right;
        width: 100%;
        order: -1;
    }

    .features__text-block {
        flex: 1;
        padding: 16px 24px;
    }
}

.contacts {
    position: relative;
    width: 100%;
    height: 906px;
    padding-block: 80px;
    padding-inline: clamp(16px, 4.14vw, 80px);
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
    overflow: visible;
    z-index: 1;
}

.contacts__title {
    font-size: 80px;
    max-width: 650px;
    position: relative;
    z-index: 10;
}

.contacts__left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.contacts__buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 101px;
    gap: 134px;
}

.contacts__cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 2;
    text-decoration: none;
    color: inherit;
}

.contacts__cta-label {
    font-size: 24px;
    font-weight: 900;
    color: white;
    padding: 13px 110px 13px 40px;
    border-radius: 24px;
    border: 2px solid transparent;
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    transition: background 200ms ease;
    position: relative;
    z-index: 4;
}

.contacts__cta-label::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(24px + 2px);
    padding: 2px;
    background: linear-gradient(90deg, var(--color-bg-yellow), var(--color-bg-accent));
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    z-index: 2;
}

.contacts__cta-link {
    position: absolute;
    right: -30%;
    top: -90px;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    cursor: pointer;
}

.contacts__cta-link img {
    width: 220px;
    height: 220px;
    transition: transform 0.3s ease;
    display: block;
    flex-shrink: 0;
}

.contacts__cta:hover .contacts__cta-label {
    background: linear-gradient(90deg, var(--color-bg-yellow), var(--color-bg-accent));
}

.contacts__cta:hover .contacts__cta-link--telegram img {
    transform: rotate(-30deg);
}

.contacts__cta__description {
    position: absolute;
    left: 0;
    padding-top: 70px;
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    text-transform: uppercase;
}

.contacts__form {
    position: relative;
    flex: 1 1 50%;
    width: 100%;
    height: 100%;
    padding: 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.21);
    border-radius: 24px;
    scroll-margin-top: 80px;
}

.contacts__form__title {
    font-size: 64px;
    text-align: center;
    margin-bottom: 12px;
}

.contacts__form-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    box-sizing: border-box;
    font-family: 'Noto Sans', sans-serif;
}

.contacts__form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.contacts__form-label {
    color: #ffffff;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 900;
    font-family: 'Noto Sans', sans-serif;
}

.contacts__form-label:nth-child(3) {
    line-height: 1.5;
}

.contacts__form-label-note {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 4px;
}

.contacts__form-input {
    width: 100%;
    padding: 13px 20px;
    border-radius: 24px;
    background: transparent;
    color: #fff;
    box-sizing: border-box;
    font-size: 24px;
    outline: none;
    border: none;
}

.contacts__form-input:focus {
    background: color-mix(in srgb, var(--color-bg-accent) 15%, transparent);
}

.contacts__form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contacts__form-error {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    top: calc(100% + 8px);
    min-width: 200px;
    text-align: center;
    margin-top: 0;
    color: var(--color-border-error);
    font-size: 12px;
    line-height: 1.2;
    min-height: 18px;
    pointer-events: none;
    text-wrap: nowrap;
}

.contacts__form__logo {
    position: absolute;
    width: 292px;
    height: auto;
    top: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.contacts__ellipse {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.contacts__ellipse--2 {
    --scale: clamp(0.6, calc(0.037vw + 0.29), 1);
    display: block;
    top: 50px;
    left: clamp(-100px, calc(-18.52vw + 255.57px), 100px);
    width: 1100px;
    height: 1100px;
    transform: scale(var(--scale));
    transform-origin: top right;
}

.contacts__ellipse--5 {
    --scale: clamp(0.6, calc(0.037vw + 0.29), 1);
    position: absolute;
    top: -360px;
    right: clamp(-400px, calc(27.78vw - 633.35px), -100px);
    width: 1500px;
    height: 1500px;
    transform: scale(var(--scale));
    transform-origin: top right;
}

.contacts__decor {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.contacts__decor--desktop {
    display: block;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: auto;
}

.contacts__decor--mobile {
    display: none;
    opacity: 38%;
}

@media (max-width: 1280px) {
    .contacts {
        gap: 20px;
    }

    .contacts__form__title {
        font-size: 60px;
    }

    .contacts__cta-link,
    .contacts__cta-link img {
        width: 145px;
        height: 145px;
        margin-top: 34px;
        margin-right: 30px;
    }

    .contacts__cta-label {
        font-size: 18px;
        padding: 18px 65px 10px 20px;
        border-radius: 24px;
        width: 320px;
        height: 63px;
    }

    .contacts__form__logo {
        width: 240px;
    }

    .contacts__cta__description {
        font-size: 12px;
        padding-top: 66px;
    }
}

@media (max-width: 1040px) {
    .contacts__form-label {
        font-size: 20px;
    }

    .contacts__form-label-note {
        font-size: 12px;
    }

    .contacts__form-input {
        width: 100%;
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 20px;
    }
}

@media (max-width: 840px) {
    .contacts {
        height: auto;
        flex-direction: column;
        align-items: center;
        padding-inline: 32px;
        padding-block: 0;
        padding-top: 80px;
        padding-bottom: 92px;
    }

    .contacts__form__logo {
        width: 224px;
        transform: translateY(-104%);
    }

    .contacts__left {
        width: 100%;
        order: 1;
        padding: 16px 0 110px 0;
        height: 595px;
        flex: none;
    }

    .contacts__form {
        width: 100%;
        order: 2;
        margin-top: 0;
        padding: 36px;
        height: auto;
        flex: none;
    }

    .contacts__title {
        margin-left: 0;
        max-width: 90%;
        line-height: 110%;
        font-size: 53px;
        margin-top: 12px;
    }

    .contacts__form-row {
        padding-bottom: 18px;
    }

    .contacts__form-error {
        font-size: 12px;
        top: calc(100% - 10px);
    }

    .contacts__form-inner {
        gap: 12px;
    }

    .contacts__form-submit {
        margin-top: 48px;
    }

    .contacts__form__title {
        font-size: 56px;
    }

    .contacts__form-label {
        font-size: 18px;
    }

    .contacts__form-label-note {
        font-size: 14px;
    }

    .contacts__buttons {
        padding-top: 0;
        padding-left: 0;
        gap: 74px;
        margin-top: 44px;
    }

    .contacts__cta--telegram{
        margin-left: 0;
    }

    .contacts__ellipse--2 {
        display: none;
    }

    .contacts__ellipse--5 {
        top: 234px;
        left: -100px;
        width: 800px;
        height: 800px;
    }

    .contacts__decor--desktop {
        display: none;
    }

    .contacts__decor--mobile {
        display: block;
        bottom: 34%;
        right: -55%;
        width: 1122px;
        height: auto;
    }
}

@media (max-width: 540px) {
    .contacts {
        padding-inline: 16px;
    }

    .button--sm {
        height: 52px;
        font-size: 16px;
    }

    .contacts__form {
        padding: 32px;
    }

    .contacts__form-label {
        font-size: 16px;
    }

    .contacts__form-label-note {
        display: block;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 500;
        text-transform: uppercase;
        margin-top: 4px;
    }

    .contacts__form-input {
        font-size: 16px;
    }

    .contacts__form-input:focus {
        background: color-mix(in srgb, var(--color-bg-accent) 15%, transparent);
    }

    .contacts__form-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .contacts__form-submit {
        height: 52px;
        font-size: 16px;
    }
}
