:root {
    --font-size: 16px;
    --line-height: 1.3;
    --font-family: 'Montserrat', sans-serif;
  
    --gutter: 1.25rem;
    --container: 1400px;
  
    --border-radius: 0px;
    --color-accent: #4759a5;
    --color-black: #000;

    --body-bg: #fff;

    --box-shadow: 1px 1px 10px 0px #ffffff35;
    
  }


a:hover{
    cursor: pointer !important;
}

html {
    font-size: var(--font-size);
}

::-webkit-scrollbar {
    width: 4px;
}
  
::-webkit-scrollbar-track {
    background: #7A7878; 
}
   
::-webkit-scrollbar-thumb {
    background: #fff; 
}
  
::-webkit-scrollbar-thumb:hover {
    background: #7A7878; 
}
  
body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    background-color: var(--body-bg);
    color: var(--body-color);
    position: relative;
    overflow-x: hidden !important;
    margin: 0;
    min-width: 320px;
    color: #fff;
    font-family: var(--font-family);
    margin: 0 auto;

}

.container{
    max-width: var(--container);
    padding: 0 20px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.accent-color{
    color: var(--color-accent);
}
.ttu{
    text-transform: uppercase;
}

.button{
    line-height: 150%;
    color: var(--color-black);
    letter-spacing: -1px;
    font-size: 22px;
    font-weight: bold;
    padding: 11px 10px;
    border-radius: var(--border-radius);
    width: 376px;
    display: block;
    text-align: center;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    background: #41abe5;
    transition: all 0.5s ease;
    color: #fff;
}
.button:hover{
    cursor: pointer;
    background-color: var(--color-accent);
    transition: all 0.5s ease;
}
.button-2{
    margin: 40px auto 0 auto;
    background-color: #41abe5;
    transition: all 0.5s ease;
}
.button-2:hover{
    background: var(--color-accent);
    transition: all 0.5s ease;
}

.visible-mobile{
    display: none;
}


.fair{
    padding: 0 20px;
}

/* header */

.logo{
    max-width: 300px;
}

.header{
    padding: 5px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 0;
    background: transparent;
    transition: background 0.3s ease-in-out, padding 0.3s ease-in-out;
    z-index: 1000;
    width: 100%;
    margin: 0 auto;
    left: 0;
    right: 0;
    background: #fff; 
    box-shadow: 1px 1px 10px 0px #7a7a7a35;
}

.header .nav ul{
    display: flex;
    gap: 50px;
    padding-right: 7px;
    padding-left: 5px;
    align-items: center;
}
.header .nav a{
    color: #000;
    font-size: 17px;
    transition: all 0.5s ease;
    font-weight: 800;
}
.header .nav a:hover{
    color: var(--color-accent);
    transition: all 0.5s ease;
}

.burger{
    position: relative;
    background-color: var(--color-accent);
height: 3px;
    width: 27px;
    border-radius: 40px;
    display: none;
}
.burger:hover{
   cursor: pointer;
}
.burger:before{
    content: '';
    background-color:  var(--color-accent);
height: 3px;
    width: 27px;
    border-radius: 40px;
    top: -6px;
    position: relative;
    display: block;
}
.burger::after{
    content: '';
    background-color:  var(--color-accent);
height: 3px;
    width: 27px;
    border-radius: 40px;
    bottom: -3px;
    position: relative;
    display: block;
}


.hero{
    height: 100vh;
    min-height: 700px;
    position: relative;
    background-image: url('/images/Шафи2/1600-scaled.jpg');

    background-size: cover;
    position: relative;
    background-position: center;
}

.hero::before {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 14.61%, rgba(0, 0, 0, 0) 29.94%), linear-gradient(0deg, rgba(0, 8, 23, 0.6), rgba(0, 8, 23, 0.6));
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero .container{
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 50px;
    flex-direction: column;
    gap: 20px;
}

.left-header{
    display: flex;
    align-items: center;
}


.header a.btn{
    line-height: 150%;
    color: #fff;
    letter-spacing: -1px;
    font-size: 16zpx;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    width: auto;
    display: block;
    text-align: center;
    box-shadow: var(--box-shadow);
    cursor: pointer;
     background: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
}

.header a.btn:hover{
    background: #f9ef36;
    color: var(--color-black);
}

.visible-mobile{
    display: none;
}

.bottom-bar a{
    background: var(--color-accent);
    width: 100%;
    display: block;
    text-align: center;
    padding: 14px;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}
.hero_heading {
    font-weight: 800;
    line-height: 1.1;
    font-size: 60px;
    text-align: center;
    text-transform: uppercase;   
    letter-spacing: -1px;
}
.hero_sub-heading{
    font-weight: 800;
    font-size: 33px;
    text-align: center;
    line-height: 1.1;
    padding-bottom: 35px;
    text-transform: lowercase;
    padding-top: 10px;
}

.hero-items {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    justify-content: center;
}
.hero-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    text-align: center;
}
.hero-item img{
    width: 110px;
}   
.hero-item span{
    font-weight: 700;
    font-size: 17px;
    color: #000;;
    max-width: 200px;
}  
.heading .accent-color{
    background-color: var(--color-accent);
    color: var(--color-black);
    padding: 2px 10px;
    font-weight: 600;
}
.etapu-items{
    display: flex;
    flex-wrap: wrap;
    margin: -0.9px;
    gap: 6px;
}
.etapu-item{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: end;
    min-height: 400px;
    height: 100%;
    padding: 20px 10px;
    color: #ffffff;
    width: 24.5%;
    text-align: center;
}

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

