/*
    pediatr
*/

.legacy-work .wide_container {
    max-width: 1440px;
}

.legacy-work .header__inner {
    position: relative;
    z-index: 1;
}

@media(min-width: 768px) {
    .legacy-work .page_pediatr .header {
        background: #122e97;
    }
}

.legacy-work .page_pediatr .header .nav__link {
    color: #fff;
}

.legacy-work .page_pediatr .hover__line:after, .legacy-work .hover__line:before{
    border-color: #fff;
}

.legacy-work .page_pediatr .nav__item.active .nav__link {
    color: #f23738;
}

@media(min-width: 1280px) {
    .legacy-work .page_pediatr .lang__item.active .lang__link {
        color: #fff;
    }

    .legacy-work .page_pediatr .lang__link:hover {
        color: #fff;
    }
}

.legacy-work .page_pediatr .case__title {
    color: #fff;
}

.legacy-work .page_pediatr .case__back {
    color: #fff;
}

.legacy-work .page_pediatr .case__back:hover {
    color: #f23738;
}

.legacy-work .page_pediatr .case__back path {
    stroke: #fff;
}

.legacy-work .page_pediatr .case {
    margin: 0 15px;
}




.legacy-work header .circle-request {
    color: #fff;
}

.legacy-work .header__menu-link,
.legacy-work .mobile_phone,
.legacy-work .mobile_mail {
    color: #fff !important;
}

.legacy-work .burger_button div {
    background-color: #ffffff;
}

.legacy-work .header__menu-item.active {
    background: hsla(0, 0%, 100%, 0.1) !important;
}

.legacy-work .header__menu-link:hover, .legacy-work .header__menu-link:focus {
    color: #f33435 !important;
    text-decoration: none;
}

.legacy-work .mobile_menu.active {
    background-color: #122e97;
}

.legacy-work .heading_wrap {
    position: relative;
    z-index: 1;
}

.legacy-work .page-heading {
    color: #ffffff;
}

.legacy-work .back_link {
    color: #ffffff;
}

.legacy-work .back_link svg path {
    stroke: #ffffff;
}

.legacy-work .back_link:hover svg path {
    stroke: #f33435;
}

.legacy-work .reviews_caption {
    padding-top: 0;
}

.legacy-work .yellow_block {
    position: relative;
    z-index: 1;
    background-color: rgb(27, 57, 167, 0.5);
}

.legacy-work .yellow_block_text {
    color: #ffffff;
}

.legacy-work .also {
    display: flex;
    max-width: unset;
    margin: unset;
    background-color: #122e97;
}

.legacy-work .reviews_caption {
    color: #ffffff;
    min-width: 1300px;
    margin: 0 auto;
}

.legacy-work .also_works {
    background-color: #122e97;
}

@media (max-width: 1319px) {
    .legacy-work .also {
        max-width: unset;
        margin: unset;
    }

    .legacy-work .reviews_caption {
        min-width: 970px;
        margin: 0 auto;
    }
}

@media (max-width: 989px) {
    .legacy-work .also {
        max-width: unset;
        margin: unset;
    }

    .legacy-work .reviews_caption {
        min-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 659px) {
    .legacy-work .also {
        max-width: unset;
        margin: unset;
    }

    .legacy-work .reviews_caption {
        min-width: 310px;
        margin: 0 auto;
    }
}

.legacy-work .headline__wrap .container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 8px;
  padding-right: 8px;
}

