:root {
    --font-family: "Montserrat", sans-serif;

    --header-height: 64px;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scroll-padding-top: var(--header-height);
  }

body {
    font-weight: 500;
}

img {
    max-width: 100%;
}

.site-content--full {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.site-content--full .site-content-inner {
    max-width: 100%;
    width: 100%;
    display: block;

}

.wrapper {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;

}


@media (min-width: 768px) {
    .wrapper {
        max-width: 720px;
        padding-left: 45px;
        padding-right: 45px;
    }
}

@media (min-width: 992px) {
    .wrapper {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .wrapper {
        max-width: 1190px;
    }
}

.section {
    padding-top: 75px;
    padding-bottom: 45px;
}

.section--gray {
    background-color: #efefef;
}

.section--blue {
    background-color: #2e4476;
    color: #ffffff;
}

.section--hide {
    position: relative;
    overflow: hidden;
}

.section--blue .title {
    color: inherit;
}

.section--blue .subtitle {
    color: inherit;
}

.section__grid {
    display: grid;
    gap: 120px;
    grid-template-columns: 5fr 7fr;
}

.section__grid--mod {
    gap: 32px;
    grid-template-columns: 300px 1fr;
}

.hero {
    position: relative;
}

.hero__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 520px 1fr;
}

.hero__title {
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero__image {
    position: absolute;
    top: 60px;
}

.title,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1d449f;
    font-family: var(--font-family);
    font-weight: 700;
}

h1 {
    font-weight: 900;
}

.title {
    position: relative;
    padding-bottom: 10px;
    max-width: max-content;
}

.title:after {
    content: "";
    display: block;
    width: 60%;
    height: 2px;
    background-color: #ee7115;
    position: absolute;
    left: 0;
    bottom: 0;
}

.btn {
    background-color: #ee7115 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    border-radius: 10px !important;
}

.site-header {
    padding-top: 15px;
    padding-bottom: 16px;
}

.subtitle {
    display: block;
    font-weight: 700;
    font-size: 16px;
    line-height: 160%;
    color: #5176cf;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
}

.benefits li {
    margin-bottom: 12px;
}

.benefits__item {
    padding: 30px;
    font-weight: 700;
    font-size: 14px;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.benefits__item::before {
    content: "";
    display: block;
    width: 2px;
    height: 300%;
    background-color: #eccc15;
    position: absolute;
    left: 0;
    bottom: -100%;
    top: -100%;
}

.benefits p {
    margin-bottom: 32px;
}

.benefits__order-number {
    display: block;
    margin-bottom: 32px;
    font-weight: 700;
    font-size: 14px;
    color: #eccc15;
}

.benefits__title {
    display: block;
    margin: 0;
    margin-bottom: 32px;
    font-weight: 700;
    font-size: 24px;
    color: inherit;
}

.benefits__icon {
    margin-top: auto;
    flex-grow: 2;
    display: flex;
    align-items: flex-end;
}


.custom-gallery__grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.custom-gallery__item a {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    overflow: hidden;

}

.custom-gallery__item a::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background-color: #f4cb8ea6;
    opacity: 0;
    transition: all 0.3s;
    top: 0;
    left: 0;
}

.custom-gallery__item a:hover::after {
    opacity: 1;
}

.custom-gallery__item a:hover img {
    scale: 1.05;
}


/* Стилизация для первого элемента */
.custom-gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Стилизация для второго элемента */
.custom-gallery__item:nth-child(2) {
    grid-column: 3 / span 3;
    grid-row: 1;
}

.custom-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s;
}
.site-logotype {
    transition: all 0.3s;
}

.header-sticky .site-logotype {
    max-width: 75px;
}




@media (max-width: 1199px) {
    .section {
        padding-top: 40px;
        padding-bottom: 35px;
    }

    .hero__image {
        position: initial;
        top: initial;
    }

    .section__grid {
        gap: 32px;
        grid-template-columns: 1fr;
    }

    .hero .section__grid {
        gap: 0;
    }

    .hero .section__col--first {
        order: -1;
    }

    .hero__title {
        font-size: 1.7em !important;
    }

    .site-logotype {
        max-width: 110px !important;
    }

    .section__grid--mod {
        grid-template-columns: repeat(1, 1fr);
    }

    .benefits {
        grid-template-columns: repeat(1, 1fr);
    }

    .benefits__item {
        padding: 0;
        padding-top: 32px;
    }

    .benefits__item::before {
        width: 100%;
        height: 2px;
        left: 0;
        bottom: initial;
        top: 0;
    }

    .custom-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .custom-gallery__item {
        height: 260px;
    }

    /* Стилизация для первого элемента */
    .custom-gallery__item:nth-child(1) {
        grid-column: initial;
        grid-row: initial;
    }

    /* Стилизация для второго элемента */
    .custom-gallery__item:nth-child(2) {
        grid-column: initial;
        grid-row: initial;
    }

}

@media (max-width: 767px) {
    .site-logotype {
        max-width: 95px !important;
    }
}