.etapu-item__image div {
    width: 100%;
    height: 100%;
}
.etapu-item__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.etapu-item__image::before {
    transition-duration: 300ms;
    transition-timing-function: ease;
    z-index: 5;
    background: #000817;
    content: "";
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.etapu-item:hover .etapu-item__image::before {
    opacity: 0.6;
}
.etapu-item-text{
    position: relative;
    z-index: 5;
    text-align: center;  
}

.etapu-item-text-block{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.etapu-item-text-block .name{
    font-size: 18px;
    font-weight: 800;
}
.etapu-item-text-block a{
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-top: 10px;
}

.heading{
color: #4759a5;
    font-size: 35px;
    text-align: center;
    font-weight: 800;
    margin-bottom: 60px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.heading span{
    font-weight: 800;
}
.section-pad{
    padding-top: 80px;
    padding-bottom: 44px;
}
.mySwiper1 img{
    height: 500px;
    object-fit: cover;
}
.swiper .swiper-button-next:after, .swiper .swiper-button-prev:after {
    font-size: 15px;
}
.swiper .swiper-button-next, .swiper .swiper-button-prev {
    width: 30px;
    height: 50px;
    background: var(--color-accent);
    color:#fff;
}


.contact{
    background-image: url('/images/Приставні/2200_prystavna-scaled.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 100px;
}
.contact::after{
    z-index: 1;
    background: #000817;
    content: "";
    opacity: 0.7;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.form{
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 40px;
}

form input, form select{
    height: 56px;
    margin-bottom: 15px;

    transition-duration: 300ms;
    transition-timing-function: ease;
    display: block;
    max-width: 100%;
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #e8e8e8;
    background-color: #f9f9f9;
    font-weight: 400;
    font-size: 16px;
    color: #2e2d2d;
    -webkit-appearance: none;
    border-radius: 0px;
    font-weight: 600;
}


form select{
    background-image:
        linear-gradient(45deg, transparent 50%, #444 50%),
        linear-gradient(135deg, #444 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 55%,
        calc(100% - 16px) 55%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

input::placeholder {
    opacity: 1;
    color: #2e2d2d;
  }

form button{
    line-height: 150%;
    color:#fff;
    letter-spacing: -1px;
    font-size: 19px;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    width: auto;
    display: block;
    text-align: center;
    box-shadow: var(--box-shadow);
    cursor: pointer;
background: #41abe5;
    font-weight: 800;
    width: 100%;
    height: 60px;
    transition: all 0.5s ease;
}
form button:hover{
    background-color: #4759a5;
    transition: all 0.5s ease;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 стовпці по замовчуванню */
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    border: 3px solid var(--color-accent);
    height: 420px;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    max-width: 900px;
    margin: 0 auto;
    display: block;
}

.video-thumbnail>img {
    width: 100%;
    border: 3px solid var(--color-accent);
    border-radius: 8px;
    height: 550px;
    object-fit: cover;
}
.video-thumbnail div>img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #fff;
    display: block;
     
}

.video-thumbnail:hover .play-icon img{
    transform: scale(1.2);
    transition: transform 0.3s ease-in-out;
}


footer{
    margin-top: 50px;
    padding: 30px 0;
    background: #fff;
}
.footer{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.footer img{
max-width: 250px;
}

.footer *{
    color: #000;
    font-size: 20px;
    font-weight: 500;

}

.swiper-slide img{
    border: 3px solid var(--color-accent);
    min-height: 380px;
    object-fit: cover;
    border-radius: 6px;
}




.popup-overlay .d{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Вікно попапу */
.open-p{
    display: flex;
    transition: all 2s ease;
}
.popup {
    border-radius: 10px;
    max-width: 528px;
    text-align: center;
    position: relative;
    transition: all 2sease;
    background: var(--color-accent);
    padding: 50px;
    width: 100%;
    border-radius: 8px;
    padding-bottom: 20px;
}

.popup h2{
    font-size: 28px;
    padding-bottom: 30px;
    font-weight: 800;
}

.popup-close {
    position: absolute;
    top: -8px;
    right: 7px;
    cursor: pointer;
    font-size: 41px;
    color: #ffffff;
}

form hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    height: 2px;
    margin: 10px 0;
    background: #ffffff75;
}

.etapu-item .button {
    position: absolute;
    width: 100%;
    bottom: -42px;
    font-size: 15px;
    max-width: none;
}