/* =====================
   SECTION MAX-WIDTHS
   ===================== */

.hero            .container { max-width: 1720px; }
.product-category .container { max-width: 1390px; }
.product-range   .container { max-width: 1420px; }
.why-us          .container { max-width: 1140px; }
.cooperation     .container { max-width: 1440px; }
.dealership      .container { max-width: 1720px; }
.offers          .container { max-width: 1440px; }
.technologies    .container { max-width: 1720px; }
.decision        .container { max-width: 1240px; }


/* =====================
   PRODUCT CATEGORY
   ===================== */

.product-category {
  padding-bottom: 20px;
}

.product-category__inner {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  background: #f9f9fa;
  border-radius: 24px;
}

/* Decorative ellipses */
.product-category__inner::before,
.product-category__inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.product-category__inner::before {
  width: 276px;
  height: 276px;
  top: -95px;
  left: -54px;
  background: radial-gradient(circle, rgba(252, 0, 8, 0.08) 0%, transparent 70%);
}

.product-category__inner::after {
  width: 358px;
  height: 358px;
  top: 20px;
  right: -120px;
  background: radial-gradient(circle, rgba(100, 120, 180, 0.08) 0%, transparent 70%);
}

.product-category__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  height: 206px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 20px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-category__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-category__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-category__card:hover .product-category__img {
  transform: scale(1.04);
}

.product-category__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.35));
  border-radius: inherit;
}

.product-category__name {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1.28px;
  text-align: center;
  line-height: 1.2;
}


@media (max-width: 1439px) {
  .product-category__card {
    height: 180px;
  }

  .product-category__name {
    font-size: 14px;
    letter-spacing: 0.8px;
  }
}

@media (max-width: 1023px) {
  .product-category {
    padding-bottom: 16px;
  }

  .product-category__inner {
    border-radius: 16px;
    padding: 12px;
    gap: 8px;
  }

  .product-category__card {
    height: 150px;
    border-radius: 14px;
    padding-bottom: 12px;
  }

  .product-category__name {
    font-size: 13px;
    letter-spacing: 0.6px;
  }
}

@media (max-width: 767px) {
  .product-category {
    padding-bottom: 30px;
  }

  .product-category__inner {
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .product-category__inner::before,
  .product-category__inner::after {
    display: none;
  }

  /* 2x2 grid via two row-groups */
  .product-category__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 118px 118px;
  }

  .product-category__card {
    height: 118px;
    border-radius: 16px;
    padding-bottom: 10px;
  }

  .product-category__card:hover {
    transform: none;
    box-shadow: none;
  }

  .product-category__name {
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 600;
  }
}

/* =====================
   HERO
   ===================== */

.hero {
  padding: 20px 0 50px;
}

.hero__inner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px 40px 40px;
  background: linear-gradient(111.494deg, rgb(217, 197, 188) 0.68%, rgb(166, 174, 179) 100%);
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  pointer-events: none;
}

/* Offset = header top position + header height, to clear fixed header */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  padding-top: calc(var(--header-top) + var(--header-height-desktop) + 10px);
  flex: 1;
}

.hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  min-width: 0;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 30px;
  margin-bottom: 40px;
}

.hero__title {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #323337 0.991%, #606060 84.867%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.hero__cta {
  margin-top: 8px;
  align-self: flex-start;
}

.hero__cta-short {
  display: none;
}

.hero__desc-br {
  display: none;
}

/* Telegram CTA variant — used by hero block when cta_style=telegram */
.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  background: #2AABEE;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-telegram:hover  { background: #1e9be3; color: #fff; }
.btn-telegram:active { background: #1589cc; color: #fff; }

.btn-telegram__icon {
  flex-shrink: 0;
}

/* Info cards */
.hero__cards {
  display: flex;
  gap: 20px;
}

.hero__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  flex: 1;
}

.hero__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--color-white);
  border-radius: 6px;
  flex-shrink: 0;
}

.hero__card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  line-height: 1.2;
}

.hero__card-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: -0.07px;
}

/* Media column */
.hero__media {
  position: relative;
  width: 750px;
  height: 552px;
  flex-shrink: 0;
}

.hero__img-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 670px;
  height: 552px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  overflow: hidden;
}

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

/* Float badge cards — desktop: stacked on right */
.hero__float-cards {
  position: absolute;
  right: 0;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  width: 185px;
}

.hero__badge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 22px 12px 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  box-shadow: 5px 3px 14px 0 rgba(83, 87, 95, 0.1);
}

.hero__badge-card--warranty {
  background: linear-gradient(-90deg, rgba(255, 255, 255, 0.4) 0%, rgba(184, 177, 165, 0.4) 100%);
}

.hero__badge-card--experience {
  max-width: 140px;
  background: linear-gradient(-90deg, rgba(255, 255, 255, 0.4) 0%, rgba(195, 203, 214, 0.4) 100%);
}

.hero__badge-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--color-white);
  border-radius: 6px;
  flex-shrink: 0;
}

.hero__badge-card-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.2;
}

