.hidden {
    display: none !important;
}

.header {
    margin: 0 auto;
    background-color: #1E1E1E;
}

.nav {
    padding: 23px 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list {
    font-weight: 500;
    font-size: 17px;
    line-height: 20px;
    display: flex;
    gap: 25px;
}

.nav-list a {
    color: #FFFFFF;
}

.one-screen {
    position: relative;
    margin-top: 2px;
    height: 685px;
    overflow: hidden;
}

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

.text-block {
    position: absolute;
    top: 212px;
    left: 825px;

}

.text-block h1 {
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
}

.text-block p {
    font-weight: 400;
    font-size: 20px;
    margin-top: 30px;
}

.text-block h1, .text-block p {
    color: #FFFFFF;
}

.btn {
    display: inline-block;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    background-color: transparent;
    border: 1px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px; 
}

.btn:hover {
    color: #FFFFFF;
    background-color: #FFCC02;
    border: 1px solid #FFCC02;
}

.second-screen img {
width: 528px;
height: 661px;
}

.second-screen {
  display: flex;
    }

.text-block-2 {
    margin-top: 65px;
    margin-left: 26px;
}

.text-block-2 h1{
    font-size: 32px;
    font-weight: 500;
    border-bottom: 2px solid #1E1E1E;
    padding-bottom: 20px;
    margin-bottom: 60px;
    margin-right: 65px;
    }

.text-block-2 p{
    font-size: 18px;
    font-weight: 400;;
    margin-top: 50px;
    margin-right: 65px;
    }

.btn-1 {
    display: inline-block;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    background-color: #1E1E1E;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 50px; 
    border: none; 
    outline: none;
}

.btn-1:hover {
    color: #FFFFFF;
    background-color: #FFCC02;
    outline: none;
}

.third-screen {
    background-color: #F5F5F5;
    height: 722px;
    display: flex;
}

.third-screen img {
    width: 368px;
    height: 620px;
    margin-top: 70px;
    margin-left: 65px;
}

.text-block-3 {
    margin-left: 25px;
    margin-right: 65px;
}

.text-block-3 h1 {
    font-size: 32px;
    font-weight: 500;
    margin-top: 70px;
}


.list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 10px;
    margin-top: 50px;
    padding: 0;
    border-bottom: 2px solid #1E1E1E;
}

