/*
Theme Name: NRG
Author: Dmitry Borovitsky
Version: 1.0
Description: NRG Theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    color: #333;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

* {
    font-family: inherit;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Устранение проблем с отступами и line-height для изображений */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Убирает лишний отступ под изображением */
    line-height: 0; /* Убирает лишнюю высоту строки, если она была */
    vertical-align: middle; /* Обеспечивает правильное выравнивание, хотя display: block важнее */
}

h1 {
	letter-spacing:1px;
}

a {
	color:#1D2252;
	text-decoration:none;
}

a:hover {
	opacity:.8;
}

.italic {
	font-style: italic;
}

.forminator-edit-module {
	display:none;
}


#header {
	padding:10px 0;
	box-shadow:0 15px 15px rgba(0,0,0,0.15);
	position:sticky;
	z-index:10000;
	top: 0;
	background-color:#ffffff;
	font-size:0.9em;
} 

#header_mob {
	padding:10px 0;
	box-shadow:0 15px 15px rgba(0,0,0,0.15);
	position:sticky;
	z-index:10000;
	top: 0;
	background-color:rgba(255,255,255,0.9);
	backdrop-filter:blur(15px);
	font-size:0.9em;
	transition: transform 0.3s ease-in-out;

} 

#header_mob.header-hidden {
    transform: translateY(-100%);
}

.hexagon-container-30 {
    display: inline-block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.866;
	margin:0 0 80px 0;
}   


.hexagon-container {
    display: inline-block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.866;
}

.hexagon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    overflow: hidden;
}

.hexagon-30 {
    transform: rotate(30deg);
	margin:50px 0;
	
}

.hexagon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 15px 15px rgba(0,0,0,0.35);
    z-index: 1;
    pointer-events: none;
}







.hexagon-30 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    overflow: hidden;
    transform: rotate(30deg);
}

.hexagon-30 img {
    width: 140%; /* Увеличиваем ширину чтобы компенсировать поворот */
    height: 140%; /* Увеличиваем высоту чтобы компенсировать поворот */
    object-fit: cover;
    transform: rotate(-30deg);
    transform-origin: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
}




.hexagon-30::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0px 10px 10px rgba(0,0,0,0.15);
    z-index: 1;
    transform-origin: center center;
}







.text_gr {
	color:#B4AAB3;
	font-weight:600;
}



.pleft {padding-left: 40px}
.pright {padding-right: 40px}

.pleft.pright {
	max-width:1600px;
	margin:0 auto;
}
		

 .wrap1,.wrap2,.wrap3 {
        display: block;
        clear: both
    }

    .wrap1 {
        height: 10px
    }

    .wrap2 {
        height: 30px
    }

    .wrap3 {
        height: 60px
    }

    .desktoponly {
        display: block!important
    }

    .mobonly {
        display: none
    }


    .logo img {
        width: auto;
        height: 80px
    }

    .logofooter img {
        width: 150px;
        height: auto
    }
	
.menu_item {
	text-transform:uppercase;
	margin-right:15px;
	font-weight:700;
	letter-spacing:.5px;
}


 .my_center {
        display: flex;
        align-items: center
    }
	
  .center_absolute {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%)
    }
	
.flex2 {
	width:calc(100% / 2);
}

.xclip {
	overflow-x:clip;
}

.flex3 {
	width:calc(100% / 3);
}

.flex5 img {
	width:8vw;
}
	
.flex4 {
	width:calc(100% / 4);
}

.flexbox {
        display: flex;
    }
	
.gap20 {
	gap:20px;
}

.gap30 {
	gap:5vw;
}

.fb_wrap {
	flex-wrap: wrap
}

	.fb_end {
		align-content: flex-end;
	}

    .fb_vertical_center {
        align-items: center
    }

    .fb_center {
        justify-content: center
    }

    .fb_between {
        justify-content: space-between
    }

    .fb_right {
        justify-content: right;
    }
	
	.fb_middle {align-items:center;}
	
	:target {
    scroll-margin-top: 80px;
}
	
.img_round {
	border-radius: 50%;
	box-shadow: inset 0 15px 15px rgb(0,0,0,0.2);
	overflow: hidden;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background-repeat: no-repeat!important;
	background-position:center!important;
	background-size: cover!important;
	background-size: 100%;
	max-width: 60vw;
	margin:0 auto;
}

.around_contact_form {
	max-width:800px;
	border-radius:25px;
	background-color:rgba(255,255,255,0.3);
	backdrop-filter: blur(5px);
	padding:35px 25px 1px 25px;
	margin:0 auto;
}

