/* fixed header */
.header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    padding: .5rem 0;
    font-size: var(--secondary-font-size);
    background: var(--pc);
    box-shadow: var(--default-box-shadow);
}

/* SERVICES SECTION */
.services {
    border-radius: 50px;
    padding: 60px 90px 80px;
    background-color: var(--gray);
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 44px;
}

.services__grid-item a {
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.services__grid-item:not(.services__grid-item--link) a {
    justify-content: flex-start;
}

.services__grid-item--link {
    font-size: 18px;
    line-height: 130%;
    font-weight: 600;
    text-align: center;
    color: var(--accent);
    height: 208px;
    row-gap: 6px;
    align-self: flex-start;
    border-radius: 23px;
    background-image: var(--gradient-light);
}

.services__grid-item__image {
    margin-bottom: 19px;
    border-radius: 20px;
}

.services__grid-item__image > img {
    border-radius: inherit;
}

.services__grid-item__name {
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    text-align: center;
    min-height: 54px;
}

.services__grid-item__button {
    background-color: transparent;
}

/* VIDEOS SECTION */
.videos {
    --nav-button-size: 74px;
    margin-left: var(--outer-gap);
    position: relative;
}

.videos__grid {
    height: 277px;
    width: 100%;
}

.video {
    position: relative;
    display: flex;
    border-radius: 20px;
}

.video > a {
    border-radius: inherit;
} 

.video > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.video__playButton {
    width: var(--nav-button-size);
    height: var(--nav-button-size);

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;

    border-radius: 16px;
    transition: transform 0.25s;
}

.video__playButton:hover {
    transform: translate(-50%, -50%) scale(0.9);
}

.videos__grid-navigation {
    column-gap: 10px;
    position: absolute;
    top: 0;
    right: 190px;
    transform: translateY(40px);
    z-index: 3;
}

.videos__grid-navigation .swiper-button {
    height: 60px;
    width: 60px;
    margin: 0;
    position: static;
    border: 1px solid var(--black);
    border-radius: 100%;
}

.swiper-button-prev--videos::after {
    font-size: 0;
    content: url('../images/icons/nav-arrow.svg');
} 

.swiper-button-next--videos::after {
    font-size: 0;
    content: url('../images/icons/nav-arrow.svg');
    transform: rotate(180deg);
} 

/* ==== ABOUT US SECTION ==== */
.about {
    background: url('../images/about/background.jpg') top left / cover no-repeat;
    height: 805px;
}

.about__inner {
    margin-left: 90px;
    margin-right: 107px;
    position: relative;
    height: 671px;
}

.about .section-title {
    max-width: 600px;
    font-weight: 500;
    padding-top: 130px;
}

.about__text {
    font-size: 23px;
    font-weight: 600;
    line-height: 180%;
}

.about__badge {
    position: absolute;
    right: 10px;
    top: 249px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.about__badge-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 20px;
}

.about__badge-image {
    border-radius: 20px;
}
.about__badge-image img {
    border-radius: inherit;
}

.about__certificates {
    width: 628px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    position: absolute;
    right: 0;
    bottom: 0;
}

.about__cerificate {
    position: relative;
}

.about__cerificate-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: transparent;
    opacity: 0;
    transition: opacity 0.3s;
}

.about__cerificate:hover .about__cerificate-button {
    opacity: 1;
}


/* TESTIMONIALS */
.testimonials__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

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

.testimonials__tabs {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.tabs__button {
    font-size: 18px;
    font-weight: 700;
    line-height: 110%;
    text-align: center;
    color: var(--accent);
    
    width: 240px;
    height: 75px;
    padding: 5px 55px 7px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 20px;
    border: 1px solid var(--accent);
    background-color: var(--white);
    background-image: linear-gradient(180deg, rgba(94, 168, 255, 0.1) 0%, rgba(27, 132, 255, 0.1) 100%);
    transition: background-color 0.4s, color 0.4s;
}

.tabs__button:hover {
    color: var(--white);
    background-color: var(--accent);
}

.tabs__button.active {
    color: var(--white);
    background-image: linear-gradient(180deg, rgba(94, 168, 255, 1) 0%, rgba(27, 132, 255, 1) 100%);
}

/* --------------- */
.testimonials__grid {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 27px;
    padding: 50px 50px 70px;
    border-radius: 26px;
    background-color: var(--gray);
}

.testimonials__grid.active {
    display: grid;
}

.testimonial {
    display: flex;
    min-height: 330px;
    border-radius: 14px;
    background-color: #F0F0F0;
}

.testimonial img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: inherit;
}

