/* ========== GLOBAL & RESET ========== */
:root {
    --bg: #ffffff;
    --text: #0a0a0a;
    --muted: #6b6b6b;
    --accent: #121212;
    --container-max: 144rem;
    --gap: 3.2rem;
    --pad: 8rem;
    --hower-color: #676767;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
  scrollbar-gutter: stable;
}

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

html, body {
    height: 100%;
 height: 100%; /* Це у вас вже є */
    max-width: 100%; /* Гарантуємо, що тіло не ширше вікна */
    overflow-x: hidden; /* Обрізаємо все, що вилазить по горизонталі */
}

body {
    font-size: 1.6rem;
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

.no-scroll {
    overflow: hidden;
}

/* Глобальні зміни відступів */
@media (max-width: 80em) { :root { --pad: 4rem; } }
@media (max-width: 68.75em) { :root { --pad: 3rem; } }
@media (max-width: 51.25em) { :root { --pad: 2.5rem; } }
@media (max-width: 37.5em) { :root { --pad: 1.5rem; } }

/* ========== HEADER & NAVIGATION ========== */
.header {
    /* Було position: relative; */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;

    /* Обов'язково додайте фон, інакше при скролі текст сайту буде просвічуватись крізь меню */
    background: var(--bg); /* або #ffffff */

    /* Можна додати легку тінь, щоб відокремити меню від контенту */
    box-shadow: 0 0.2rem 1rem rgba(0,0,0,0.05);

    /* Решта ваших стилів залишається без змін */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem var(--pad);
    /* max-width при fixed працює інакше, тому краще центрувати контент всередині, 
       але якщо у вас дизайн на всю ширину - то це ок. 
       Якщо треба обмежити ширину, то max-width залишаємо, 
       але додаємо margin: 0 auto; */
    z-index: 1002;
    box-sizing: border-box; /* Важливо, щоб padding не розширював блок більше 100% */

}

.header .logo {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    z-index: 1111;
}

.logo svg {
    height: 2.2rem;
}

.logo-title {
    font: 500 2.9rem/1 "IBM Plex Sans", system-ui;
}

.lang__link.is-active,
.mobile-menu__lang-link.is-active {
  font-weight: 700;
  text-decoration: underline;
}
/* ================= БУРГЕР МЕНЮ  ================= */
/* Бургер - кнопка */
.burger {
    display: none; /* На десктопі ховаємо */
    position: relative;
    z-index: 1003; /* Завжди поверх меню */
    width: 3.6rem;
    height: 3.2rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.burger-box {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* Центральна лінія */
.burger-line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    /* СТАН ЗА ЗАМОВЧУВАННЯМ (ЗАКРИТО): Середня лінія ШИРОКА (30px) */
    width: 3rem;  /* БУЛО 2.1rem */
    height: 0.3rem;
    background: #111; 
    border-radius: 0.2rem;

    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Верхня і нижня лінії (псевдоелементи) */
.burger-line::before,
.burger-line::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    height: 0.3rem;
    background: #111;
    border-radius: 0.2rem;

    /* СТАН ЗА ЗАМОВЧУВАННЯМ (ЗАКРИТО): Крайні лінії ВУЗЬКІ (21px) */
    width: 2.1rem; /* БУЛО 3rem */

    transition: width 0.3s ease;
}

/* Відступи */
.burger-line::before { top: -1rem; }
.burger-line::after { bottom: -1rem; }


/* === АКТИВНИЙ СТАН (МЕНЮ ВІДКРИТЕ) === */

/* Середня лінія стає ВУЗЬКОЮ (21px) */
.header.open .burger-line {
    width: 2.1rem; /* БУЛО 3rem */
    background: #111 !important;
}

/* Верхня і нижня стають ШИРОКИМИ (30px) */
.header.open .burger-line::before,
.header.open .burger-line::after {
    width: 3rem; /* БУЛО 2.1rem */
    transform: translateX(-50%);
}


/* Мобільна версія: налаштування відображення */
@media (max-width: 51.25em) {
    .burger {
        display: block;
    }
    #site-menu {
        display: none;
    }
    .header.open .menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    /* Оскільки бургер не перетворюється на явний "хрестик",
       можливо, варто залишити внутрішню кнопку закриття видимою.
       Якщо хочете її приховати, розкоментуйте код нижче:
    */
    /* .menu-close { display: none; } */
}
/* Десктопне меню */
#site-menu {
    display: flex;
    gap: 5.4rem;
    align-items: center;
    color: #000;
    font: 500 1.8rem/1 "IBM Plex Sans", system-ui;
}

