@font-face {
    font-family: "Stengazeta";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url(../fonts/Stengazeta-Regular_5.woff) format('woff'),
         url(../fonts/Stengazeta-Regular_5.woff2) format('woff2');
}

.wrapper {
    min-height: 100%;
    width: 100%;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: white;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}



/* ---------------------------------------------------------------- */

.preview {
    margin: 39px 0px 31px 20px;
    display: flex;
    justify-content: space-between;
    max-height: 676px;
}

.preview__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 66px;
    max-height: 555px;
}

.preview__content-title {
    max-width: 640px;
    font-family: "Stengazeta";
    font-weight: 400;
    font-size: 80px;
    color: #86C8FF;
}

.preview__content-text {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.preview__content-bottom {
    background-color: #7c9ef5;
    max-width: 290px;
    max-height: 75px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 23px 0px;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.preview__content-descr {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 24px;
    max-width: 490px;
    margin: 0px;
}

.preview__image-nat {
    height: 100%;
    width: 100%;
}

/* -------------------------------------------------------- */

.about {
    background-color: #ecf4ff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.about__left, 
.about__right {
    max-height: 635px;
}

.about__image-left {
    height: 100%;
}

.about__image-right {
    height: 100%;
    padding-right: 20px;
}

.about__content {
    display: flex;
    flex-direction: column;
    width: 700px;
    gap: 67px;
    align-self: center;
    margin: 87px 0 67px;
}

.about__wrapper {
    margin: 0 auto;
}

.about__content-top {
    background-color: #86c8ff;
    padding: 21px 42px 5px;
    border-radius: 40px;
    max-width: 373px;
    margin: 0 auto 31px;
}

.about__content-title {
    font-family: "Stengazeta", sans-serif;
    font-size: 80px;
    font-weight: 400;
    color: #fff;
}

.about__content-subtitle {
    max-width: 440px;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
}


.about__content-center {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 400px;
    display: flex;
    flex-direction: column;
    gap: 31px;
}

.about__content-left,
.about__content-right {
    background-color: #fff;
    max-width: 410px;
    padding: 27px 16px;
    border-radius: 5px;
}

.about__content-left {
    align-self: flex-start;
}

.about__content-right {
    align-self: flex-end;
}

/* ----------------------------------------------------- */

.for-whom {
    display: flex;
    justify-content: space-between;
    padding-top: 47px;
}

.for-whom__image {
    height: 100%;
}

.for-whom__content {
    max-width: 437px;
    margin-right: 70px;
}

.for-whom__content-title {
    font-family: "Stengazeta", sans-serif;
    font-size: 80px;
    color: #86C8FF;
}

.for-whom__content-center-title {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 700px;
}

.for-whom__content-center-text {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 400px;
}

.for-whom__content-bottom {
    margin-top: 153px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.for-whom__content-bricks {
    background-color: #ECF4FF;
    border-radius: 20px;
    max-width: 100%;
    height: 30%;
    text-align: center;
    padding: 20px 0;
}

.for-whom__brick-text {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
}

/* ---------------------------------------------------------- */

.reviews {
    background-color: #ECF4FF;
    padding-bottom: 110px;
}

.reviews__title {
    font-family: "Stengazeta", sans-serif;
    font-size: 80px;
    color: #86C8FF;
}

.reviews__top {
    padding: 83px 0px 60px 20%;
}

.reviews__bottom {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 24px;
}

.reviews__bottom-first,
.reviews__bottom-second {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 35px;
}

.reviews__brick {
    flex: 1 1 360px;
    max-width: 420px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background-color: #fff;
    border-radius: 20px;
    padding: 22px 20px 28px;
    box-shadow: 0px 25px 30px 0px rgba(0, 0, 0, 0.2);
}

.reviews__brick-title {
    display: flex;
    align-items: center;
    gap: 26px;
}

.reviews__brick-ring {
    flex: 0 0 75px;
    width: 75px;
    height: 75px;
    background-color: #D9D9D9;
    border-radius: 50%;
}

.reviews__brick-name {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.reviews__brick-text {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------- */

.team {
    display: flex;
    justify-content: center;
    padding: 100px 0 75px 0;
    gap: 70px;

    background-image: url("../images/team_head-image.png");
    background-repeat: no-repeat;
    background-position: 0 200px;
}

.team_title {
    font-family: 'Stengazeta', sans-serif;
    font-size: 80px;
    color: #86C8FF;
}

.team_bricks {
    display: flex;
    gap: 23px;
}

.team_brick-liza {
    background-color: #86C8FF;
    border-radius: 20px;
    padding: 23px 29px 18px 29px;
    box-shadow: 0px 25px 30px 0px rgba(0, 0, 0, 0.2);
    box-shadow: inset 5px -4px 15px 0px rgba(255, 255, 255, 1);
}

.team_brick-yuri {
    background-color: #86C8FF;
    border-radius: 20px;
    padding: 23px 29px 18px 29px;
    box-shadow: 0px 25px 30px 0px rgba(0, 0, 0, 0.2);
    box-shadow: inset 5px -4px 15px 0px rgba(255, 255, 255, 1);
}

.team_brick-kirill {
    background-color: #86C8FF;
    border-radius: 20px;
    padding: 23px 29px 18px 29px;
    box-shadow: 0px 25px 30px 0px rgba(0, 0, 0, 0.2);
    box-shadow: inset 5px -4px 15px 0px rgba(255, 255, 255, 1);
}

.team_brick-photo {
    max-width: 240px;
    max-height: 240px;
}

.team_brick-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
}

.team_brick-name {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.team_brick-text {
    display: flex;
    flex-direction: column;
    gap: 155px;
}

/* ---------------------------------------------------------- */

.footer {
    background-color: #7C9EF5;
    font-family: "Inter", sans-serif;
    color: #fff;
    font-size: 14px;
    height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 31px 90px 20px 52px;
    gap: 70px;
}

.footer__social-title {
    margin-bottom: 20px;
}

.footer__links {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__contacts-bricks {
    display: flex;
    gap: 60px;
}

.footer__brick-name {
    font-weight: 700;
}

.footer__brick-prof {
    margin-bottom: 40px;
}

.footer__nav-list {
    list-style: none;
    margin: 0;
}

.footer__nav-title {
    margin-bottom: 10px;
}

.footer__copyright {
    text-align: center;
}

/* ---------------------------------------------------------- */

@media (max-width: 1024px) {

    .preview {
        flex-direction: column;
        align-items: center;
    }

    .preview__content {
        margin-top: 0;
    }

    .about {
        padding: 30px 0;
    }

    .preview__content-title,
    .about__content-title,
    .for-whom__content-title,
    .reviews__title,
    .team_title {
        font-size: clamp(42px, 8vw, 64px);
        text-align: center;
    }

    .preview__content-descr,
    .about__content-center,
    .for-whom__content-center-title,
    .for-whom__content-center-text {
        font-size: 20px;
        text-align: center;
    }

    .about__left,
    .about__right,
    .preview__images,
    .for-whom__left {
        max-width: 500px;
    }

    .for-whom__content,
    .about__content {
        align-items: center;
    }

    .for-whom__content-bottom {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .preview {
        margin: 20px 12px;
    }

    .preview__content-title,
    .about__content-title,
    .for-whom__content-title,
    .reviews__title,
    .team_title {
        font-size: 30px;
    }

    .preview__content-bottom {
        width: 100%;
        max-width: none;
        padding: 16px 10px;
        font-size: 18px;
    }

    .preview__content-descr,
    .about__content-center,
    .for-whom__content-center-title,
    .for-whom__content-center-text {
        font-size: 17px;
    }

    .about__image-left,
    .about__image-right {
        max-height: 250px;
        max-width: 150px;
    }

    .about__content-top {
        max-height: 100px;
        max-width: 200px;
    }

    .about__content {
        gap: 20px;
    }

    .about__content-center {
        max-width: 250px;
    }

    .reviews {
        padding: 0 12px 70px;
    }

    .reviews__bottom-first,
    .reviews__bottom-second {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Р С•РЎвЂљР В·РЎвЂ№Р Р†РЎвЂ№ */

    .reviews__brick {
        width: 100%;
        max-width: 640px;
        min-width: 0;
        padding: 18px;
    }

    .team {
        padding: 50px 12px;
    }

    .team_bricks {
        display: flex;
        flex-direction: column;
    }

    .team_brick-text {
        gap: 30px;
    }
}

@media (max-width: 470px) {

    .about__content-text,
    .for-whom__brick-text,
    .for-whom__content-center-text,
    .for-whom__content-center-title,
    .reviews__brick-text,
    .reviews__brick-name,
    .team_brick-title,
    .team_brick-name {
        font-size: 6px;
    }

/* ---------------------------------------------------------- */

    .preview__content-text,
    .preview__content {
        max-width: 300px;
        gap: 20px;
        margin: 0 auto;
    }    

    .preview__content-descr,
    .about__content-subtitle {
        font-size: 10px;
    }

/* ---------------------------------------------------------- */

    .about {
        padding: 0;
    }

    .about__content {
        max-width: 200px;
        margin: 0;
        padding: 30px 0;
    }

    .about__content-top {
        display: flex;
        max-width: 150px;
    }

    .about__content-title,
    .for-whom__content-title,
    .team_title,
    .reviews__title {
        font-size: 20px;
    }

    .about__image-left,
    .about__image-right {
        height: 150px;
        padding: 0;
    }

    .about__content-left,
    .about__content-right {
        max-width: 150px;
        padding: 20px 10px;
    }

/* ---------------------------------------------------------- */

    .for-whom {
        align-items: flex-end;
    }   

    .for-whom__left {
        width: 157px;
        height: 157px;
    }

    .for-whom__content {
        max-width: 100px;
        margin: 0 50px 12px 0;
    }

    .for-whom__content-bottom {
        margin-top: 15px;
    }

    .for-whom__content-bricks {
        max-width: 100%;
        padding: 10px 0;
    }

/* ---------------------------------------------------------- */

    .reviews__top {
        display: flex;
        padding: 21px 10px;
    }

    .reviews__brick-title {
        gap: 6px;
    }

    .reviews__brick {
        max-width: 100%;
        min-width: 0;
        padding: 10px 12px;
        gap: 8px;
        border-radius: 8px;
    }

    .reviews__brick-name {
        font-size: 11px;
        line-height: 1.2;
    }

    .reviews__brick-text {
        font-size: 9px;
        line-height: 1.35;
    }

    .reviews__brick-ring {
        flex: 0 0 15px;
        width: 15px;
        height: 15px;
    }

/* ---------------------------------------------------------- */

    .team {
        background-size: 123px 119px;
    }

    .team_brick-photo {
        width: 75px;
        height: 75px;

    }

    .team_brick-kirill,
    .team_brick-liza,
    .team_brick-yuri {
        padding: 10px 15px 8px;
        box-shadow: inset 5px -4px 15px 0px rgba(255, 255, 255, 0.7);
    }
}
/* Flexible reviews cards */
.reviews__bottom {
    gap: 35px !important;
    max-width: 1420px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

.reviews__bottom-first,
.reviews__bottom-second {
    align-items: stretch !important;
    flex-wrap: wrap !important;
}

.reviews__brick {
    flex: 1 1 360px !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: 420px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 22px 20px 28px !important;
    gap: 22px !important;
}

.reviews__brick-title {
    align-items: flex-start !important;
}

.reviews__brick-ring {
    flex: 0 0 75px !important;
}

.reviews__brick-name {
    line-height: 1.15 !important;
}

.reviews__brick-descr,
.reviews__brick-text {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.reviews__brick-text {
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 600px) {
    .reviews__bottom-first,
    .reviews__bottom-second {
        flex-direction: column !important;
        align-items: center !important;
    }

    .reviews__brick {
        width: 100% !important;
        max-width: 640px !important;
        min-width: 0 !important;
    }
}

@media (max-width: 470px) {
    .reviews__brick {
        max-width: 100% !important;
        max-height: none !important;
        padding: 10px 12px !important;
        gap: 8px !important;
        border-radius: 8px !important;
    }

    .reviews__brick-name {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .reviews__brick-text {
        font-size: 9px !important;
        line-height: 1.35 !important;
    }

    .reviews__brick-ring {
        flex: 0 0 15px !important;
        width: 15px !important;
        height: 15px !important;
    }
}

/* Final mobile layout */
@media (max-width: 600px) {
    .preview {
        margin: 0;
        padding: 32px 20px 38px;
    }

    .preview__content {
        width: 100%;
        max-width: 520px;
        gap: 28px;
    }

    .preview__content-title {
        font-size: 42px;
        line-height: 1.05;
    }

    .preview__content-descr {
        font-size: 16px;
        line-height: 1.35;
    }

    .preview__content-bottom {
        padding: 15px 18px;
        border-radius: 18px;
        font-size: 18px;
    }

    .preview__images {
        display: none;
    }

    .about {
        display: block;
        padding: 34px 20px;
    }

    .about__left,
    .about__right,
    .about__content-center {
        display: none;
    }

    .about__content {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 0;
        gap: 0;
    }

    .about__wrapper {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .about__content-top {
        width: fit-content;
        max-width: none;
        margin: 0 auto 26px;
        padding: 15px 38px 8px;
        border-radius: 40px;
    }

    .about__content-title {
        font-size: 34px;
        white-space: nowrap;
    }

    .about__content-subtitle {
        max-width: 330px;
        margin: 0 auto;
        font-size: 14px;
        line-height: 1.25;
    }

    .reviews {
        padding: 0 18px 42px;
    }

    .reviews__top {
        padding: 34px 0 24px;
    }

    .reviews__title {
        font-size: 34px;
        text-align: left;
    }

    .reviews__bottom {
        gap: 18px !important;
        padding: 0 !important;
    }

    .reviews__bottom-first,
    .reviews__bottom-second {
        gap: 18px !important;
    }

    .reviews__brick {
        flex: 0 1 auto !important;
        width: 100% !important;
        max-width: 440px !important;
        min-height: 0 !important;
        padding: 14px !important;
        gap: 12px !important;
        border-radius: 10px !important;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.14);
    }

    .reviews__brick-title {
        gap: 9px !important;
    }

    .reviews__brick-ring {
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .reviews__brick-name {
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    .reviews__brick-text {
        font-size: 10px !important;
        line-height: 1.4 !important;
    }

    .team {
        display: block;
        padding: 38px 18px 46px;
        background-position: -35px 155px;
        background-size: 190px auto;
    }

    .team_title {
        margin-bottom: 24px;
        font-size: 34px;
        text-align: left;
    }

    .team_bricks {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 150px));
        justify-content: end;
        gap: 18px 16px;
    }

    .team_brick-liza,
    .team_brick-yuri,
    .team_brick-kirill {
        min-width: 0;
        padding: 12px 12px 10px;
        border-radius: 18px;
    }

    .team_brick-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 10px;
    }

    .team_brick-text {
        gap: 24px;
    }

    .team_brick-title,
    .team_brick-name {
        font-size: 10px;
        line-height: 1.2;
    }
}

@media (max-width: 360px) {
    .team_bricks {
        grid-template-columns: repeat(2, minmax(0, 132px));
        gap: 14px 12px;
    }
}