/* ----- maps ------------- */
.yaMaps {
    width: 100%;
    max-width: 760px;
    height: 800px;
    grid-column: 1 / -1;
    justify-self: center;
    position: relative;
    overflow: hidden;
}

.yaMaps_iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}


/* ===== BLOG SECTION ===== */
.blog {
    position: relative;
}

.blog__feed-navigation {
    column-gap: 10px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
}

.blog__feed-navigation .swiper-button {
    position: static;
    height: 60px;
    width: 60px;
    margin: 0;
    border: 1px solid var(--black);
    border-radius: 100%;
}

.header-social__icon_wt {
    background: #2ec643;
}

.header-social__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-button-prev--blog::after {
    font-size: 0;
    content: url('../images/icons/nav-arrow.svg');
} 

.swiper-button-next--blog::after {
    font-size: 0;
    content: url('../images/icons/nav-arrow.svg');
    transform: rotate(180deg);
} 

/* ------------------ */
.post {
    padding: 40px;
    margin: 0 auto 40px;

    display: flex;
    column-gap: 80px;

    border-radius: 26px;
    background-color: var(--gray);
}

.post__text {
    font-size: 16px;
    line-height: 150%;
    margin-bottom: 20px;
}

.post__image {
    max-width: 600px;
    max-height: 800px;
    border-radius: 16px;
}