@media (min-width: 1024px) {
  .legacy-work .headline__wrap .container {
    max-width: 1224px !important;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 1600px) {
  .legacy-work .headline__wrap .container {
    max-width: 1432px !important;
  }
}

.legacy-work .pediatr {
    /* font-family: 'SFUIDisplay'; */
}

.legacy-work .pediatr_wrap {
    overflow: hidden;
}

.legacy-work .pediatr_hero {
    position: relative;
    z-index: 0;
    background-color: #122e97;
    top: -560px;
    margin-bottom: -560px;
    overflow: hidden;
}

.legacy-work .hero_text {
    padding: 540px 0 440px;
}

@media(max-width: 1380px) {
    .legacy-work .hero_text {
        padding: 600px 0 440px;
    }
}

.legacy-work .hero_hint {
    width: 100%;
    margin-top: 65px;
    padding: 30px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    border-radius: 10px;
    background-color: rgb(27, 57, 167, 0.5);
}

.legacy-work .hero_img {
    position: absolute;
    right: 0;
    bottom: 160px;
    transform: translateY(-10%);
    display: flex;
    align-items: flex-end;
}

@media(max-width: 1600px) {
    .legacy-work .hero_img {
        transform: translateY(-30%);
    }
}

@media(max-width: 1280px) {
    .legacy-work .hero_img {
        transform: translateY(-40%);
    }
}

/* @media(max-width: 1200px) {
    .hero_img {
        transform: translateY(-40%);
    }
} */

.legacy-work .pediatr_hero .pediatr_title,
.legacy-work .pediatr_hero .pediatr_descr {
    color: #ffffff;
}

.legacy-work .pediatr_title {
    position: relative;
    margin-bottom: 45px;
    font-size: 64px;
    font-weight: 700;
}

.legacy-work .pediatr_num {
    content: '';
    position: absolute;
    z-index: -1;
    top: -83px;
    height: 150px;
}

.legacy-work .pediatr_num path {
    fill: none;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.legacy-work .pediatr_num.active path{
    animation: num 1.5s linear forwards;
}

.legacy-work .pediatr_hero .pediatr_num {
    left: -150px;
    width: 220px;

}

.legacy-work .pediatr_descr {
    font-size: 25px;
    line-height: 1.6;
}

.legacy-work .hero_hand {
    
}

.legacy-work .hero_small-1 {
    position: absolute;
    top: 60px;
    left: -30px;
    animation: fly 2s ease-in-out infinite reverse;
}

.legacy-work .hero_small-2 {
    position: absolute;
    top: 370px;
    left: 430px;
    animation: fly 2.5s ease-in-out infinite;
}

.legacy-work .hero_small-3 {
    position: absolute;
    bottom: 100px;
    left: -37px;
    animation: fly 3s ease-in-out infinite reverse;
}

.legacy-work .hero_decor-1 {
    position: absolute;
    top: 460px;
    left: 0;
}

.legacy-work .hero_decor-2 {
    position: absolute;
    top: 100px;
    right: 705px;
}

.legacy-work .circle_decor {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    transform-origin: 0 0;
}

.legacy-work .circle_decor-1 {
    top: 10%;
    left: 9%;
    width: 120px;
    height: 120px;
    background-color: #007aff;
    animation: turn 10s linear infinite;
}

.legacy-work .circle_decor-2 {
    top: 5%;
    left: 42%;
    width: 80px;
    height: 80px;
    background-color: #ee8917;
    animation: turn 9s linear infinite reverse;
}

.legacy-work .circle_decor-3 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: #70b420;
    animation: turn 10.5s linear infinite;
}

.legacy-work .circle_decor-4 {
    left: 20%;
    bottom: 20%;
    width: 80px;
    height: 80px;
    background-color: #da3011;
    animation: turn 9.5s linear infinite reverse;
}

.legacy-work .pediatr_info {
    position: relative;
    padding: 200px 0;
    background-color: transparent;
}

.legacy-work .pediatr_info .pediatr_title {
    margin-bottom: 30px;
}

.legacy-work .pediatr_info .pediatr_num {
    left: -140px;
    width: 255px;
}


.legacy-work .info_img {
    position: relative;
}

.legacy-work .info_phone-1 {
    top: 0;
    position: absolute;
    left: -560px;
}


.legacy-work .info_phone-2 {
    position: relative;
    left: -75px;
}

.legacy-work .info_decor {
    position: absolute;
    bottom: -120px;
    right: -80px;
    max-width: 400px;
}

.legacy-work .info_text {
    align-self: center;
}

.legacy-work .planet {
    position: absolute;
    z-index: 1;
    border: 1px solid #dddddd;
    border-radius: 50%;
}

.legacy-work .planet-1 {
    right: -223px;
    bottom: -223px;
    width: 446px;
    height: 446px;
    animation: turn 60s linear infinite;
}

.legacy-work .planet-1::before {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 105px;
    width: 24px;
    height: 24px;
    background-color: #ee8917;
    border-radius: 50%;
}

.legacy-work .planet-1::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 322px;
    width: 46px;
    height: 46px;
    background-color: #da3011;
    border-radius: 50%;
}

