* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;

}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

html{
    margin-top: 0 !important;
}

@font-face {
    font-family: 'Eurostile Regular';
    src: url('/wp-content/themes/albina/fonts/Eurostile-Reg.otf') format('opentype');

}

@font-face {
    font-family: 'Eurostile Medium'; 
    src: url('/wp-content/themes/albina/fonts/Eurostile-Med.otf') format('opentype');
}

@font-face {
    font-family: 'Eurostile Bold';
    src: url('/wp-content/themes/albina/fonts/Eurostile-Bol.otf') format('opentype');
}

@font-face {
    font-family: 'Eurostile Round Regular';
    src: url('/wp-content/themes/albina/fonts/EurostileRoundRegular.ttf') format('truetype');
}

@font-face {
    font-family: 'Eurostile Extended Regular';
    src: url('/wp-content/themes/albina/fonts/EurostileExt-Reg.otf') format('opentype');
}

@font-face {
    font-family: 'Eurostile Extended Medium';
    src: url('/wp-content/themes/albina/fonts/EurostileExt-Med.otf') format('opentype');
}

@font-face {
    font-family: 'Eurostile Extended Black';
    src: url('/wp-content/themes/albina/fonts/EurostileExt-Bla.otf') format('opentype');
}

@font-face {
    font-family: 'Eurostile Round Extended Medium';
    src: url('/wp-content/themes/albina/fonts/eurostile-round-extended-medium.otf') format('opentype');
}