.hero_contact {
	background-image: url(https://nrg-spedition.by/wp-content/themes/nrg/img/contact_form.jpg), none;
    background-position: 100% 0%, 50% 27%;
    background-size: cover;
    background-repeat: no-repeat, repeat;
    width: 100%;
	min-height:600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
	color:#ffffff;
}

.hero_contact::before {
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 34, 82, 0.7);
    z-index: 1;
}

.hero1 {
	background-image: url(https://nrg-spedition.by/wp-content/themes/nrg/img/hero1.jpg), none;
    background-position: 100% 0%, 50% 27%;
    background-size: cover;
    background-repeat: no-repeat, repeat;
    width: 100%;
	min-height:600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
	color:#ffffff;
}
        
/* Затемнение фона для лучшей читаемости текста */
.hero1::before {
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 34, 82, 0.7);
    z-index: 1;
}

.hero-content {
	z-index:3;
	text-align:center;
	width: 100%;
}

.hero-content h1 {
	font-size: 3.5rem;
	margin: 0;
	line-height: 115%;
}


.title {
	font-size:1.8em;
	font-weight:700;
	letter-spacing:0.5px;
	text-transform:uppercase;
	line-height:115%;
}
        
.sub_title {
	font-size:1.2em;
	line-height: 115%;

}

.title_mini {
	font-size:1.2em;
	line-height: 115%;
	font-weight:700;
	text-transform:uppercase;
	margin:5px 0;
}

.section_gr {
	background-color:#f0eeef;
}


.grayscale-map {
    width: 100%;
    min-height: 600px;
	height:60vh;
    filter: grayscale(100%);
}

.f_logo {
	width:10vw;
	max-width:120px;
}

.f_logo_opacity {
	opacity:0.1;
}

#footer {
	color:#ffffff;
	background-color:#1D2252;
}

#footer a {
	color:#ffffff;
	text-decoration:none;
}

#footer a:hover {
	opacity:0.8;
}

.f_title {
	text-transform:uppercase;
	font-weight:700;
}


.road-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.road-track {
    display: flex;
    width: 400%; /* Увеличиваем ширину */
    animation: roadMove 10s linear infinite;
}

.road-piece {
    width: 50.5vw; /* Чуть больше 50% */
    height: auto;
    flex-shrink: 0;
    margin-right: -2px; /* Компенсируем перекрытие */
}

@keyframes roadMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50vw);
    }
}


a .indigo {
	text-decoration:none;
	padding: 7px 10px;
	border-radius:1000px;
	background-color:#B4AAB3;
	color:#fff;
	text-transform:uppercase;
	font-size: 1em;
	text-decoration:none;
	display:inline-block;
	line-height:100%;
	font-weight: 600;
}


/* Правый треугольник */
.indigo.btn::after {
    border-color: transparent transparent transparent #1D2252;
}


.btn {
    --triangle-height: 40px; /* Высота кнопки */
    --triangle-width: calc(var(--triangle-height) / 2); /* Ширина треугольников */
    
    position: relative;
    display: inline-block;
    padding: 12px 10px; /* padding-top + padding-bottom = --triangle-height - line-height */
    background: #ffffff;
    color: #1D2252;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
	line-height:100%;
	letter-spacing:1px;
    height: var(--triangle-height);
    box-sizing: border-box;
	opacity:0.9;
	font-size:16px;
}

.btn::before,
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Левый треугольник */
.btn::before {
    left: 0;
    border-width: calc(var(--triangle-height) / 2) calc(var(--triangle-height) / 2) calc(var(--triangle-height) / 2) 0;
    border-color: transparent #ffffff transparent transparent;
    transform: translateX(-100%);
}

/* Правый треугольник */
.btn::after {
    right: 0;
    border-width: calc(var(--triangle-height) / 2) 0 calc(var(--triangle-height) / 2) calc(var(--triangle-height) / 2);
    border-color: transparent transparent transparent #ffffff;
    transform: translateX(100%);
}

/* Эффект при наведении */
.btn:hover {
    opacity: 1;
}








.numbs {
    --height: 80px;
    --triangle-size: calc(var(--height) / 2);
    
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 0;
    text-align: center;
    min-width: calc(100% / 5 - 80px);
    height: var(--height);
    box-sizing: border-box;
	margin:0 40px;
	font-style:italic;
}

.numbs::before,
.numbs::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.numbs::before {
    left: 0;
    border-width: var(--triangle-size) var(--triangle-size) var(--triangle-size) 0;
    border-color: transparent rgba(255, 255, 255, 0.15) transparent transparent;
    transform: translateX(-100%);
}

