* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
 }

body {
    background-color: black;
    color: #f0f0f0;
    margin: 0 auto;
    font-family: 'Montserrat';
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
*::-webkit-scrollbar {
    display: none;
}

.navigate_panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 80px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: fixed;
    background-color: rgba(0, 0, 0, .7);
    z-index: 100;
    width: 100%;
}

.desk .nav_photo {
    width: auto;
    height: 60px;
}

.items {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.item .link {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.item .link:hover {
    filter: brightness(85%);
}

.footer {
    background-color: rgba(30, 30, 30, 0.8); /* RGBA: (R, G, B, Alpha) */
}

.footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
    filter: brightness(85%);
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
}

.gallery-scroll img {
    height: 150px;
    border-radius: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
}

.main {
    display: flex;
    position: relative;     /* Ensure the video stays fixed on the screen */
    left: 0;
    top: 0;
    width: 100%;        /* Use the full viewport width */
    height: 100vh;       /* Use the full viewport height */
    overflow: hidden;    /* Prevent content from overflowing the container */
    justify-content: center;
    z-index: -1;         /* Push the video behind other content like the navbar */
}

.main:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 80%, rgba(0, 0, 0, 1));
    z-index: 2;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

.main {
    z-index: 10;
}
.main-info{
    width: 85%;
    position: absolute;
    font-weight: 500;
    margin: Auto;
    height: 100%;
    z-index: 100;
}

.main-info .main-text {
    color: white;
    font-size: 48px;
    width: 610px;
    position: absolute;
    bottom: 90px;
    font-weight: 500;
    z-index: 10;
    line-height: 1.2;
}

.main-info .main-btn {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    background-color: #D40000;
    padding: 12px 45px;
    border-radius: 7px;
    position: absolute;
    bottom: 100px;
    right: 0%;
    z-index: 1000;
}

 .brands-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
      grid-template-rows: repeat(2, 250px); /* 2 rows, 100px height each */
      gap: 40px;
      padding: 20px;
 }

 .brands-item {
    max-height: 100%;
    border-radius: 8px;
 }

.services {
    width: 85%;
    margin: auto;
    z-index: 3;
    height: 26vh;
}

.services-top-info {
    color: white;
    font-size: 40px;
    font-family: Oswald;
    font-weight: bold;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.services-descr {
    line-height: 25px;
    color: #bfbfbf;
    font-family: Montserrat;
    font-size: 18px;
    float: right;
    font-weight: 400;
    padding-right: 0;
    padding-top: 0;
    text-align: right;
    width: 730px;
}

.serv {
    height: auto;
    padding-inline: 8%;
}

.serv_row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -17px;
    margin-right: -17px;
}

.serv_item {
    position: relative;
    width: 25%;
    padding-left: 17px;
    padding-right: 17px;
    margin-bottom: 50px;
}

.serv_item::before {
    content: '';
    position: relative;
    display: block;
    padding-top: 79%;
}

.serv_item-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-left: 17px;
    padding-right: 17px;
}

.serv_link {
    display: block;
    position: relative;
    height: 100%;
    border-radius: 15px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.serv_link::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    opacity: 1;
    transition: opacity 0.1s;
}

.serv_link:hover::before {
    opacity: 0;
}

.serv_link span {
    display: block;
    position: absolute;
    width: 100%;
    min-height: 4em;
    left: 0;
    bottom: 5%;
    padding: 1em;
    font-size: clamp(14px, 1.5vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    text-align: left;
}

.address-stuff {
    width: 80%;
    padding: 10px 0 40px 0;
    display: flex;
    justify-content: space-around;
    align-items: space-between;
}

.contact-header {
   padding: 1rem;
}

.youtube {
    padding: 40px 120px;
    width: 100%;
    display: flex;
    background-color: #101010;
}

.youtube .leftside {
    min-width: 700px;
}

.youtube .leftside h2 {
    font-size: 44px;
    width: 85%;
    font-weight: bold;
}

.youtube .rightside p {
    font-size: 24px;
    text-align: center;
}

.youtube .leftside iframe {
    margin: 30px 0 10px 40px;
}

.youtube .rightside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin-left: 110px;
}
.youtube .rightside .logos {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    gap: 60px;
}

.logos .inst {
    height: 43px;
}

.logos .you {
    height: 60px;
}

.about {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    height: 650px;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-position: 30% center;
    background-position-y: 2px;
    background-size: 660px;
    margin: 110px 0;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 2;
}

.about-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
}

.about-header {
    margin-left: 100px;
    margin-top: -120px;
    z-index: 5;
    font-size: 45px;
    font-weight: bold;
}

.about-text {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    width: 100%;
    padding-inline: 5vw;
    z-index: 6;
}
.about-text span{
    width: 640px;
    font-size: 22px;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
    position: relative;
    max-width: 620px !important;
    width: 80% !important;
    height: auto !important;
    padding: 25px 35px 15px;
    margin: 0 auto;
    display: block;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, .9) !important;
    border-radius: 5px;
    border: none;
    color: white;
}