@font-face {
    font-family: 'Eurostile Ext';
    src: url('/wp-content/themes/albina/fonts/EurostileExt-Reg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ===== ПРИМЕНЕНИЕ ШРИФТОВ К ЭЛЕМЕНТАМ САЙТА ===== */

body, .be-wrapper, .mcb-wrap, .column, .widget, p, a, span, li, .textwidget {
    font-family: 'Eurostile Round Regular', sans-serif;
    font-weight: 400;
    font-size: 2vh;
}

h1, h2, h3, h4, h5, h6, .heading, .title {
    font-family: 'Eurostile', sans-serif;
    font-weight: 700;
}

.super-heading, .hero-title, .main-heading {
    font-family: 'Eurostile Extended', sans-serif;
    font-weight: 900;
}

.accent-text, .subheading, .highlight {
    font-family: 'Eurostile Round Extended', sans-serif;
    font-weight: 500;
}

.main-container{
    margin-left: 10vw;
    margin-right: 10vw;
}

.under-logo {
    position: relative;
    height: 60px;
    width: 100%;
}

.rect-1{
    position: relative;
    overflow: visible;
    display: block;
    top: 0;
    left: 0;
}

.menu-wrapper{
    position: relative;
    height: 60px;
    width: 100%;
    margin-left: 20vw;
    align-items: center;
}



.rect-red-mobile{
    display: none;
}

.menu-frame, .rect-1 {
    position: absolute;
    width: 100%;
    height: 100%;
}

.menu-header {
    position: relative;
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 15px 0;
    padding-left: 70px;
    color: #333;
    z-index: 1;
    height: 100%;
}

.menu-header li {
    cursor: pointer;
}

.menu-header li:hover {
    text-decoration: underline; 
}

.main-logo{
    max-width: 30vw;
    width: 100%;
    margin-top: 4vh;
    margin-bottom: 4vh;
}

.polygon-gradient-1, .polygon-gradient-2{
    display: none   ;
}

/*----------БЛОК 1-----------*/

.block-1{
    display: flex;
    margin-top: 7vh;
}

.block-1-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block-1-text{
    height: 45vh;
    width:25vw;
    display: flex;
    align-items: left;
    flex-direction: column;
    justify-content: center;
}

.svg-wrapper svg {
    width: 75vw;
    height: 93vh;
    display: block;

}

.block-red-stroke {
    display: flex;
    flex-direction: column;  /* Вертикальный flex */
    justify-content: center;  /* Центрирование по вертикали */
    align-items: center;      /* Центрирование по горизонтали */
    text-align: center;       /* Центрирование текста */
}

.block-1-left-h1 {
    font-family: 'Eurostile Extended Black', sans-serif;
    font-weight: 700;
    margin-bottom: 2vh;
    font-size: 2em;
}

.block-1-left-p {
    margin-bottom: 5vh;
}

.block-1-text button {
    background-color: #EE3524;
    border: none;
    color: white;
    padding: 1.5vh 2.8vw;
    cursor: pointer;
    font-family: 'Eurostile Round Regular', sans-serif;
    font-size: 1em;

}

.block-red-stroke button {
    /* Форма и цвет */
    background-color: #EE3524;
    border: none;
    border-radius: 0;
    
    /* Текст */
    color: white;
    font-family: 'Eurostile Extended', 'Arial', sans-serif;
    font-size: 0.9em;
    text-transform: uppercase; /* Если нужны заглавные буквы */
    
    /* Отступы внутри кнопки */
    padding: 1.5vh 2.8vw;
    
    /* Дополнительно */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Эффект при наведении (опционально) */
.block-red-stroke button:hover {
    background-color: #4D5361;
}

/* Эффект при нажатии (опционально) */
.block-red-stroke button:active {
    transform: scale(0.98);
}


.block-1-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 42%;
    overflow: hidden;
    pointer-events: none;
}

.right-svg {
    width: 100%;
    height: 100%;
    display: block;
    clip-path: polygon(32% 25%, 100% 25%, 100% 89%, 0 89%);
    background-image: url('https://stalenergo.ru/wp-content/uploads/2026/05/1_small.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

.mobile-menu{
    display: none;
}

.red-polygon-wrapper{
    display: none;
}

.two-red-polygons-up, .two-red-polygons-dowm{
    display: none;;
}
.polygon-gradient-grey-1, .polygon-gradient-grey-2{
    display: none;
}



/*-------------------------------------БЛОК 2-------------------------------------*/

.block-2{
    margin-top: 18vh;
    background-color: #4D5361;
    width: 100%;
    position: absolute;
    left:0;
    max-width: 100vw;
    overflow: visible;

}

.block-2-text{
    margin-left: 10vw;
    margin-right: 10vw;
    margin-top: ;
}

.h1-h2 h2{
    font-family: 'Eurostile Round Regular';
    font-size: 1.2em;
}

.h1-h2 h1{
    font-family: 'Eurostile Extended Black';
    font-size: 1.8em;
}

.block-2 .h1-h2{
    color: #FFFFFF;
}


/*.rect-1{
    position: relative;
    overflow: visible;
    display: block;
    top: 0;
    left: 0;
}*/
















/*-------------------------------------АДАПТИВЫ------------------------------------*/


/* Планшетная версия (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .main-container {
        margin-left: 5vw;
        margin-right: 5vw;
    }
    
    .main-logo {
        max-width: 40vw;
    }
    
    
    .menu-header {
        gap: 1vw;
        flex-wrap: wrap;
    }
       
    
    .block-1-right {
        left: 45%;
    }
}

/* Мобильная версия (до 768px) */
@media screen and (max-width: 768px) {
    /* Основные контейнеры */
    .main-container {
        margin-left: 5vw;
        margin-right: 5vw;
        /*margin-top: 10vh;*/
    }
    
    .main-logo {
        max-width: 60vw;
        margin-top: 4vh;
        margin-bottom: 4vh;
        display: block;
    }
    .menu-wrapper {
        display: none;
    }

    .under-logo .rect-1{
        display: none;
    }

    .rect-red-mobile{
        display: block;
        position: absolute;
        overflow: visible;
        top: 0;
        left: 0;
    }

    .mobile-menu {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        bottom: 124%;
    }

    .rect-greyStroke-mobile{
        overflow: visible;
    }
    
    .burger-menu {
        position: relative;
        right: 10vw;
    }
    
    .burger-line {
        width: 7vw;
        height: 0.3vh;
        background: #808080;
        margin: 0.5vh 0;
        transition: 0.3s;
    }

    .two-red-polygons-up{
        display: block;
    }

    .two-grey-polygons-2{
        display: block;
    }


    .polygon-gradient-red-1,
    .polygon-gradient-red-2, 
    .polygon-gradient-red-3, 
    .polygon-gradient-red-4 {
        display: block;
        overflow: visible;
    }
    
    .polygon-gradient-red-2{
        position: relative;
        bottom: 2vh;
        right: 15vw;
    }

    .block-1{
        margin-top: 0;;
        justify-content: center;
        align-items: center;
        height: 660px;
        
    }
    
    .two-grey-polygons-1{
        display: flex;
        position: absolute;
        width: 100%;
        max-width: 40vw;
        left: 57vw;
        top: 27vh;
    }

    .two-grey-polygons-1 svg {
        display: block; /* убирает baseline-отступ */
    }


    .polygon-gradient-grey-1, 
    .polygon-gradient-grey-2,
    .polygon-gradient-grey-3,
    .polygon-gradient-grey-4{
        display: block;
        overflow: visible;
    }

    .polygon-gradient-grey-2{
        margin-left: -18vw;
    }


    /* Текст выравниваем по центру */
    .block-1-text {
        width: 100%;
        max-width: 800px;
        text-align: center;
        align-items: center;
        height: auto;
        padding: 20px 0;
    }
    
    .block-1-left-h1 {
        font-size: 1.5em;
        text-align: center;
    }

    
    .block-1-left-p {
        font-size: 1.2em;
        text-align: center;
        padding: 0 10px;
    }
    
    /* Уменьшаем паддинг кнопки */
    .block-1-text button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .two-grey-polygons-down{
        display: flex;
        position: absolute;
        width: 100%;
        bottom: 0;
        left: 30vw;
    }


    .two-grey-polygons-2{
        display: flex;
        position: absolute;
        width: 100%;
        max-width: 60vw;
        top: 77.8vh;
        right: 60vw
    }
    .polygon-gradient-grey-4{
        position: absolute;
        bottom: 3vh;
        left: 20vw;
        height: 100%;
    }

    .two-grey-polygons-2 .polygon-gradient-grey-2{
        margin-left: -25vw;
    }
    
    /* Скрываем ненужные элементы */
    .svg-wrapper,
    .block-red-stroke,
    .block-1-right,
    .rect-1 [fill="white"], 
    .rect-1 [fill="#4D5361"]{
        display: none;
    }

    /* Стили для мобильного меню */
    .mobile-menu-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        z-index: 999;
        transition: 0.3s;
        padding: 80px 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .mobile-menu-list.active {
        right: 0;
    }

    .mobile-menu-list ul {
        list-style: none;
    }

    .mobile-menu-list li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }
}