#site-menu > *:last-child {
    margin-left: 13.3rem;
}

/* Мобільне меню */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #f5f5f5;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 8rem 4rem 6rem;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 0 0;
    width: 100%;
    max-width: 60rem;
}

.mobile-menu__item {
    position: relative;
    padding: 1.75rem 0;
}

.mobile-menu__item.active::before {
    content: "";
    position: absolute;
    left: -4rem;
    top: 50%;
    width: calc(15% + 4rem);
    height: 0.3rem;
    background: #000;
    transform: translateY(-50%);
}

.mobile-menu__item.active::after {
    content: "";
    position: absolute;
    left: 15%;
    top: 50%;
    width: 1.6rem;
    height: 1.6rem;
    background: #000;
    border-radius: 50%;
    transform: translateY(-50%);
}

.mobile-menu__link {
    font-size: 3.6rem;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    display: block;
    padding-left: 10rem; /* відступ від лінії */
}

.mobile-menu__link:hover {
    color: var(--hover-color);
}

.mobile-menu__lang {
    font-size: 3.2rem;
    font-weight: 400;
    margin: 6rem 0 8rem 0rem;
    color: #000;
    padding-left: 10rem;
}

.mobile-menu__footer {
    margin-top: auto;
    font-size: 1.4rem;
    color: #6b6b6b;
    line-height: 1.8;
    text-align: left;
    padding-left: 10rem;
}

.mobile-menu__footer a {
    text-decoration: underline;
    color: #6b6b6b;
}

.mobile-menu__footer a:hover {
    color: #000;
}

.menu-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 5rem;
    font-weight: 300;
    color: #000;
    background: none;
    border: 0;
    cursor: pointer;
    line-height: 1;
    display: none;
}

/* Мобільна версія */
@media (max-width: 51.25em) {
    .burger {
        display: block;
    }

    #site-menu {
        display: none;
    }

    .header.open .menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: 1fr 60.2rem;
    gap: var(--gap);
    align-items: center;
    position: relative;
    background-image: url(/assets/img/4K_Smooth_Clip-2.png), url("/assets/img/nat-Qerg85B7JDI-unsplash-1.png");
    background-repeat: no-repeat;
    background-size: auto, 100% auto;
    background-position: right bottom, center 20%;
    background-attachment: scroll, fixed;
    padding-top: 9rem;
}
  @media (max-width: 51.25em) {
    .hero {
         max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: 1fr 60.2rem;
    gap: var(--gap);
    align-items: center;
    position: relative;
    background-image: url(/assets/img/4K_Smooth_Clip-2-1.png), url("/assets/img/nat-Qerg85B7JDI-unsplash-1.png");
    background-repeat: no-repeat;
    background-size: 77%, 294% auto;
    background-position: right bottom, center 20%;
       /* background-position: center bottom, center top; */
    background-attachment: scroll, fixed;
    }
    .hero::after{
      display:none;
    }
}

.hero::after {
    content: url('/assets/img/Union.svg');
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}
.hero-left {
    padding-left: 2.4rem;
}
.hero-title {
    color: #000;
    font-family: "IBM Plex Sans";
    font-size: 6.9rem;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    letter-spacing: -0.1rem;
    margin: 0 0 4rem 0;
    white-space: pre-line;
}
.hero-sub {
    color: #000;
    font-family: "IBM Plex Sans";
    font-size: 2.4rem;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin-bottom: 4.8rem;
}
.btn {
    display: inline-block;
    background: var(--accent);
    padding: 1.4rem 2.2rem;
    border-radius: 3.2rem;
    text-decoration: none;
    width: 26.8rem;
    height: 5.9rem;
    color: #F5F5F5;
    font-size: 2.4rem;
    font-style: normal;
    font-weight: 500;
    text-align: center;
}
.btn:hover {
    background: var(--hower-color);
}
.hero-right {
    position: relative;
    height: 88.2rem;
    display: flex;
    align-items: end;
    justify-content: center;
}
.pcb {
    max-width: 88.2rem;
    width: 100%;
    height: auto;
}
.decoration {
    position: absolute;
    left: 12%;
    top: 30%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0;
}
.decoration .dot {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #0a0a0a;
}
.decoration .line {
    width: 34.7rem;
    height: 0.3rem;
    background: #000;
}