.blog__feed .container {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.blog__feed .container .section-title {
    margin-bottom: 20px;
}

.blog__button {
    text-align: center;
}

.header-social__icon_wt {
    background: #2ec643;
}

.header-social__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (width <= 1140px) {
    .services {
        background-color: var(--white);
        border-radius: 0;
        padding: 0;
    }
    .services .section-title {
        font-size: 27px;
        line-height: 140%;
        text-align: center;
        margin-bottom: 35px;
    }
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 13px;
    }
    .services__grid-item__image {
        height: 177px;
        margin-bottom: 12px;
        width: 100%;
    }
    .services__grid-item__image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    .services__grid-item__name {
        font-size: 15px;
        line-height: 140%;
    }
    .services__grid-item--link {
        font-size: 15px;
        height: 177px;
    }

    /* ABOUT */
    .about {
        height: auto;
        background: url('../images/about/background-mobile.jpg') top center / cover no-repeat;
    }
    .about__inner {
        margin: 0;
        height: auto;
    }
    .about .section-title {
        letter-spacing: -0.02em;
        padding-top: 50px;
        margin-bottom: 20px;
    }
    .about__text {
        font-size: 16px;
        line-height: 150%;
        text-align: center;
        margin-bottom: 285px;
    }
    /* ---------------- */
    .about__badge {
        position: static;
        transform: translate(0);
        margin-bottom: 40px;
    }
    .about__badge-title {
        font-size: 17px;
        letter-spacing: -0.02em;
        margin-bottom: 15px;
    }
    .about__badge-image {
        align-self: center;
    }
    /* ------------------ */
    .about__certificates {
        width: 100%;
        position: static;
        transform: translate(0);
        column-gap: 11px;
    }
    .about__cerificate {
        height: 131px;
    }
    .about__cerificate a {
        height: 100%;
    }
    .about__cerificate a img {
        height: 100%;
    }
    .about__cerificate-button {
        width: 32px;
        height: 32px;
    }

    /* VIDEOS */
    .videos {
        --nav-button-size: 50px;
        margin-left: 20px;
    }
    .videos .section-title {
        max-width: calc(100% - 20px);
    }
    .videos__grid {
        height: auto;
        margin-bottom: 21px;
    }
    .videos__grid-navigation {
        max-width: calc(100% - 20px);
        position: static;
        transform: translate(0);
    }
    .videos__grid-navigation .swiper-button {
        width: 52px;
        height: 52px;
        margin: 0;
    }
    /* TESTIMONIALS */
    .testimonials__header {
        flex-direction: column;
        margin-bottom: 15px;
    }
    .testimonials__header .section-title {
        margin-bottom: 35px;
    }
    .testimonials__tabs {
        width: 100%;
    }
    .tabs__button {
        font-size: 14px;
        width: calc(33.33% - 7px);
        height: 59px;
        padding: 9px 20px 11px;
        border-radius: 15px;
    }
    /* -------------- */
    .testimonials__grid {
        padding: 15px 15px 20px;
        border-radius: 20px;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 9px;
    }
    .testimonial {
        height: 220px;
        min-height: auto;
    }
    /* ----- maps ------------- */
    .yaMaps {
        width: 100%;
        max-width: 760px;
        height: 870px;
    }
    
    .yaMaps_iframe {
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    /* BLOG */
    .blog__feed-navigation {
        column-gap: 15px;
        position: static;
        margin-bottom: 20px;
    }
    
    .blog__feed-navigation .swiper-button {
        height: 50px;
        width: 50px;
    }

    /* ----------- */
    .post {
        padding: 15px;
        border-radius: 15px;
        flex-direction: column;
    }
    .post__text {
        font-size: 15px;
        line-height: 140%;
    }
    .post__image {
        max-width: 600px;
        max-height: 800px;
        border-radius: 16px;
    }
}

@media (1140px >= width > 480px) {
    .hero {
        background-image: url('../images/hero/hero-mobile.jpg');
        background-size: contain;
        height: auto;
    }
    .about {
      padding-top: 30px;
      padding-bottom: 30px;
      height: 1120px;
      display: flex;
      background-position: bottom center;
    }
    .about .container {
        height: 100%;
    }
    .about__inner {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .about__text {
        margin-bottom: 0;
    }
    .about__badge {
        margin-top: auto;
    }
    .services .services__grid-item__image {
        height: auto;
    }
    .services .services__grid-item--link {
        height: calc(100% - 65px);
    }
}

@media (1140px >= width > 600px) {
    .hero__title {
        margin-bottom: 390px;
    }
}

@media (1140px >= width >= 768px) {
    /* SERVICES */
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .services__grid-item__name {
        min-height: 42px;
    }
    .services .services__grid-item--link {
        height: calc(100% - 53px);
    }
    /* ABOUT */
    .about {
        padding-top: 0;
        background-position-y: 80%;
    }
    .about__certificates {
        display: flex;
        justify-content: center;
    }
    /* VIDEOS */
    .videos {
        margin-left: 10%;
    }
    .testimonial {
        height: 360px;
    }
}

@media (1140px >= width >= 870px) {
    .hero {
        background: url('../images/hero/background.jpg') top right 40% no-repeat;
        position: relative;
        padding-bottom: 35px;
    }
    .hero::before {
        content: '';
        position: absolute;
        inset: 80% 0 0 0;
        width: 100%;
        height: 20%;
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFF 100%);
      }
      
    .hero__content {
        align-items: flex-start;
    }
    .hero__title {
        text-align: left;
        max-width: 330px;
        margin-bottom: 40px;
    }
    .hero__badge {
        position: absolute;
        bottom: -5px;
        right: 0;
        transform: translateX(20%);
        margin-bottom: 0;
    }
    .hero__list {
        display: none;
        flex-direction: column;
        row-gap: 30px;
    }
    .hero__list.hideOnMobile {
        display: flex !important;
    }
    .hero__list-item {
        align-items: flex-start;
    }
    .hero__item-content {
        max-width: 300px;
    }
    .hero__item-icon {
        margin-bottom: 12px;
    }
    .hero__item-title,
    .hero__item-text {
        text-align: left;
    }
    .hero__item-title {
        margin-bottom: 10px;
    }
    .hero__buttons {
        margin-bottom: 0;
    }
    .hero__button  {
        width: 300px;
        padding-right: 15px;
        padding-left: 15px;
    }
    .about {
        background: url('../images/about/background.jpg') top center no-repeat;
        height: auto;
        min-height: 490px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .about__inner {
        align-items: flex-start;
    }
    .about .section-title {
        max-width: 450px;
        padding-top: 0;
        text-align: left;
    }
    .about__text {
        font-size: 18px;
        text-align: left;
        margin-bottom: 80px;
    }
    .about__badge {
        position: absolute;
        margin-bottom: 0;
        right: 0;
        transform: translate(30%, 50px);
    }
    .about__certificates {
        justify-content: flex-start;
    }
}

@media (1140px >= width >= 960px) {
    /*  BLOG */
    .blog.container {
        max-width: 920px;
        width: 96%;
    }
    .post {
        flex-direction: row;
        column-gap: 20px;
    }
    .post__text {
        font-size: 15px;
    }
    .post__image {
        max-width: 50%;
        flex-shrink: 0;
        height: 600px;
    }
}

@media (1140px >= width >= 992px) {
    .hero__badge {
        transform: translateX(0);
    }
    .services__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .about__badge {
        transform: translate(0, 60px);
    }
    .testimonials__grid {
       grid-template-columns: repeat(4, 1fr);
    }
    .videos {
        margin-left: 5%;
    }
}

@media (1140px >= width >= 1040px) {
    .about__badge {
        transform: translate(-25%, 80px);
    }
    .services {
        background: var(--gray);
        border-radius: 26px;
        padding: 25px 15px 40px;
    }
    .services__grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .blog.container {
        max-width: var(--container-max-width);
    }
}

@media (1700px >= width > 1140px) {
    .hero__title {
        font-size: 42px;
    }
    .hero__content {
        max-width: 600px;
    }
    /* -------------- */
    .hero__list {
        column-gap: 30px;
    }
    .hero__item-icon {
        margin-right: 15px;
        margin-top: 5px;
    }
    .hero__item-title {
        margin-bottom: 8px;
    }
    .hero__item-text {
        font-size: 15px;
    }

    /* ---------------- */
    .hero__badge {
        bottom: 50px;
        padding: 20px;
    }
    .hero__badge-img {
        height: 150px;
    }
    .hero__badge-button {
        height: 36px;
        height: 36px;
    }
    .hero__badge-title {
        font-size: 22px;
        
    }
    .hero__badge-text {
        font-size: 18px;
        line-height: 130%;
    }
    /* -------------- */
    .about {
        height: auto;
        padding-bottom: 60px;
        background-position-x: right 50%;
    }
    .about__text {
        max-width: 550px;
        font-size: 20px;
        line-height: 140%;
    }
    .about__badge {
        bottom: 0;
        right: 42px;
    }
    .about__certificates {
        width: 480px;
        position: static;
        margin-top: 60px;
    }
    .about__cerificate-button {
        width: 36px;
        height: 36px;
    }
    /* -------------- */
    .services {
        border-radius: 40px;
        padding: 40px 40px 50px;
    }
    .services__grid {
        column-gap: 15px;
    }
    .services__grid-item__image {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }
    .services__grid-item__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .services__grid-item__name {
        font-size: 16px;
        line-height: 130%;
        min-height: 42px;
    }
    .services__grid-item--link {
        height: calc(100% - 55px);
        font-size: 16px;
    }
    /* -------------- */
    .videos {
        --nav-button-size: 54px;
    }
    .videos__grid-navigation {
        transform: translateY(-10px);
    }
    .videos__grid {
        height: auto;
    }
    /* ----------- */
    .testimonials__grid {
        padding: 20px;
        border-radius: 20px;
        column-gap: 15px;
    }
    /* ----------- */
    .blog__feed-navigation {
        transform: translateY(-20px);
    }
    .post__image {
        max-width: 50%;
        max-height: 600px;
    }
    .post__text {
        font-size: 15px;
    }
}

@media (1700px >= width >= 1366px) {
    .about {
        padding-top: 30px;
        background-position: center;
    }
    .about__badge {
        right: 105px;
    }
    .about .section-title {
        padding-top: 80px;
    }
}