*{
    font-family: "Josefin Sans", sans-serif;
    margin: 0;
    list-style: none;
    text-decoration: none;
}

[data-aos] {
    pointer-events: auto !important;
  }



@keyframes ani {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

header {
    z-index: 1002 !important;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Josefin Sans", sans-serif;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 8%;
    box-shadow: 0 5px 10px #e6ebf0;
}


/* Скрываем checkbox */
.menu-toggle-checkbox {
    display: none;
}

/* Стили гамбургера */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 10;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: black;
    transition: 0.3s;
}

/* По умолчанию десктоп меню видно, мобайл скрыт */
.desktop-nav {
    display: block;
}

.mobile-nav {
    display: none;
}

header .logo {
    background-image: url(../images/logos/nav_logo.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100px;
    height: 65px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

header .logo:hover {
    transform: scale(1.2);
}

header nav ul li {
    position: relative;
    float: left;
    z-index: 1100;
}

header nav ul li a {
    border: 1px solid #e6ebf0;
    padding: 15px;
    color: black;
    font-size: 20px;
    display: block;
    transition: 0.5s;
    text-decoration: none;
    z-index: 5 !important; 
}

header nav ul li a:hover {
    color: red;
}

nav ul li ul {
    position: absolute;
    left: 0px;
    padding: 0;
    width: 180px;
    background-color: white;
    display: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: 0 5px 10px #e6ebf0;
}

nav ul li ul li {
    width: 100%;
    border: 1px solid rgba(0,0,0,.1);
}

nav ul li:hover > ul {
    display: initial;
}

/* desktop menu */
.desktop-nav {
    display: block;
}

.mobile-nav {
    display: none;
}
/* Language switch button styles */
#languageSwitchButton {
    background: #fff;
    color: #222;
    border: 1.5px solid #222;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    padding: 6px 16px;
    margin: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    display: flex;
    align-items: center;
    height: 36px;
    margin-left: 0;
    margin-right: 0;
}
#languageSwitchButton:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}


/* carousel */
.custom-carousel {
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) ;
    z-index: -2;
}
.carousel-inner img {
    object-fit: cover;
    width: 100%;
    height: auto;
  }
/* centered text (home/gaming & GAMING KEYBOARDS) */
.centered_Home_gaming {
    padding-top: 50px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}
.home_Page {
    color: black;
    font-size: 22px;
    animation: ani 0.5s forwards; 
    text-decoration: none;

}

.home_Page:hover {
    color: red;
}

.centered_text {
    padding-top: 40px;
    padding-bottom: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* text */
    font-size: 60px;

}

.filter-products-flexbox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding-bottom: 50px;

}


.section1, .section2, .section3, .section4, .section5, .section6, .section7, .section8 {
    position: relative;
    display: flex;
    border: 2px solid #880e4f;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 350px;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.section1::after,
.section2::after,
.section3::after,
.section4::after,
.section5::after, 
.section6::after, 
.section7::after, 
.section8::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0); 
    transition: background-color 0.4s ease;
    z-index: 1;
}
.product-name {
    position: absolute;
    z-index: 2;
    color: #c62828;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* чтобы не мешал кликам */
}




/* section hovers */


.section1:hover,
.section2:hover,
.section3:hover,
.section4:hover,
.section5:hover,
.section6:hover,
.section7:hover,
.section8:hover {
    transform: scale(1.05);
}

.section1:hover::after,
.section2:hover::after,
.section3:hover::after,
.section4:hover::after,
.section5:hover::after,
.section6:hover::after,
.section7:hover::after,
.section8:hover::after {
    background-color: rgba(0, 0, 0, 0.3); 
}


.section1:hover::before,
.section2:hover::before,
.section3:hover::before,
.section4:hover::before,
.section5:hover::before,
.section6:hover::before,
.section7:hover::before,
.section8:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    pointer-events: none;
}

.section1{
    background-image: url(../images/main/section1/section1_photo.jpg);
}

.section2{
    background-image: url(../images/main/section1/section2_photo.webp);
}

.section3{
    background-image: url(../images/main/section1/section3_photo.png);
}

.section4{
    background-image: url(../images/main/section1/section4_photo.webp);
}

.section5{
    background-image: url(../images/main/section2/monitors.jpg);
}

.section6{
    background-image: url(../images/main/section2/devices.jpeg);
}

.section7{
    background-image: url(../images/main/section2/chargers.webp);
}

.section8{
    background-image: url(../images/main/section2/other.jpeg);
}

.section1:hover .product-name,
.section2:hover .product-name,
.section3:hover .product-name,
.section4:hover .product-name,
.section5:hover .product-name,
.section6:hover .product-name,
.section7:hover .product-name,
.section8:hover .product-name {
    opacity: 3;
}


