/* ===========================
   ШРИФТИ ТА БАЗОВІ СТИЛІ
   =========================== */
p, span, h1, h2, h3, h4, h5, h6, a, div {
    font-family: 'Unbounded', sans-serif !important;
}
input{
   font-family: 'Unbounded', sans-serif !important; 
}
p {
    font-weight: 300;
}

.page-id-16007 header{
 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
   background: #ffffffbd;
}




.big_p {
    font-size: 24px;
}
h2.big_p{
    font-weight: 300;
    text-align: center;
}
.big_p b{
    font-weight: 700;
}
.propouse_text .big_p{
    max-width: 485px;
}
.page-id-16007 .avada-page-titlebar-wrapper{
    display: none;
}

/* За замовчуванням показуємо десктопну версію, ховаємо мобільну */
.etap-block-mob,
.etap_hidden_1_mob,
.etap_hidden_2_mob{
    display: none;
}

.hid_div{
    display: flex;
}

/*Хедер*/
/* ===== HEADER ===== */

header .header-wrapper {
    padding-top: 5px;
    padding-bottom: 5px;
}

header .header-wrapper .container {
    display: flex;
    justify-content: space-between;
    align-items: center !important;
}

/* ===== NAV MENU ===== */

header .header-nav-menu {
    display: flex;
    gap: 20px;
}

header .header-nav-menu a {
    text-decoration: none;
    font-weight: 400;
}

header .header-nav-menu a {
    font-weight: 300;
    text-decoration: underline;
}
@media (max-width: 1250px) {
    .header-wrapper .container{
        flex-direction: column;
        gap: 20px;
    }
}


/*Футер*/
/* ===== FOOTER REDESIGN ===== */

.footer_redesign {
    background-color: #fff;
    padding-top: 60px;
}

.footer_redesign .footer-wrapper {
    padding-bottom: 10px;
}

.footer_redesign .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===== CONTACT BLOCK ===== */

.footer_redesign .footer_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer_redesign .footer_text h2.big_p {
    color: #000 !important;
    margin-bottom: 50px;
    font-size: 40px;
}

.footer_redesign .footer_text a {
    color: #000 !important;
    text-decoration: none;
}

.footer_redesign .map_link {
    margin-bottom: 50px;
}

/* ===== SOCIAL ===== */

.footer_redesign .footer_social {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer_redesign .footer_social a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer_redesign .footer_social svg {
    display: block;
}

/* ===== MOBILE < 768px ===== */

@media (max-width: 1250px) {

    .footer_redesign {
        padding-top: 30px;
    }

    .footer_redesign .footer-wrapper {
        padding-bottom: 150px;
    }

    .footer_redesign .container {
        gap: 40px;
    }


    .footer_redesign .footer_text a {
        font-size: 14px;
    }



    /* Соцмережі */
    .footer_redesign .footer_social {
        flex-wrap: wrap;
    }

    

}


/* Мобільні екрани: ховаємо десктопну, показуємо мобільну */
@media (max-width: 1250px) { /* тут можна підставити свій брейкпоінт для мобільних */
    .etap-block,
    .etap_hidden_1,
    .etap_hidden_2{
        display: none;
    }
    .etap-block-mob,
    .etap_hidden_1_mob,
    .etap_hidden_2_mob{
        display: block;
    }
}


/* ===========================
   УТИЛІТИ
   =========================== */
.team-title,
.propouse_text a {
    text-decoration: underline;
}

/* Нижня межа для блоків */
.hero-slider,
.about-block,
.etap_divider,
.propouse-block,
.etap-block,
.varianty-block,
.dodatkovi-block,
.counter-block,
.dodatkovi-block_2,
.team-section,
#toggle-group-4{
    border-bottom: 0.5px solid #000;
}

.etap .etap_p {
    font-weight: 600;
}

/* ===========================
   КОНТЕЙНЕР
   =========================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 8vw, 120px);
}

/* ===========================
   HERO СЛАЙДЕР
   =========================== */
   
@media (min-width: 1000px) {
    .video-mobile { display: none !important; }
}

@media (max-width: 999px) {
    .video-desktop { display: none !important; }
}
   