.numbs::after {
    right: 0;
    border-width: var(--triangle-size) 0 var(--triangle-size) var(--triangle-size);
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.15);
    transform: translateX(100%);
}

.count {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1;
}

.numbs div:last-child {
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1.2;
}




.icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 25px;
    white-space: nowrap;
    line-height: 1;
    padding: 5px 0;
	font-weight:600;
}

.icon::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.icon.pin::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/pin.svg');
}

.icon.time::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/time.svg');
}

.icon.mail::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/mail.svg');
}

.icon.phone::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/phone.svg');
}

.icon.mobile::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/mobile.svg');
}

.icon.agent::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/agent.svg');
}

.icon.dog::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/dog.svg');
}

.icon.request::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/request.svg');
}

/* Первому элементу убираем отступ слева */
.icon:first-child, .around_agent .icon {
    margin-left: 0;
}

/* Конкретные иконки */
.icon.pin::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/pin.svg');
}

.icon.time::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/time.svg');
}

.icon.mail::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/mail.svg');
}

.icon.phone::before {
    background-image: url('https://nrg-spedition.by/wp-content/themes/nrg/img/phone.svg');
}

.menu_item {
	display:inline-block;
}



.around_agent {
	border-radius:20px;
	box-shadow:0 15px 15px rgba(0,0,0,0.15);
	padding:20px;
}

.around_agent .icon a {
	text-decoration:none;
	padding:5px 10px;
	border-radius:1000px;
	background-color:#B4AAB3;
	color:#fff;
	text-transform:uppercase;
}



.desktop_only {display:block;}
.mob_only {display:none;}

.hide {
        visibility: hidden;
        opacity: 1;
        transition: visibility 0s,opacity 0.5s linear
    }

    #burger,#burger2 {
        width: 36px;
        height: 28px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        cursor: pointer;
        margin: auto 0;
        transform: scale(.8,.8)
    }

    #overlaymenu a {
        color: #fff
    }

    #overlaymenu {
        z-index: 8000;
        position: fixed;
        top: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        background-color: #3a2c7d;
        transition: 0.5s;
        transform: translateY(0%)
    }

    #overlaymenu.hide {
        transform: translateY(-100%)
    }

    .burger__item1,.burger__item2,.burger__item3 {
        height: 3px;
        width: 100%;
        background-color: #fff;
        transition: 0.5s
    }

    .change .burger__item1 {
        -webkit-transform: rotate(-405deg) translate(-5px,10px);
        transform: rotate(-45deg) translate(-8px,10px)
    }

    .change .burger__item2 {
        opacity: 0;
        width: 0%
    }

    .change .burger__item3 {
        -webkit-transform: rotate(405deg) translate(-5px,10px);
        transform: rotate(45deg) translate(-8px,-10px)
    }


/* Секция для мобильных устройств */
@media screen and (max-width: 980px) {
    /* Общие мобильные стили */
    body {
        font-size: 14px;
    }
	
	 .road-track {
        animation-duration: 12s; /* Быстрее на мобильных */
    }
    
    .road-piece {
        width: 100vw; /* На мобильных каждый элемент занимает полную ширину */
    }
    
    @keyframes roadMove {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100vw); /* Сдвигаем на полную ширину вьюпорта */
        }
    }
	
	#footer, #footer .flex3 {
		text-align:center!important;
	}
	
	#footer img {
		margin:0 auto;
	}
	
	#footer {
		padding:30px 0;
	}
	
	
	.hexagon::before {

    box-shadow: none;

}
	
	
	
	.icon {
    gap: 6px;
    margin-left: 0px;
    padding: 0;
}
	
	    .wrap2 {
        height: 15px
    }
	
		    .wrap3 {
        height: 30px
    }
	
	.hero-content h1 {
	font-size: 2.8rem;
}
	
	.pleft {padding-left: 20px}
.pright {padding-right: 20px}
	
	.title {
	font-size:1.5em;}
	
.flex5 img {
	width:15vw;
}
	
	.img_round {
	border-radius: 0px;
	width: 100%;
	max-width: 100vw;
}
	
	.mob_gap30 {
		gap:15vw;
	}
	
.hexagon-container {
    width: 70%;
}
	
	.numbs {

    min-width: calc(60%);
}
	
	.desktop_only {display:none;}
	.mob_only {display:block;}
	
	.mob_wrap {
		flex-wrap:wrap;
	}
	
	.rev {
		flex-direction: column-reverse;
	}
	
	.flex3, .flex2, .flex4, .flex5 {
		width:100%;
	}

    /* Пример: стили для навигации на мобильных устройствах */
    .main-navigation {
        /* Ваши стили для мобильной навигации */
    }
}