.legacy-work .planet-2 {
    right: -419px;
    bottom: -419px;
    width: 838px;
    height: 838px;
    animation: turn 80s linear infinite reverse;
}

.legacy-work .planet-2::before {
    content: '';
    position: absolute;
    top: 65px;
    left: 135px;
    width: 46px;
    height: 46px;
    background-color: #007aff;
    border-radius: 50%;
}

.legacy-work .planet-2::after {
    content: '';
    position: absolute;
    bottom: 31px;
    left: 220px;
    width: 24px;
    height: 24px;
    background-color: #70b420;
    border-radius: 50%;
}

.legacy-work .pediatr_test {
    position: relative;
    padding: 150px 0 185px;
    background-color: #0c0c0c;
}

.legacy-work .pediatr_test .pediatr_title {
    margin-bottom: 70px;
    color: #ffffff;
}

.legacy-work .pediatr_test .pediatr_num {
    z-index: 1;
    left: -165px;
    width: 260px;
}

.legacy-work .test_imgs {
    display: flex;
    align-items: flex-start;
}

.legacy-work .test_imgs img {
    margin-right: 70px;
    z-index: 2;
}

.legacy-work .test_imgs img:nth-of-type(2) {
    transform: translateY(105px);
}

.legacy-work .test_imgs img:nth-of-type(3) {
    transform: translateY(-155px);
}

.legacy-work .test_imgs img:nth-of-type(4) {
    transform: translateY(65px);
}

.legacy-work .test_pill {
    position: absolute;
    z-index: 2;
    bottom: -200px;
    right: 77px;
    animation: fly 2.5s ease-in-out infinite;
}

.legacy-work .test_decor {
    position: absolute;
    z-index: 0;
    bottom: -933px;
    right: -680px;
    width: 1640px;
    height: 1640px;
    background-color: #122e97;
    border-radius: 50%;
}

.legacy-work .test_decor::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1200px;
    height: 1017px;
    background: url('../img/formula.png') center/contain no-repeat;
}

.legacy-work .pediatr_reference {
    position: relative;
    padding: 230px 0 100px;
    background: transparent;
}

.legacy-work .pediatr_reference .pediatr_title {
    margin-bottom: 30px;
}

.legacy-work .pediatr_reference .pediatr_num {
    width: 266px;
    left: -140px;
}

.legacy-work .reference_text {
    align-self: center;
}

.legacy-work .reference_imgs {
    position: relative;
    left: 190px;
    display: flex;
}

.legacy-work .reference_imgs img {
    margin-right: 40px;
}

.legacy-work .circle_decor-5 {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background-color: #ee8917;
    animation: turn 6s linear infinite;
}

.legacy-work .circle_decor-6 {
    bottom: 0;
    left: 50%;
    width: 58px;
    height: 58px;
    background-color: #007aff;
    animation: turn 5s linear infinite reverse;
}

.legacy-work .pediatr_profile {
    position: relative;
    padding: 100px 0 500px;
}

.legacy-work .pediatr_profile .pediatr_title {
    margin-bottom: 30px;
}

.legacy-work .pediatr_profile .pediatr_num {
    width: 260px;
    left: -140px;
}

.legacy-work .profile_img {
    position: relative;
    left: -75px;
}

.legacy-work .profile_img::before {
    content: '';
    position: absolute;
    top: 344px;
    left: -261px;
    width: 473px;
    height: 146px;
    background: url('../img/profile_small-1.webp') center/contain no-repeat;
    animation: fly 4s ease-in-out infinite;
}