.hero-slider {
    padding: 42px 0 60px;
    padding-top: 0px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.slide-content {
    position: absolute;
    bottom: 30px;
    right: 200px;
    z-index: 2;
    display: flex;
    text-align: end;
    justify-content: flex-end;
}

.slide-text {
    color: #fff;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Навігаційні кнопки слайдера */
.slider-nav {
    position: absolute;
    bottom: 3%;
    width: 40px;
    height: 100px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 10;
    color: #000;
}

.slider-nav:hover {
    transform: scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav svg {
    width: 50px;
    height: 100px;
}

/* ===========================
   ABOUT БЛОК
   =========================== */
.about-block {
    margin-top: 60px;
    padding-bottom: 60px;
}
.about-block .about_text p:last-child{
    margin-bottom: 0px;
}
.about-wrapper {
    display: flex;
    justify-content: space-between;
    column-gap: 80px;
}

.about_img,
.about_text {
    flex: 1;
}

/* Виправлено: було .about-img (з дефісом), а клас — .about_img (з підкресленням) */
.about_img img {
    width: 100%;
    height: auto;
    display: block;
}

.about_text {
    text-align: justify;
}

.about_text p:first-child {
    margin-top: 0;
}

.about_text p {
    text-transform: none;
}

/* ===========================
   СЕКЦІЯ КОМАНДА
   =========================== */
/* === TEAM SECTION === */
.team-section {
  padding: 60px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px !important;
}

/* Базова картка */
.team-member {
  cursor: pointer;
  position: relative;
}

.team-member-inner {
  display: flex;
  flex-direction: column;
}

/* Фото */
.team-photo-wrapper {
  width: 100%;
  overflow: hidden;
}

.team-photo-square,
.team-photo-vertical {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}

.team-photo-vertical {
  display: none;
  width: 100%!important;
}

/* Текст — початково прихований */
.team-info {
  display: none;
  padding: 12px 8px;
  padding-top: 0 !important;
}
.team-position{
    padding-top: 0;
    padding-bottom: 0px;
}
.team-member.team-member-first.active .team-info{
    left: 330px;top: 0;
}
.team-member.team-member-right.active .team-info{
    right: 330px;top: 0;
}

/* ===================== */
/* === МОБІЛЬНИЙ === */
/* ===================== */

/* Активний стан — мобільний */
.team-member.active .team-photo-square {
  display: none;
}

.team-member.active .team-photo-vertical {
  display: block;
}

.team-member.active .team-info {
  display: block;
}

/* Ліві блоки: фото зліва, текст справа */
.team-member-first.active .team-member-inner,
.team-member-left.active .team-member-inner {
  flex-direction: row;
  align-items: flex-start;
}

.team-member-first.active .team-photo-wrapper,
.team-member-left.active .team-photo-wrapper {
  flex: 0 0 100%;
  max-width: 100%;
}

.team-member-first.active .team-info,
.team-member-left.active .team-info {
  flex: 1;
  order: 2;
}

/* Праві блоки: текст зліва, фото справа */
.team-member-right.active .team-member-inner {
  flex-direction: row;
  align-items: flex-start;
}

.team-member-right.active .team-photo-wrapper {
  flex: 0 0 100%;
  max-width: 100%;
  order: 2;
}

.team-member-right.active .team-info {
  flex: 1;
  order: 1;
}


/* ===================== */
/* === ДЕСКТОП === */
/* ===================== */

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0; /* gap прибираємо, бо текст буде overlay */
    position: relative;
  }

  .team-member {
    /* скидаємо мобільний flex */
  }

  /* Фото — завжди квадратне за замовчуванням */
  .team-member .team-photo-square {
    display: block;
  }

  .team-member .team-photo-vertical {
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s ease;
  }

  /* Активне фото — вертикальне з'являється знизу вгору */
  .team-member.active .team-photo-square {
    display: none;
  }

  .team-member.active .team-photo-vertical {
    display: block;
    animation: slideUp 0.5s ease forwards;
  }

  @keyframes slideUp {
    from {
      transform: translateY(30%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Текст на десктопі — overlay поверх сусіднього блоку */
  .team-member .team-info {
    display: none;
    position: absolute;
    top: 0;
    z-index: 10;
    background: #fff; /* або колір фону вашого сайту */
    padding: 20px;
    width: 100%; /* ширина одної колонки */
    pointer-events: none;
    animation: fadeIn 0.7s ease forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Перший елемент: текст з'являється ПРАВОРУЧ (над 2-м блоком) */
  .team-member-first .team-info {
    left: 100%;
  }

  /* Решта: текст з'являється ЛІВОРУЧ (над попереднім блоком) */
  .team-member-right .team-info,
  .team-member-left .team-info {
    right: 100%;
    left: auto;
  }

  /* Показуємо текст при активному стані */
  .team-member.active .team-info {
    display: block;
    pointer-events: auto;
  }

  /* Скидаємо мобільний flex для inner */
  .team-member-first.active .team-member-inner,
  .team-member-left.active .team-member-inner,
  .team-member-right.active .team-member-inner {
    flex-direction: column;
  }

  .team-member-first.active .team-photo-wrapper,
  .team-member-left.active .team-photo-wrapper,
  .team-member-right.active .team-photo-wrapper {
    flex: unset;
    max-width: 100%;
    order: unset;
  }

  .team-member-first.active .team-info,
  .team-member-left.active .team-info,
  .team-member-right.active .team-info {
    flex: unset;
    order: unset;
  }
}

/* Інформація — базові стилі без статичних відступів */
.team-info {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, width 0.4s ease;
    color: #000;
    flex-shrink: 0;
    width: 0;
    overflow: hidden;
    padding-top: 60px;
    position: absolute;
    top: 0; /* JS буде рахувати left/right */
}

/* text-align для лівого/правого блоків */
.team-member-first .team-info {
    text-align: start;
}

.team-member-right .team-info,
.team-member-left .team-info {
    text-align: end;
}

/* Активний стан */
.team-member.active .team-info {
    opacity: 1;
    visibility: visible;
    width: 300px;
    padding-right: 20px;
}
.team-member {
    cursor: pointer;
    position: relative;
    flex: 1;
    transition: flex 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
/* ===========================
   ПРОПОЗИЦІЯ
   =========================== */
.propouse-block {
    padding-top: 60px;
}

.propouse-block .team-title {
    margin-bottom: 24px;
}

.propouse_text .big_p {
    margin-top: -5px;
    line-height: normal;
}

.propouse-wrapper {
    display: flex;
}

.propouse_img {
    width: 60%;
}

.propouse_img img {
    width: 100%;
    height: auto;
    display: block;
}

.propouse_text {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 58px;
    align-items: center;
}

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

.propouse_text a {
    font-size: 20px;
}

/* ===========================
   ЕТАПИ
   =========================== */
.etap-block {
    padding-top: 30px;
}

.etap-block .big_p {
    max-width: 380px;
    margin-top: 0;
    
}

.etap-block .etap_top {
    display: flex;
    gap: 155px;
    justify-content: space-between;
}

.etap-block .etap_bottom {
    display: flex;
    gap: 200px;
    padding-bottom: 60px;
    justify-content: center;
}

.etap-block .etap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 185px;
    justify-content: flex-end;
}

.etap-block .etap_p {
    font-weight: 600;
}

.etap-block .etap_btn,
.dodatkovi-wrapper .etap_btn{
    font-size: 20px !important;
    font-weight: 600 !important;
}

.etap-block .etap_divider {
    margin: 30px 0;
}

/* Стрілки між етапами (непарні — донизу) */
.etap-block .etap.etap_1::after,
.etap-block .etap.etap_3::after,
.etap-block .etap.etap_5::after,
.etap-block .etap.etap_7::after,
.etap-block .etap.etap_9::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: rotate(180deg);
    width: 6px;
    height: 28px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="28" viewBox="0 0 6 28" fill="none"><path d="M2.66669 22.3333C1.19393 22.3333 1.92372e-05 23.5272 1.91728e-05 25C1.91084e-05 26.4728 1.19393 27.6667 2.66669 27.6667C4.13945 27.6667 5.33335 26.4728 5.33335 25C5.33335 23.5272 4.13945 22.3333 2.66669 22.3333ZM2.66669 0L2.16669 -2.18557e-08L2.16669 25L2.66669 25L3.16669 25L3.16669 2.18557e-08L2.66669 0Z" fill="black"/></svg>') no-repeat center;
    background-size: contain;
}

/* Стрілки між етапами (парні — догори) */
.etap-block .etap.etap_2::after,
.etap-block .etap.etap_4::after,
.etap-block .etap.etap_6::after,
.etap-block .etap.etap_8::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -31px;
    width: 6px;
    height: 28px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="28" viewBox="0 0 6 28" fill="none"><path d="M2.66669 22.3333C1.19393 22.3333 1.92372e-05 23.5272 1.91728e-05 25C1.91084e-05 26.4728 1.19393 27.6667 2.66669 27.6667C4.13945 27.6667 5.33335 26.4728 5.33335 25C5.33335 23.5272 4.13945 22.3333 2.66669 22.3333ZM2.66669 0L2.16669 -2.18557e-08L2.16669 25L2.66669 25L3.16669 25L3.16669 2.18557e-08L2.66669 0Z" fill="black"/></svg>') no-repeat center;
    background-size: contain;
}


/*Моб етапи*/


    /* ====== GRID: 2 колонки ====== */
.etap-block-mob .etap-wrapper,
.etap_hidden_1_mob .etap-wrapper,
.etap_hidden_2_mob .etap-wrapper,
.hid_div{
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid #000;
}

/* Обидві колонки — внутрішній grid по рядках */
.etap-block-mob .etap_center,
.etap-block-mob .etap_right,
.etap_hidden_1_mob .etap_center,
.etap_hidden_1_mob .etap_right,
.etap_hidden_2_mob .etap_center,
.etap_hidden_2_mob .etap_right {
    display: grid;
    grid-template-rows: repeat(7, auto);
}

/* Базовий рядок */
.etap-block-mob .etap,
.etap_hidden_1_mob .etap,
.etap_hidden_2_mob .etap {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Стрілка зліва для лівої колонки */
.etap-block-mob .etap_center .etap,
.etap_hidden_1_mob .etap_center .etap,
.etap_hidden_2_mob .etap_center .etap {
    position: relative;
    padding-left: 40px;
}

.etap-block-mob .etap_center .etap::after,
.etap_hidden_1_mob .etap_center .etap::after,
.etap_hidden_2_mob .etap_center .etap::after {
    content: "";
    position: absolute;
    left: 6%;
    top: 40%;
    transform: rotate(270deg);
    width: 6px;
    height: 28px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="28" viewBox="0 0 6 28" fill="none"><path d="M2.66669 22.3333C1.19393 22.3333 1.92372e-05 23.5272 1.91728e-05 25C1.91084e-05 26.4728 1.19393 27.6667 2.66669 27.6667C4.13945 27.6667 5.33335 26.4728 5.33335 25C5.33335 23.5272 4.13945 22.3333 2.66669 22.3333ZM2.66669 0L2.16669 -2.18557e-08L2.16669 25L2.66669 25L3.16669 25L3.16669 2.18557e-08L2.66669 0Z" fill="black"/></svg>') no-repeat center;
    background-size: contain;
}

/* Текст рядка */
.etap-block-mob .etap_p,
.etap_hidden_1_mob .etap_p,
.etap_hidden_2_mob .etap_p {
    font-size: 12px;
    text-align: center;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Кнопка */
.etap-block-mob .etap_btn,
.etap_hidden_1_mob .etap_btn,
.etap_hidden_2_mob .etap_btn {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    font-size: 12px;
    color: #000;
    text-decoration: none;
    letter-spacing: 3px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.etap-block-mob .etap_btn:hover,
.etap_hidden_1_mob .etap_btn:hover,
.etap_hidden_2_mob .etap_btn:hover {
    opacity: 0.5;
}

/* Опис — розкривний */
.etap-block-mob .etap_desc,
.etap_hidden_1_mob .etap_desc,
.etap_hidden_2_mob .etap_desc {
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
    color: #333;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-top 0.3s ease;
}

        

/* ===========================
   ВАРІАНТИ
   =========================== */
.varianty-block {
    padding-top: 60px;
    padding-bottom: 60px;
}

.varianty-block .big_p:first-child {
    margin-top: 0;
}

.varianty-block .varianty-wrapper {
    display: flex;
    gap: 36px;
}

.varianty-block .variat {
    flex: 1;
}

.varianty-block .variant_1,
.varianty-block .variant_2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.varianty-block .variat .big_p {
    text-align: center;
}

.varianty-block .variant_opys {
    color: #000;
    font-weight: 400;
}

.variant_opys {
    text-align: justify;
}

.varianty-block .var_etap_btn {
    font-size: 16px;
    text-decoration: underline;
    font-weight: 300;
}

.varianty-block .opys_hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.varianty-block .opys_hidden.active {
    opacity: 1;
    margin-top: 10px;
}

/* ===========================
   ДОДАТКОВІ ПОСЛУГИ
   =========================== */
.dodatkovi-block .etap_top {
    justify-content: space-evenly;
}

.dodatkovi-block .etap {
    max-width: 380px;
    


}

.dodatkovi-block .etap_p {
    text-decoration: underline;
}

.dodatkovi_divider {
    text-align: center;
}

.divider_container{
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
    margin-top: 50px;
}

.dodatkovi-wrapper {
   
    
    align-items: center;
    display: flex;
    flex-direction: column;

}
.dodatkovi-wrapper .etap_top{
    display: flex;
    gap: 100px;
}

.dodatkovi-wrapper .etap_top .etap{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dodatkovi-wrapper .big_p {
    margin-top: 0;
    text-decoration: underline;
}
.dodatkovi-wrapper .etap_top .etap_desc{
    max-width: 490px;
}
.dodatkovi-wrapper .etap_desc {
    text-align: justify;
}

/* Приховані етапи */
.etap_hidden_1,
.etap_hidden_2{
    border-bottom: 0;
}

.etap_hidden_1 .etap_top {
    gap: 290px;
    justify-content: flex-start;
}

.etap_hidden_1 .etap_bottom {
    gap: 290px;
    justify-content: flex-end;
}

.etap_hidden_2 .etap_top {
    justify-content: space-between;
    gap: 70px;
}

.etap_hidden_2 .etap_bottom {
    justify-content: space-evenly;
    gap: 0;
}

.etap_hidden_1 .bottom_p,
.etap_hidden_2 .bottom_p{
    max-width: 590px;
}

/* Додаткові послуги 2 */
.dodatkovi-block_2 .etap_top {
    gap: 100px;
    justify-content: center;
}

.dodatkovi-block_2 .etap_p {
    text-decoration: underline;
}

.dodatkovi-block_2 .etap_top .etap {
    min-width: 490px;
}

/* ===========================
   ЛІЧИЛЬНИК
   =========================== */
.counter-block {
    padding-top: 30px;
}

.counter-block .counter-wrapper {
    margin-bottom: 30px;
}

.counter-block .counter {
    display: flex;
    justify-content: center;
}

.counter-block .counter_item {
    width: 390px;
    text-align: center;
}

.counter-block .counter_item span {
    font-size: 64px;
    font-weight: 900;
    color: #000;
    line-height: normal;
}

.counter-block .counter_item p {
    color: #000;
}

.counter_image {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.counter_image svg {
    flex: 1;
}

/* ===========================
   АДАПТИВНІСТЬ
   =========================== */

/* --- 1200px --- */
@media (max-width: 1200px) {
    .etap_top {
        gap: 80px;
    }

    .etap_bottom {
        gap: 100px;
    }

    .hidden_etaps .etap_hidden_1 .etap_top,
    .hidden_etaps .etap_hidden_1 .etap_bottom {
        gap: 150px;
    }

    .dodatkovi-block_2 .etap_top .etap {
        min-width: 320px;
    }
}

/* --- 1024px --- */
@media (max-width: 1024px) {
    .team-position{
        padding: 0;
    }
    .team-quote{
        margin: 0px;
    }
    
    .container {
        padding: 0 30px;
    }

    /* Слайдер */
    .slider-container {
        height: 100dvh;
    }

    .slide-content {
        top: 200px;
        left: 40px;
        right: 40px;
    }

    .slide-text {
        font-size: 20px;
    }

    /* About */
    .about-wrapper {
        gap: 40px;
    }

    /* Команда */
    .team-title {
        font-size: 36px;
        margin-bottom: 40px !important;
    }

    .team-grid {
        flex-wrap: wrap;
        gap: 15px;
        flex-direction: row;
    }

    .team-member {
        flex: 0 0 calc(50% - 7.5px);
    }

    .team-member.active .team-info {
        width: 200px;
    }

    /* Пропозиція */
    .propouse-wrapper {
        flex-direction: column;
    }

    .propouse_img,
    .propouse_text {
        width: 100%;
    }

    .propouse_text {
        padding-bottom: 30px;
        gap: 20px;
    }

    /* Етапи */
    .etap_top {
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .etap_bottom {
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .etap-block .big_p {
        margin-bottom: 50px;
    }

    /* Варіанти */
    .varianty-block .varianty-wrapper {
        flex-wrap: wrap;
    }

    .varianty-block .variat {
        flex: 0 0 calc(50% - 18px);
    }

    /* Лічильник */
    .counter-block .counter {
        flex-wrap: wrap;
    }

    .counter-block .counter_item {
        width: 45%;
    }

    /* Додаткові */
    .dodatkovi-block .etap_top {
        flex-wrap: wrap;
        gap: 30px;
    }

    .dodatkovi-block_2 .etap_top {
        flex-wrap: wrap;
        gap: 40px;
    }

    .dodatkovi-block_2 .etap_top .etap {
        min-width: 280px;
    }

    .hidden_etaps .etap_hidden_2 .etap_top,
    .hidden_etaps .etap_hidden_2 .etap_bottom {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
}

/* --- 768px --- */
@media (max-width: 1250px) {
    .container {
        padding: 0 20px;
    }

    /* Слайдер */
    .hero-slider {
        padding: 40px 0;
        padding-top: 0px;
    }

    .slider-container {
        height: 100dvh;
    }

    .slide-content {
        bottom: 170px;
        left: 30px;
        right: 30px;
    }

    .slide-text {
        font-size: 18px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav svg {
        width: 20px;
        height: 20px;
    }

    /* About */
    .about-wrapper {
        flex-direction: column;
    }

    /* Команда */
    .team-section {
        padding: 40px 0 60px;
    }

    .team-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .team-member.active .team-info {
        width: 200px;
        padding-top: 40px;
    }

    .team-position {
        font-size: 14px;
    }

    .team-name {
        font-size: 14px;
    }

    .team-quote {
        font-size: 12px;
    }

    /* Варіанти */
    .varianty-block .variat {
        flex: 0 0 100%;
    }

    /* Лічильник */
    .counter-block .counter_item {
        width: 100%;
    }

    .counter-block .counter_item span {
        font-size: 48px;
    }

    /* Додаткові */
    

    .dodatkovi-block_2 .etap_top .etap {
        min-width: unset;
        width: 100%;
    }

    .hidden_etaps .etap_hidden_1 .etap_top,
    .hidden_etaps .etap_hidden_1 .etap_bottom {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Слайдер */
    .slider-container {
        height: 100dvh;
    }

    .slide-content {
        bottom: 170px;
        left: 20px;
        right: 20px;
    }

    .slide-text {
        font-size: 16px;
        line-height: 1.4;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    /* Команда */
    

    .team-title {
        font-size: 28px;
    }

    .team-member.active .team-info {
        width: 200px;
    }

    /* Пропозиція */
    .propouse_text p {
        font-size: 18px;
    }

    .propouse_text a {
        font-size: 16px;
    }

    /* Етапи */
    .etap_top,
    .etap_bottom {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .etap {
        max-width: 100%;
        width: 100%;
    }

    /* Варіанти */
    .big_p {
        font-size: 20px;
    }

    /* Лічильник */
    .counter-block .counter_item span {
        font-size: 40px;
    }
}

.intro_text{
    margin-top: 0px;
    text-align: justify;
}


/*Мобільні стилі*/
@media (max-width: 1000px) {
    .counter-block .counter_image{
        
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;

    }
    .counter-block .counter_image svg{
        flex: none;
        width: 23%;
        height: auto;
    }
    .counter-block .counter_item {
        width: 33%;
    }
    .counter-block .counter_item span{
        font-size: 25px;
    }
    .counter-block .counter_item p{
        font-size: 14px;
    }
    
    
    .hero-slider .container{
        padding: 0;
    }
    .slider-container{
        height: 100dvh;
    }
    .slider-wrapper button{
        display: none;
    }
    
    
    .team-member-first.active .team-info,
    .team-member-left.active .team-info{
            
        left: 180px!important;
        top: -40px!important;
        text-align: left;

    }
    .team-member-right.active .team-info{
        
        left: -200px;
        top: 0;
        text-align: end;
        padding-top: 5px;

    }
    .team-member-right.active .team-info .team-position{
        padding-right: 0px;
        
        
    }
}



/* Десктоп — Grid layout */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* дві колонки */
  grid-template-areas:
    "img text1"
    "img text2";
}

.about_img {
  grid-area: img;
}

.intro_text {
  grid-area: text1;
}

.about_text {
  grid-area: text2;
}

/* Мобільний — звичайний column */
@media (max-width: 1250px) {
  .about-wrapper {
    display: flex;
    flex-direction: column;
  }

  .intro_text { order: 1; }
  .about_img  { order: 2; }
  .about_text { order: 3; }
}


.propouse_text--mobile {
    display: none;
}

@media (max-width: 1250px) {
    .propouse-wrapper {
        display: flex;
        flex-direction: column;
    }

    .propouse_text--mobile {
        display: block;
        text-align: center;
        order: 1;
    }

    .propouse_img {
        order: 2;
    }

    .propouse_text {
        order: 3;
        margin-top: 10px;
    }

    .propouse_text .big_p {
        display: none;
    }
}

.dodatkovi_divider {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
}

.dodatkovi_divider svg {
    transition: transform 0.3s ease;
}

.dodatkovi_divider[aria-expanded="false"] svg {
    transform: rotate(180deg);
}

.toggle-hidden {
    display: none;
}

.dodatkovi_divider {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
}

.dodatkovi_divider svg {
    transition: transform 0.3s ease;
}

.dodatkovi_divider[aria-expanded="false"] svg {
    transform: rotate(180deg);
}

/* Плавна анімація */
.toggle-group {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.4s ease, opacity 0.4s ease;
    opacity: 1;
    overflow: hidden;
}

.toggle-group.toggle-hidden {
    grid-template-rows: 0fr;
    opacity: 0;
}

.toggle-group > .toggle-group-inner {
    min-height: 0;
    overflow: hidden;
}
.toggle-hidden-simple {
    display: none;
}

/**/
/**/
/**/

#dodat_1,#dodat_2,#dodat_3,#dodat_4{
    .big_p{
        margin-top: 0;
    }
    padding-top: 60px;
}

#toggle-group-1,
#toggle-group-2,
#toggle-group-3,
#toggle-group-4 {
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: 9999px; /* активний стан */
}

.toggle-hidden {
    max-height: 60px !important;
}


@media (max-width: 1024px) {
    .about-block{
        margin-top: 40px;
        padding-bottom: 40px;
    }
    .intro_text{
        margin-bottom: 0;
    }
    .team-section{
        padding: 40px 0;
    }
    .team-member-first.active .team-info, .team-member-left.active .team-info {
        top: 0px !important;

    }
    .propouse-block{
        padding-bottom: 40px;
    }
    .propouse_text--mobile b{
        font-weight: 600;
    }
    .propouse_text--mobile{
        max-width: 295px;
    }
    .propouse-block{
        padding-bottom: 0;
    }
    .etap-block-mob{
        border-bottom: 0.5px solid #000;
        padding-bottom: 40px;
    }
    .propouse-wrapper{
        align-items: center;
    }
    .varianty-block{
        padding: 40px 0;
    }
    .dodatkovi-wrapper .etap_top {
    gap: 40px;
}
.divider_container{
    margin-bottom: 50px;
}
#dodat_1, #dodat_2, #dodat_3, #dodat_4 {
    padding-top: 40px;
}
.toggle-hidden {
    max-height: 40px !important;
}
}