/**
 * Services advantages — FAQ-like split layout, static rows.
 */

.home-v2 .v2-section--services-advantages,
.v2-section--services-advantages {
  padding-block: clamp(48px, 6.25vw, 120px);
}

.v2-services-advantages__layout {
  display: grid;
  grid-template-columns: minmax(0, clamp(280px, 31.89vw, 574px)) minmax(0, 1fr);
  gap: clamp(32px, 6.042vw, 109px);
  align-items: stretch;
}

.v2-services-advantages__aside {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.v2-services-advantages__aside-sticky {
  flex: 1 1 auto;
  min-height: 0;
}

.v2-services-advantages__head {
  display: flex;
  flex-direction: column;
  gap: calc(100vw * 20 / 1920);
  position: sticky;
  top: clamp(64px, 4.688vw, 90px);
  align-self: flex-start;
  z-index: 5;
  width: 100%;
  max-width: min(31.89vw, 574px);
  background: var(--color-canvas);
  padding-bottom: clamp(16px, 1.042vw, 20px);
}

.v2-services-advantages__head .v2-descriptor {
  margin: 0;
  gap: 15px;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1;
  color: rgba(32, 32, 32, 0.4);
}

.v2-services-advantages__head .v2-descriptor__dot {
  width: 10px;
  height: 10px;
  background: #64db69;
}

.v2-services-advantages__heading {
  margin: 0;
  max-width: min(29.43vw, 565px);
  font-size: clamp(36px, 4.688vw, 90px);
  font-weight: 500;
  line-height: 1;
}

.v2-services-advantages__heading-line {
  display: block;
  color: #202020;
}

.v2-services-advantages__heading-accent {
  color: #64db69;
}

.v2-services-advantages__intro {
  margin: 0;
  max-width: min(27.24vw, 523px);
  font-size: clamp(16px, 1.042vw, 20px);
  font-weight: 400;
  line-height: 1.2;
  color: rgba(32, 32, 32, 0.8);
}

.v2-services-advantages__foot {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.563vw, 30px);
  max-width: min(31.89vw, 574px);
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 6;
}

.v2-services-advantages__list {
  min-width: 0;
  border-top: 1px dotted rgba(32, 32, 32, 0.2);
}

.v2-services-advantages__item {
  padding-block: clamp(20px, 2.083vw, 40px);
  border-bottom: 1px dotted rgba(32, 32, 32, 0.2);
}

.v2-services-advantages__item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2.083vw, 40px);
}

.v2-services-advantages__item-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(24px, 1.979vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  color: #202020;
}

.v2-services-advantages__dots {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 0.417vw, 8px);
  flex-shrink: 0;
  padding-top: clamp(8px, 0.625vw, 12px);
}

.v2-services-advantages__dot {
  width: clamp(10px, 0.729vw, 14px);
  height: clamp(10px, 0.729vw, 14px);
  border-radius: 50%;
  background: rgba(64, 64, 64, 0.1);
  flex-shrink: 0;
}

.v2-services-advantages__dot.is-active {
  background: #64db69;
}

.v2-services-advantages__item-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 2.083vw, 40px);
  margin-top: clamp(12px, 1.042vw, 20px);
}

.v2-services-advantages__item-text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(20.73vw, 398px);
  font-size: clamp(16px, 0.938vw, 18px);
  font-weight: 400;
  line-height: 1.22;
  color: rgba(32, 32, 32, 0.6);
}

.v2-services-advantages__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(48px, 3.125vw, 60px);
  height: clamp(48px, 3.125vw, 60px);
  border-radius: 50%;
  background: #64db69;
}

.v2-services-advantages__icon img {
  display: block;
  width: clamp(24px, 1.563vw, 30px);
  height: clamp(24px, 1.563vw, 30px);
  object-fit: contain;
}

.v2-section--services-advantages .v2-btn--dark {
  --cta-size: clamp(60px, 4.167vw, 80px);
}