/* Hero Responsive */
@media (max-width: 68.75em) { /* 1100px */
    .hero {
        grid-template-columns: 1fr 42rem;
    }
    .hero-right {
        height: 42rem;
    }
    .hero-title {
        font-size: 6.4rem;
    }
}
@media (max-width: 51.25em) { /* 820px */
    .hero {
        grid-template-columns: 1fr;
        margin-top: 1rem;
        gap: 1.8rem;
    }
    .hero-right {
        order: 1;
        height: 30rem;
    }
    .pcb {
        transform: none;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0.6rem;
    }
    .hero-title {
        font-size: 4.4rem;
        padding-top: 10rem;
        padding-left: 2rem;
    }
    .hero-sub {
        font-size: 1.3rem;
      font-size: 2.1rem;
        padding-left: 2rem;
        margin-top: 6rem;
        padding-right: 4rem;
        margin-bottom: 10rem;
    }
    .decoration {
        left: 37%;
        top: -12%;
    }
  .decoration .line {
    width: 14.7rem;
}
    .hero-left {
        padding: 0.8rem 0;
    }
    .btn {
        padding: 1.2rem 1.8rem;
        color: black;
        background: white;
      margin-top: 5rem;
        position: absolute;
        justify-self: anchor-center;
        z-index: 108;   
    }
    .btn:hover {
    background: white;
}
}


/* ========== ABOUT + SERVICES SECTION ========== */
.about-services {
    --line: #111;
    --muted: #6b6b6b;
    --panel: #111;
    --panelText: #fff;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 15rem var(--pad);
    position: relative;
    z-index: 1;
    background: url(/assets/img/ghjghj.png) center / cover no-repeat;
    background-size: 101.3rem 120.2rem;
    background-position: right bottom;
}
.about-services::after {
    content: url('/assets/img/Union.svg');
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}
.as-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.8rem;
    margin-bottom: 5.7rem;
}
.as-line {
    height: 0.3rem;
    background: var(--line);
    position: relative;
    opacity: .9;
}
.as-dot {
    position: absolute;
    right: -0.6rem;
    top: 50%;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--line);
    transform: translateY(-50%);
}
.as-title {
    margin: 0;
    color: #231F20;
    font-family: "IBM Plex Sans";
    font-size: 6.9rem;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    letter-spacing: 0.69px;
}
.as-gallery {
    display: flex;
    gap: 3.6rem;
    justify-content: flex-start;
    align-items: center;
    margin: 0.6rem 0 5rem;
    flex-wrap: wrap;
}
.as-img1 {
    filter: grayscale(100%);
    width: 42.6rem;
    height: 28.4rem;
    border-radius: 99.9rem;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 0.8rem 2.8rem rgba(0,0,0,.12);
}
.as-img1:hover {
    filter: grayscale(0%);
}
.as-img2 {
    width: 29rem;
    height: 29rem;
    border-radius: 99.9rem;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 0.8rem 2.8rem rgba(0,0,0,.12);
}
.as-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(.95) brightness(.98);
}
.as-text {
    max-width: 95.5rem;
    color: #000;
    font-family: "IBM Plex Sans";
    font-size: 2.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}
.as-flourish {
    font-size: 2.8rem;
    text-align: center;
    margin: 9.1rem 0 0;
    color: #222;
    letter-spacing: 0.2rem;
}
  @media (max-width: 51.25em) {
    .as-flourish {
      display:none;
    }
    .about-services::after {
      display:none;
    }
  }
.as-services-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 11.2rem;
    margin: 0.8rem 0 10.6rem;
}
.as-services-title {
    color: #000;
    font-family: "IBM Plex Sans";
    font-size: 6.5rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.065rem;
}
.as-pointer {
    height: 0.3rem;
    background: #111;
    position: relative;
    opacity: .9;
    width: 36.5rem;
    border-radius: 0 0 1.6rem 0;
}
.as-pointer-white {
    height: 0.3rem;
    background: #fff;
    position: relative;
    opacity: .9;
}
.as-pointer-dot {
    position: absolute;
    left: -0.6rem;
    top: 50%;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #111;
    transform: translateY(-50%);
}
.as-pointer-dot-white {
    position: absolute;
    left: -0.6rem;
    top: 50%;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
}
.as-bg {
    position: absolute;
    left: 0;
    right: 0;
    height: 56rem;
    top: calc(100% - 52rem);
    background: url("/assets/img/ghjghj.png") center/cover no-repeat;
    opacity: .28;
    z-index: -1;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0.6) 55%, transparent);
}
.as-panel {
    margin-top: 2.4rem;
    border-radius: 2.4rem;
    background: rgba(18, 18, 18, 0.94);
    color: var(--panelText);
    padding: 4.9rem 2.5rem 2.9rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 1.8rem;
    box-shadow: 0 3rem 6rem rgba(0,0,0,.25);
}
.as-col {
    display: flex;
    flex-direction: column;
    gap: 8.8rem;
}
.as-col-head {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-direction: column;
}
@media (max-width: 51.25em) { /* 820px */
.as-col-head {
    align-items: center;
}
.as-col-title {
    text-align: center;
}
}

