/* why.css — Figma 577:8731 Переваги */
.why {
  position: relative;
  overflow: visible;
  background: var(--color-bg-alt);
  isolation: isolate;
}

.why .container {
  position: relative;
  z-index: 1;
}

/* Glow перенесено в pricing__decor-item--bottom (artboard y=2121 всередині секції Тарифи) */
.why__decor {
  display: none;
}

@media (min-width: 1200px) {
  .why {
    overflow-x: clip;
  }
}

.why__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 39px;
  max-width: 68.75rem;
  margin-inline: auto;
}

.why__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 39.5rem;
  text-align: center;
}

.why__eyebrow {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #081252;
  border-radius: 11px;
  background: #041145;
}

.why__eyebrow-icon {
  width: 1.03125rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: block;
}

.why__eyebrow-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.125;
  color: #0e4ac7;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.why__titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.why__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 36.3125rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.625rem);
  font-weight: 700;
  line-height: 1.214;
  text-align: center;
  color: var(--color-text);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.why__title-line {
  display: block;
  width: 100%;
}

.why__title-accent {
  color: var(--color-accent);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.why__subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 39.5rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.167;
  text-align: center;
  color: var(--color-text-muted);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.why__subtitle-line {
  display: block;
  width: 100%;
}

.why__board {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 62.75rem;
}

.why__column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 30.625rem;
}

.why-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-height: 18.9375rem;
  padding: 12px 14px 12px 12px;
  border-radius: 30px;
  background: linear-gradient(249.07deg, #0e1d75 0%, #0d1546 23%);
}

.why-card__media {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-height: 17.4375rem;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  -webkit-filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.why-card__media--1 {
  width: 11.5rem;
  max-width: 37%;
}

.why-card__media--2 {
  width: 11.375rem;
  max-width: 37%;
}

.why-card__media--3 {
  width: 11.375rem;
  max-width: 37%;
}

.why-card__media--4 {
  width: 11.3125rem;
  max-width: 37%;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
  -webkit-filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.why-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 17.5625rem;
}

.why-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.156;
  color: var(--color-text);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.why-card__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.444;
  color: var(--color-text-muted);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* Desktop — Figma Frame 206 + Frame 322 pixel-perfect */
@media (min-width: 1024px) {
  .why {
    background: var(--color-bg);
  }

  /* Frame 206 — 632px, gap 14px */
  .why__header {
    flex: 0 0 auto;
    width: 39.5rem;
    max-width: 39.5rem;
    gap: 14px;
    padding: 0;
  }

  /* OUR ADVANTAGES — 153.5×34 */
  .why__eyebrow {
    flex: 0 0 auto;
    justify-content: center;
    width: 9.59375rem;
    height: 2.125rem;
    min-height: 2.125rem;
  }

  .why__eyebrow-text {
    flex: 0 0 auto;
    width: 6.8125rem;
    height: 1.125rem;
    font-size: var(--text-base);
    line-height: 1.125rem;
    white-space: nowrap;
  }

  /* Frame 187 — 632px, gap 5px */
  .why__titles {
    flex: 0 0 auto;
    align-self: stretch;
    width: 39.5rem;
    gap: 5px;
  }

  /* Group 16 + title — 581×51, Montserrat 42/51 */
  .why__title {
    display: block;
    flex: 0 0 auto;
    width: 36.3125rem;
    max-width: 36.3125rem;
    height: 3.1875rem;
    font-size: var(--text-3xl);
    line-height: 3.1875rem;
    white-space: nowrap;
  }

  .why__title-line {
    display: inline;
    width: auto;
  }

  .why__title-line:first-child::after {
    content: "\00a0";
  }

  .why__subtitle {
    display: block;
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    max-width: 39.5rem;
    font-size: var(--text-lg);
    line-height: 1.3125rem;
  }

  .why__subtitle-line {
    display: inline;
    width: auto;
  }

  .why__subtitle-line:first-child::after {
    content: " ";
  }

  .why__board {
    align-items: center;
    flex-shrink: 0;
    width: 62.75rem;
    max-width: 62.75rem;
  }

  .why__column {
    flex: 0 0 30.625rem;
    width: 30.625rem;
    max-width: 30.625rem;
    align-items: flex-start;
  }

  .why-card {
    flex-shrink: 0;
    width: 30.625rem;
    height: 18.9375rem;
    min-height: 18.9375rem;
    max-height: 18.9375rem;
    padding: 0;
  }

  .why-card__media {
    max-height: none;
    object-position: center;
  }

  .why-card__media--1 {
    width: 11.5rem;
    height: 17.4375rem;
    max-width: none;
  }

  .why-card__media--2 {
    width: 11.375rem;
    height: 14.5625rem;
    max-width: none;
  }

  .why-card__media--3 {
    width: 11.375rem;
    height: 14.375rem;
    max-width: none;
  }

  .why-card__media--4 {
    width: 11.3125rem;
    height: 17rem;
    max-width: none;
  }

  .why-card__body {
    flex: 0 0 17.5625rem;
    width: 17.5625rem;
    max-width: 17.5625rem;
  }

  .why-card__title {
    font-size: var(--text-2xl);
    line-height: 2.3125rem;
    font-synthesis: none;
  }

  .why-card__text {
    font-size: var(--text-lg);
    line-height: 1.625rem;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .why__inner {
    gap: 32px;
  }

  .why__board {
    flex-direction: column;
    align-items: center;
    max-width: 30.625rem;
  }

  .why__column {
    width: 100%;
    max-width: none;
  }

  .why-card {
    min-height: 0;
    padding: 16px;
  }

  .why-card__media {
    max-height: 14rem;
  }
}

/* Mobile — layout/spacing in mobile-home.css */
@media (max-width: 767px) {
  .why__inner {
    gap: 2rem;
  }
}

@media (max-width: 374px) {
  .why__eyebrow {
    padding: 5px 8px;
    gap: 6px;
  }

  .why-card {
    padding: 16px 14px 20px;
  }
}
