main {}

.container-intro {
    display: flex;
    justify-content: space-between;
    width: 90%;
    height: 600px;
    margin: 20px auto;
    margin-bottom: 40px;
    padding: 40px 0;
}

.container-intro .pictures {
    position: relative;
    width: 40%;
    max-height: 400px;
    margin: 0 auto;
}

.container-intro .pictures .picture {
    position: absolute;
}

.container-intro .pictures .picture img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.container-intro .pictures .picture:nth-child(1) {
    z-index: 2;
    top: 0;
    left: 0;
    min-width: 200px;
    max-width: 400px;
    width: 60%;
    border-radius: 8px;
    transition: width 1s, z-index 0.5s;
}

.container-intro .pictures .picture:nth-child(2) {
    z-index: 0;
    top: 30px;
    right: 10px;
    min-width: 200px;
    max-width: 500px;
    width: 50%;
    border-radius: 8px;
    transition: width 1s, z-index 0.5s;
}

.container-intro .pictures .picture:nth-child(3) {
    z-index: 1;
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 350px;
    width: 55%;
    border-radius: 8px;
    transition: width 1s, z-index 0.5s;
}

.container-intro .pictures .picture:hover {
    z-index: 3;
    width: 70%;
    max-width: 70%;
}

.container-intro .about {
    max-width: 60%;
    padding-left: 10px;
}

.container-intro .about h2 {
    text-align: right;
    font-size: 32px;
}