.as-col-title {
    color: #F5F5F5;
    font-family: "IBM Plex Sans";
    font-size: 2.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
}
.as-bullets {
    color: #FFF;
    font-family: "IBM Plex Sans";
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.34;
}
.as-sep {
    display: flex;
    justify-content: center;
}
.as-sep span {
    width: 0.3rem;
    height: 100%;
    background: #fff;
    border-radius: 0.2rem;
    position: relative;
}
.as-sep span::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    border-radius: 50%;
    top: -0.7rem;
}
.as-sep-down {
    display: flex;
    justify-content: center;
  }
.as-sep-down span {
    width: 0.3rem;
    height: 100%;
    background: #fff;
    border-radius: 0.2rem;
    position: relative;
}
.as-sep-down span::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    border-radius: 50%;
    bottom: -0.7rem;
}

/* About+Services Responsive */
@media (max-width: 68.75em) { /* 1100px */
    .as-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
        position: absolute;
        width: 100%;
        padding: 0;
        justify-items: center;
        left: 0;
        border-radius: 0;
        margin-top: 15rem;
        background: url(/assets/img/f9948ba01724bbe87574b89fdc1e127ca3365ff2-1.png) center / cover no-repeat;
        background-size: 664%;
    }
    .as-sep {
        display: none;
    }
    .as-bg {
        top: auto;
        position: relative;
        height: 38rem;
        margin-top: -2rem;
        border-radius: 1.2rem;
        opacity: .25;
    }
}
@media (max-width: 51.25em) { /* 820px */
  .about-services{
    background-color: #D9D9D9;
    background: url(/assets/img/image.png) center / cover no-repeat;
    background-size: 100%;
    background-color: #D9D9D9;
    background-position: left 90rem;
  }
  .text-margin-mobile{
    margin-top:78rem;
  }
  .as-title {
        font-size: 4.7rem;
    justify-self: center;
    }
    .as-services-title {
        font-size: 3.2rem;
    }
    .as-img1 {
        display:none
    }
  .as-img2 img{
    width: 181.265px;
    height: 177px;
    aspect-ratio: 181.27 / 177.00;
  }
  .as-img2{
    width: 181.265px;
    height: 177px;
    aspect-ratio: 181.27 / 177.00;
  }
  .as-line {
    width: 0.3rem;
    height: 19rem;
    rotate: 0deg;
    margin: 0 auto;
    display: block;
  }  
  .as-dot {      
    right: auto;
    top: auto;       
    transform: none;  
    bottom: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .as-top {
       margin-bottom: 3.7rem;
       margin-top: -15rem;
    }
  }
@media (max-width: 37.5em) { /* 600px */
    .as-top {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .as-pointer {
        display: none;
    }
    .as-gallery {
        justify-content: center;
    }
    .as-text {
        font-size: 2.1rem;
        padding: 0rem 2rem 0rem 2rem;
    }
}


/* ========== TECH SECTION ========== */
.tech-wrap {
    max-width: var(--container-max);
    background: #D9D9D9;
    margin: 0 auto;
    padding: 15rem var(--pad) 20.2rem 0;
}
.tech {
    max-width: var(--container-max);
    margin: 0 auto;
}
.tech-header {
    display: grid;
   grid-template-columns: 0.8fr auto;
    align-items: center;
    gap: 2rem;
    margin-bottom: 17rem;
}
.tech-line {
    height: 0.3rem;
    background: #111;
    position: relative;
    opacity: .9;
}
.tech-dot {
    position: absolute;
    right: -0.6rem;
    top: 50%;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #111;
    transform: translateY(-50%);
}
.tech-title {
    margin: 0;
    color: #231F20;
    font-family: "IBM Plex Sans";
    font-size: 6.9rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.32;
    letter-spacing: 0.069rem;
    justify-self: center;
}
.tech-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0.5rem;
    padding: 0 0 0 var(--pad);
}
.tech-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    color: #231F20;
    font-family: "IBM Plex Sans";
    font-size: 4rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7;
    text-transform: uppercase;
}
.tech-list li {
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    align-items: flex-start; /* БУЛО: center, СТАЛО: flex-start */
    transform-origin: left center;
}
.tech-list li::before {
    content: "➔";
    display: inline-block;
    margin-right: 0.8rem;
    font-size: 1.6rem;
    color: #111;
    width: 1.6rem;
    height: 1.6rem;
    line-height: 1.6rem;
    border-radius: 50%;
    background: transparent;
    vertical-align: middle;
    transition: all .25s ease;
    /* ДОДАЄМО ЦЕ: */
    margin-top: 2.6rem; /* Підберіть це значення: (висота рядка тексту - висота стрілки) / 2 */
}
.tech-list li:hover::before {
    transform: translateX(2px);
    color: #676767;
}
.tech-list li:hover {
    scale: 1.03;
    color: #676767;
}
.tech-list li.active {
    font-weight: 500;
    transform: scale(1.03);
    color: #231F20;
}
.tech-list li.active::before {
    content: "➔";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 1rem;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: none;
    transform: none;

    /* ДОДАЄМО ЦЕ (перебиваємо margin-top звичайного стану): */
    margin-top: 1.8rem; /* Це значення теж підлаштуйте візуально */
}
.tech-texts {
    font-size: 2.4rem;
    line-height: 1.6;
    color: #333;
}
.tech-text {
    display: none;
}
.tech-text.active {
    display: block;
}