/* App float card */
.hero__app-card {
  position: absolute;
  left: 0;
  top: 25px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 13px;
  width: 177px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(184, 177, 165, 0.4) 100%);
  border: 1px solid #e7ebf0;
  border-radius: 13px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero__app-img-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 151 / 171;
}

.hero__app-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero__app-label {
  font-size: 12px;
  font-weight: 600;
  color: #4a4642;
  line-height: 1.2;
  text-align: center;
}


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

@media (max-width: 1439px) {
  .hero__content {
    gap: 40px;
  }

  .hero__title {
    font-size: 50px;
  }

  .hero__media {
    width: 385px;
    height: 485px;
    flex-shrink: 0;
  }

  .hero__img-wrap {
    width: 100%;
    height: 100%;
  }

  .hero__app-card {
    width: 148px;
  }
}

@media (max-width: 1023px) {
  .hero {
    padding: 0 0 20px;
  }

  .hero .container {
    padding: 0;
  }

  .hero__inner {
    border-radius: 0;
    padding: 16px 16px 32px;
    min-height: auto;
  }

  .hero__content {
    flex-direction: column;
    gap: 24px;
    padding-top: calc(var(--header-height-mobile) + 24px);
  }

  .hero__left {
    gap: 32px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__desc {
    font-size: 16px;
  }

  .hero__media {
    width: 100%;
    height: 360px;
  }

  .hero__img-wrap {
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
  }

  .hero__float-cards {
    right: 0;
    bottom: 8px;
    width: 185px;
  }

  .hero__app-card {
    width: 120px;
    bottom: 24px;
    gap: 8px;
    padding: 10px;
  }
}

@media (max-width: 767px) {
  .hero__inner {
    padding: 40px 16px;
    background: linear-gradient(94.239deg, rgb(248, 237, 233) 0.68%, rgb(166, 174, 179) 100%);
  }

  .hero__content {
    flex-direction: column;
    gap: 24px;
    padding-top: calc(var(--header-height-mobile) + 16px);
  }

  .hero__left {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .hero__text {
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-top: 0;
  }

  .hero__text .section-badge {
    justify-content: center;
  }

  .hero__title {
    font-size: 28px;
    font-weight: 600;
  }

  .hero__desc {
    font-size: 16px;
  }

  .hero__desc-br {
    display: none;
  }

  .hero__cta {
    align-self: center;
    margin-top: 0;
  }

  .hero__cta-full {
    display: none;
  }

  .hero__cta-short {
    display: inline;
  }

  /* Image */
  .hero__media {
    width: 100%;
    height: 253px;
    order: 2;
  }

  .hero__img-wrap {
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }

  .hero__app-card {
    display: none;
  }

  /* Float cards — horizontal row at bottom of image */
  .hero__float-cards {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: auto;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
  }

  .hero__badge-card {
    padding: 6px;
    border-radius: 7px;
    gap: 5px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    flex: 1;
  }

  .hero__badge-card--warranty {
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.8) 0%, rgba(184, 177, 165, 0.8) 100%);
  }

  .hero__badge-card--experience {
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.8) 0%, rgba(195, 203, 214, 0.8) 100%);
  }

  .hero__badge-card-icon {
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 3px;
  }

  .hero__badge-card-icon img {
    width: 20px;
    height: 20px;
  }

  .hero__badge-card-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
  }

  /* Info cards — horizontal row */
  .hero__cards {
    flex-direction: row;
    gap: 6px;
    order: 3;
  }

  .hero__card {
    gap: 16px;
    padding: 16px;
  }

  .hero__card-icon {
    width: 32px;
    height: 32px;
    padding: 6px;
  }

  .hero__card-icon img {
    width: 20px;
    height: 20px;
  }

  .hero__card-title {
    font-size: 14px;
  }

  .hero__card-text {
    font-size: 12px;
    letter-spacing: -0.06px;
  }
}


/* =====================
   PRODUCT RANGE
   ===================== */

.product-range {
  padding: 80px 0;
}

/* Header: title left, tabs right, aligned to bottom */
.product-range__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 40px;
  margin-bottom: 40px;
}

.product-range__header .section-head--left {
  flex: 0 1 auto;
  min-width: 0;
}

/* Tabs */
.product-range__tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.product-range__tab {
  height: 48px;
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32px;
  white-space: nowrap;
  cursor: pointer;
  background: var(--color-bg-2);
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}

.product-range__tab:hover {
  background: var(--color-border);
}

.product-range__tab--active {
  background: var(--color-primary);
  color: var(--color-white);
}

.product-range__tab--active:hover {
  background: var(--color-primary-hover);
}

/* 2-column grid */
.product-range__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* "All products" link — standalone red-outline button */
.product-range__all-btn {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 10px 48px;
  border: 1px solid #fc0008;
  border-radius: 8px;
  background: none;
  color: #fc0008;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.product-range__all-btn:hover {
  background-color: #fc0008;
  color: #fff;
}

/* ---- Product card ---- */