@media (max-width: 1023px) {
  .home-v2 .v2-section--services-advantages,
  .v2-section--services-advantages {
    padding-top: var(--v2-section-gap);
    padding-bottom: 0;
  }

  .v2-services-advantages__layout {
    display: flex;
    flex-direction: column;
    gap: calc(100vw * 28 / 390);
  }

  .v2-services-advantages__aside {
    display: contents;
  }

  .v2-services-advantages__aside-sticky {
    order: 1;
    display: block;
    width: 100%;
  }

  .v2-services-advantages__head {
    gap: calc(100vw * 15 / 390);
    position: sticky;
    top: calc(100vw * 70 / 390 + 8px);
    z-index: 5;
    width: 100%;
    max-width: none;
    padding-bottom: calc(100vw * 12 / 390);
  }

  .v2-section--services-advantages .v2-services-advantages__head .v2-descriptor {
    gap: calc(100vw * 10 / 390);
    font-size: calc(100vw * 12 / 390);
  }

  .v2-section--services-advantages .v2-services-advantages__head .v2-descriptor__dot {
    width: calc(100vw * 6 / 390);
    height: calc(100vw * 6 / 390);
  }

  .v2-services-advantages__heading {
    max-width: none;
    font-size: calc(100vw * 40 / 390);
    line-height: 1;
  }

  .is-lang-uk .v2-section--meta-advantages .v2-services-advantages__heading {
    font-size: calc(100vw * 28 / 390);
    line-height: 1.04;
  }

  .v2-services-advantages__intro {
    max-width: none;
    font-size: calc(100vw * 14 / 390);
    line-height: 1.2;
  }

  .v2-services-advantages__list {
    order: 2;
  }

  .v2-services-advantages__item {
    padding-block: calc(100vw * 20 / 390);
  }

  .v2-services-advantages__item-head {
    gap: calc(100vw * 12 / 390);
  }

  .v2-services-advantages__item-title {
    font-size: calc(100vw * 22 / 390);
    line-height: 1.1;
  }

  .v2-services-advantages__dots {
    gap: calc(100vw * 6 / 390);
    padding-top: calc(100vw * 4 / 390);
  }

  .v2-services-advantages__dot {
    width: calc(100vw * 10 / 390);
    height: calc(100vw * 10 / 390);
  }

  .v2-services-advantages__item-body {
    gap: calc(100vw * 16 / 390);
    margin-top: calc(100vw * 12 / 390);
  }

  .v2-services-advantages__item-text {
    max-width: none;
    font-size: calc(100vw * 14 / 390);
    line-height: 1.22;
  }

  .v2-services-advantages__icon {
    width: calc(100vw * 48 / 390);
    height: calc(100vw * 48 / 390);
  }

  .v2-services-advantages__icon img {
    width: calc(100vw * 24 / 390);
    height: calc(100vw * 24 / 390);
  }

  .v2-services-advantages__foot {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .v2-section--services-advantages .v2-services-advantages__foot .v2-btn--dark {
    --cta-size: calc(100vw * 60 / 390);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    height: var(--cta-size);
    gap: 0;
    text-decoration: none;
  }

  .v2-section--services-advantages .v2-services-advantages__foot .v2-btn--dark .v2-btn__text {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: var(--cta-size);
    min-height: var(--cta-size);
    padding: calc(100vw * 14 / 390) calc(100vw * 28 / 390);
    font-size: calc(100vw * 16 / 390);
  }

  .v2-section--services-advantages .v2-services-advantages__foot .v2-btn--dark .v2-btn__icon {
    width: var(--cta-size);
    min-width: var(--cta-size);
    height: var(--cta-size);
  }
}

@media (min-width: 1024px) {
  .v2-services-advantages__layout {
    grid-template-columns:
      minmax(0, calc(100vw * 663 / 1920))
      minmax(0, calc(100vw * 889 / 1920));
    gap: var(--v2-grid-gap, calc(100vw * 20 / 1920));
    justify-content: space-between;
  }

  .v2-services-advantages__head {
    max-width: min(calc(100vw * 663 / 1920), 663px);
  }

  .v2-services-advantages__foot {
    max-width: min(calc(100vw * 565 / 1920), 565px);
  }

  .v2-services-advantages__intro {
    max-width: none;
    white-space: nowrap;
  }

  .is-lang-uk .v2-section--services-advantages .v2-services-advantages__heading {
    max-width: calc(100vw * 625 / 1920);
    font-size: calc(100vw * 74 / 1920);
    line-height: 1.02;
  }

  .is-lang-uk .v2-section--meta-advantages .v2-services-advantages__heading {
    max-width: calc(100vw * 650 / 1920);
    font-size: calc(100vw * 58 / 1920);
    line-height: 1.04;
  }

  .is-lang-uk .v2-section--services-advantages .v2-services-advantages__intro {
    max-width: calc(100vw * 620 / 1920);
    font-size: calc(100vw * 18 / 1920);
    white-space: normal;
  }

  .is-lang-uk .v2-section--services-advantages .v2-services-advantages__item-title {
    font-size: calc(100vw * 32 / 1920);
    line-height: 1.08;
  }

  .v2-services-advantages__list {
    width: min(calc(100vw * 889 / 1920), 889px);
    justify-self: end;
  }

  .v2-services-advantages__item-text {
    max-width: min(calc(100vw * 318 / 1920), 318px);
  }

  .v2-section--services-advantages .v2-btn--dark .v2-btn__text {
    min-width: clamp(130px, 9.792vw, 188px);
    padding: clamp(14px, 0.99vw, 19px) clamp(28px, 2.083vw, 40px);
    font-size: clamp(16px, 1.042vw, 20px);
  }
}

.v2-section--meta-advantages .v2-services-advantages__intro {
  white-space: normal;
  line-height: 1.3;
  color: rgba(32, 32, 32, 0.4);
}

.v2-section--meta-advantages .v2-btn--primary {
  --cta-size: clamp(60px, 4.167vw, 80px);
}

/*
 * Platform landing pages use the 1920px Figma frame as their desktop scale.
 * Keep every related measurement in the same vw ratio so text wrapping and
 * vertical rhythm remain unchanged at different desktop viewport widths.
 */
@media (min-width: 1024px) {
  .v2-section--meta-advantages .v2-services-advantages__head {
    top: calc(100vw * 90 / 1920);
    gap: calc(100vw * 20 / 1920);
    padding-bottom: calc(100vw * 20 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__head .v2-descriptor {
    gap: calc(100vw * 15 / 1920);
    font-size: calc(100vw * 20 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__head .v2-descriptor__dot {
    width: calc(100vw * 10 / 1920);
    height: calc(100vw * 10 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__heading {
    max-width: calc(100vw * 565 / 1920);
    font-size: calc(100vw * 90 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__intro {
    max-width: calc(100vw * 600 / 1920);
    font-size: calc(100vw * 20 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__intro-line,
  .v2-section--meta-advantages .v2-services-advantages__item-text-line {
    display: block;
    white-space: nowrap;
  }

  .v2-section--meta-advantages .v2-services-advantages__foot {
    gap: calc(100vw * 30 / 1920);
  }

  .v2-section--meta-advantages .v2-btn--primary {
    --cta-size: calc(100vw * 80 / 1920);
  }

  .v2-section--meta-advantages .v2-btn--primary .v2-btn__text {
    padding: calc(100vw * 19 / 1920) calc(100vw * 40 / 1920);
    font-size: calc(100vw * 20 / 1920);
  }

  .v2-section--meta-advantages .v2-btn__icon-img {
    width: calc(100vw * 21 / 1920);
    height: calc(100vw * 21 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__item {
    padding-block: calc(100vw * 40 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__item-head,
  .v2-section--meta-advantages .v2-services-advantages__item-body {
    gap: calc(100vw * 40 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__item-title {
    font-size: calc(100vw * 38 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__dots {
    gap: calc(100vw * 8 / 1920);
    padding-top: calc(100vw * 12 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__dot {
    width: calc(100vw * 14 / 1920);
    height: calc(100vw * 14 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__item-body {
    margin-top: calc(100vw * 155 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__item-text {
    flex: 0 0 calc(100vw * 398 / 1920);
    width: calc(100vw * 398 / 1920);
    max-width: none;
    font-size: calc(100vw * 18 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__icon {
    width: calc(100vw * 60 / 1920);
    height: calc(100vw * 60 / 1920);
  }

  .v2-section--meta-advantages .v2-services-advantages__icon img {
    width: calc(100vw * 30 / 1920);
    height: calc(100vw * 30 / 1920);
  }
}

@media (max-width: 1023px) {
  .v2-section--meta-advantages .v2-services-advantages__intro-line,
  .v2-section--meta-advantages .v2-services-advantages__item-text-line {
    display: inline;
    white-space: normal;
  }

  .v2-section--meta-advantages .v2-services-advantages__foot .v2-btn--primary {
    --cta-size: calc(100vw * 60 / 390);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    height: var(--cta-size);
    gap: 0;
    text-decoration: none;
  }

  .v2-section--meta-advantages .v2-services-advantages__foot .v2-btn--primary .v2-btn__text {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: var(--cta-size);
    min-height: var(--cta-size);
    padding: calc(100vw * 14 / 390) calc(100vw * 28 / 390);
    font-size: calc(100vw * 16 / 390);
  }

  .v2-section--meta-advantages .v2-services-advantages__foot .v2-btn--primary .v2-btn__icon {
    width: var(--cta-size);
    min-width: var(--cta-size);
    height: var(--cta-size);
  }
}