.legacy-work .profile_img::after {
    content: '';
    position: absolute;
    top: 633px;
    left: 212px;
    width: 389px;
    height: 120px;
    background: url('../img/profile_small-2.webp') center/contain no-repeat;
    animation: fly 3s ease-in-out infinite;
}

.legacy-work .profile_text {
    align-self: center;
}

.legacy-work .profile_decor {
    position: absolute;
    z-index: -1;
    top: -150px;
    left: -680px;
    width: 1640px;
    height: 1640px;
    border-radius: 50%;
    background-color: #70b420;
}

.legacy-work .profile_decor::before {
    content: '';
    position: absolute;
    top: 160px;
    right: 330px;
    width: 151px;
    height: 148px;
    background: url('../img/star.webp') center/contain no-repeat;
}

.legacy-work .profile_decor::after {
    content: '';
    position: absolute;
    top: 463px;
    right: 476px;
    width: 84px;
    height: 83px;
    background: url('../img/star.webp') center/contain no-repeat;
}

.legacy-work .profile_girl {
    position: absolute;
    bottom: 16px;
    left: 300px;
}

.legacy-work .profile_girl.easter_egg {
    animation: egg 3s ease-in-out;
}

.legacy-work .circle_decor-7 {
    right: 5%;
    top: 35%;
    width: 80px;
    height: 80px;
    background-color: #da3011;
    animation: turn 7s linear infinite reverse;
}

.legacy-work .pediatr_profile .planet-1::before {
    background-color: #6c00ff;
}
    
.legacy-work .pediatr_profile .planet-1::after {
    background-color: #ee8917;
}

.legacy-work .pediatr_profile .planet-2::before {
    background-color: #007aff;
}
    
.legacy-work .pediatr_profile .planet-2::after {
    background-color: #70b420;
}

.legacy-work .pediatr_registration {
    padding: 0 0 350px;
}

.legacy-work .pediatr_registration .pediatr_title {
    margin-bottom: 30px;
}

.legacy-work .pediatr_registration .pediatr_num {
    left: 50%;
    transform: translateX(-50%);
    width: 265px;
}

.legacy-work .rigistration_text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legacy-work .registration_img {
    position: relative;
    height: 710px;
    background-color: #122e97;
}

.legacy-work .registration_phones {
    position: absolute;
    top: -325px;
    left: 50%;
    transform: translateX(-50%);
}

.legacy-work .registration_phones img:first-of-type {
    width: 737px;
    height: 1037px;
}

.legacy-work .registration_social {
    position: absolute;
}

.legacy-work .registration_social-1 {
    z-index: -1;
    top: 75px;
    left: -110px;
    animation: fly 3s ease-in-out infinite;
}

.legacy-work .registration_social-2 {
    z-index: -1;
    top: 163px;
    right: -100px;
    animation: fly 2s ease-in-out infinite;
}

.legacy-work .registration_social-3 {
    z-index: -1;
    top: 680px;
    left: -33px;
    animation: fly 2.5s ease-in-out infinite;
}

.legacy-work .registration_social-4 {
    top: 655px;
    right: -155px;
    animation: fly 3.5s ease-in-out infinite;
}

.legacy-work .circle_decor-8 {
    z-index: 1;
    top: 200px;
    left: 85px;
    width: 120px;
    height: 120px;
    background-color: #007aff;
}

.legacy-work .circle_decor-9 {
    z-index: 1;
    top: 103px;
    right: 314px;
    width: 80px;
    height: 80px;
    background-color: #70b420;
}

.legacy-work .circle_decor-10 {
    z-index: 1;
    bottom: 84px;
    left: 245px;
    width: 80px;
    height: 80px;
    background-color: #da3011;
}

.legacy-work .circle_decor-11 {
    z-index: 1;
    bottom: 6px;
    right: 85px;
    width: 80px;
    height: 80px;
    background-color: #6c00ff;
}