.product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--color-bg-3);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Media area */
.product-card__media {
  position: relative;
  width: 308px;
  min-height: 308px;
  flex-shrink: 0;
  background: var(--color-bg-3);
  overflow: hidden;
}

.product-card__watermark {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  width: 85%;
  pointer-events: none;
  user-select: none;
}

.product-card__img {
  position: absolute;
  left: 50%;
  /* Slightly raised from the geometric center (50% → 44%) so the photo
     visually centres in the space ABOVE the series badge that sits at
     bottom:20px. */
  top: 44%;
  transform: translate(-50%, -50%);
  width: 256px;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18));
}

.product-card__category {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 20px;
  border: 1px solid var(--color-text-light);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.96px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Series badge — pinned to the bottom of .product-card__media,
   directly under the product image. Mirrors .product-card__category
   styling but slightly smaller. Centered horizontally. */
.product-card__series {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border: 1px solid var(--color-text-light);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.2;
  white-space: nowrap;
  max-width: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

/* Card body */
.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  min-width: 0;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  text-transform: uppercase;
  line-height: 1.2;
}

.product-card__temp {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
}

.product-card__temp strong {
  font-weight: 500;
}

.product-card__desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__btn {
  text-decoration: none;
  align-self: flex-start;
}

/* Arrow icon: red by default, white on hover */
.product-card__btn img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(97%) saturate(7335%) hue-rotate(357deg) brightness(104%);
  transition: filter var(--transition);
}

.product-card__btn:hover img {
  filter: brightness(0) invert(1);
}


@media (max-width: 1439px) {
  .product-card__media {
    width: 260px;
    min-height: 260px;
  }

  .product-range__header {
    gap: 20px;
  }

  .product-card__img {
    width: 210px;
  }
}

@media (max-width: 1023px) {
  .product-range {
    padding: 60px 0;
  }

  .product-range__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  /* Tabs — горизонтальний скрол якщо не вміщуються */
  .product-range__tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-range__tabs::-webkit-scrollbar {
    display: none;
  }

  /* Картка вертикальна */
  .product-card {
    flex-direction: column;
  }

  .product-card__media {
    width: 100%;
    height: 220px;
    min-height: 0;
  }

  .product-card__img {
    width: 200px;
    max-height: 140px;
    /* On the vertical card the media is only 220px tall, so re-centre
       the image rather than offsetting it for the bottom-pinned series
       badge. */
    top: 50%;
  }

  /* Tighten the series badge gap on the shorter mobile media area. */
  .product-card__series {
    bottom: 12px;
  }

  .product-card__name {
    font-size: 16px;
  }

  .product-card__desc {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .product-range {
    padding: 50px 0;
  }

  /* Center title on mobile */
  .product-range__header {
    align-items: center;
    margin-bottom: 20px;
  }

  .product-range .section-head {
    align-items: center;
  }

  .product-range .section-title {
    text-align: center;
  }

  /* Scrollable tabs */
  .product-range__tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }

  .product-range__tabs::-webkit-scrollbar {
    display: none;
  }

  .product-range__tab {
    height: 46px;
    font-size: 14px;
    letter-spacing: 0.28px;
    flex-shrink: 0;
  }

  /* 1-column grid */
  .product-range__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Vertical card */
  .product-card {
    flex-direction: column;
  }

  .product-card__media {
    width: 100%;
    height: 220px;
    min-height: 0;
  }


  .product-card__img {
    width: 220px;
    max-height: 120px;
  }

  /* Smaller category badge on mobile + matching series badge */
  .product-card__category {
    font-size: 10px;
    padding: 6px 12px;
    letter-spacing: 0.5px;
  }

  .product-card__series {
    font-size: 10px;
    padding: 6px 12px;
    letter-spacing: 0.5px;
  }

  /* Text link style (no border/bg) */
  .product-card__btn.btn.btn-secondary {
    border: none;
    height: auto;
    padding: 0;
    color: var(--color-text-body);
    box-shadow: none;
    font-size: 16px;
    font-weight: 600;
  }

  /* Стрілка чорна на мобільному */
  .product-card__btn img {
    filter: brightness(0);
  }

  .product-range__all-btn {
    width: 100%;
    margin-top: 24px;
    padding: 10px 28px;
    text-align: center;
  }
}


/* =====================
   WHY US
   ===================== */

.why-us {
  padding: 60px 0;
}

.why-us__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.why-us__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* 1st card: 60%, 2nd: 40%, 3rd: 40%, 4th: 60% */
.why-us__card:nth-child(1),
.why-us__card:nth-child(4) {
  flex: 0 0 calc(60% - 10px);
}

.why-us__card:nth-child(2),
.why-us__card:nth-child(3) {
  flex: 0 0 calc(40% - 10px);
}

.why-us__card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(to bottom, #eef0f3, #ffffff);
  border: 1px solid rgba(231, 235, 240, 0.5);
  border-radius: 10px;
  overflow: hidden;
}

/* Cards with photo (partner & service) span full height of their row */
.why-us__card--with-photo {
  padding: 0;
  align-items: stretch;
}

