body {
    padding: 0;
    margin: 0;
    font-family: 'Montserrat';
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: #1c1c1c;
    transition: all 0.3s;

    &:hover {
        opacity: 0.8;
    }
}

.container {
    width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.input-item {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

.input-item .icon {
    position: absolute;
    left: 15px;
    top: 15px;

    & img {
        width: 15px;
    }
}

.input-item.file-upload-container .icon {
    position: static;
}

.input-item input {
    width: calc(100% - 80px);
    /* width: calc(100%); */
    border-radius: 6px;
    border: 1px solid #d6d6d6;
    background-color: #fff;
    box-shadow: none;
    padding: 13px 40px;
    font-weight: 500;
}

.btn {
    background: linear-gradient(85.6deg, #2e7dab 2.52%, #5ec4ff 128.38%);
    color: #fff;
    font-weight: 500;
    padding: 14px 24px;
    border: none;
    outline: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 14px;

    &:hover {
        opacity: 0.8;
    }
}

.wrapper-form .btn {
    margin-top: 12px;
    width: 100%;
}

.section {
    margin-bottom: 80px;

    & .title-section {
        font-size: 35px;
        color: #000;
        font-weight: 700;
        margin-bottom: 50px;
    }

    & .head-block {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 50px;

        & .title-section {
            margin-bottom: 0;
        }
    }
}

.blue-background {
    background-color: #2e7dab;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    transition: all 0.3s;
    z-index: 9999;
}

header.scrolled {
    background-color: rgba(100, 100, 100, 0.6);
    backdrop-filter: blur(5px);
    padding: 15px 0;
}

header.scrolled .menu a,
header.scrolled .contacts .phone,
header.scrolled .contacts #languageSwitcher {
    color: #fff;
}
header.scrolled .contacts .phone .icon svg path {
    stroke: rgb(255, 255, 255);
}
header .contacts .phone .icon svg path {
    stroke: #1f1f1f;
}
header .logo img {
    width: 130px;
}

header .wrapper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .menu {
    display: flex;
    align-items: center;
    gap: 50px;
}

header .menu a {
    color: #1f1f1f;
    font-weight: 400;
}

header .contacts .phone {
    display: flex;
    align-items: center;
    color: #1f1f1f;
    font-weight: 500;
}

/* Адаптивные стили */
@media (max-width: 992px) {
    header .menu {
        gap: 30px;
    }

    header .contacts .phone {
        font-size: 14px;
    }

    header .logo img {
        width: 110px;
    }
}

@media (max-width: 768px) {
    header .wrapper-header {
        align-items: flex-start;
    }

    header .menu {
        align-items: flex-start;
        display: none;
        gap: 20px;
    }

    header .contacts {
        margin-top: 10px;
    }

    header .contacts .phone {
        font-size: 13px;
    }

    header .logo img {
        width: 100px;
    }
}

@media (max-width: 576px) {
    header .menu {
        display: none;
        /* Прячем меню на маленьких экранах, можно добавить бургер-меню */
    }

    header .wrapper-header {
        flex-direction: row;
        justify-content: space-between;
    }

    header .logo img {
        width: 90px;
    }
}

/* Приоритетный фикс расположения карточек на ширине <= 982px */
@media (max-width: 982px) {
    .hero-badge--right-mid {
        right: -3em;
    }
    .hero-badge--right-bottom {
        right: -4em;
    }
    .hero-badge--left-top {
        left: -2em;
        top: 12em;
    }
}

.main-screen {
    background: url('../images/main-bg.webp');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    max-width: 100vw;
    position: relative;
    /* overflow-x: hidden; */
    overflow-y: visible;

    .screen-section-scale {
        width: 100%;
        max-width: 100%;
        /* min-height: 100vh; */
        position: relative;
        transform-origin: top center;
        will-change: transform;
        /* overflow-x: hidden; */
        overflow-y: visible;
    }

    /* Контейнер остаётся адаптивным согласно глобальным media rules */

    & .wrapper-main-screen {
        /* legacy layout kept for compatibility but not used in new hero */
        height: auto;
        padding-top: 90px;

        & .column-screen-left {
            width: 60%;

            & .title {
                font-size: 48px;
                font-weight: 700;
                color: #fff;
                text-transform: uppercase;
                margin-bottom: 30px;

                & .head-title {
                    color: #cfcfcf;
                    font-size: 65px;
                    margin-bottom: 5px;
                }
            }

            & .description {
                font-size: 24px;
                font-weight: 600;
                color: #fff;
            }
        }

        & .column-screen-right {
            width: 40%;
            display: flex;
            align-items: end;
            justify-content: end;

            & .wrapper-form {
                min-width: 300px;
                text-align: center;
                background-color: #fff;
                background-image:
                    url('../images/pattern2.svg'), url('../images/pattern1.svg');
                background-position:
                    top right,
                    bottom left;
                background-repeat: no-repeat, no-repeat;
                background-size: auto, auto;
                border-radius: 12px;
                padding: 30px 40px;
                box-shadow: -4px 8px 20px rgb(0, 0, 0, 0.1);

                & .title-form {
                    font-size: 18px;
                    font-weight: 700;
                    color: #2b6180;

                    margin-bottom: 24px;
                }
            }
        }
    }

    & .carusel-logo {
        height: 10vh;
        display: flex;
        align-items: center;
        gap: 24px;
        overflow: hidden;
    }
}
.item-duble.right img {
    border-radius: 12px;
}

.hero {
    position: relative;
    /* padding-top: 120px; */
    padding-top: 8em;
    /* padding-bottom: 40px; */
    color: #0e2a3a;
}

.hero .hero-headings {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero .hero-title {
    margin: 0 0 16px 0;
    font-size: 50px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1f5f82;
    line-height: 100%;
}

.hero .hero-subtitle {
    margin: 0 auto;
    max-width: 1020px;
    font-size: 16px;
    font-weight: 500;
    color: #183f55;
}

.hero-nav {
    list-style: none;
    padding: 0;
    margin: 18px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-nav a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 95, 130, 0.25);
    background: rgba(255, 255, 255, 0.6);
    color: #1f5f82;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.hero-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2b6180;
}

.hero-card-text {
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
}

/* Stage with girl and floating badges */
.hero-stage {
    position: relative;
    min-height: 480px;
    /* overflow: hidden; */
}

.hero-arc {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(1232px, 100%);
    /* height: 512px; */
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-arc-svg {
    position: absolute;
    left: 50%;
    bottom: 0;
    top: 4em;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    max-width: 1232px;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        #5ec4ff 0%,
        #2e7dab 70%,
        #1e4a66 100%
    );
    /* box-shadow: 0 10px 24px rgba(46,125,171,.4); */
    z-index: 5;
    box-shadow: inset 0 10px 24px rgba(46, 125, 171, 0.4);

    /* background: linear-gradient(120deg, rgba(46, 125, 171, 1) 0%, rgba(94, 196, 255, 1) 100%); */
}

.hero-circle--1 {
    /* left: 4%;
    top: 32em;
    width: 92px;
    height: 92px; */

    left: -1%;
    top: 25em;
    width: 92px;
    height: 92px;
}

.hero-circle--2 {
    left: 25em;
    top: 80px;
    width: 32px;
    height: 32px;
}

.hero-circle--3 {
    right: 8%;
    top: 50px; /* маленький круг над карточкой "Онлайн 24/7" */
    width: 24px;
    height: 24px;
}

.hero-girl {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    top: 0em;
    overflow: hidden;
    max-height: 47em;
}

.hero-girl img {
    width: 100%;
    /* max-width: 578px; */
    max-width: 40em;
    /* max-width: 90%; */
    height: auto;
    position: relative;
    transform: translateY(8px) scale(1.06);
    top: 4em;
}

.hero-badge {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 30px 25px;
    width: 300px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    z-index: 3;
}

.hero-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-bg-circle {
    position: absolute;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.icon-bg-circle--outer {
    width: 60px;
    height: 60px;
    background: rgba(230, 246, 255, 0.8); /* светлый голубой */
}

.icon-bg-circle--inner {
    width: 40px;
    height: 40px;
    background: rgba(94, 196, 255, 0.3); /* более темный голубой */
}

.hero-card-icon svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.hero-card-content {
    flex: 1;
}

.hero-badge--left-top {
    left: -2em;
    top: 11em;
    /* left: 5%; 
    top: 12em;  */
    max-width: 393px;
    width: 100%;
}

.hero-badge--right-mid {
    right: 2%;
    top: 3em;
    min-width: 350px;
    max-width: 400px;
    width: fit-content;
}

.hero-badge--right-bottom {
    right: -2em;
    bottom: 18em;

    width: 100%;
    max-width: 402px;
}

.hero-actions {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 4;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn {
    height: 50px;
    padding: 0 64px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    justify-self: center;
    align-items: center;
    font-size: 16px;
}

.btn-whatsapp {
    background: linear-gradient(90deg, #0c8406 0%, #16a20f 100%);
}

.btn-outline {
    background: #fff;
    color: #096805;
    border: 1px solid #1da615;
}

@media (max-width: 1208px) {
    .hero .hero-title {
        font-size: 54px;
    }

    .hero-actions {
        width: 100%;
        max-width: max-content;
    }
}

@media (max-width: 1024px) {
    .hero .hero-title {
        font-size: 48px;
        line-height: 100%;
    }
    .hero .hero-subtitle {
        font-size: 16px;
    }
    .hero {
        padding-top: 6em;
    }
    .hero-stage {
        min-height: 420px;
    }
    .hero-girl img {
        max-width: 31em;
        top: 3em;
        transform: translateY(6px) scale(1.02);
    }
    .hero-badge {
        padding: 18px;
    }
    .hero-cta {
        padding: 20px;
    }
    .hero-actions {
        width: 100%;
    }

    .hero-card-title {
        font-size: 16px;
    }
    .hero-card-text {
        font-size: 12px;
    }
    .hero-circle--2 {
        left: 10em;
        top: 108px;
    }
    .hero-badge--right-mid {
        right: -2em;
        max-width: 310px;
    }
    .hero-badge--left-top {
        max-width: 342px;
        left: -2em;
        top: 12em;
    }
    .hero-badge--right-bottom {
        max-width: 366px;
        right: -2em;
        bottom: 14em;
    }
    .hero-girl {
        max-height: 34em;
    }

    .main-screen {
        .screen-section-scale {
            min-height: max-content;
        }
    }
    .contacts {
        flex-direction: row-reverse;
    }
    header .contacts .phone #text-phone {
        display: none;
    }
    header .contacts .phone span {
        display: block;
    }
}

/* Точечная правка только для ширины <= 982px */
@media (max-width: 982px) {
    .hero-badge--right-mid {
        right: -3em;
    }
    .hero-badge--right-bottom {
        right: -4em;
    }
    .hero-badge--left-top {
        left: -2em;
        top: 12em;
    }
}

@media (max-width: 991px) {
    .hero .hero-title {
        font-size: 40px;
    }
    .hero-stage {
        min-height: 460px;
    }
    .hero-badge {
        width: 260px;
    }
    .hero-arc {
        width: min(950px, 95%);
        height: 350px;
    }
    .hero-circle--1 {
        left: 8%;
        top: 120px;
        width: 38px;
        height: 38px;
    }
    .hero-circle--2 {
        left: 2%;
        top: 70px;
        width: 22px;
        height: 22px;
    }
    .hero-circle--3 {
        right: 3%;
        top: 45px;
        width: 22px;
        height: 22px;
    }
    .hero-badge--left-top {
        left: 2%;
        top: 100px;
    }
    .hero-badge--right-mid {
        right: 3%;
        top: 70px;
    }
    .hero-badge--right-bottom {
        right: 5%;
        bottom: 120px;
    }
}

/* Старый медиа-запрос для 576px удален - используем новый более полный ниже */

.carusel-logo {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.inner {
    display: flex;
    position: relative;
}

.item-carusel {
    min-width: 150px;
    padding: 0 30px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carusel-logo .item-carusel img {
    width: 100%;
    display: block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.wrapper-duble-block {
    display: flex;
    flex-wrap: wrap;
}

.section.main-screen,
.section.sec-block {
    margin-bottom: 0 !important;
    height: max-content;
}

@media (max-width: 1189px) {
    .section.main-screen,
    .section.sec-block {
        height: auto;
    }
}

.section.sec-block {
    padding: 120px 0;
}

.map {
    position: relative;
}

.map-overlay-btn {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 11px 15px;
    background: linear-gradient(89.22deg, #2e7dab 2.52%, #5ec4ff 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 110%;
    letter-spacing: 0;
    text-decoration: none;
    z-index: 5;
    text-align: center;
    vertical-align: middle;
    opacity: 1;
}

.map-overlay-btn:hover,
.map-overlay-btn:focus {
    color: #ffffff;
    opacity: 1;
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(46, 125, 171, 0.25);
}

.sec-block {
    background-image: url('../images/pattern3.svg');
    background-position: left;
    background-repeat: no-repeat;
    background-size: auto;

    & .left {
        width: 50%;
    }

    & .right {
        width: 50%;
    }

    & .wrapper-star {
        & .item-star {
            display: flex;
            align-items: center;
            margin-bottom: 50px;

            &:last-child {
                margin-bottom: 0;
            }

            & .number {
                color: #2e7dab;
                font-size: 48px;
                font-weight: 500;
                min-width: 60px;
                width: 60px;
                height: 60px;
            }

            & .info-star {
                display: flex;
                align-items: center;

                &::before {
                    content: '';
                    min-width: 2px;
                    width: 2px;
                    height: 90px;
                    background-color: #2e7dab;
                    display: block;
                    margin: 0 40px;
                }

                & .title-star {
                    font-size: 22px;
                    color: #000;
                    font-weight: 600;
                    margin-bottom: 5px;
                }

                & .description-star {
                    font-size: 14px;
                    font-weight: 500;
                    color: #1f1f1f;
                }
            }
        }
    }

    & .wrapper-photo {
        margin-left: 50px;
        position: relative;
        box-shadow: 0 3px 6px rgb(0, 0, 0, 0.1);
        border-radius: 12px;

        & .photo {
            & img {
                width: 100%;
            }
        }

        & .info-photo {
            position: absolute;
            bottom: 0;
            background: #fff url('../images/kv.png') no-repeat top left 20px;
            background-size: 80px;
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
            padding: 20px 40px;

            & .text {
                font-size: 16px;
                font-weight: 500;
                color: #000;
                margin-bottom: 12px;
            }

            & .name {
                font-size: 14px;
                font-weight: 700;
                color: #3f3f3f;
            }

            & .job {
                font-size: 12px;
                font-weight: 500;
                color: #3f3f3f;
            }
        }
    }
}

.plus-block {
    padding: 60px 0;

    & .wrapper-grid-plus {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;

        & .item-plus {
            background-color: #fff;
            border-radius: 8px;
            text-align: center;
            padding: 40px 25px;

            & .icon {
                margin-bottom: 12px;

                & img {
                    width: 80px;
                }
            }

            & .title {
                font-size: 16px;
                color: #000;
                font-weight: 600;

                &::after {
                    content: '';
                    background-color: #2e7dab;
                    width: 100%;
                    height: 1px;
                    display: block;
                    margin: 15px 0;
                }
            }

            & .description {
                font-size: 14px;
                color: #1f1f1f;
                font-weight: 500;
            }
        }
    }
}

.language-block {
    & .head-block {
        & .count-language {
            display: flex;
            align-items: center;
            gap: 10px;
            & .count {
                font-size: 70px;
                color: #000000;
                font-weight: 600;
                display: flex;
                align-items: center;
            }

            & .text {
                width: 100px;
            }
        }
    }

    & .wrapper-grid-language {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;

        & .item-language {
            display: flex;
            align-items: center;
            padding: 20px 20px;
            border: 1px solid #cbcbcb;
            border-radius: 8px;

            & .icon {
                margin-right: 15px;

                & img {
                    width: 50px;
                }
            }
        }
    }
}

.wrapper-button-block {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;

    & .title {
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 12px;
    }
}

.services-block {
    & .wrapper-grid-services {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
        gap: 20px;

        & .item-service {
            display: flex;
            padding: 30px 40px;
            border: 1px dashed #2e7dab;
            border-radius: 12px;
            position: relative;
            overflow: hidden;
            transition: color 0.3s ease;

            &:before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(
                    256.66deg,
                    #2e7dab 0%,
                    #3785b3 50.75%,
                    #1a4a66 100%
                );
                z-index: -1;
                transition: opacity 0.3s ease;
                opacity: 0;
            }

            &:hover {
                color: #fff;
                border-color: #fff;

                &:before {
                    opacity: 1;
                }

                & .btn {
                    background: #fff;
                    color: #000;
                    transition:
                        background 0.3s ease,
                        color 0.3s ease;
                }

                & .info-service {
                    border-color: #fff;
                    transition: border-color 0.3s ease;

                    & .description {
                        color: #cfcfcf;
                        transition: color 0.3s ease;
                    }
                }
            }
        }

        & .info-service {
            max-width: 45%;
            padding: 24px 0;
            padding-right: 30px;
            display: flex;
            align-items: center;
            border-right: 1px solid #2e7dab;

            & .title {
                font-size: 20px;
                font-weight: 600;
                margin-bottom: 40px;
            }

            & .description {
                font-size: 12px;
                font-weight: 500;
                margin-bottom: 50px;
                color: #606060;
            }
        }

        & .list-docs {
            max-width: 55%;
            padding: 24px 0;
            padding-right: 30px;

            & ul {
                margin: 0;

                & li {
                    margin-bottom: 24px;
                    font-size: 14px;

                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }
    }
}

.services-block.services-block--collapsible {
    & .notary-services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        align-items: start;
        gap: 24px;
    }

    & .notary-service-card {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 22px;
        border: 1px dashed #2e7dab;
        border-radius: 12px;
        background: #fff;
        transition:
            background 0.3s ease,
            border-color 0.3s ease,
            color 0.3s ease;

        &:hover {
            background: linear-gradient(89.22deg, #2e7dab 2.52%, #5ec4ff 100%);
            border: none;
            color: #fff;

            & .notary-service-head .title {
                color: #fff;
                border-color: #fff;
            }

            & .notary-service-list li,
            & .notary-service-toggle {
                color: #fff;
            }

            & .notary-service-button {
                background: #ffffff;
                color: #2b6180;
                border-color: #ffffff;
            }

            & .notary-service-button:hover {
                background: #d6e4ec;
                color: #2b6180;
                border-color: #d6e4ec;
                opacity: 1;
            }
        }
    }

    & .notary-service-head {
        padding: 0;

        & .title {
            width: 100%;
            min-height: calc(2.5em + 14px);
            margin-bottom: 0;
            padding-bottom: 14px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #2e7dab;
            color: #000;
            font-size: 18px;
            font-weight: 600;
            line-height: 1.25;
            transition:
                border-color 0s ease,
                color 0s ease;
        }

        & .description {
            display: none;
        }
    }

    & .notary-service-list {
        padding: 0;

        & ul {
            margin: 0;
            padding-left: 20px;
        }

        & li {
            margin-bottom: 14px;
            font-size: 14px;
            line-height: 1.45;

            &:last-child {
                margin-bottom: 0;
            }
        }

        & .notary-service-list-item--extra.is-hidden {
            display: none;
        }
    }

    & .notary-service-list-content {
        width: 100%;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    & .notary-service-toggle {
        padding: 0;
        border: none;
        background: transparent;
        color: inherit;
        font: inherit;
        font-size: 14px;
        line-height: 1.35;
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
        transition: opacity 0.3s ease;

        &:hover {
            opacity: 0.75;
        }
    }

    & .notary-service-button {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-top: auto;
        background: linear-gradient(89.22deg, #2e7dab 2.52%, #5ec4ff 100%);
        color: #fff;
        border: 1px solid transparent;
        transition:
            background 0.3s ease,
            color 0.3s ease,
            border-color 0.3s ease,
            opacity 0.3s ease;

        &:hover {
            opacity: 1;
        }
    }
}

.carusel-reviews {
    & .item-carousel {
        & img {
            border-radius: 12px;
        }
    }
}

.owl-dots {
    text-align: center;
    margin-top: 24px;
}

.owl-carousel button.owl-dot {
    background: #666;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
}

.owl-carousel button.active {
    width: 13px;
    height: 13px;
    background: #fff;
    border: 1px solid #666;
}

.reviews-web {
    padding: 50px 0;

    & .wrapper-grid-reviews {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 60px;

        & .title {
            font-size: 22px;
            font-weight: 700;
            color: #fff;
            display: flex;
            align-items: center;
        }

        & .item-review {
            background: #fff;
            border-radius: 8px;
            padding: 10px 25px;
            display: flex;
            align-items: center;

            & .icon {
                margin-right: 15px;

                & img {
                    width: 45px;
                }
            }

            & .info {
                display: flex;
                align-items: center;

                & .oz {
                    font-size: 44px;
                    font-weight: 500;
                    margin-right: 12px;
                }

                & .stars {
                    display: flex;
                    flex-wrap: nowrap;

                    & img {
                        width: 18px;
                    }
                }

                & .text {
                    font-size: 14px;
                    color: #555;
                    font-weight: 500;
                    margin-top: 5px;
                }
            }
        }
    }
}

.contacts {
    display: flex;
    gap: 20px;
    & .wrapper-grid-contacts {
        display: grid;
        grid-template-columns:
            minmax(200px, 220px) minmax(0, 1002px) minmax(180px, 180px)
            minmax(160px, 190px);
        align-items: start;
        justify-content: space-between;
        gap: 32px 24px;
        margin-top: 80px;

        & .item-contacts-column {
            & .value {
                font-size: 14px;
                margin-top: 12px;

                & span {
                    margin-bottom: 12px;
                    display: block;
                }
            }

            & .title {
                display: flex;
                align-items: center;
                flex-wrap: nowrap;
                gap: 10px;

                & img {
                    width: 20px;
                }

                & .title-icon {
                    font-size: 16px;
                    font-weight: 600;
                    color: #000;
                }
            }
        }

        & .item-contacts-column--logo {
            & img {
                width: 100%;
                max-width: 200px;
                height: auto;
            }
        }

        & .item-contacts-column--addresses {
            max-width: 562px;

            & .value {
                margin-top: 14px;
            }
        }

        & .contacts-address-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            width: 562px;
            max-width: 100%;
            column-gap: 20px;
            row-gap: 10px;
            font-family: 'Montserrat';
            font-size: 14px;
            font-weight: 400;
            line-height: 1.4;

            & span {
                margin-bottom: 0;
                font-family: inherit;
                font-size: inherit;
                font-weight: inherit;
                line-height: inherit;
            }
        }

        & .item-contacts-column--addresses .value span {
            margin-bottom: 0;
        }

        & .item-contacts-column--contact-list {
            & .contacts-stack {
                display: grid;
                gap: 28px;
            }

            & .value {
                margin-top: 10px;
            }
        }
    }
}

@media (max-width: 1200px) {
    .contacts .wrapper-grid-contacts {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        justify-content: stretch;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column--logo,
    .contacts .wrapper-grid-contacts .item-contacts-column--addresses {
        grid-column: 1 / -1;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column--addresses {
        max-width: 100%;
    }

    .contacts .wrapper-grid-contacts .contacts-address-grid {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contacts .wrapper-grid-contacts {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column--logo,
    .contacts .wrapper-grid-contacts .item-contacts-column--addresses,
    .contacts .wrapper-grid-contacts .item-contacts-column--schedule,
    .contacts .wrapper-grid-contacts .item-contacts-column--contact-list {
        grid-column: auto;
        max-width: 100%;
    }

    .contacts .wrapper-grid-contacts .contacts-address-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .contacts
        .wrapper-grid-contacts
        .item-contacts-column--contact-list
        .contacts-stack {
        gap: 20px;
    }
}

#languageSwitcher {
    background: none;
    border: none;
    outline: none;
    color: #1f1f1f;
    font-size: 16px;
    cursor: pointer;

    & option {
        color: #1c1c1c;
        cursor: pointer;
    }
}

.hero-card-icon-small {
    display: none;
}

.callback-footer {
    padding: 35px 0;

    & .title-callback {
        & .title {
            font-size: 24px;
            color: #fff;
            font-weight: 700;
            margin-bottom: 12px;
        }

        & .description {
            font-size: 16px;
            color: #fff;
            font-weight: 400;
        }
    }

    & .wrapper-callback {
        display: flex;
        align-items: center;
        gap: 60px;
        flex-wrap: wrap;

        & .line-form {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        & .button-form {
            width: 100%;

            & .btn {
                width: 100%;
                background: #fff !important;
                color: #1c1c1c;
            }
        }
    }
}

footer {
    background-color: #f6f6f6;
    padding: 12px 0;

    & .wrapper-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        font-size: 12px;
        color: #6e6e6ecc;
        font-weight: 500;
        gap: 24px;

        & .absolute-center {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }
    }
}

.modal {
    display: none;
    overflow: hidden !important;
    position: fixed;
    z-index: 9;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    max-width: 320px;
    text-align: center;
    margin: 15% auto;
    background-color: #fff;
    background-image:
        url('../images/pattern2.svg'), url('../images/pattern1.svg');
    background-position:
        top right,
        bottom left;
    background-repeat: no-repeat, no-repeat;
    background-size: auto, auto;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: -4px 8px 20px rgb(0, 0, 0, 0.1);
    animation: animatetop 0.4s;
    position: relative;
}

.title-form {
    font-size: 18px;
    font-weight: 700;
    color: #2b6180;
    margin-bottom: 24px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }

    to {
        top: 0;
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    /* top: 14px; */
    top: 19px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.file-upload-container {
    display: flex;
    flex-direction: column;
}

/* Удалены старые конфликтующие стили */

/* Удалены старые конфликтующие стили */

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1400px) {
    .hero-title br {
        display: none;
    }
}
@media (min-width: 1400px) {
    .container {
        max-width: 1340px;
    }
}

@media (max-width: 1200px) {
    .sec-block .item-duble.left,
    .sec-block .item-duble.right {
        width: 100%;
    }

    .sec-block .wrapper-photo {
        margin-left: 0;
    }

    .wrapper-duble-block {
        gap: 50px;
    }

    .title-section {
        font-size: 26px !important;
    }
}

@media (max-width: 1200px) {
    .hero-badge--right-mid {
        right: -17%;
    }
    .hero-badge--right-bottom {
        right: -5em;
    }
    .hero-circle--2 {
        left: 20em;
    }
    .hero-badge--left-top {
        /* left: -2em;  */
        left: -5em;
    }
}

@media (max-width: 991px) {
    .column-screen-right {
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .column-screen-left {
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 24px;
    }

    .wrapper-main-screen {
        flex-wrap: wrap;
        gap: 0 !important;
    }

    .column-screen-left .title {
        font-size: 35px !important;
    }

    .column-screen-left .title span {
        font-size: 35px !important;
    }

    .column-screen-left .description {
        font-size: 18px !important;
    }

    .column-screen-right .wrapper-form {
        min-width: auto !important;
        width: 100% !important;
    }

    .hero-circle--2 {
        left: 15em;
    }

    .hero-circle--1 {
        top: 18em;
    }
    .hero-badge--right-bottom {
        bottom: 10em;
    }
}

@media (max-width: 790px) {
    .main-screen .wrapper-main-screen {
        height: auto;
        padding-top: 90px;
    }

    .main-screen .carusel-logo {
        height: auto;
        padding: 30px 0;
    }
    .hero-stage {
        /* overflow: hidden; */
    }

    .section.main-screen {
        overflow: hidden;
    }
}

@media (max-width: 778px) {
    .hero-badge--left-top {
        left: 0em;
    }
}

@media (max-width: 646px) {
    .hero-circle--2 {
        left: 10em;
    }
}
@media (max-width: 576px) {
    .hero-stage {
        overflow: unset;
    }
    .services-block .item-service .info-service,
    .services-block .item-service .list-docs {
        border: none !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .services-block .item-service {
        flex-wrap: wrap;
        gap: 30px;
    }

    .services-block .wrapper-grid-services {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .section .head-block {
        flex-wrap: wrap;
        gap: 24px;
    }

    .sec-block .info-photo .text {
        font-size: 14px !important;
    }

    .sec-block .info-photo {
        padding: 12px 20px !important;
    }

    .language-block .wrapper-grid-language {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .language-block .wrapper-grid-language .item-language .icon img {
        width: 30px !important;
    }

    .language-block .wrapper-grid-language .item-language .title {
        font-size: 14px;
    }

    .reviews-web {
        padding: 30px 0;
    }

    .reviews-web .wrapper-grid-reviews {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

    .reviews-web .wrapper-grid-reviews .item-review {
        padding: 10px 15px;
    }

    .reviews-web .wrapper-grid-reviews .title {
        font-size: 16px;
    }

    .reviews-web .wrapper-grid-reviews .item-review .icon img {
        width: 24px;
    }

    .reviews-web .wrapper-grid-reviews .item-review .info .oz {
        font-size: 24px;
    }

    .reviews-web .wrapper-grid-reviews .item-review .info .stars img {
        width: 12px;
    }

    .reviews-web .wrapper-grid-reviews .item-review .info .text {
        font-size: 8px;
    }

    .hero-badge--left-top {
        top: 44%;
    }

    .hero-badge--right-bottom {
        bottom: 49%;
    }
}

@media (max-width: 490px) {
    .contacts .wrapper-grid-contacts {
        text-align: center;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column--logo img {
        margin: 0 auto;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column .title {
        justify-content: center;
        font-size: 18px;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column .title .title-icon {
        font-size: 18px;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column .value {
        font-size: 16px;
    }

    .contacts .wrapper-grid-contacts .contacts-address-grid {
        grid-template-columns: 1fr;
    }
    .main-screen {
        background-image: url('../images/main-bg.webp') !important;
        background-position: center top !important;
        background-repeat: no-repeat;
        width: 100%;
        background-size: 235%;
    }

    .hero-girl img {
        min-width: 29em !important;
    }
    .hero-girl {
        max-height: -webkit-fill-available;
    }

    .hero-badge--left-top {
        top: 47%;
    }

    .hero-badge--right-bottom {
        bottom: 46%;
    }
    .hero-badge.is-open .hero-card-content {
        border-radius: 12px;
    }

    .modal-content {
        max-width: 345px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .title-form {
        color: #2b6180;
        text-transform: uppercase;
    }

    .file-list {
        display: none;
    }
}

@media (max-width: 460px) {
    .reviews-web .wrapper-grid-reviews {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 30px;
    }
}

/* Стили для загрузки файлов */
.file-upload-container {
    margin-bottom: 15px;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    border: 2px dashed #2e7dab !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f8ff 100%) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    color: #2e7dab !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(46, 125, 171, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.file-upload-label:hover::before {
    left: 100%;
}

.file-upload-label:hover {
    border-color: #1a5f8a !important;
    background: linear-gradient(135deg, #e8f4ff 0%, #d4edff 100%) !important;
    color: #1a5f8a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(46, 125, 171, 0.15) !important;
    text-decoration: none !important;
}

.file-upload-label:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(46, 125, 171, 0.1);
}

.file-upload-label.drag-over {
    border-color: #1a5f8a !important;
    background: linear-gradient(135deg, #d4edff 0%, #b3d9ff 100%) !important;
    color: #1a5f8a !important;
    transform: scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(46, 125, 171, 0.25) !important;
}

.file-upload-label .icon img {
    width: 18px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.file-upload-label:hover .icon img {
    transform: scale(1.1);
}

.file-list {
    margin-top: 12px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 5px;
}

.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.file-list::-webkit-scrollbar-thumb {
    background: #2e7dab;
    border-radius: 3px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: #1a5f8a;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(46, 125, 171, 0.1);
    border-color: #2e7dab;
}

.file-item span:first-child {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
    font-weight: 500;
}

.remove-file {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.remove-file:hover {
    background: linear-gradient(135deg, #ff5252 0%, #cc0000 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.remove-file:active {
    transform: scale(0.95);
}

.file-info {
    margin-top: 8px;
    text-align: center;
    padding: 0;
    background: none;
    border: none;
}

.file-info small {
    color: darkgrey;
    font-size: 10px;
    font-weight: 400;
    display: block;
}

/* Стили для модального окна */
.modal .file-upload-container {
    margin-bottom: 20px;
}

.modal .file-upload-label {
    padding: 16px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Стили для футера */
.form-callback .file-upload-container {
    margin-bottom: 15px;
}

.form-callback .file-upload-label {
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Анимация для пустого состояния */
.file-list:empty::before {
    content: '📎 Перетащите файлы сюда или кликните для выбора';
    display: block;
    text-align: center;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.file-list:empty:hover::before {
    border-color: #2e7dab;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4ff 100%);
    color: #2e7dab;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .file-upload-label {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    .file-item {
        padding: 6px 10px;
        font-size: 13px;
    }

    .file-info small {
        font-size: 9px;
    }

    .file-list:empty::before {
        font-size: 12px;
        padding: 15px;
    }
}

/* Дополнительные стили для больших экранов */
@media (min-width: 769px) {
    .file-upload-label {
        padding: 18px 24px !important;
        font-size: 16px !important;
    }

    .file-upload-label .icon img {
        width: 20px !important;
    }

    .file-item {
        padding: 14px 18px;
        font-size: 15px;
    }

    .remove-file {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .file-info small {
        font-size: 13px;
    }
}

@media (max-width: 769px) {
    .hero-cta {
        flex-direction: column;
    }
    .hero .hero-title br {
        display: none;
    }

    .hero-arc {
        width: 100vh;
        height: -webkit-fill-available;
    }

    .hero-arc-svg {
        top: 1em;
    }

    .hero-actions .btn {
        width: -webkit-fill-available;
        justify-content: center;
    }
    .hero-actions {
        max-width: 500px;
        padding: 0px 18px;
    }
    .hero-cta {
        width: 100%;
    }
    /* Mobile hero badges → plus buttons with animated speech bubbles */
    .hero-badge {
        position: absolute;
        cursor: pointer;
        background: none;
        padding: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        z-index: 6;
        width: 34px;
        height: 34px;
    }
    /* plus button */
    .hero-badge::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #fff
            url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.75 0.75V10.75M0.75 5.75H10.75' stroke='%232B98CF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
            no-repeat center center;
        background-size: 12px 12px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }
    .hero-badge::before {
        content: '';
        position: absolute;
        left: -15px;
        top: -14px;
        width: 63px;
        height: 63px;
        border-radius: 50%;
        background: rgb(137 199 231);
        z-index: -1;
        will-change: transform, opacity;
        animation: heroBadgePulse 2.6s ease-in-out infinite;
    }
    .hero-badge.is-open::after {
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.75 5.75H10.75' stroke='%232B98CF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    /* hidden on mobile: original small icon near button */
    .hero-badge .hero-card-icon {
        display: none;
    }
    /* bubble - очень скругленные углы, мягкая тень, больше padding */
    .hero-badge .hero-card-content {
        position: absolute;
        min-width: 280px;
        width: min(88vw, 380px);
        background: #fff;
        border-radius: 24px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
        padding: 18px 20px;
        display: flex;
        gap: 16px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0s linear 0.25s;
    }
    .hero-badge .hero-card-content::before {
        content: '';
        position: absolute;
        left: -27px;
        top: 64%;
        transform: translateY(-50%);
        width: 30px;
        height: 34px;
        background: #fff;
        clip-path: path('M 0,0 L 28.4,32.6 L 28.4,10.3 Z');
        filter: drop-shadow(-1px 1px 2px rgba(0, 0, 0, 0.08));
    }
    .hero-badge.is-open .hero-card-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }
    /* текст справа от иконки - обертка для текста */
    .hero-card-text-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .hero-card-title {
        margin: 0 0 8px 0;
        font-size: 20px;
        font-weight: 700;
        color: #2b6180;
        line-height: 1.2;
    }
    .hero-card-text {
        margin: 0;
        font-size: 14px;
        color: #1f1f1f;
        line-height: 1.4;
    }
    /* большая мягкая иконка как на скрине */
    .hero-card-icon-small {
        position: relative;
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: rgba(230, 246, 255, 0.55);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    /* .hero-card-icon-small::before { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(230,246,255,.45); z-index: -1; } */
    .hero-card-icon-small::after {
        content: '';
        position: absolute;
        width: 76px;
        height: 76px;
        border-radius: 50%;
        background: rgba(94, 196, 255, 0.25);
    }
    .hero-card-icon-small svg {
        width: 28px;
        height: 28px;
        position: relative;
        z-index: 1;
        display: block;
    }
    /* positions like screenshot */
    .hero-badge--left-top {
        left: 6%;
        top: 54%;
    }
    .hero-badge--right-mid {
        right: 6%;
        top: 25%;
    }
    .hero-badge--right-bottom {
        right: 8%;
        bottom: 42%;
    }
    /* bubble offsets from button */
    .hero-badge--left-top .hero-card-content {
        left: 70px;
        top: 0;
    }
    .hero-badge--right-mid .hero-card-content,
    .hero-badge--right-bottom .hero-card-content {
        right: 70px;
        top: 0;
    }
    .hero-badge--right-mid .hero-card-content::before,
    .hero-badge--right-bottom .hero-card-content::before {
        left: auto;
        right: -28px;
        clip-path: path('M 30,0 L 1.6,32.6 L 1.6,10.3 Z');
        filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.08));
    }

    @keyframes heroBadgePulse {
        0% {
            transform: scale(0.95);
            opacity: 0.7;
        }
        50% {
            transform: scale(1.1);
            opacity: 1;
        }
        100% {
            transform: scale(0.95);
            opacity: 0.7;
        }
    }

    .hero-girl {
        max-height: 45em;
    }
    .hero-girl img {
        max-width: 36em;
    }
}

@media (max-width: 490px) {
    .contacts .wrapper-grid-contacts {
        text-align: center;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column .title {
        justify-content: center;
        font-size: 18px;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column .title .title-icon {
        font-size: 18px;
    }

    .contacts .wrapper-grid-contacts .item-contacts-column .value {
        font-size: 16px;
    }
    .main-screen {
        background-image: url('../images/main-bg.webp') !important;
        background-position: center top !important;
        background-repeat: no-repeat;
        width: 100%;
        background-size: 235%;
    }

    .hero-girl img {
        min-width: 29em !important;
    }
    .hero-girl {
        max-height: -webkit-fill-available;
    }

    .hero-badge--left-top {
        top: 47%;
    }

    .hero-badge--right-bottom {
        bottom: 46%;
    }

    .hero-badge--right-mid .hero-card-content {
        border-radius: 12px;
    }

    .title-form {
        max-width: 200px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    /* Только для экранов строго меньше 577px - минимальные корректировки */
    /* Убираем агрессивные изменения, чтобы выглядело как на 578px */
    .hero-circle {
        /* display: none; */
    }

    .hero-circle.hero-circle--1 {
        top: 9em;
        width: 52px;
        height: 52px;
        left: -1em;
    }
    .hero-circle.hero-circle--2 {
        left: 9em;
        width: 22px;
        height: 22px;
    }

    .hero-arc {
        width: 200vh;
        /* height: 260px; */
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .section .title-section {
        font-size: 24px !important;
    }

    .section.main-screen,
    .section.sec-block {
        overflow: hidden;
        min-height: auto;
    }
}

@media (max-width: 460px) {
    .hero-circle.hero-circle--1 {
        top: 12em;
        width: 52px;
        height: 52px;
        left: -1em;
    }

    .hero-card-title {
        font-weight: 600;
    }

    .hero-circle.hero-circle--2 {
        right: -1em;
        left: unset;
    }

    .hero-badge::after {
        width: 27px;
        height: 27px;
    }

    .hero-badge::before {
        width: 43px;
        height: 43px;
        left: -8px;
        top: -8px;
    }
}

@media (max-width: 550px) {
    .hero .hero-title {
        font-size: 26px !important;
    }
    .hero .hero-subtitle {
        font-size: 14px;
    }

    .modal .file-upload-label {
        font-size: 14px !important;
    }
    .input-item.input {
        font-size: 14px !important;
    }

    .input-item.file-upload-container .icon {
        display: flex;
    }
    .hero-badge--left-top {
        z-index: 5;
    }
}

@media (max-width: 460px) {
    .hero-badge.hero-badge--right-bottom.is-open {
        z-index: 5 !important;
    }

    .hero-arc-svg {
        top: 6em;
    }

    .hero-girl {
        max-height: none;
        height: auto;
    }
    .hero-girl img {
        max-width: none;
        width: 120vw;
        min-width: 480px;
        height: auto;
        min-width: 32em !important;
    }

    .hero-badge--left-top {
        /* left: 6% !important;
        top: 17em; */

        left: 2% !important;
        top: 20em;
    }

    .hero-card-title {
        margin: 0 0 5px 0;
    }
    .hero-badge--right-mid {
        /* right: 6% !important; */
        right: 0% !important;
        top: 40%;
    }

    .hero-badge--right-bottom {
        right: 8% !important;
        bottom: 37%;
    }

    .hero-actions {
        bottom: 12px;
    }

    .hero-badge.is-open .hero-card-content,
    .hero-badge .hero-card-content {
        /* max-width: 307px ; */
        /* max-width: 307px ; */
        max-width: 141px;
        min-width: 273px;
        /* top: -13px; */
        padding: 10px;
        top: -20px;
        /* left: 3.2em; */
        right: 59px;
    }
    .hero-badge--left-top .hero-card-content {
        left: 53px;
    }

    .hero-badge .hero-card-content {
        border-radius: 12px;
    }

    .modal-content {
        max-width: 345px !important;
    }

    .hero-actions {
        padding: 0;
    }
    .hero-arc {
        top: 6em;
        /*        top: -3em;*/
    }

    .hero-actions .btn {
        font-size: 16px;
    }

    .hero-card-icon-small::after {
        width: 46px;
        height: 46px;
    }
    .hero-card-icon-small {
        width: 70px;
        height: 70px;
    }

    .hero-badge.hero-badge--right-bottom {
        z-index: 3;
    }

    .hero-cta {
        gap: 10px;
    }
    .hero-card-title {
        font-size: 14px;
    }
    .hero-card-text {
        font-size: 12px;
    }
}
@media (max-height: 698px) {
    .hero-arc-svg {
        top: auto;
    }
}
@media (max-height: 655px) {
    .hero-arc {
        top: 6em;
    }
}

@media (max-width: 430px) {
    .hero-girl img {
        min-width: 30em !important;
    }
}

@media (max-width: 379px) {
    .hero-actions .btn {
        font-size: 13px;
        padding: 0 12px;
        white-space: nowrap;
    }
    .hero-actions {
        /* padding: 0px 10px; */
    }
    .hero-cta {
        padding: 16px;
        gap: 12px;
    }
}

@media (max-width: 368px) {
    .hero-badge--left-top {
        top: 13em;
    }
}

@media (max-width: 407px) {
    .hero-girl img {
        min-width: 30em !important;
    }

    .hero-badge.is-open .hero-card-content,
    .hero-badge .hero-card-content {
        gap: 5px;
        min-width: 282px;
    }
    .hero-badge::after {
        width: 24px;
        height: 24px;
    }
    .hero-badge::before {
        width: 39px;
        height: 39px;
    }
    .hero-badge--left-top {
        left: -2% !important;
        top: 18em;
    }
    .hero-actions {
        bottom: 9px;
    }
}

@media (max-width: 500px) {
    /* Исправление overflow для Safari/iOS */
    html {
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .content {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
    }

    .screen-section-scale {
        transform: none !important;
        -webkit-transform: none !important;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .section.main-screen,
    .section.sec-block {
        height: 100% !important;
        min-height: 100% !important;
        overflow: visible !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
    }

    .input-item input {
        width: 100%;
    }
    .modal-content {
        max-width: 373px;
    }

    .main-screen {
        .screen-section-scale {
            overflow-y: hidden;
        }
    }

    /* .container, 
    .main-screen .container { 
        max-width: 100% !important; 
        width: 100% !important;
        width: calc(100% - 30px) !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
     */
    .section,
    .hero,
    .hero-stage {
        width: 100% !important;
        max-width: 100% !important;
        /* overflow-x: hidden !important; */
        box-sizing: border-box !important;
    }

    /* img, 
    svg { 
        max-width: 100% !important; 
        height: auto !important;
        display: block !important;
    } */

    * {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-sizing: border-box !important;
    }

    header.scrolled {
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }

    header {
        position: fixed !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    .hero-actions .btn {
        font-size: 14px;
        padding: 0 30px;
    }
}

/* Мобильный облегчённый фон для первого экрана */
@media (max-width: 768px) {
    .main-screen {
        background-image: url('../images/bg-main-mobile.png') !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

/* Специфичные исправления для Safari/iOS */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* Исправление для Safari на iOS */
        html,
        body {
            -webkit-text-size-adjust: 100% !important;
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
        }

        /* Исправление проблем с viewport на iOS */
        .main-screen {
            -webkit-transform: translateZ(0) !important;
            transform: translateZ(0) !important;
            will-change: scroll-position !important;
        }

        /* Исправление для hero-arc на Safari */
        .hero-arc {
            -webkit-transform: translateX(-50%) translateZ(0) !important;
            transform: translateX(-50%) translateZ(0) !important;
        }

        /* Исправление для hero-girl на Safari */
        .hero-girl img {
            -webkit-transform: translateY(8px) scale(1.06) translateZ(0) !important;
            transform: translateY(8px) scale(1.06) translateZ(0) !important;
        }
    }
}

@media (max-width: 792px) {
    .hero-circle--2 {
        left: 8em;
    }
}

@media (max-width: 375px) {
    .hero-girl img {
        min-width: 28em !important;
    }
}

@media (max-width: 360px) {
    .hero-badge--left-top .hero-card-content {
        max-width: 259px;
    }

    .hero-badge.is-open .hero-card-content {
        max-width: 259px;
    }
    .hero-badge--right-mid .hero-card-content {
        max-width: 259px;
    }
    .hero-badge--right-bottom .hero-card-content {
        max-width: 259px;
    }

    .hero-actions {
        padding: 0;
    }
}