.list li {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.list li a {
    color: #000;
    display: inline-block;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s, padding 0.3s;
    width: 100%;
    text-align: center;
    white-space: nowrap; 
}

.list li.selected a {
    background-color: #1E1E1E; 
    color: #FFFFFF;
    padding: 15px;
    display: inline-block;
    width: 100%;
}

.description {
    min-height: 135px;
}

.description h1 {
    margin-top: 30px; 
    font-size: 32px;
    font-weight: 600;
}

.description p {
    margin-top: 30px; 
    font-size: 18px;
    font-weight: 400;
}

/* Fourth-screen */
.fourth-screen {
    padding: 65px;
    background-color: #f8f9fb;
}

.tex-block-4 h1 {
    font-size: 32px;
    font-weight: 500;
    color: #2d3b4f;
}

.tex-block-4 p {
    font-size: 18px;
    color: #4a4a4a;
    margin-top: 20px;
}

.metall-block {
    margin-top: 55px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metall-one {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border: 1px solid #e2e3e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.metall-one:hover {
    transform: translateY(-5px);
}

.metall-one img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.metall-text {
    max-width: calc(100% - 55px);
}

.metall-text h1 {
    font-size: 18px;
    color: #2d3b4f;
    margin: 0 0 10px;
    border-bottom: 1px solid #e2e3e5;
    padding-bottom: 5px;
}

.metall-text p {
    font-size: 14px;
    color: #4a4a4a;
    margin: 0;
}

/* Спеціальне форматування для останніх двох блоків */
.metall-one:nth-child(7),
.metall-one:nth-child(8) {
    grid-column: span 1;
}


.contact-screen {
    display: flex;
}

.contact-screen img {
 width: 310px;
 height: 500px;
}

.contact-screen-1 {
    display: flex;
    width: 850px;
    background-color: #616161;
}

.text-block-5 {
    margin-top: 30px;
    margin-left: 100px;
}

.text-block-5 h1 {
    font-size: 32px;
    font-weight: 400;
    color: #FFFFFF;
}

.styled-form {
    margin-top: 30px;
}

.styled-form {
    width: 375px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

input[type="text"],
input[type="tel"],
textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ffffff;
    color: #ffffff; 
    padding: 10px 5px;
    font-size: 16px;
    outline: none; 
}

textarea {
    border: 1px solid #ffffff; 
    resize: none; 
}

input::placeholder,
textarea::placeholder {
    color: #ffffff; 
}

button {
    display: inline-block;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    background-color: transparent; 
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px; 
    border: 1px solid #ffffff;
    outline: none;
}

button:hover {
    background-color: #FFCC02;
    color: #ffffff;
    border: none;
}

.contact-screen-2 {
    margin-top: 35px;
    margin-left: 55px;
    max-width: 400px;

}

.contact-screen-2 h1 {
    font-size: 32px;
    font-weight: 500;
}

.text-block-contact {
    margin-top: 30px;
}

.text-block-contact p{
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

.logo {
    margin-top: 30px;
}

.logo img {
    width: 48px;
    height: 48px;
    margin-right: 15px;
}

.footer {
    background-color: #1E1E1E;
    display: flex;
    height: 385px;
    position: relative;
}

.footer-container {
   padding-top: 40px;
   padding-left: 65px;
}

.nav-list-1 {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    display: flex;
    gap: 25px;
    margin-top: 35px;
    white-space: nowrap;
}

.nav-list-1 a {
    color: #FFFFFF;
}

.footer-info {
margin-top: 45px;
}


.footer-info p {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.footer-info-two {
margin-top: 5px
}

.footer-contacts p{
    color: #fff;
    font-size: 17px;
    font-weight: 400;
}

.footer-contacts {
    margin-left: 350px;
    margin-top: 40px;
}

.footer-copyright {
    color: #fff;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-socials p {
    margin-top: 105px;
    font-size: 14px;
    text-align: left;
}

.footer-contacts-number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-left: -10px;
}

.social-icons a {
    margin: 0 10px;
}

.footer-copyright {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.footer-copyright p{
    font-size: 14px;
}

.burger-menu {
    display: none;
  }

  .show-more {
    display: none;
  }
  
  #back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    border: none;
    border-radius: 50%; /* Робимо кнопку круглою */
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 0; /* Прибираємо внутрішні відступи */
    opacity: 0.8;
}

.slider-up {
    width: 60px; /* Фіксована ширина SVG */
    height: 60px; /* Фіксована висота SVG */
    object-fit: contain; /* Забезпечує, що зображення не деформується */
}

#back-to-top:hover {
    opacity: 1; /* Полная непрозрачность при наведении */
}




  @media (max-width: 599px) {
    .nav-list {
      display: none;
      position: absolute;
      top: 65px;
      right: 0;
      background-color: #333;
      flex-direction: column;
      width: 100%;
      padding: 15px;
      z-index: 1000
    }
  
    .nav-list li {
      margin: 5px 0;
    }

    .nav img {
        width: 180px;
        margin-left: -35px;
    }
  
    .burger-menu {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      width: 30px;
      height: 25px;
      cursor: pointer;
    }
  
    .burger-line {
      width: 100%;
      height: 3px;
      background-color: white;
    }
  
    .nav-list.active {
      display: flex;
    }

    .one-screen {
        position: relative;
        margin-top: 1px;
        height: 550px;
        overflow: hidden;
    }
    
    .one-screen img {
        width: 100%; 
        height: 100%; 
        object-fit: cover;
    }
    
    .text-block {
        position: absolute;
        top: 155px;
        left: 25px;
    
    }
    
    .text-block h1 {
        font-weight: 700;
        font-size: 38px;
        line-height: 1;
    }
    
    .text-block p {
        font-weight: 400;
        font-size: 16px;
        margin-top: 5px;
    }
    
    .text-block h1, .text-block p {
        color: #FFFFFF;
    }
    
    .btn {
        display: inline-block;
        padding: 20px 40px;
        font-size: 16px;
        font-weight: 500;
        text-align: center;
        text-decoration: none;
        color: #FFFFFF;
        background-color: transparent;
        border: 1px solid #FFFFFF;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 30px; 
    }
    
    .btn:hover {
        color: #FFFFFF;
        background-color: #FFCC02;
        border: 1px solid #FFCC02;
    }

    .second-screen img {
        display: none;
        width: 550px;
        height: 300px;
        margin-top: 10px;
        margin-left: 25px;
        border-radius: 15px;
        }
        
        .second-screen {
          display: flex;
            }
        
        .text-block-2 {
            margin-top: 25px;
            margin-left: 25px;
        }
        
        .text-block-2 h1{
            font-size: 25px;
            font-weight: 500;
            border-bottom: 1px solid #1E1E1E;
            padding-bottom: 20px;
            margin-bottom: 25px;
            margin-right: 25px;
            }
        
        .text-block-2 p{
            font-size: 16px;
            font-weight: 400;
            margin-top: 15px;
            margin-right: 15px;
            }
        
        .btn-1 {
            display: inline-block;
            padding: 20px 40px;
            font-size: 14px;
            font-weight: 500;
            text-align: center;
            text-decoration: none;
            color: #FFFFFF;
            background-color: #1E1E1E;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 35px; 
            border: none; 
            outline: none;
        }
        
        .btn-1:hover {
            color: #FFFFFF;
            background-color: #FFCC02;
            outline: none;
        }


.third-screen {
    background-color: #F5F5F5;
    display: flex;
    height: 1000px;
    margin-top: 40px;
}

.third-screen img {
    display: none;
    width: 158px;
    height: 307px;
    margin-left: 65px;
}

.text-block-3 {
    margin-left: 25px;
    margin-right: 65px;
}

.text-block-3 h1 {
    font-size: 25px;
    font-weight: 500;
    margin-top: 45px;
}


.list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 5px;
    margin-top: 30px;
    padding: 0;
    border-bottom: 1px solid #1E1E1E;
}

.list li {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.list li a {
    color: #000;
    display: inline-block;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s, padding 0.3s;
    width: 100%;
    text-align: center;
    white-space: nowrap; 
}

.list li.selected a {
    background-color: #1E1E1E; 
    color: #FFFFFF;
    padding: 15px;
    display: inline-block;
    width: 100%;
}

.description h1 {
    margin-top: 25px; 
    font-size: 25px;
    font-weight: 600;
}

.description p {
    margin-top: 25px; 
    font-size: 16px;
    font-weight: 400;
}

#btn-2 {
    margin-top: 30px;
}

/* Fourth-screen */
.fourth-screen {
    padding: 0;
    background-color: #f8f9fb;
}

.tex-block-4 h1 {
    font-size: 25px;
    font-weight: 500;
    color: #2d3b4f;
    padding-top: 45px;
    margin-left: 25px;
}

.tex-block-4 p {
    font-size: 16px;
    color: #4a4a4a;
    margin-top: 20px;
    margin-left: 25px;
}

.metall-block {
    grid-template-columns: 1fr; /* Змінюємо сітку на одну колонку */
    gap: 15px; /* Більший проміжок між елементами */
    padding: 30px;
    margin-top: 20px;
}

.metall-text h1 {
    font-size: 16px; /* Зменшуємо розмір заголовка */
}

.metall-text p {
    font-size: 14px; /* Зменшуємо розмір тексту */
}

/* Приховуємо деякі блоки для мобільної версії */
.metall-one:nth-child(n+5) {
    display: none;
}

/* Додаємо кнопку "Показати більше" */
.show-more {
    display: inline-block;
    padding: 20px 40px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    background-color: #1E1E1E;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 35px; 
    border: none; 
    outline: none;
}


/* Спеціальне форматування для останніх двох блоків */
.metall-one:nth-child(7),
.metall-one:nth-child(8) {
    grid-column: span 1;
}

.contact-screen {
    display: flex;
    flex-direction: column;
}

.img-4 {
    display: none;
    width: 310px;
    height: 500px;
}

.contact-screen-1 {
    display: flex;
    flex-direction: column; /* Вирівнювання блоків вертикально */
    justify-content: center; /* Центрування по вертикалі */
    align-items: center; /* Центрування по горизонталі */
    width: 100%; /* Блок займає всю ширину екрану */
    height: auto; /* Висота автоматично адаптується */
    padding: 20px; /* Додаємо padding для відступів */
}

.text-block-5 {
    margin: 0; 
    text-align: center; 
    width: 100%; 
}

.text-block-5 h1 {
    font-size: 20px; 
}

.styled-form {
    width: 100%; /* Форма займає всю ширину */
    max-width: 350px; /* Максимальна ширина форми */
    margin: 0 auto; /* Центруємо форму по горизонталі */
    padding: 0 20px; /* Додаємо внутрішні відступи */
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%; /* Інпути займають всю ширину */
    padding: 10px; /* Зручні відступи */
    box-sizing: border-box; /* Щоб padding не виходив за межі */
}

input::placeholder,
textarea::placeholder {
    color: #ffffff; 
}

button {
    display: inline-block;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    background-color: transparent; 
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px; 
    border: 1px solid #ffffff;
    outline: none;
}

button:hover {
    background-color: #FFCC02;
    color: #ffffff;
    border: none;
}

.contact-screen-2 {
    margin-top: 35px;
    margin-left: 25px;
    margin-right: 25px;

}

.contact-screen-2 h1 {
    font-size: 25px;
    font-weight: 500;
}

.text-block-contact {
    margin-top: 20px;
}

.text-block-contact p{
    margin-top: 15px;
    font-size: 15px;
    font-weight: 500;
}

.logo {
    margin-top: 30px;
}

.logo img {
    width: 45px;
    height: 45px;
    margin-right: 15px;
}


.footer {
    background-color: #1E1E1E;
    flex-direction: column; /* Розміщуємо всі блоки вертикально */
    height: 600px; /* Висота автоматично підлаштовується під вміст */
    padding-bottom: 20px; /* Відступ знизу для комфортного відображення */
    margin-top: 30px;
}

.footer-container {
   padding-top: 30px;
   padding-left: 25px;
}

.nav-list-1 {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    gap: 17px;
    margin-top: 35px;
    white-space: nowrap;
    flex-wrap: wrap;
}


.nav-list-1 a {
    color: #FFFFFF;
}

.footer-info {
margin-top: 45px;
}


.footer-info p {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.footer-info-two {
margin-top: 10px
}

.footer-contacts p{
    color: #fff;
    font-size: 17px;
    font-weight: 400;
}

.footer-contacts {
    margin-left: 25px;
    margin-top: 40px;
}

.footer-socials {
    flex-direction: column;
    align-items: flex-start;
}

.footer-socials p {
    margin-top: 25px;
    font-size: 14px;
    text-align: left;
}

.footer-contacts-number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-icons a {
    margin: 0 10px;
}

.footer-copyright {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
}

.footer-copyright p{
    font-size: 14px;
}

}