.why-us__card--with-photo .why-us__card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  flex: 1;
  min-width: 0;
}

.why-us__card-photo {
  flex-shrink: 0;
  width: 210px;
  align-self: stretch;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.why-us__card-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Simple cards (logistics & guarantee) */
.why-us__card:not(.why-us__card--with-photo) {
  flex-direction: column;
  gap: 10px;
}

.why-us__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--color-white);
  border-radius: 6px;
  flex-shrink: 0;
}

.why-us__card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-us__card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  line-height: 1.2;
}

.why-us__card-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: -0.07px;
}


@media (max-width: 1439px) {
  .why-us__grid {
    max-width: 100%;
  }

  .why-us__card-photo {
    width: 160px;
  }

  .why-us__card-title {
    font-size: 16px;
  }
}

@media (max-width: 1023px) {
  .why-us {
    padding: 40px 0;
  }

  .why-us__inner {
    gap: 32px;
  }

  .why-us__grid {
    gap: 16px;
  }

  .why-us__card:nth-child(1),
  .why-us__card:nth-child(2),
  .why-us__card:nth-child(3),
  .why-us__card:nth-child(4) {
    flex: 0 0 100%;
  }

  /* Картки з фото — горизонтальні, як на ПК */
  .why-us__card--with-photo {
    flex-direction: row;
  }

  .why-us__card-photo {
    width: 160px;
    height: auto;
    align-self: stretch;
    align-items: flex-end;
  }

  .why-us__card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .why-us {
    padding: 50px 0;
  }

  .why-us__inner {
    gap: 24px;
  }

  .why-us__grid {
    gap: 16px;
  }

  .why-us__card {
    gap: 24px;
  }

  .why-us__card:not(.why-us__card--with-photo) {
    gap: 24px;
  }

  /* On mobile: photo becomes absolute background of the card */
  .why-us__card--with-photo {
    position: relative;
    overflow: hidden;
    flex-direction: column;
    min-height: 260px;
  }

  .why-us__card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .why-us__card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Білий напівпрозорий overlay поверх фото */
  .why-us__card--with-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    z-index: 1;
  }

  .why-us__card--with-photo .why-us__card-body {
    position: relative;
    z-index: 2;
  }

  .why-us__card-title {
    font-size: 16px;
  }

  .why-us__card-desc {
    font-size: 16px;
  }

}


/* =====================
   COOPERATION
   ===================== */

.cooperation {
  background: var(--color-bg-2);
  padding: 100px 0;
}

.cooperation__inner {
  display: grid;
  grid-template-columns: 1fr 493px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "head  media"
    "steps media";
  column-gap: 120px;
  row-gap: 40px;
}

.cooperation__head  { grid-area: head; }
.cooperation__steps { grid-area: steps; display: flex; flex-direction: column; }
.cooperation__media { grid-area: media; border-radius: 16px; overflow: hidden; }

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

/* Step */
.cooperation__step {
  display: flex;
  flex-direction: column;
}

.cooperation__step-btn {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 20px 0;
  width: 100%;
  text-align: left;
  cursor: default;
  background: none;
  border: none;
}

.cooperation__step-num {
  font-size: 40px;
  font-weight: 600;
  color: var(--color-text-light);
  line-height: 1.2;
  width: 40px;
  flex-shrink: 0;
}

.cooperation__step-info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.cooperation__step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  line-height: 1.2;
}

.cooperation__step-arrow {
  display: none;
}

.cooperation__step-body {
  padding: 0 0 20px 65px;
}

.cooperation__step-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: -0.07px;
}

.cooperation__step-line {
  height: 1px;
  background: var(--color-border);
}


@media (max-width: 1439px) {
  .cooperation {
    padding: 80px 0;
  }

  .cooperation__inner {
    grid-template-columns: 1fr 380px;
    column-gap: 80px;
  }
}

@media (max-width: 1023px) {
  .cooperation {
    padding: 60px 0;
  }

  .cooperation__inner {
    grid-template-columns: 1fr 300px;
    column-gap: 40px;
    row-gap: 32px;
  }

  .cooperation__step-num {
    font-size: 30px;
  }

  .cooperation__step-title {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .cooperation {
    padding: 50px 0;
  }

  .cooperation__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .cooperation__head  { order: 1; }
  .cooperation__media { order: 2; }
  .cooperation__steps { order: 3; }

  .cooperation__head .section-head {
    align-items: center;
    text-align: center;
  }

  .cooperation__head .section-title {
    text-align: center;
  }

  .cooperation__media {
    height: 226px;
    border-radius: 16px;
  }

  .cooperation__step-btn {
    cursor: pointer;
    padding: 16px 0;
    align-items: center;
  }

  .cooperation__step-num {
    font-size: 30px;
    width: 36px;
  }

  .cooperation__step-info {
    justify-content: space-between;
  }

  .cooperation__step-title {
    font-size: 18px;
  }

  .cooperation__step-arrow {
    display: block;
    flex-shrink: 0;
    transition: transform var(--transition);
  }

  .cooperation__step--open .cooperation__step-arrow {
    transform: rotate(180deg);
  }

  .cooperation__step-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 52px;
    transition: max-height 0.35s ease, padding-bottom 0.35s ease;
  }

  .cooperation__step--open .cooperation__step-body {
    max-height: 400px;
    padding-bottom: 16px;
  }
}