.modal-logo img {
    width: 40%;
    margin: 0 auto;
    display: block;
}

.modal-text {
    width: 100%;
    text-align: center;
    font-size: 24px;
}

.Job select {
    width: 100%;
    padding: 7px 20px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #636363;
    border-radius: 10px;
    font-size: 18px;
    text-align: left;
    cursor: pointer;
    appearance: none; /* забирає стандартну стрілку */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,50 70,100 120,50' fill='none' stroke='white' stroke-width='15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    margin-bottom: 15px;

}

.trans-option {
    background-color: black;
}

.text_s {
    margin-top: 12px !important;
    margin-bottom: 30px;
    color: #777777 !important;
    font-size: 17px !important;
}

.close-btn {
    position: absolute;
    top: 15px !important;
    right: 15px !important;
    margin-top: 0 !important;
    filter: invert(1);
    transform: scale(0.6);
}

reds {
    color: red;
}

input {
    width: 100%;
    margin-inline: 0;
    margin-bottom: 15px;
    color: white;
    border-radius: 10px;
    text-align: left;
    font-size: 18px;
    background-color: transparent;
    padding: 7px 20px;
    border: 1px solid #636363;
}

input::placeholder {
    color: #636363;
}

.ova {
    display: flex;
    width: 100%;
    position: relative;
    justify-content: center;
}

.ovatop {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.webinput {
    display: none;
}

.phoneweb {
    border: 1px solid #555151;
    border-radius: 10px;
    padding-block: 5px;
    padding-inline: 7px;
    font-size: 16px;
    color: #777777;
}

.webinput:checked + .phoneweb {
    border-color: white;
}

.imgwebp {
    vertical-align: middle;
    margin-bottom: 4px;
    margin-right: 8px;
    margin-left: 3px;
}

.call-btn {
    width: 70%;
    left: 0;
    font-size: 14px;
    border-radius: 10px;
    padding: 15px 20px;
    display: block;
    margin: 20px auto 10px;
    color: white;
    border: none;
    background-color: #D40000;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

@media screen and (max-width: 1320px) {
    .youtube {
        padding: 40px 90px;
    }

    .youtube .rightside p {
        min-width: 310px;
    }

    .youtube .rightside {
        margin-left: 0px;
    }
}

@media screen and (max-width: 1200px) {
    .main-info .main-text {
        font-size: 7vw;
        width: 85%;
        text-align: left;
        bottom: 220px;
    }

    .main-info .main-btn {
        right: auto;
        bottom: 145px;
    }

    .serv_item {
        padding-left: 12px;
        padding-right: 12px;
        margin-bottom: 30px;
    }

    .serv_row {
        margin-left: -12px;
        margin-right: -12px;
    }

    .about-text {
        max-width: 0px;
        min-width: 80%;
        justify-content: flex-start;
        margin: 60px 19% 0px 5%;
    }

    .youtube {
        padding: 40px 40px;
    }

    .youtube .leftside h2 {
        font-size: 30px !important;
    }

    .youtube .rightside p {
        font-size: 18px !important;
    }

    .logos .inst {
    height: 35px;
}

.logos .you {
    height: 52px;
}
}

@media screen and (max-width: 1100px) {
    .serv_item {
        width: 50%;
    }

    .youtube {
        flex-direction: column;
        align-items: center;
    }

    .youtube .leftside {
        min-width: 0px;
        width: 100%;
    }

    .youtube_video {
        display: flex;
        justify-content: center;
    }

    .youtube .rightside p {
        margin-top: 30px;
    }

    .youtube .leftside iframe {
        margin: 30px 0 0 0;
    }

    .serv_link span {
    min-height: 4em;
    padding: 1em;
    font-size: clamp(14px, 2.5vw, 32px);
}
}

@media screen and (max-width: 768px) {
    .services-descr {
        display: none;
}
    .about-text {
        min-width: 95%;
        margin: 40px 0 0 5%;
        padding: 0px;
    }

    .about-header span{
        margin-left: -70px;
        font-size: 30px;
    }

    .navigate_panel {
        padding: 5px 10px;
    }

    .desk .nav_photo {
        width: 120px;
    }

    .items {
        gap: 25px;
    }

    .item .link {
        font-size: 14px;
    }

    .ova {
        width: 100%;
    }

    .ovatop {
        display: flex;
        max-width: 300px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 18px;
    }

    .phone {
        padding-inline: 11px !important;
    }

    .email_s {
        padding-inline: 24px !important;

    }
}

@media (max-width: 620px) {
    .youtube .leftside iframe {
          height: 250px;
    }
}

@media (max-width: 545px) {
    .address-stuff {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 66%;
    }

    .p-2 {
        padding-block: 0px  !important;
    }

    .footer a {
        margin: 0 4px;
    }
}
