/* cta-banner.css — Figma Frame 30 / 577:8778 */
.cta-banner {
  padding-top: 0;
  padding-bottom: var(--section-py);
}

/* Frame 23 */
.cta-banner__panel {
  box-sizing: border-box;
  max-width: 68.75rem;
  margin-inline: auto;
  border: 1px solid #7b5415;
  border-radius: 26px;
  background: linear-gradient(90deg, #03080f 0%, #241a13 25.96%, #040619 100%);
  box-shadow: 0 0 8.1px 6px rgba(0, 0, 0, 0.29);
  overflow: visible;
}

.cta-banner__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 8.3125rem;
  padding: 30px 37px;
}

.cta-banner__content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 43px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.cta-banner__icon {
  display: block;
  flex: 0 0 auto;
  width: 5.4375rem;
  height: 4.40875rem;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: none;
  filter: drop-shadow(0 0 40px rgba(239, 180, 40, 0.75));
}

.cta-banner__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.cta-banner__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  line-height: 1.154;
  color: var(--color-text);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

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

/* Придбати курс основ. */
.cta-banner__btn {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 12.0625rem;
  min-height: 3.1875rem;
  padding: 15px 30px;
  border: 1px solid #4c44f5;
  border-radius: 15px;
  background: radial-gradient(
    206.19% 206.19% at 50% 50%,
    #100cb8 0%,
    #4f45e5 100%
  );
  box-shadow: inset 0 0 13px #6152f2;
  text-decoration: none;
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.cta-banner__btn-label {
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  font-synthesis: none;
  line-height: 1.3125rem;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  color: var(--color-btn-label);
  -webkit-text-stroke: 1px #0e0bb3;
  paint-order: stroke fill;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: color var(--transition-base);
}

/* Property 1=Variant2 — hover (лише pointer: fine — без sticky hover на iOS) */
@media (hover: hover) and (pointer: fine) {
  .cta-banner__btn:hover {
    background: radial-gradient(206.19% 206.19% at 50% 50%, #5a56ff 0%, #1000ff 100%);
    box-shadow: 0 0 50px #2c28d2, inset 0 0 50px #6152f2;
  }

  .cta-banner__btn:hover .cta-banner__btn-label {
    color: #ffffff;
    -webkit-text-stroke: 0 transparent;
    paint-order: normal;
  }
}

.cta-banner__btn:focus {
  outline: none;
}

.cta-banner__btn:focus-visible {
  outline: 2px solid #f5b12a;
  outline-offset: 4px;
  background: radial-gradient(206.19% 206.19% at 50% 50%, #5a56ff 0%, #1000ff 100%);
  box-shadow: 0 0 50px #2c28d2, inset 0 0 50px #6152f2;
}

.cta-banner__btn:focus-visible .cta-banner__btn-label {
  color: #ffffff;
  -webkit-text-stroke: 0 transparent;
  paint-order: normal;
}

/* Property 1=Variant3 — pressed */
.cta-banner__btn:active {
  background: radial-gradient(
    206.19% 206.19% at 50% 50%,
    rgba(90, 86, 255, 0.2) 0%,
    rgba(16, 0, 255, 0.2) 100%
  );
  box-shadow: 0 0 50px #2c28d2;
}

.cta-banner__btn:active .cta-banner__btn-label {
  color: #7d86b9;
  -webkit-text-stroke: 0 transparent;
  paint-order: normal;
}

/* Desktop — Frame 23 pixel-perfect */
@media (min-width: 1024px) {
  .cta-banner__panel {
    width: 68.75rem;
    max-width: 68.75rem;
    height: 8.3125rem;
  }

  .cta-banner__inner {
    height: 100%;
    min-height: 8.3125rem;
    padding: 30px 37px;
    gap: 0;
  }

  .cta-banner__content {
    flex: 0 1 auto;
    max-width: 46.5625rem;
    gap: 43px;
  }

  .cta-banner__icon {
    width: 5.4375rem;
    height: 4.40875rem;
  }

  .cta-banner__title {
    font-size: 1.625rem;
    line-height: 1.875rem;
  }

  .cta-banner__text {
    font-size: 1rem;
    line-height: 1.125rem;
  }

  .cta-banner__btn {
    flex: 0 0 auto;
    width: 12.0625rem;
    height: 3.1875rem;
    min-width: 12.0625rem;
    min-height: 3.1875rem;
    padding: 15px 30px;
  }

  .cta-banner__btn-label {
    width: 8.3125rem;
    height: 1.3125rem;
    font-size: 1.125rem;
    line-height: 1.3125rem;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .cta-banner__inner {
    gap: 20px;
    padding: 24px 28px;
  }

  .cta-banner__content {
    gap: 28px;
  }

  .cta-banner__title {
    font-size: 1.375rem;
  }
}

/* Mobile — tokens in mobile-home.css */
@media (max-width: 767px) {
  .cta-banner {
    padding-bottom: var(--section-py-mobile);
  }
}

@media (max-width: 374px) {
  .cta-banner__inner {
    padding: 18px 16px;
  }
}