/* =====================
   DEALERSHIP
   ===================== */

.dealership {
  padding: 20px 0;
}

.dealership__inner {
  border-radius: 24px;
  background:
    linear-gradient(rgba(28, 28, 30, 0.82), rgba(28, 28, 30, 0.82)),
    url('../img/home/dealership-bg.webp') center / cover no-repeat;
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* Section-head overrides for dark background */
.dealership .section-badge__text {
  color: var(--color-white);
}

.dealership .section-title {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--color-white);
}

/* Benefits row */
.dealership__benefits {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.dealership__benefit {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  min-width: 0;
}

.dealership__benefit-sep {
  display: none;
}

/* Desktop: button is flex-wrap layout — circle+line on row 1, title on row 2 */
.dealership__benefit-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  cursor: default;
  background: none;
  border: none;
  text-align: left;
}

.dealership__benefit-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-white);
  flex-shrink: 0;
}

.dealership__benefit-connector {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: center;
  min-width: 0;
}

.dealership__benefit-title {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.2;
  padding-top: 24px;
}

.dealership__benefit-arrow {
  display: none;
}

.dealership__benefit-body {
  padding-right: 40px;
  padding-top: 16px;
}

.dealership__benefit-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.4;
}

/* CTA */
.dealership__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dealership__cta-note {
  max-width: 486px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.4;
}


@media (max-width: 1439px) {
  .dealership__inner {
    padding: 80px 60px;
  }
}

@media (max-width: 1023px) {
  .dealership__inner {
    padding: 60px 40px;
    gap: 40px;
  }

  /* Benefits — вертикальний список */
  .dealership__benefits {
    flex-direction: column;
    width: 100%;
  }

  .dealership__benefits::after {
    content: '';
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
  }

  .dealership__benefit {
    padding-bottom: 0;
  }

  .dealership__benefit-sep {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
  }

  .dealership__benefit-btn {
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
  }

  .dealership__benefit-num {
    width: 48px;
    height: 48px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .dealership__benefit-connector {
    display: none;
  }

  .dealership__benefit-title {
    flex: 1;
    width: auto;
    padding-top: 0;
    font-size: 16px;
  }

  .dealership__benefit-body {
    padding: 0 0 20px 64px;
  }

  .dealership__benefit-desc {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .dealership {
    padding: 16px 0;
  }

  .dealership__inner {
    border-radius: 16px;
    padding: 50px 20px;
    gap: 24px;
  }

  .dealership__benefits {
    flex-direction: column;
    width: 100%;
  }

  /* Bottom border after last item */
  .dealership__benefits::after {
    content: '';
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
  }

  .dealership__benefit {
    padding-bottom: 0;
  }

  .dealership__benefit-sep {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
  }

  /* Accordion trigger: [circle] [title] [arrow] in one row */
  .dealership__benefit-btn {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    cursor: pointer;
  }

  .dealership__benefit-num {
    width: 34px;
    height: 34px;
    font-size: 9px;
    border-width: 1.5px;
    flex-shrink: 0;
  }

  .dealership__benefit-connector {
    display: none;
  }

  .dealership__benefit-title {
    flex: 1;
    width: auto;
    padding-top: 0;
    font-size: 16px;
  }

  .dealership__benefit-arrow {
    display: block;
    flex-shrink: 0;
    transition: transform var(--transition);
  }

  .dealership__benefit--open .dealership__benefit-arrow {
    transform: rotate(180deg);
  }

  /* Accordion body */
  .dealership__benefit-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 46px;
    transition: max-height 0.35s ease, padding-bottom 0.35s ease;
  }

  .dealership__benefit--open .dealership__benefit-body {
    max-height: 400px;
    padding-bottom: 16px;
  }

  .dealership__cta .btn-primary {
    width: 100%;
    justify-content: center;
  }
}


/* =====================
   OFFERS
   ===================== */

.offers {
  background: var(--color-bg-2);
  padding: 100px 0;
}

.offers__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.offers__item {
  display: flex;
  align-items: center;
  gap: 180px;
}

.offers__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.offers__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offers__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(to right, #323337 0.991%, #606060 84.867%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.offers__body p {
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 1.4;
}

.offers__body p + p {
  margin-top: 10px;
}

.offers__quote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 40px;
}

.offers__quote-line {
  width: 2px;
  align-self: stretch;
  flex-shrink: 0;
  background: #fc0008;
}

.offers__quote p {
  flex: 1;
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 1.4;
}

.offers__quote-lead {
  font-weight: 500;
}

.offers__media {
  width: 493px;
  height: 266px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
}

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

.offers__sep {
  height: 1px;
  background: var(--color-border);
}

/* ---- Responsive ---- */

@media (max-width: 1439px) {
  .offers__item {
    gap: 80px;
  }
}