.container-intro .about h2 span.formed {
    background: linear-gradient(transparent 0%, rgba(230, 111, 0, 0.58) 1%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: inline;
    font-size: 34px;
}

.container-intro .about p {
    margin-top: 30px;
    font-size: 22px;
    font-weight: 300;
}

/* Виджет "Как мы работаем:" */
h2.advantages-header {
    padding: 20px 0 20px 0;
    max-width: 40%;
    margin: 0 auto;
    font-size: 40px;
    font-weight: 800;
    text-align: center;
}

.advantages {
    max-width: 90%;
    padding: 10px 0 20px 0;
    justify-content: space-between;
    margin: 0 auto;
    display: flex;
}

/* Нумерованная вкладка */
.advantage {
    padding: 40px 25px;
    width: 23%;
    background-color: #EFEFEF;
    border: 3px solid #142E9E;
    border-radius: 25px;
    box-shadow: inset 0 0 20px 4px rgba(0, 0, 0, 0.25), 0 0 25px 15px rgba(0, 0, 0, 0);
    transition: box-shadow 1s ease-in-out, border 1.2s ease-in-out, background-color 1.4s ease-in-out;
}

.advantage:hover {
    border: 3px solid #2843b8;
    box-shadow: inset 0 0 10px 1px rgba(0, 0, 0, 0), 0 0 10px 3px rgba(0, 0, 0, 0.25);
    background-color: #FFFFFF;
}

.advantage:hover .number {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 36px;
    font-weight: 800;
}

.advantage .number {
    display: inline-block;
    background-color: #142E9E;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-align: center;
    line-height: 55px;
    font-size: 30px;
    font-weight: 600;
    transition: width 1s, height 1s, line-height 1s, font-size 1s, font-weight 1s;
}

.advantage h3 {
    margin: 15px 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.advantage h3 span {
    background: linear-gradient(transparent 0%, rgba(230, 111, 0, 0.58) 1%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: inline;
}

.advantage .description {
    font-size: 18px;
    font-weight: 300;
}

.advantage .more {
    text-align: right;
    font-size: 16px;
    margin-top: 25px;
}

.advantage .more a {
    text-decoration: none;
    color: #142E9E;
    transition: color 1s, font-weight 1s;
}

.advantage .more a:hover {
    color: #D1321C;
    font-weight: 600;
}

/* Адаптация под малые экраны и планшеты */
@media (max-width: 1200px) {
    .container-intro {
        display: flex;
        justify-content: space-between;
        width: 90%;
        height: 450px;
        margin: 5px auto;
        margin-bottom: 0;
        padding: 10px 0;
    }

    .container-intro .pictures {
        position: relative;
        width: 40%;
        max-height: 300px;
        margin: 0 auto;
    }

    .container-intro .pictures .picture {
        position: absolute;
    }

    .container-intro .pictures .picture img {
        max-width: 100%;
        height: auto;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
        border-radius: 8px;
    }

    .container-intro .pictures .picture:nth-child(1) {
        z-index: 2;
        top: 0;
        left: 0;
        min-width: 200px;
        max-width: 400px;
        width: 60%;
        border-radius: 8px;
        transition: width 1s, z-index 0.5s;
    }

    .container-intro .pictures .picture:nth-child(2) {
        z-index: 0;
        top: 30px;
        right: 10px;
        min-width: 200px;
        max-width: 500px;
        width: 50%;
        border-radius: 8px;
        transition: width 1s, z-index 0.5s;
    }

    .container-intro .pictures .picture:nth-child(3) {
        z-index: 1;
        bottom: -15%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
        max-width: 350px;
        width: 55%;
        border-radius: 8px;
        transition: width 1s, z-index 0.5s;
    }

    .container-intro .pictures .picture:hover {
        z-index: 3;
        width: 70%;
        max-width: 70%;
    }

    .container-intro .about {
        max-width: 60%;
        padding-left: 40px;
    }

    .container-intro .about h2 {
        text-align: right;
        font-size: 26px;
    }

    .container-intro .about h2 span.formed {
        background: linear-gradient(transparent 5%, rgba(230, 111, 0, 0.58) 0%);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        display: inline;
        font-size: 28px;
    }

    .container-intro .about p {
        margin-top: 15px;
        font-size: 19px;
        font-weight: 300;
    }

    /* Виджет "Как мы работаем:" */
    h2.advantages-header {
        padding: 5px 0 10px 0;
        max-width: 80%;
        margin: 0 auto;
        font-size: 38px;
        font-weight: 800;
        text-align: center;
    }

    .advantages {
        max-width: 95%;
        padding: 10px 0 20px 0;
        justify-content: space-between;
        margin: 0 auto;
        display: flex;
    }

    /* Нумерованная вкладка */
    .advantage {
        padding: 20px 15px;
        width: 23.5%;
        background-color: #EFEFEF;
        border: 3px solid #142E9E;
        border-radius: 25px;
        box-shadow: inset 0 0 20px 4px rgba(0, 0, 0, 0.25), 0 0 25px 15px rgba(0, 0, 0, 0);
        transition: box-shadow 1s ease-in-out, border 1.2s ease-in-out, background-color 1.4s ease-in-out;
    }

    .advantage:hover {
        border: 3px solid #2843b8;
        box-shadow: inset 0 0 10px 1px rgba(0, 0, 0, 0), 0 0 10px 3px rgba(0, 0, 0, 0.25);
        background-color: #FFFFFF;
    }

    .advantage:hover .number {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 36px;
        font-weight: 800;
    }

    .advantage .number {
        display: inline-block;
        background-color: #142E9E;
        color: white;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        text-align: center;
        line-height: 55px;
        font-size: 30px;
        font-weight: 600;
        transition: width 1s, height 1s, line-height 1s, font-size 1s, font-weight 1s;
    }

    .advantage h3 {
        margin: 10px 0 10px 0;
        font-size: 17px;
        font-weight: 800;
    }

    .advantage h3 span {
        background: linear-gradient(transparent 0%, rgba(230, 111, 0, 0.58) 1%);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        display: inline;
    }

    .advantage .description {
        font-size: 15px;
        font-weight: 400;
    }

    .advantage .more {
        text-align: right;
        font-size: 14.5px;
        margin-top: 25px;
    }

    .advantage .more a {
        color: #142E9E;
        transition: color 1s, font-weight 1s;
    }

    .advantage .more a:hover {
        text-decoration: none;
        color: #D1321C;
        font-weight: 600;
    }
}

/* Мобильная адаптация */
@media (max-width: 980px) {
    .container-intro {
        display: flex;
        width: 80%;
        height: unset;
        margin: 5px auto;
    }

    .container-intro .pictures {
        all: unset;
        display: none;
    }

    .container-intro .pictures .picture {
        all: unset;
        display: none;
    }

    .container-intro .about {
        max-width: 100%;
    }

    .container-intro .about h2 {
        text-align: left;
        font-size: 26px;
    }

    .container-intro .about h2 span.formed {
        background: linear-gradient(transparent 5%, rgba(230, 111, 0, 0.58) 0%);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        display: inline;
        font-size: 28px;
    }

    .container-intro .about p {
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 19px;
        font-weight: 400;
    }

    /* Виджет "Как мы работаем:" */
    h2.advantages-header {
        max-width: 80%;
        font-size: 34px;
        font-weight: 800;
        text-align: center;
    }

    .advantages {
        max-width: 95%;
        padding: 10px 0 40px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 auto;
    }

    /* Нумерованная вкладка */
    .advantage {
        padding: 20px 15px;
        margin: 20px auto;
        width: 40%;
        background-color: #EFEFEF;
        border: 3px solid #142E9E;
        border-radius: 25px;
        box-shadow: inset 0 0 20px 4px rgba(0, 0, 0, 0.25), 0 0 25px 15px rgba(0, 0, 0, 0);
        transition: box-shadow 1s ease-in-out, border 1.2s ease-in-out, background-color 1.4s ease-in-out;
    }

    .advantage:hover {
        border: 3px solid #2843b8;
        box-shadow: inset 0 0 10px 1px rgba(0, 0, 0, 0), 0 0 10px 3px rgba(0, 0, 0, 0.25);
        background-color: #FFFFFF;
    }

    .advantage:hover .number {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 36px;
        font-weight: 800;
    }

    .advantage .number {
        display: inline-block;
        background-color: #142E9E;
        color: white;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        text-align: center;
        line-height: 55px;
        font-size: 30px;
        font-weight: 600;
        transition: width 1s, height 1s, line-height 1s, font-size 1s, font-weight 1s;
    }

    .advantage h3 {
        margin: 10px 0 10px 0;
        font-size: 17px;
        font-weight: 800;
    }

    .advantage h3 span {
        background: linear-gradient(transparent 0%, rgba(230, 111, 0, 0.58) 1%);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        display: inline;
    }

    .advantage .description {
        width: 90%;
        font-size: 15px;
        font-weight: 400;
    }

    .advantage .more {
        text-align: right;
        font-size: 14.5px;
        margin-top: 25px;
    }

    .advantage .more a {
        text-decoration: none;
        color: #142E9E;
        transition: color 1s, font-weight 1s;
    }

    .advantage .more a:hover {
        color: #D1321C;
        font-weight: 600;
    }
}

@media (max-width: 590px) {

    .container-intro {
        display: flex;
        width: 95%;
        height: unset;
        margin: 0 auto;
        padding: 0;
    }

    .container-intro .about {
        width: 100%;
        max-width: 100%;
    }

    .container-intro .about h2 {
        width: 100%;
        max-width: 100%;
        text-align: left;
        font-size: 24px;
    }

    .container-intro .about h2 span.formed {
        background: linear-gradient(transparent 5%, rgba(230, 111, 0, 0.58) 0%);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        display: inline;
        font-size: 25.5px;
    }

    .container-intro .about p {
        width: 95%;
        margin 0 auto;
        margin-top: 20px;
        margin-bottom: 40px;
        font-size: 17px;
        font-weight: 400;
    }

    /* Виджет "Как мы работаем:" */
    h2.advantages-header {
        max-width: 90%;
        font-size: 30px;
        font-weight: 800;
        text-align: center;
    }

    .advantages {
        max-width: 100%;
        padding: 10px 0 40px 0;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        margin: 0 auto;
    }

    /* Нумерованная вкладка */
    .advantage {
        padding: 25px 15px;
        margin: 10px auto;
        width: 90%;
        background-color: #EFEFEF;
        border: 3px solid #142E9E;
        border-radius: 25px;
        box-shadow: inset 0 0 20px 4px rgba(0, 0, 0, 0.25), 0 0 25px 15px rgba(0, 0, 0, 0);
        transition: box-shadow 1s ease-in-out, border 1.2s ease-in-out, background-color 1.4s ease-in-out;
    }

    .advantage .more {
        text-align: right;
        font-size: 16px;
        margin-top: 35px;
    }

    .advantage .more a {
        text-decoration: none;
        color: #142E9E;
        transition: color 1s, font-weight 1s;
    }
}