/* .black_container {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 300px;
}

.black_title {
    color: white;
    font-size: 24px;
}


.black_container_text {
    padding-top: 40px;
    color: white;
    font-size: 16px;
}
*

.droebit {
    padding-top: 50px;
    color: white;
} */


.main_flexbox1_title {
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}





.main_products_flexbox_1 {
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;

}


.main_products_flexbox_1 a {
    list-style: none;
    text-decoration: none;
}



.product {
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: white;
    height: 350px;
}

.product:hover {
    transform: translateY(-5px);
}


.product_photo1, .product_photo2, .product_photo3, .product_photo4, .product_photo5, .product_photo6, .product_photo7, .product_photo8, .product_photo9, .product_photo10 {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: contain;  
    background-repeat: no-repeat; 
    background-position: center;
    overflow: hidden;
    transition: transform 0.4s ease;
}


.product_photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s ease;
}


.product:hover .product_photo {
    transform: scale(1.05);
}

.product:hover .product_photo::after {
    background-color: rgba(0, 0, 0, 0.3);
}


.product_name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #c62828; 
    padding: 10px;
    text-align: center;
}

.product_desciption {
    font-size: 0.95rem;
    color: #555;
    padding: 0 10px 15px 10px;
    text-align: center;
}



.product_photo1 {
    background-image: url('../images/main-products/first-flexbox/cpu_product.jpg'); 
}

.product_photo2 {
    background-image: url('../images/main-products/first-flexbox/gpu-product.webp'); 
}

.product_photo3 {
    background-image: url('../images/main-products/first-flexbox/ram_product.jpg'); 
}

.product_photo4 {
    background-image: url('../images/main-products/first-flexbox/ssd_product.jpg'); 
}

.product_photo5 {
    background-image: url('../images/main-products/first-flexbox/case_product.avif'); 
}

.product_photo6 {
    background-image: url('../images/main-products/second-flexbox/monitor-product.webp'); 
}

.product_photo7 {
    background-image: url('../images/main-products/second-flexbox/keyboard-product.webp'); 
}

.product_photo8 {
    background-image: url('../images/main-products/second-flexbox/mouse-products.webp'); 
}

.product_photo9 {
    background-image: url('../images/main-products/second-flexbox/headphones-product.jpg'); 
}

.product_photo10 {
    background-image: url('../images/main-products/second-flexbox/microphone-product.jpg'); 
}



.second_boot_carousel {
    padding-top: 60px;
    padding-bottom: 60px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
    position: static;
    top: unset;
    right: unset;
    width: auto;
}

/* build your pc */

.wide-builder-banner {
    width: 100%;
    height: 400px;
    background-image: url('../images/main/build-your-pc/photo-1698440050363-1697e5f0277c.avif'); /* замени на своё изображение */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.banner-overlay {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* глубокий navy */
    display: flex;
    justify-content: center;
    align-items: center;
}


.banner-content {
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 700px;
    animation: ani 1s ease forwards;
}

.banner-content h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.build-btn {
    padding: 14px 30px;
    background-color: #c62828;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.build-btn:hover {
    background-color: #880e4f;
}


.info-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .info-block {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
  }
  
  .info-block h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #222;
  }
  
  .info-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
  }
  
  .info-block a {
    color: #e50914;
    text-decoration: none;
  }
  
  .info-block a:hover {
    text-decoration: underline;
  }
  
  /* Анимация при скролле */
  .info-block.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Адаптив */
  @media (max-width: 600px) {
    .info-block {
      padding: 20px;
    }
  
    .info-block h2 {
      font-size: 1.5rem;
    }
  }


  .info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .info-link {
    text-decoration: none;
    color: inherit;
  }
  
  .info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .info-card h2 {
    margin-bottom: 15px;
    font-size: 1.7rem;
    color: #111;
  }
  
  .info-card p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
  }
  
  /* Hover эффект */
  .info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  
  /* Адаптив */
  @media (max-width: 768px) {
    .info-container {
      grid-template-columns: 1fr;
    }
  }
  


























/* ending */

.flexbox_end {
    padding-top: 200px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-bottom: 50px; 
    z-index: -1;
}

.flexbox_end a {
    text-decoration: none;
    list-style-type: none;
    color: black;
    animation: ani 0.5s forwards;
    z-index: -1;
}


.flexbox_end a:hover {
    color: red;
}
.end_logo {
    background-image: url(../images/logos/DigitalZone.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 350px;
    height: 150px;

}

/* titles */

.support_title {
    font-size: 30px;
}

.company_title {
    font-size: 30px;
}

.other_title {
    font-size: 30px;
}
/* titles */

.support_title {
    font-size: 30px;
}

.company_title {
    font-size: 30px;
}

.other_title {
    font-size: 30px;
}