@media (max-width: 1023px) {
  .offers {
    padding: 60px 0;
  }

  .offers__item {
    gap: 40px;
  }

  .offers__title {
    font-size: 32px;
  }

  .offers__media {
    width: 340px;
    height: 220px;
  }
}

@media (max-width: 767px) {
  .offers {
    padding: 50px 0;
  }

  .offers__inner {
    gap: 24px;
  }

  .offers__item {
    flex-direction: column;
    gap: 24px;
  }

  .offers__title {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.48px;
  }

  .offers__quote {
    padding-left: 12px;
  }

  .offers__media {
    width: 100%;
    height: 226px;
    flex-shrink: unset;
  }
}


/* =====================
   TECHNOLOGIES
   ===================== */

.technologies {
  padding: 20px 0;
}

/* Conditioner image — absolutely positioned inside inner, bleeds above the block */
.technologies__top {
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.technologies__conditioner {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* Colored inner block */
.technologies__inner {
  position: relative;
  border-radius: 24px;
  background: url('../img/home/technologies_bg.webp') center / cover no-repeat;
  overflow: visible;
  padding: 0 80px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Section head */
.technologies__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.technologies__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.technologies__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

/* Flex grid with specific widths per row */
/* Row 1: 30% / 20% / 20% / 30% */
.technologies__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.technologies__card:nth-child(1) { flex: 0 0 calc(30% - 9px); }
.technologies__card:nth-child(2) { flex: 0 0 calc(20% - 6px); }
.technologies__card:nth-child(3) { flex: 0 0 calc(20% - 6px); }
.technologies__card:nth-child(4) { flex: 0 0 calc(30% - 9px); }

/* Row 2: 33.33% / 33.33% / 33.33% */
.technologies__card:nth-child(5)  { flex: 0 0 calc(33.333% - 6.667px); }
.technologies__card:nth-child(6)  { flex: 0 0 calc(33.333% - 6.667px); }
.technologies__card:nth-child(7)  { flex: 0 0 calc(33.333% - 6.667px); }

/* Row 3: 25% / 25% / 50% */
.technologies__card:nth-child(8)  { flex: 0 0 calc(25% - 5px); }
.technologies__card:nth-child(9)  { flex: 0 0 calc(25% - 5px); }
.technologies__card:nth-child(10) { flex: 0 0 calc(50% - 10px); }

/* Card */
.technologies__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(to bottom, rgba(238, 240, 243, 0.9), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(231, 235, 240, 0.6);
  border-radius: 10px;
  text-align: center;
}

.technologies__card-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.technologies__card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.technologies__card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: #1c1c1e;
}

.technologies__card-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
  letter-spacing: -0.07px;
}

/* Mobile nav & progress — hidden on desktop */
.technologies__nav,
.technologies__progress {
  display: none;
}

/* ---- Responsive ---- */

@media (max-width: 1439px) {
  .technologies__inner {
    padding: 0 40px 60px;
  }

  .technologies__conditioner {
    max-height: 200px;
  }

  .technologies__top {
    top: -100px;
  }

  /* Зберігаємо десктопний розподіл колонок */
  .technologies__card:nth-child(1) { flex: 0 0 calc(30% - 10px); }
  .technologies__card:nth-child(2) { flex: 0 0 calc(20% - 10px); }
  .technologies__card:nth-child(3) { flex: 0 0 calc(20% - 10px); }
  .technologies__card:nth-child(4) { flex: 0 0 calc(30% - 10px); }
  .technologies__card:nth-child(5) { flex: 0 0 calc(33.333% - 10px); }
  .technologies__card:nth-child(6) { flex: 0 0 calc(33.333% - 10px); }
  .technologies__card:nth-child(7) { flex: 0 0 calc(33.333% - 10px); }
  .technologies__card:nth-child(8) { flex: 0 0 calc(25% - 10px); }
  .technologies__card:nth-child(9) { flex: 0 0 calc(25% - 10px); }
  .technologies__card:nth-child(10) { flex: 0 0 calc(50% - 10px); }

  .technologies__card-title {
    font-size: 14px;
  }
}

@media (max-width: 1023px) {
  .technologies__top {
    top: -80px;
  }

  .technologies__conditioner {
    max-height: 200px;
  }

  .technologies__inner {
    padding: 0 40px 50px;
    gap: 30px;
  }

  .technologies__card:nth-child(1)  { flex: 0 0 calc(50% - 10px); }
  .technologies__card:nth-child(2)  { flex: 0 0 calc(25% - 10px); }
  .technologies__card:nth-child(3)  { flex: 0 0 calc(25% - 10px); }
  .technologies__card:nth-child(4)  { flex: 0 0 calc(50% - 10px); }
  .technologies__card:nth-child(5)  { flex: 0 0 calc(50% - 10px); }
  .technologies__card:nth-child(6)  { flex: 0 0 calc(33.333% - 10px); }
  .technologies__card:nth-child(7)  { flex: 0 0 calc(33.333% - 10px); }
  .technologies__card:nth-child(8)  { flex: 0 0 calc(33.333% - 10px); }
  .technologies__card:nth-child(9)  { flex: 0 0 calc(50% - 10px); }
  .technologies__card:nth-child(10) { flex: 0 0 calc(50% - 10px); }

  .technologies__title {
    font-size: 30px;
  }

  .technologies__card {
    gap: 12px;
    padding: 16px;
  }
}

@media (max-width: 767px) {
  .technologies {
    padding: 20px 0;
  }

  .technologies__top {
    top: -60px;
  }

  .technologies__conditioner {
    max-height: 120px;
  }

  .technologies__inner {
    padding: 0 16px 40px;
    border-radius: 16px;
    gap: 24px;
  }

  .technologies__title {
    font-size: 24px;
    letter-spacing: -0.48px;
  }

  /* Horizontal scroll — 2 рядки в висоту */
  .technologies__slider-wrap {
    position: relative;
    width: 100%;
  }

  .technologies__grid {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 265px;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .technologies__grid::-webkit-scrollbar {
    display: none;
  }

  /* Всі картки — базові стилі для scroll */
  .technologies__card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: start;
    gap: 12px;
    padding: 16px;
    min-width: 265px;
    justify-content: center;
  }

  /* Картки 1 і 6 — tall, займають обидва рядки */
  .technologies__card:nth-child(1),
  .technologies__card:nth-child(6) {
    grid-row: span 2;
  }

  .technologies__card-title {
    font-size: 13px;
  }

  /* Nav arrows */
  .technologies__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 4px;
    width: 100%;
  }

  .technologies__nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .technologies__nav-btn:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .technologies__nav-btn img {
    filter: invert(1);
  }

  .technologies__nav-btn--prev img {
    transform: rotate(180deg);
  }

  /* Progress bar */
  .technologies__progress {
    display: block;
    margin-top: 16px;
    width: 100%;
  }

  .technologies__progress-track {
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    position: relative;
  }

  .technologies__progress-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: #fff;
    border-radius: 1px;
    transition: left 0.15s;
  }
}