@keyframes turn {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

@keyframes fly {
    from {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes num {
    0% {
        stroke-dasharray: 2000;
    }

    100% {
        stroke-dasharray: 2800;
    }
}

@keyframes egg {
    from {

    }

    50% {
        transform: rotate(35deg);
    }

    to {
        transform: rotate(35deg) translateX(5000px) translateY(-5000px);
    }
}

@media (min-width: 2100px) {
    .legacy-work .hero_text {
        max-width: 66.666667%;
        flex: 0 0 66.666667%;
    }

    .legacy-work .hero_img {
        max-width: 33.333333%;
        flex: 0 0 33.333333%;
    }
}

@media (max-width: 2100px) {
    .legacy-work .hero_img {
        max-width: 40%;
        flex: 0 0 40%;
    }
}

@media (max-width: 1920px) {

    .legacy-work .profile_decor {
        left: -980px;
    }

    .legacy-work .profile_girl {
        left: 0;
    }

    .legacy-work .test_imgs img {
        margin-right: 50px;
    }

    .legacy-work .test_pill {
        bottom: -200px;
        right: -100px;
    }

    .legacy-work .pediatr_info .pediatr_num {
        left: 0;
    }

    .legacy-work .info_phone-1 {
        left: -350px;
    }

    .legacy-work .info_phone-2 {
        left: 100px;
    }

    .legacy-work .info_decor {
        right: -170px;
        max-width: 350px;
    }
}

@media (max-width: 1700px) {
    .legacy-work .profile_img::before {
        left: -70px;
        width: 330px;
        height: 115px;
    }

    .legacy-work .test_imgs img {
        max-width: 250px;
    }

    .legacy-work .test_imgs img:nth-of-type(3) {
        transform: translateY(-125px);
    }
}

@media (max-width: 1560px) {
    .legacy-work .pediatr_hero {
        top: -560px;
        margin-bottom: -560px;
    }
}

@media (max-width: 1500px) {

    .legacy-work .pediatr_num {
        left: 0 !important;
    }

    .legacy-work .hero_decor-1 {
        display: none;
    }

    .legacy-work .planet-1 {
        right: -150px;
        bottom: -150px;
        width: 300px;
        height: 300px;
    }

    .legacy-work .planet-1::before {
        left: 50px;
    }

    .legacy-work .planet-1::after {
        left: 222px;
    }

    .legacy-work .planet-2::before {
        left: 35px;
    }

    .legacy-work .planet-2::after {
        left: 100px;
    }

    .legacy-work .planet-2 {
        right: -250px;
        bottom: -250px;
        width: 500px;
        height: 500px;
    }

    .legacy-work .test_decor {
        bottom: -600px;
        right: -350px;
        width: 1000px;
        height: 1000px;
    }

    .legacy-work .test_pill {
        max-width: 300px;
        bottom: -50px;
    }

    .legacy-work .test_decor::before {
        width: 800px;
        height: 650px
    }

    .legacy-work .reference_imgs {
        left: 0;
    }

    .legacy-work .profile_img {
        left: 0;
    }

    .legacy-work .pediatr_registration {
        padding-top: 150px;
    }

    .legacy-work .circle_decor-9 {
        right: 150px;
    }
}

@media (max-width: 1350px) {
    .legacy-work .pediatr_hero {
        top: -610px;
        margin-bottom: -610px;
    }
}

@media (max-width: 1199px) {
    .legacy-work .pediatr_title {
        font-size: 56px;
    }

    .legacy-work .pediatr_descr {
        font-size: 20px;
    }

    .legacy-work .hero_hint {
        margin-top: 30px;
        padding: 15px;
        font-size: 20px;
    }
    
    .legacy-work .hero_img {
        position: relative;
        bottom: 0;
        transform: none;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .legacy-work .hero_hand {
        position: relative;
        right: -200px;
    }

    .legacy-work .hero_text {
        padding: 600px 0 50px;
    }

    .legacy-work .hero_decor-2 {
        right: 10%;
    }

    .legacy-work .hero_small-1 {
        left: 170px;
    }

    .legacy-work .hero_small-2 {
        left: 630px;
    }

    .legacy-work .hero_small-3 {
        left: 163px;
    }

    .legacy-work .pediatr_info  {
        padding: 100px 0;
    }
    .legacy-work .info_phone-1 {
        top: 0;
        left: -400px;
    }

    .legacy-work .info_phone-2 {
        left: 40px;
    }

    .legacy-work .info_decor {
        bottom: -90px;
        right: -160px;
        max-width: 300px;
    }

    .legacy-work .pediatr_test {
        padding: 100px 0;
    }

    .legacy-work .test_imgs img {
        max-width: 220px;
        margin-right: 25px;
    }

    .legacy-work .test_imgs img:nth-of-type(3) {
        transform: translateY(-55px);
    }

    .legacy-work .test_pill {
        bottom: -150px;
    }

    .legacy-work .pediatr_reference {
        padding: 100px 0;
    }

    .legacy-work .profile_decor {
        top: 50px;
        left: -500px;
        width: 1000px;
        height: 1000px;
    }
    

    .legacy-work .profile_girl {
        max-width: 300px;
        bottom: 40px;
        left: 119px;
    }

    .legacy-work .pediatr_profile {
        padding: 100px 0;
    }

    .legacy-work .pediatr_registration {
        padding-top: 100px;
    }
}

@media (max-width: 991px) {
    .legacy-work .pediatr_title {
        font-size: 36px;
    }

    .legacy-work .pediatr_hero {
        top: -700px;
        margin-bottom: -700px;
    }

    .legacy-work .hero_text {
        padding: 710px 0 50px;
    }

    .legacy-work .hero_hand {
        right: -50px;
    }

    .legacy-work .hero_small-1 {
        left: 20px;
    }

    .legacy-work .hero_small-2 {
        left: 480px;
    }

    .legacy-work .hero_small-3 {
        left: 63px;
    }

    .legacy-work .pediatr_info {
        padding: 50px 0;
    }

    .legacy-work .info_img {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding-bottom: 100px;
    }

    .legacy-work .info_phone-1 {
        position: static;
        max-width: 300px;
    }

    .legacy-work .info_phone-2 {
        position: static;
        max-width: 300px;
    }

    .legacy-work .info_decor {
        right: -160px;
        bottom: 15px;
    }

    .legacy-work .test_decor {
        bottom: -100px;
        right: -250px;
        width: 500px;
        height: 500px;
    }

    .legacy-work .test_decor::before {
        left: 20px;
        width: 250px;
        height: 250px;
    }

    .legacy-work .test_pill {
        max-width: 150px;
        bottom: -50px;
    }

    .legacy-work .planet-1 {
        right: -70px;
        bottom: -70px;
        width: 140px;
        height: 140px;
    }

    .legacy-work .planet-1::before {
        left: 17px;
        width: 10px;
        height: 10px;
    }

    .legacy-work .planet-1::after {
        left: 114px;
        width: 15px;
        height: 15px;
    }

    .legacy-work .planet-2 {
        right: -100px;
        bottom: -100px;
        width: 200px;
        height: 200px;
    }

    .legacy-work .planet-2::before {
        left: -3px;
        width: 15px;
        height: 15px;
    }

    .legacy-work .planet-2::after {
        left: 18px;
        width: 10px;
        height: 10px;
    }

    .legacy-work .pediatr_num {
        width: 100px !important;
        top: -90px;
    }

    .legacy-work .reference_text {
        margin-bottom: 50px;
    }

    .legacy-work .reference_imgs img {
        max-width: 300px;
    }

    .legacy-work .profile_img {
        order: 2;
        display: flex;
        align-items: flex-end;
    }

    .legacy-work .profile_img::before {
        left: 530px;
        top: 140px;
    }

    .legacy-work .profile_img::after {
        top: 430px;
        left: 360px;
        width: 229px;
        height: 80px;
    }

    .legacy-work .profile_text {
        order: 1;
        padding-bottom: 50px;
    }

    .legacy-work .profile_img img {
        max-width: 300px;
        margin-bottom: 20px;
        margin-left: auto;
    }

    .legacy-work .profile_decor {
        top: 220px;
        left: -200px;
        width: 700px;
        height: 700px;
    }

    .legacy-work .profile_decor::before {
        top: 60px;
        right: 130px;
    }

    .legacy-work .profile_decor::after {
        top: 263px;
        right: 276px;
    }

    .legacy-work .profile_girl {
        bottom: 12px;
        left: 196px;
    }

    .legacy-work .pediatr_reference {
        padding: 70px 0 50px;
    }

    .legacy-work .pediatr_profile {
        padding: 20px 0;
    }

    .legacy-work .pediatr_registration {
        padding-top: 50px;
        padding-bottom: 250px;
    }

    .legacy-work .registration_phones {
        top: -200px;
    }

    .legacy-work .registration_phones img:first-of-type {
        max-width: 100%;
        width: unset;
        height: unset;
    }

    .legacy-work .registration_img {
        height: 480px;
    }

    .legacy-work .registration_social-1 {
        max-width: 100px;
        top: 40px;
        left: -60px;
    }

    .legacy-work .registration_social-2 {
        max-width: 80px;
        top: 80px;
        right: -50px;
    }

    .legacy-work .registration_social-3 {
        max-width: 120px;
        top: 360px;
        left: -25px;
    }

    .legacy-work .registration_social-4 {
        max-width: 150px;
        top: 300px;
        right: -40px;
    }

    .legacy-work .circle_decor-8 {
        top: 100px;
        width: 80px;
        height: 80px;
    }

    .legacy-work .circle_decor-9 {
        top: 50px;
        width: 40px;
        height: 40px;
    }

    .legacy-work .circle_decor-10,
    .legacy-work .circle_decor-11 {
        display: none;
    }
}

@media (max-width: 767px) {
    .legacy-work .pediatr_title {
        font-size: 24px;
        margin-bottom: 20px !important;
    }

    .legacy-work .pediatr_descr {
        font-size: 18px;
    }

    .legacy-work .hero_hint {
        font-size: 18px;
    }

    .legacy-work .hero_decor-2 {
        display: none;
    }

    .legacy-work .hero_hand {
        max-width: 100%;
        right: -120px;
    }

    .legacy-work .hero_small-1 {
        left: 130px;
        max-width: 90px;
    }

    .legacy-work .hero_small-2 {
        max-width: 100px;
        top: 210px;
        left: 375px;
    }

    .legacy-work .hero_small-3 {
        max-width: 90px;
        bottom: 130px;
        left: 130px;
    }

    .legacy-work .info_phone-1,
    .legacy-work .info_phone-2 {
        max-width: 200px;
    }

    .legacy-work .test_imgs img {
        max-width: 200px;
    }

    .legacy-work .reference_imgs img {
        max-width: 200px;
    }

    .legacy-work .profile_img::before,
    .legacy-work .profile_img::after {
        display: none;
    }

    .legacy-work .profile_decor::before {
        top: 60px;
        right: 330px;
    }

    .legacy-work .profile_girl {
        bottom: -2px;
        left: 196px;
    }

    .legacy-work .registration_img {
        height: 300px;
    }
}

@media (max-width: 575px) {
    .legacy-work .pediatr_title {
        font-size: 20px;
    }

    .legacy-work .pediatr_descr {
        font-size: 16px;
    }

    .legacy-work .hero_hint {
        font-size: 16px;
    }

    .legacy-work .hero_text {
        padding: 700px 15px 20px;
    }

    .legacy-work .hero_hand {
        right: -40px;
    }

    .legacy-work .hero_small-1 {
        left: 50px;
        max-width: 70px;
    }

    .legacy-work .hero_small-2 {
        max-width: 70px;
        top: 140px;
        left: 220px;
    }

    .legacy-work .hero_small-3 {
        max-width: 70px;
        bottom: 70px;
        left: 50px;
    }

    .legacy-work .circle_decor-1 {
        top: 50%;
        left: 9%;
        width: 60px;
        height: 60px;
        animation: turn 10s linear infinite;
    }

    .legacy-work .circle_decor-3 {
        top: 60%;
        right: 10%;
        width: 40px;
        height: 40px;
        animation-direction: reverse;
    }

    .legacy-work .circle_decor-4 {
        left: 10%;
        bottom: 20%;
        width: 30px;
        height: 30px;
        background-color: #da3011;
        animation-direction: normal;
    }

    .legacy-work .info_img {
        padding-bottom: 70px;
    }

    .legacy-work .info_phone-1, .legacy-work .info_phone-2 {
        max-width: 160px;
    }

    .legacy-work .info_decor {
        bottom: 10px;
        right: -80px;
        max-width: 200px;
    }

    .legacy-work .pediatr_test {
        padding: 50px 0 500px;
    }

    .legacy-work .test_imgs img:nth-of-type(3) {
        position: absolute;
        left: 15px;
        top: 550px;
        transform: translate(0);
    }

    .legacy-work .test_imgs img:nth-of-type(4) {
        position: absolute;
        left: 240px;
        top: 650px;
        transform: translate(0);
    }  

    .legacy-work .test_pill {
        display: none;
    }

    .legacy-work .test_decor {
        bottom: -50px;
    }

    .legacy-work .reference_imgs {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .legacy-work .reference_imgs img {
        max-width: 160px;
        margin: 0;
    }

    .legacy-work .profile_img img {
        margin: 0 auto;
    }

    .legacy-work .profile_img::before {
        left: 10px;
    }

    .legacy-work .profile_girl {
        display: none;
    }

    .legacy-work .pediatr_registration {
        padding-bottom: 200px;
    }

    .legacy-work .profile_decor {
        top: 270px;
        left: 50%;
        transform: translateX(-50%);
        width: 600px;
        height: 600px;
    }


    .legacy-work .circle_decor-8,
    .legacy-work .circle_decor-9 {
        display: none;
    }

    .legacy-work .registration_phones {
        top: -180px;
        left: 40%;
    }

    .legacy-work .registration_phones img:first-of-type {
        max-width: 140%;
    }

    .legacy-work .registration_img {
        height: 280px;
    }

    .legacy-work .registration_social-1 {
        max-width: 60px;
        top: 40px;
        left: -40px;
    }

    .legacy-work .registration_social-2 {
        max-width: 50px;
        top: 60px;
        right: -120px;
    }

    .legacy-work .registration_social-3 {
        max-width: 80px;
        top: 280px;
        left: 0;
    }

    .legacy-work .registration_social-4 {
        max-width: 100px;
        top: 240px;
        right: -100px;
    }
}

@media (max-width: 320px) {
    .legacy-work .hero_small-1 {
        left: 30px;
        max-width: 70px;
    }

    .legacy-work .hero_small-2 {
        max-width: 70px;
        top: 110px;
        left: 190px;
    }

    .legacy-work .info_phone-1, .legacy-work .info_phone-2 {
        max-width: 130px;
    }

    .legacy-work .pediatr_test {
        padding-bottom: 400px;
    }

    .legacy-work .test_imgs img {
        max-width: 160px;
    }

    .legacy-work .test_imgs img:nth-of-type(3) {
        top: 480px;
    }

    .legacy-work .reference_imgs img {
        max-width: 130px;
    }

    .legacy-work .registration_img {
        height: 200px;
    }

    .legacy-work .registration_social-2 {
        right: -100px;
    }

    .legacy-work .registration_social-3 {
        top: 260px;
        left: -10px;
    }

    .legacy-work .registration_social-4 {
        top: 200px;
    }
}
/* 12.11.2026: рука с телефоном прижата к низу синего блока (срез не виден), блок ниже — без пустоты под рукой.
   Отступ под текстом растёт вместе с рукой (~48vw), чтобы на широких экранах её верх не обрезался. */
@media (min-width: 1200px) {
  .legacy-work .hero_img { bottom: 0; transform: none; }
}
@media (min-width: 1381px) {
  .legacy-work .hero_text { padding-bottom: max(60px, calc(48vw - 680px)); }
}
/* 29.11.2026: фоновые картинки в url() переведены на webp (оптимизация веса страницы) */
