/* Верхний блок */
.top-block-section {
    position: relative;
    background-image: url(../content/img/background-main.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;

}

.top-block-section::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--background-gradient-section);
    box-shadow: 0px 0px 8px 0px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(10px);
    top: 0;
    left: 0;
    z-index: -1;
}

.main-wrapper {
    z-index: 999;
}

@media screen and (min-width: 1024px) and (min-height: 760px) {
    .top-block-section {
        min-height: calc(100vh - 90px);
        box-sizing: border-box;
        background-position: center bottom;
    }

    .top-block-section > .main-wrapper {
        min-height: calc(100vh - 90px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .top-block-section .title-text {
        font-size: 44px;
        padding-top: 0;
        margin-bottom: 24px;
    }

    .top-block-section .title-subtext {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .top-block-section .portfolio-btn {
        margin-bottom: 45px;
    }

    .top-block-section .products-block-title {
        font-size: 42px;
        margin-bottom: 34px;
    }

    .top-block-section .products-list-wrapper {
        row-gap: 30px;
        padding-bottom: 40px;
    }

    .top-block-section .top-section-product-btn {
        height: 96px;
        font-size: 20px;
    }
}

.title-text {
    font-weight: 600;
    font-size: 50px;

    padding-top: 150px;
    margin: 0;
    margin-bottom: 40px;
}

.title-subtext {
    font-weight: 500;
    font-size: 33px;
    margin-bottom: 40px;
}

.portfolio-btn {
    width: 146px;
    height: 48px;
    background-color: var(--background-alt-red);
    margin-bottom: 120px;
    border: none;
    color: rgba(255, 255, 255, 1);
    transition: 0.7s;
    padding: 15px
}

.portfolio-btn:hover {
    background-color: transparent;
    border: 2px solid var(--background-alt-red);
    color: var(--background-alt-red);
    transition: 0.7s;
    cursor: pointer;
}

.products-block-title {
    font-weight: 600;
    font-size: 50px;
    margin-bottom: 60px;
}

.products-list-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 120px;
    row-gap: 80px;
    padding-bottom: 120px;
}

.top-section-product-btn {
    width: 300px;
    height: 120px;
    padding: 0;
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    border: none;
    background-color: rgba(255, 255, 255, 1);
    cursor: pointer;
    transition: 0.7S;
    border-radius: 10px;
    box-shadow: 8px 7px 10px black;
}

.top-section-product-btn:hover {
    background-image: linear-gradient(90deg, rgba(105, 0, 0, 1), rgba(255, 0, 0, 1));
    color: white;
    transition: 0.7s;
}

.scroll-reveal {
    opacity: 0;
    transition:
        opacity 1.75s ease,
        transform 1.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.scroll-reveal.from-left {
    transform: translate3d(-56px, 0, 0);
}

.scroll-reveal.from-right {
    transform: translate3d(56px, 0, 0);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* География продаж секция */

.middle-block-section {
    background-image: var(--background-gradient-section);
}

.middle-block-title {
    font-weight: 600;
    font-size: 50px;
    margin: 0;
    padding-top: 55px;
    margin-bottom: 60px;
}

/* Карта продаж */

.rf-map,
.rf-map * {
    box-sizing: border-box;
}

.rf-map {
    position: relative;
    margin: auto;
    padding: 24px;
    border-radius: 28px;
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 242, 248, 0.96)); */
    /* box-shadow: 0 18px 40px rgba(10, 22, 33, 0.12); */
}

.rf-map__canvas,
.rf-map svg {
    width: 100%;
}

.rf-map__canvas {
    position: relative;
    aspect-ratio: 1000 / 600;
    min-height: 320px;
}

svg.rf-map__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    filter: none;
    pointer-events: none;
}

.rf-map__overlay [data-code] {
    pointer-events: auto;
    cursor: pointer;
    vector-effect: non-scaling-stroke;
}

.rf-map svg .rf-map__overlay {
    pointer-events: none;
}

.rf-map__cities {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.rf-map__city {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.rf-map__city-dot {
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: #1d4567;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.rf-map__city-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    color: #0a1621;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rf-map svg .rf-map__cities {
    pointer-events: none;
}

.rf-map svg .rf-map__city-marker-dot {
    fill: #1d4567;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 3;
}

.rf-map svg .rf-map__city-marker-label {
    fill: #0a1621;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2px;
    stroke-linejoin: round;
}

.rf-map svg {
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(10, 22, 33, 0.16));
}

.rf-map .district b {
    position: absolute;
    z-index: 5;
    width: 12px;
    height: 12px;
    background: var(--background-alt-red);
    border-radius: 50%;
    left: 28px;
    top: 32px;
    transition: all 0.3s;
}

.rf-map .district span {
    position: absolute;
    z-index: 5;
    top: 28px;
    left: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: Tahoma, sans-serif;
    line-height: 1;
    color: #0a1621;
}

.rf-map .district {
    display: none;
}

.rf-map.open .district b {
    box-shadow: 0 0 0 6px rgba(254, 133, 91, 0.18);
}

.rf-map.open .district span {
    color: var(--background-alt-red);
}

.rf-map path {
    stroke: #ffffff;
    stroke-width: 1.2;
    stroke-linejoin: round;
}

.rf-map [data-code] {
    fill: rgb(138, 143, 147);
    transition: fill 0.2s ease, opacity 0.2s ease;
}

.rf-map [data-code].region-active {
    fill: #B70101 !important;
}

.rf-map [data-code].region-current {
    fill: #1d4567 !important;
}

.rf-map .district-text {
    display: none;
    position: absolute;
    z-index: 6;
    left: 18px;
    right: 18px;
    top: 64px;
    bottom: 18px;
    padding: 24px;
    overflow: auto;
    color: var(--background-alt-red);
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 20px 36px rgba(10, 22, 33, 0.18);
}

.rf-map .close-district {
    opacity: 0;
    z-index: 6;
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    line-height: 1;
    font-size: 32px;
    color: rgba(105, 0, 0, 1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(10, 22, 33, 0.16);
    cursor: pointer;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rf-map.open .close-district {
    opacity: 1;
    pointer-events: initial;
}

.rf-map .district-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rf-map .district-links div {
    padding: 8px 12px;
    font-size: 13px;
    font-family: Verdana, sans-serif;
    color: #0a1621;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(10, 22, 33, 0.08);
    border-radius: 999px;
    cursor: pointer;
}

@media (min-width:768px){
    .rf-map {
        padding: 30px;
    }

    .rf-map__canvas {
        min-height: 420px;
    }

    .rf-map .district b {
        width: 14px;
        height: 14px;
        left: 34px;
        top: 40px;
    }

    .rf-map .district span {
        top: 36px;
        left: 60px;
        font-size: 20px;
    }

    .rf-map .district-text {
        left: 28px;
        right: 28px;
        top: 84px;
        bottom: 28px;
        font-size: 16px;
    }

    .rf-map .close-district {
        width: 52px;
        height: 52px;
        font-size: 40px;
    }
    
}

.rf-map .district-links {
        display: none;
}
/* Цвета регионов */

.rf-map [data-select="true"] {
    fill: #B70101;
    cursor: pointer;
}

.rf-map [data-hover="true"]:hover {
    fill: #6e0202;
}

/* Альтернатива в цифрах */

.alternative-numbers-block {
    padding-bottom: 120px;
}

.alternative-numbers-list-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 250px;
    row-gap: 80px;
}

.alternative-numbers-item {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
}

.alternative-numbers-item--img {
    width: 100px;
    height: 100px;
    margin-right: 35px;
    object-fit: contain;
}

.alternative-numbers-item--text {
    font-weight: 500;
    font-style: Medium;
    font-size: 33px;
    text-align: right;
    color: rgba(28, 28, 28, 1);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.from-left,
    .scroll-reveal.from-right,
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* Современные системы вентфасадов. Карусель */

.courusel-block {
    padding-bottom: 120px;
}

.courusel-item {
    display: grid;
    grid-template-columns: 3fr 2fr;
    column-gap: 30px;
    width: 100%;
    background-color: #FFFFFF;
}


.courusel-item-img {
    /* padding: 10px 10px 10px 10px; */
    max-width: 100%;
}

.courusel-item-right-side {
    padding: 10px;
}

.courusel-item-title {
    position: relative;
    font-size: 30px;
    padding-left: 30px;
    padding-top: 10px;
    margin: 30px 0;
}

.courusel-item-title::before {
    position: absolute;
    content: "";
    width: 5px;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #B70101;
}

.courusel-item-line-title {
    width: 100%;
    height: 2px;
    background-color: #090808;
    margin-bottom: 30px;
}

.courusel-item-text {
    font-size: 20px;
}

.courusel-item-link {
    display: block;
    margin-top: 30px;
    text-transform: lowercase;
    font-style: italic;
}

.courusel-item-link:hover {
    cursor: pointer;
    color: var(--background-alt-red);
}

/* Слайдер примеров работ */

.swiper {
    text-align: center;
    width: 100%;
    height: 100%; 
    padding-bottom: 100px;
}

.swiper h2 {
    text-align: left;
    padding-left: 150px;
}


.swiper-slide {
    text-align: center;
    font-size: 18px;
    /* background: #444; */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: relative;
}

.swiper-wrapper {
    position: relative;
}

.img-wrapper {
    width: 100%;
}

.img-wrapper::after {
    position: absolute;
    content: "";
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    top: 0;
    left:0;
    z-index: 4;
}

.swiper-button-next {
    background: #34343466;
    backdrop-filter: blur(13px);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    left: 50vw;
    top: 100vh;  
}

@keyframes jumpInfinite {  
0% { 
    margin-top: 0; 
} 
15% {
     margin-top: 10px; 
}  
30% {
     margin-top: 20px; 
    } 
45% {
    margin-top: 30px 
}
60% {
     margin-top: 40px; 
    }  
75% {
     margin-top: 50px; 
    } 
100% {
    margin-top: 0;
} 
} 

.arrow-1 {
    display: none;
}

.swiper-button-next img:hover{
        animation: jumpInfinite 0.8s infinite
}

.swiper-button-next::after {
    font-size: 30px;
    color: white;
    padding: 0;
    margin: 0;
    z-index: -1;
    content: "";
}

.swiper-slide-text {
    position: absolute;
    content: "";
    top: 65vh;
    left: 0;
    right: 0;
    font-size: 60px;
    color: #FFFFFF;
    z-index: 5;
}

.swiper-slide-link:hover {
    cursor: pointer;
    color: var(--background-alt-red);
}

/* Новосной раздел */

.news-block {
    padding-bottom: 150px;
    overflow: hidden;
}

.news-swiper {
    position: relative;
    padding-bottom: 50px;
}

.news-card-item {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 330px;
    height: 250px;
    z-index: 2;
    border-radius: 15px;
}

.news-card-item-backgroud {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.news-card-item-backgroud::before {
    position: absolute;
    content: "";
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 15px;
    z-index: 2;
}

.news-card-item-backgroud img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.news-card-item-inner-wrapper {
    z-index: 3;
    color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    text-align: left;
}

.news-card-item--title {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.news-card-item--text-body {
    font-size: 14px;
    margin-bottom: 45px;
}

.news-card-item-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.news-card-item-btn:hover {
    color: var(--background-alt-red);
    cursor: pointer;
    font-weight: bold;
}