/* Tech Responsive (FAQ mode on mobile) */
@media (max-width: 51.25em) { /* 820px */
   .tech-wrap {
    margin-top: 194rem;
    padding: 16rem var(--pad) 20.2rem var(--pad);
}
.tech-line {
    display: none;
}
    .tech-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding-left: 0;
    }

    .tech-list {
        gap: 1.5rem;
        font-size: 1.8rem;
        line-height: 1.4;
        text-transform: none;
    }

    /* Скидаємо всі ефекти наведення та активності з десктопа */
    .tech-list li,
    .tech-list li:hover,
    .tech-list li.active {
        cursor: pointer;
        background: transparent; 
        padding: 0; 
        border-radius: 0;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        -webkit-tap-highlight-color: transparent;

        /* ЗАБОРОНЯЄМО ЗБІЛЬШЕННЯ */
        transform: none; 
        scale: 1;
        font-weight: 400; /* Якщо треба жирніше - ставте 500 */
        color: #231F20;
        font-size: 3.2rem;
        text-transform: uppercase;
    }

    /* === СТРІЛКА (ЄДИНА ДЛЯ ВСІХ СТАНІВ) === */
    /* Перераховуємо всі стани, щоб перебити десктоп */
    .tech-list li::before,
    .tech-list li:hover::before,
    .tech-list li.active::before {
        display: inline-block !important;
        content: "➔";

        /* Скидаємо розміри активної стрілки десктопа */
        width: 1.9rem;
        height: 1.9rem;
        font-size: 1.9rem;
        line-height: 1.6rem;

        /* Прибираємо фон і колір */
        background: transparent; 
        box-shadow: none;
        color: #111; 
        border-radius: 0;


        /* Відступи */
        margin-right: 1.2rem;
        flex-shrink: 0;

        /* Ваша підібрана висота для мобільного */
        margin-top: 1.2rem; 

        /* Анімація тільки повороту */
        transition: transform 0.3s ease;

        /* Скидаємо зсув при наведенні */
        transform: none;
    }

    /* === АНІМАЦІЯ ПРИ ВІДКРИТТІ (ПОВОРОТ) === */
    .tech-list li.is-open::before {
        transform: rotate(90deg);
    }

    /* Ховаємо праву стрілку */
    .tech-list li::after {
        display: none;
    }

    /* Панель з текстом */
    .accordion-panel {
        display: none;
        position: relative; /* Щоб ми могли позиціонувати лінію всередині */

        /* Збільшуємо відступ зліва (4.5rem), щоб текст не наліз на лінію */
        padding: 1rem 0 2rem 4.5rem; 

        background: transparent;
        color: #333;
        font-size: 1.8rem;
        line-height: 1.6;
    }

    .accordion-panel.is-open {
        display: block;
    }

    /* === МАЛЮЄМО ЛІНІЮ З ЦЯТКАМИ === */
    .accordion-panel::before {
        content: "";
        position: absolute;

        /* Позиціонування зліва */
        left: 1.2rem; 

        /* Відступи зверху і знизу, щоб лінія була по висоті тексту */
        top: 1.2rem;
        bottom: 2rem;

        /* Ширина елемента = ширині цятки */
        width: 1.6rem; 

        /* Магія CSS-градієнтів. Ми малюємо 3 шари фону:
           1. Верхня цятка (радіальний градієнт)
           2. Нижня цятка (радіальний градієнт)
           3. Вертикальна лінія (лінійний градієнт)
        */
        background: 
            /* Верхня крапка */
            radial-gradient(circle, #111 40%, transparent 42%) top center / 2.6rem 2.6rem no-repeat,

            /* Нижня крапка */
            radial-gradient(circle, #111 40%, transparent 42%) bottom center / 2.6rem 2.6rem no-repeat,

            /* Вертикальна лінія (по центру, трішки коротша за крапки, щоб не виглядала) */
            linear-gradient(#111, #111) center center / 0.3rem calc(100% - 2rem) no-repeat;
    }

    /* Ховаємо десктопний блок */
    .tech-texts {
        display: none;
    }
    .tech-header {
    margin-bottom: 7rem;
    grid-template-columns: 0.8fr auto;
}
}
/* Ховаємо панелі акордеону на десктопі */
@media (min-width: 51.26em) {
    .accordion-panel {
        display: none !important;
    }
}


/* ========== CONTACTS SECTION ========== */
.contacts-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    background: #201c1cfa url("/assets/img/8K_XRAY_BGRND-1.png") center/cover no-repeat;
    position: relative;
    color: #fff;
    isolation: isolate;
}

.contacts-wrap::before {
    content: url('/assets/img/Union-2.svg');
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.contacts {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad) 11.2rem;
    display: grid;
    grid-template-columns: 0.5fr 0.4fr;
    gap: 3.6rem;
}
.contacts-title-wrap {
    display: grid;
    grid-template-columns: auto 50%;
    align-items: center;
    gap: 1.8rem;
    padding: 23.6rem 0 13.6rem var(--pad);
    position: relative;
    z-index: 1;
}
.contacts-title {
    color: #FFF;
    font-family: "IBM Plex Sans";
    font-size: 6.9rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.32;
    letter-spacing: 0.069rem;
    margin: 0;
}
.contacts-right h3 {
    margin: 0 0 1.6rem;
}
.contacts-left address {
    font-style: normal;
    color: #eaeaea;
    line-height: 1.7;
}
.c-line {
    height: 0.2rem;
    background: #fff;
    opacity: .85;
    position: relative;
    margin-top: 1.8rem;
}
.c-dot {
    position: absolute;
    left: 40%;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border-radius: 50%;
    top: -0.4rem;
}
.contact-form-text {
    color: #FFF;
    font-family: "IBM Plex Sans";
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.54;
    letter-spacing: 0.02rem;
    margin-top: 38px;
}

@media (max-width: 51.26em) {
    .contacts-wrap::before {
        display: none !important;
    }
    .as-pointer-white {
        display: none !important;
    }
    .svg-icon-white {
        display: none !important;
    }
    .svg-ico{
        display: none !important;
    }
    .contacts-title-wrap {
    grid-template-columns: none;
    justify-items: center;
    padding: 0.6rem 0 13.6rem var(--pad);
}
.contacts-left{
    order: 2;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.contacts-left address {
    order: 2;
    margin-top: 8rem;
}
}
.contacts-right{
    order: 1;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}
input, textarea {
    padding: 1rem 0.8rem;
    border-radius: 0.8rem;
    border: 0.1rem solid rgba(255,255,255,.35);
    background: white;
    color: #000;
    font-size: 1.5rem;
    backdrop-filter: blur(0.6rem);
    max-width: 42.3rem;
}
input::placeholder, textarea::placeholder {
    color: #000;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #fff;
}
button {
    padding: 1.2rem 2.2rem;
    border: none;
    border-radius: 2.4rem;
    background: #fff;
    color: #111;
    font-weight: 700;
    cursor: pointer;
    width: max-content;
}
button:hover {
    filter: brightness(.92);
}
.custom-file-button {
    padding: 1rem 0.8rem;
    border-radius: 0.8rem;
    border: 0.1rem solid rgba(255, 255, 255, .35);
    background: white;
    color: #000;
    font-size: 1.5rem;
    backdrop-filter: blur(0.6rem);
}
.form-msg {
    margin-top: 0.8rem;
    font-size: 1.4rem;
}
.form-msg.error { color: #ff8e8e; }
.form-msg.success { color: #7fff7f; }

/* Contacts Responsive */
@media (max-width: 51.25em) { /* 820px */
    .contacts {
        grid-template-columns: 1fr;
    }
}


/* ========== FOOTER ========== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem var(--pad);
    color: #231F20;
    background: #D9D9D9;
}
  @media (max-width: 51.25em) { /* 820px */
    .footer {
    display: none;
    }
}

   /* 1. Глобально ховаємо лінію (на десктопі її не буде) */
.mobile-line-decor-w {
    display: none;
}
.mobile-line-decor-w-bottom {
    display: none;
}
.mobile-line-decor-b {
    display: none;
}
.as-services-head-mobile{
    display: none;
}

/* 2. Налаштовуємо ТІЛЬКИ для мобільних */
@media (max-width: 820px) {

    .mobile-line-decor-w {
        display: block; /* Робимо видимою */

        /* Розміри лінії */
        width: 0.3rem;
        height: 16rem; /* Висота лінії, можна змінити на 8rem або 12rem */
        background-color: #fff;

        /* Центрування та відступи */
        /* 0 auto = по центру горизонтально */
        /* 4rem = відступ знизу до заголовка */
        /* -6rem = від'ємний відступ зверху, щоб лінія "виїхала" за межі блоку вгору (ефект, ніби вона спускається згори) */
        margin:  0rem auto 4rem; 

        position: relative;
        z-index: 1;
    }

    /* Малюємо цятку знизу */
    .mobile-line-decor-w::after {
        content: "";
        position: absolute;

        /* Розміри цятки */
        width: 1.6rem;
        height: 1.6rem;
        background-color: #fff;
        border-radius: 50%;

        /* Центруємо відносно лінії */
        left: 50%;
        transform: translateX(-50%);

        /* Прикріплюємо до низу лінії */
        bottom: -0.5rem; 
    }




    .mobile-line-decor-w-bottom {
        display: block; /* Робимо видимою */

        /* Розміри лінії */
        width: 0.3rem;
        height: 19rem; /* Висота лінії, можна змінити на 8rem або 12rem */
        background-color: #fff;

        /* Центрування та відступи */
        /* 0 auto = по центру горизонтально */
        /* 4rem = відступ знизу до заголовка */
        /* -6rem = від'ємний відступ зверху, щоб лінія "виїхала" за межі блоку вгору (ефект, ніби вона спускається згори) */
        margin:  0rem auto 0rem; 

        position: relative;
        z-index: 1;
    }

    /* Малюємо цятку знизу */
    .mobile-line-decor-w-bottom::after {
        content: "";
        position: absolute;

        /* Розміри цятки */
        width: 1.6rem;
        height: 1.6rem;
        background-color: #fff;
        border-radius: 50%;

        /* Центруємо відносно лінії */
        left: 50%;
        transform: translateX(-50%);
    }

 .mobile-line-decor-b {
        display: block; /* Робимо видимою */

        /* Розміри лінії */
        width: 0.3rem;
        height: 19rem; /* Висота лінії, можна змінити на 8rem або 12rem */
        background-color: #111;

        /* Центрування та відступи */
        /* 0 auto = по центру горизонтально */
        /* 4rem = відступ знизу до заголовка */
        /* -6rem = від'ємний відступ зверху, щоб лінія "виїхала" за межі блоку вгору (ефект, ніби вона спускається згори) */
        margin:  0rem auto 4rem; 

        position: relative;
        z-index: 1;
    }

    /* Малюємо цятку знизу */
    .mobile-line-decor-b::after {
        content: "";
        position: absolute;

        /* Розміри цятки */
        width: 1.6rem;
        height: 1.6rem;
        background-color: #111;
        border-radius: 50%;

        /* Центруємо відносно лінії */
        left: 50%;
        transform: translateX(-50%);

        /* Прикріплюємо до низу лінії */
        bottom: -0.5rem; 
    }


    .as-services-head{
        display: none;
    }
    .as-services-head-mobile{
        display: block;
        align-items: center;
    }
    .as-services-title-mobile {
    color: #fff;
    font-family: "IBM Plex Sans";
    font-size: 6.5rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.065rem;
    margin: 0rem 0rem 4rem 0rem;
}
    .as-panel {
        gap: 5rem;
    }
    .as-col-head {
    align-items: center;
}
.as-col-title {
    text-align: center;
}
.as-col {
    gap: 1.8rem;
}
}
 /* --- ОСНОВНІ СТИЛІ --- */
        .file-upload-wrapper {
            /* Контейнер для поля та підказки */
            position: relative;
        }

        /* 1. Повністю ховаємо оригінальний інпут */
        #custom-file-input {
            display: none;
        }

        /* 2. Стилізуємо наш лейбл, щоб він був схожий на інпут */
        .custom-file-label {
            display: flex; /* Використовуємо Flexbox для розміщення тексту та іконки */
            justify-content: space-between; /* Розносимо елементи по краях */
            align-items: center; /* Центруємо по вертикалі */
            height:39px;
          max-width:423px;
            padding: 10px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: white;
    color: #000;
    font-size: 15px;
    backdrop-filter: blur(6px);
            /* Курсор "вказівник" показує, що це клікабельний елемент */
            cursor: pointer;

        }
        /* 3. Стилізуємо текст всередині лейбла */
        #file-name-display {
            font-size: 16px;
            color: #000; /* Колір тексту "Додати файл ***" */

            /* Важливо: обрізаємо довгі назви файлів */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-right: 10px; /* Відступ від іконки */
        }

        /* 4. Стилізуємо іконку (вбудований SVG) */
        .file-upload-icon {
            width: 20px;
            height: 20px;
            fill: #333; /* Колір іконки */
            flex-shrink: 0; /* Забороняємо іконці стискатися */
        }

        /* 5. Стилізуємо текст-підказку під полем */
        .file-upload-hint {
            font-size: 12px;
            color: #999; /* Сірий колір тексту */
            margin-top: 8px;
            padding-left: 15px; /* Невеликий відступ */
        }
            /* Стиль для лейбла, коли є помилка */
.custom-file-label.error {
    border: 2px solid #e74c3c; /* Червона рамка */
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5); /* Червона підсвітка */
}

