/* RESET */
* {margin:0; padding:0; box-sizing:border-box;}
body {
    font-family: 'Avenir Next Cyr', Arial, sans-serif;
    background:#fff;
    color:#111;
    line-height:1.5;
    overflow-x: hidden;
}

body::selection {
    background-color: #00B6E6;
    color: #fff;
}
a {text-decoration:none; color:inherit;}
img {max-width:100%; display:block;}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border: none;
    border-bottom: 1px solid #00B6E6;
}


/* HEADER прозорий і обмежений по ширині */
header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    max-width: 1400px; /* обмежуємо на дуже великих екранах */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    z-index: 10;
}

/* Логотип */
header img {
    height: clamp(64px, 5vw, 96px); /* мін 40px, адаптив, макс 70px */
    transition: height 0.3s ease;
}


/* Кнопка тест-драйву */
header .btn-test {
    background: #00B6E6;
    color: #fff;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
}

/* Адаптив: на мобільних хедер на всю ширину */
@media (max-width: 992px) {
    header {
        width: 100%;
        left: 0;
        transform: none;
        padding: 15px 20px;
    }
}


    /* SLIDER */
    .swiper {
        width: 100%;
        height: 60vh;
        position: relative;
         overflow: hidden;
    }
    .swiper-slide {
        position: relative;
        display:flex;
        align-items:center;
        justify-content:center;
        background:#000;
        height: 100%;
        flex-shrink: 0;
    }
    .swiper-slide img {
        width:100%;
        height:100%;
        object-fit:cover;
        display: block;
        backface-visibility: hidden;
        will-change: transform;
    }

    .swiper-wrapper {
     will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

    /* HERO TEXT з лінією */
    .hero-text {
        position: absolute;
          top: clamp(10px, 25%, 30%);
          left: 10%;
          display: flex;
          align-items: flex-start;
          gap: clamp(10px, 2vw, 20px);
          color: #fff;
          max-width: 40%;
          overflow: hidden;
    }
    .hero-text .line {
        width: 3px;
        background: #00B6E6;
        height: 100%;
    }
    .hero-text .text-content h1 {
        font-size: clamp(28px, 6vw, 62px);
        font-weight: 500;
        text-transform: uppercase;
        line-height: 1.1;
    }
    
    @media (min-width: 1700px) {
  .hero-text .text-content h1 {
    font-size: 74px;
  }
}
    /*.h1ast::after {*/
    /*    content: ' *';*/
    /*    font-size: 18px;*/
    /*    position: absolute;*/
    /*    top: 5%;*/
    /*    padding-left: 5px;*/
        
    /*}*/
    

    .hero-text .text-content p {
        margin-top: 12px;
        font-size: clamp(14px, 2.5vmin, 20px);
    }

    .text-content {
    border-left: 4px solid #00B6E6;
        padding-left: 20px;
    }

    /* Slider pagination */
    .swiper-pagination-bullet {
        background:#fff !important;
        opacity:0.5;
    }
    .swiper-pagination-bullet-active {
        background:#00B6E6 !important;
        opacity:1;
    }


    /* TEXT BLOCK */
    .text-block {
        padding:60px 20px;
        max-width:1100px;
        margin:auto;
    }
    .text-block h2 {
    font-size: 24px;
        font-weight: 400;
        margin-bottom: 18px;
    }
    .text-block p {
        font-size: 16px;
        color: #4A4B4C;
        line-height: 2;
    }

    .text-form-call {
        font-family: 'Avenir Next Cyr', Arial, sans-serif;
        font-size: 32px;
        font-weight: 400;
    }

    /* ==== RESPONSIVE ==== */

/* Tablets (up to 1024px) */
@media (max-width: 1024px) {
    .hero-text {
        left: 10%;
        top: 30%;
        max-width: 400px;
        gap: 15px;
    }
    .hero-text .text-content h1 {
        font-size: 36px;
    }
  
    .text-block {
        padding: 40px 15px;
        max-width: 900px;
    }
    .text-form-call {
        font-size: 28px;
    }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
    .swiper {
        height: 60vh; /* зменшуємо висоту для мобільних */
    }
    .hero-text {
        left: 5%;
        top: 25%;
        max-width: 350px;
        gap: 10px;
    }
    .hero-text .text-content h1 {
        font-size: 48px;
        line-height: 1.2;
    }
    .hero-text .text-content p {
        font-size: 14px;
    }
    .text-content {
        border-left-width: 3px;
        padding-left: 12px;
    }
    .text-block {
        padding: 40px 30px;
    }
    .text-block h2 {
        font-size: 20px;
    }
    .text-block p {
        font-size: 14px;
        line-height: 1.6;
    }
    .text-form-call {
        font-size: 22px;
    }
    .form-section {
        padding: 0 !important;
    }

    .remark {
        justify-content: center;
    }
    
    .contact-options {
        gap: 20px !important;
    }
}

    .middle {
        display: flex;
        align-items: center;
        margin-top: 40px;
        margin-left: 4vh;
    }
.form-section {
    padding: 60px 20px;
}

.form-section h3 {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 500;
    text-align: left;
    line-height: 1.4;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


.form-section {
    padding: 60px 0;
    font-family: 'Avenir Next Cyr', sans-serif;
}

/* Заголовок */
.form-section h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Рядки (два кроки в один ряд) */
.form-row {
    display: flex;
    justify-content: space-between;
    padding: 40px 10%;
    gap: 60px;
}
.grey-bg { background: #f7f7f7; }
.white-bg { background: #fff; }

/* Крок */
.form-step {
    flex: 1;
    position: relative;
    padding-left: 60px;
}


/* Номер кроку (синій квадрат) */
.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #00B6E6;
    color: #111;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    padding: 8px;   

}

/* Поля */
.form-step label {
    display: block;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 28px;
}
@media (max-width: 1024px) {
    .form-step label {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .form-step label {
        font-size: 22px;
    }
}

.form-step .contact-option {
    display: flex;
    flex-direction: row;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 16px;
    flex-basis: 20%;
    flex-grow: 0;
    gap: 15px;
}
.consent {
    display: block;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 14px;
    color: #4A4B4C;
}

.form-step input {
    width: 100%;
    padding: 14px 12px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 2px;
    font-size: 15px;
    margin-bottom: 12px;
    background: none;
}

.form-step textarea {
    width: 100%;
    padding: 14px 12px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 2px;
    font-size: 15px;
    margin-bottom: 12px;
    background: none    ;
    resize: vertical;
    min-height: 60px;
    font-family: 'Avenir Next Cyr', sans-serif;
}
.form-step textarea:focus {
    border-color: #00B6E6;
    outline: none;
}


/* Чекбокси з іконками (крок 3) */
.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.contact-option {
    flex: 1 1 calc(25% - 10px);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
   border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}
.contact-option img {
    width: 32px;
    height: 32px;
}




/* Кнопка */
.submit-btn {
    display: block;
    background: #fff;
    color: #111;
    border: 1px solid #00B6E6;
    padding: 12px 50px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}
.submit-btn:hover {
    background: #00B6E6;
    border-color: #00B6E6;
    color: #fff;
}

/* Адаптив */
@media (max-width: 992px) {
    .form-row {
        flex-direction: column;
        gap: 40px;
        padding: 40px 5%;
    }
    .contact-option {
        flex: 1 1 calc(50% - 10px);
    }
}



/* FOOTER */
footer {
    padding:20px;
    text-align:center;
    background: #1a1a1a;
    color:#fff;
    font-size:14px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

@media (max-width:768px) {
    footer {
        flex-direction: column;
        gap: 30px;} 

    .middle {
        margin-left: 0;
    }
}



.lil-col {
    display: flex;
    flex-direction: row;
}
.socials {
    display: flex;
    gap: 15px;
}
.lil-col2 {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.centrlink {
    text-align: left;
}



@media (max-width:768px) {.lil-col2{flex-direction: column-reverse; gap: 10px; text-align: center;} .lil-col{ flex-direction: column;}}
/* RESPONSIVE */
@media (max-width:768px) {
    header {padding:15px 20px;}
    .hero-text h1 {font-size: 36px;}
    .hero-text p {font-size:16px;}
    form .field {flex:1 1 100%;}
    .row{flex-direction: column-reverse;}
    .centrlink{text-align: center;}
}

/* Контейнер */
.custom-select {
    position: relative;
    width: 100%;
    font-family: 'Avenir Next Cyr', sans-serif;
}

/* Триггер (кнопка) */
.custom-select-trigger {
    width: 100%;
    padding: 14px 12px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 2px;
    font-size: 15px;
    background-color: none;
    color: #414042;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s;
}

/* Стрілочка справа */
.custom-select-trigger::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    border: solid #414042;
    border-width: 0 2px 2px 0;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

/* При ховері */
.custom-select-trigger:hover {
    border-color: #00B6E6;
}

/* Відкритий стан */
.custom-select.open .custom-select-trigger {
    border-color: #00B6E6;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    border: solid #00B6E6; /* блакитний */
    border-width: 0 2px 2px 0;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}


/* Список опцій */
.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 22px 40px 0 rgba(0,0,0,.16);
    border-radius: 2px;
    display: none;
}

/* Відображати, коли відкритий */
.custom-select.open .custom-options {
    display: block;
}

/* Групи міст */
.group-label {
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    padding-left: 5px;
    border-bottom: 1px solid #e0e0e0;
}

/* Опції */
.custom-option {
    padding: 10px 15px;
    font-size: 15px;
    cursor: pointer;
    color: #414042;
    transition: background 0.2s;
}
.custom-option:hover {
    background: #f0f0f0;
}

/* Адаптив */
@media (max-width: 768px) {
    .custom-select-trigger {
        font-size: 14px;
        padding: 12px 10px;
    }
    .custom-option {
        font-size: 14px;
        padding: 8px 12px;
    }
}

.remark {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    font-size: 12px;
    color:#414042;
    width: 75%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 15px;

}

/* Схований стан */
.extended-form {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Відкритий стан */
.extended-form.open {
    max-height: 1000px; /* достатньо для контенту */
    opacity: 1;
}

.extended-trigger {
    position: relative;
    background: none;
    border: none;
    color: #4A4B4C;
    font-family: 'Avenir Next Cyr', sans-serif;
    font-size: 16px;
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;      /* Вирівнює текст і стрілку по центру по вертикалі */
    justify-content: flex-start;
    gap: 8px;                 /* Відступ між текстом і стрілкою */
    text-align: left;
    cursor: pointer;
    padding: 0;               /* Прибрали зайві відступи */
    padding: 20px;
    flex-wrap: wrap;
}

/* Стрілка */
.extended-trigger::after {
    content: '';
    width: 8px;
    height: 8px;
    border: solid #00b6e6;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* При активному стані — стрілка вверх */
.extended-trigger.active::after {
    transform: rotate(-135deg);
}

/* Контейнер "віртуальної колонки" */
.right-col-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;      /* вирівнюємо контент праворуч */
    padding: 40px 0;
    margin: 0 auto;               /* займає половину екрана */
    gap: 20px;                  /* відступи між елементами всередині */

    /* Імітуємо другу колонку через max-width */
    max-width: 1100px;          /* великі екрани */
}

/* Обмеження для ноутбуків */
@media (max-width: 1440px) {
    .right-col-submit {
        max-width: 1100px;
    }
}


.checkbox-field,
.full-width {
    display: flex;
    gap: 8px;
    justify-content: stretch;
    width: 40%;
}

.submitting.full-width {
    justify-content: end;
}

.max-width-px {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
    flex: 1;
}

/* RESPONSIVE */
@media (max-width:768px) {
 .max-width-px {
    flex-direction: column;
 }  
 .checkbox-field, .full-width {
    width: 100%;
 }

 .right-col-submit {
    margin: 30px;
    align-items: flex-start;
    padding: 0;
 }

 .submitting.full-width {
    justify-content: center;
 }
}

footer svg {
    width: 24px;
    height: 24px;
    fill: #fff; 
    transition: fill 0.3s;
}

footer a:hover svg {
    fill: #00B6E6; /* підсвітка при наведенні */
}

footer {
    background: #1a1a1a; /* щоб білі іконки були видні */
    padding: 30px;
}

footer .lil-col {
    display: flex;
    align-items: center;
    gap: 20px;
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.popup-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 6px;
  text-align: center;
  font-size: 18px;
}
.popup-content button {
  margin-top: 15px;
  background: #00B6E6;
  border: none;
  padding: 10px 24px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  border-radius: 3px;
}

input,
textarea,
select {
  font-family: 'Avenir Next Cyr', Arial, sans-serif;
  font-size: 16px;
  color: #4A4B4C;
  background: none;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-bottom: 1px solid #00B6E6;
}