/* =====================
   DECISION
   ===================== */

.decision {
  padding: 100px 0 50px;
}

.decision__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---- Head ---- */
.decision__head {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.decision__head .section-head {
  width: 300px;
  flex-shrink: 0;
}

.decision__head-text {
  flex: 1;
  columns: 2;
  column-gap: 50px;
  min-width: 0;
}

.decision__head-text p {
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 1.4;
  break-inside: avoid;
}

.decision__head-text p + p {
  margin-top: 10px;
}

/* ---- Tabs nav ---- */
.decision__tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-2);
  border-radius: 10px;
  padding: 6px;
}

.decision__tab {
  height: 48px;
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32px;
  color: var(--color-text-secondary, #4b5563);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.decision__tab--active {
  background: #fff;
  color: #fc0008;
}

/* ---- Panel ---- */
.decision__panels {
  margin-top: 20px;
}

.decision__panel {
  display: none;
}

.decision__panel--active {
  display: flex;
  align-items: stretch;
  gap: 100px;
  background: var(--color-bg-2);
  border-radius: 10px;
  padding: 32px;
  min-height: 396px;
}

.decision__panel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.decision__panel-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.decision__panel-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: #1c1c1e;
}

.decision__panel-desc {
  flex: 1;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.4;
  letter-spacing: -0.08px;
}

.decision__panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.32px;
  color: #fc0008;
  text-decoration: none;
  transition: opacity 0.2s;
}

.decision__panel-link:hover {
  opacity: 0.75;
}

.decision__panel-link img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(97%) saturate(7335%) hue-rotate(357deg) brightness(104%);
}

.decision__panel-media {
  width: 400px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  align-self: stretch;
}

.decision__panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- CTA ---- */
.decision__cta {
  display: flex;
  justify-content: center;
}

/* ---- Responsive ---- */

@media (max-width: 1023px) {
  .decision {
    padding: 60px 0 20px;
  }

  .decision__head {
    flex-direction: column;
    gap: 24px;
  }

  .decision__head .section-head {
    width: auto;
  }

  /* Tabs — горизонтальний скрол якщо не вміщуються */
  .decision__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .decision__tabs::-webkit-scrollbar {
    display: none;
  }

  .decision__tab {
    flex-shrink: 0;
  }

  .decision__panel--active {
    gap: 40px;
  }

  .decision__panel-media {
    width: 280px;
  }
}