/* Стиль для тексту-підказки, коли він стає повідомленням про помилку */
.file-upload-hint.error-message {
    color: #e74c3c; /* Червоний текст */
    font-weight: 500;
}

            /* Контейнер для кнопки і чекбоксу в один ряд */
.submit-row {
    display: flex;
    align-items: center; /* Центруємо вертикально */
    gap: 20px; /* Відступ між кнопкою і чекбоксом */
    flex-wrap: wrap; /* Дозволяємо перенос на новий рядок на малих екранах */
}


/* Стиль для кнопки (якщо його ще немає, або адаптуй свій) */
.submit-btn {
    /* Приклад стилів кнопки, щоб вона гарно виглядала поруч */
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    background: #fff;
    color: #111;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0; /* Кнопка не стискається */
}

/* Обгортка чекбоксу для inline розміщення */
.consent-wrapper-inline {
    max-width: 300px; /* Обмеження ширини тексту, щоб не розтягувався занадто */
}
@media (max-width: 51.25em) {
  .submit-row {
    gap: 18px; /* Відступ між кнопкою і чекбоксом */
}
  .consent-wrapper-inline {
    max-width: 235px; /* Обмеження ширини тексту, щоб не розтягувався занадто */
}
            }
.consent-label {
    display: flex;
    align-items: center; /* Центруємо вертикально з текстом */
    cursor: pointer;
    position: relative;
    font-size: 14px;
    color: #fff;
    line-height: 1.3;
}

/* Приховуємо стандартний чекбокс */
.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Кастомний чекбокс */
.checkbox-custom {
    position: relative;
    height: 20px;
    width: 20px;
    min-width: 20px;
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0; /* Чекбокс не стискається */
    transition: all 0.2s ease;
}

.consent-label:hover input ~ .checkbox-custom {
    background-color: rgba(255, 255, 255, 0.5);
}

.consent-label input:checked ~ .checkbox-custom {
    background-color: #fff;
    border-color: #fff;
}

.checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-label input:checked ~ .checkbox-custom::after {
    display: block;
}

.consent-text a {
    color: #fff;
    text-decoration: underline;
}

.consent-text a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Стилі помилок */
.consent-label input.error ~ .checkbox-custom {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}