@media (max-width: 767px) {
  .decision {
    padding: 50px 0;
  }

  .decision__head-text {
    columns: 1;
  }

  /* Scrollable tab bar */
  .decision__tabs {
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 0;
    padding: 6px 16px;
    gap: 4px;
    margin: 0 -20px; /* bleed past container padding */
  }

  .decision__tabs::-webkit-scrollbar {
    display: none;
  }

  .decision__tab {
    padding: 10px 14px;
    font-size: 14px;
    text-align: center;
    line-height: 1.3;
    height: auto;
    min-height: 48px;
  }

  /* Panel: vertical — image on top, content below */
  .decision__panel--active {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .decision__panel-media {
    width: 100%;
    height: 164px;
    order: -1; /* image first */
    flex-shrink: unset;
    align-self: auto;
  }

  .decision__panel-title {
    font-size: 22px;
  }

  .decision__cta .btn-primary {
    width: 100%;
    justify-content: center;
  }
}


/* =====================
   PARTNERS
   ===================== */

.partners .container { max-width: 1300px; }

.partners {
  padding: 60px 0;
}

.partners__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(to right, #323337 0.991%, #606060 84.867%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 50px;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-2);
  border-radius: 8px;
  padding: 20px;
  aspect-ratio: 180 / 99;
}

.partners__item img {
  max-width: 100px;
  max-height: 59px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- Responsive ---- */

@media (max-width: 1023px) {
  .partners__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .partners {
    padding: 40px 0 20px;
    /* Contain horizontal scroll inside the section so the slider can bleed
       to the viewport edges without spilling to <body>. */
    overflow-x: hidden;
  }

  .partners__title {
    font-size: clamp(18px, 5.6vw, 22px);
    line-height: 1.2;
    letter-spacing: -0.32px;
    margin-bottom: 16px;
    text-wrap: balance;
    padding: 0 8px;
  }

  /* Switch grid → horizontal snap-slider on mobile.
     Reason: with grid + image max-width:100px the per-cell min-content can
     exceed the available column width, which expands the grid past the
     viewport and creates a body-wide horizontal scroll. Slider keeps the
     scroll local and shows a "peek" of the next logo as an affordance. */
  .partners__grid {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Bleed to viewport edges so the first/last logo align with section padding. */
    margin: 0 -20px;
    padding: 4px 20px 8px;
  }
  .partners__grid::-webkit-scrollbar { display: none; }

  .partners__item {
    /* 3 cards fully visible + a peek of the 4th, hinting horizontal scroll.
       28vw + gap accounts for: viewport=100vw, side paddings 2*20px,
       gaps 2*8px between 3 fully-visible items. */
    flex: 0 0 28vw;
    min-width: 0;
    scroll-snap-align: start;
    padding: 8px;
    border-radius: 5px;
  }

  .partners__item img {
    max-width: 80px;
    max-height: 48px;
  }
}


/* =====================
   FAQ
   ===================== */

.faq .container { max-width: 1320px; }

.faq {
  background:
    linear-gradient(rgba(245, 246, 247, 0.85), rgba(245, 246, 247, 0.85)),
    url('../img/home/faq_bg.webp') center / cover no-repeat;
  padding: 100px 0;
}

/* CSS Grid: left column (head + contact), right column (accordion) */
.faq__inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 100px;
  row-gap: 40px;
}

.faq__head {
  grid-column: 1;
  grid-row: 1;
}

.faq__contact {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  padding: 24px;
  align-self: end;
}

.faq__contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.faq__contact-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq__contact-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__contact-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}

.faq__contact-desc {
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  letter-spacing: -0.07px;
}

.faq__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 10px 28px;
  background: var(--color-bg-2);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32px;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-start;
  transition: background-color 0.2s;
}

.faq__contact-btn:hover {
  background-color: #e5e7ea;
}

/* Accordion */
.faq__list {
  grid-column: 2;
  grid-row: 1 / 3;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.faq__item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(147,147,147,0.2);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq__item--open {
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.faq__btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq__question {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #4b5563;
  transition: color 0.2s;
}

.faq__item--open .faq__question {
  color: #111;
}

/* Plus/Minus toggle — fade-замість display:none для плавності */
.faq__btn {
  position: relative;
}

.faq__plus,
.faq__minus {
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.faq__plus  { display: block; opacity: 1; }
.faq__minus { display: block; opacity: 0; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

.faq__item--open .faq__plus  { opacity: 0; }
.faq__item--open .faq__minus { opacity: 1; }

/* Body */
.faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
  padding: 0 16px;
}

.faq__item--open .faq__body {
  max-height: 600px;
  padding-bottom: 14px;
}

.faq__body p {
  font-size: 16px;
  color: rgba(0,0,0,0.6);
  line-height: 1.5;
}

.faq__body p + p {
  margin-top: 10px;
}

/* ---- Responsive ---- */

@media (max-width: 1023px) {
  .faq {
    padding: 60px 0;
  }

  .faq__inner {
    grid-template-columns: 320px 1fr;
    column-gap: 60px;
  }
}

@media (max-width: 767px) {
  .faq {
    padding: 50px 0;
  }

  /* Single column: head → accordion → contact */
  .faq__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .faq__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .faq__head .section-title {
    font-size: 24px;
    letter-spacing: -0.48px;
    text-align: center;
  }

  .faq__head .section-badge {
    justify-content: center;
  }

  /* Accordion before contact on mobile */
  .faq__list {
    order: 2;
  }

  .faq__contact {
    order: 3;
  }

  .faq__contact-content {
    align-items: center;
    text-align: center;
  }

  .faq__contact-btn {
    align-self: center;
  }
}
