/* pricing.css — Figma 577:8428 Тарифи */
.pricing {
  position: relative;
  z-index: 1;
  overflow: visible;
  isolation: isolate;
  background: var(--color-bg);
}

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

/* Figma artboard 1200px — горизонтальне обрізання; вертикальний glow лишається.
   Bleed угору безпечний: .features має вищий z-index і накриває декор. */
@media (min-width: 1200px) {
  .pricing .container {
    clip-path: inset(-40rem 0 -18rem 0);
  }
}

/* Figma canvas 1118.5px — контент секції */
.pricing__canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 69.90625rem;
  margin-inline: auto;
  overflow: visible;
}

@media (min-width: 1200px) {
  .pricing__canvas {
    width: 69.90625rem;
    max-width: 69.90625rem;
  }
}


.pricing__decor-scene {
  position: absolute;
  top: 0;
  left: 50%;
  width: 75rem;
  height: max(100%, 53.894375rem);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* image 2 — 471×425 @ -10.5, 1381.5 */
.pricing__decor-item {
  position: absolute;
  overflow: visible;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* image 2 — 471×425 @ artboard −10.5px, 1381.5px; секція Тарифи top 1459px */
.pricing__decor-item--left {
  top: -4.84375rem;
  left: -0.65625rem;
  width: 29.4375rem;
  height: 26.5625rem;
  overflow: visible;
}

.pricing__decor-item--left .pricing__decor-graphic {
  object-fit: fill;
  overflow: visible;
  transform: translateZ(0);
}

/* Intersect 577:7662 — PNG export @2x (473×896), display 237×448 @ image 3 anchor */
.pricing__decor-item--right {
  top: -6.478125rem;
  left: 53.118125rem;
  width: 14.8125rem;
  height: 28rem;
  overflow: visible;
}

.pricing__decor-item--right .pricing__decor-graphic {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left top;
}

/* Intersect 577:7665 — PNG @2x (746×847), display 373×423.5 @ image 4 anchor 790.22/2103.6 */
@media (min-width: 1024px) {
  .pricing__board > .pricing__decor-item--bottom {
    top: 26.45125rem;
    left: 46.841875rem;
    width: 23.3125rem;
    height: 26.46875rem;
    z-index: 0;
  }

  .pricing__decor-item--bottom .pricing__decor-graphic {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left top;
  }
}

.pricing__decor-graphic {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (max-width: 1200px) {
  .pricing__decor-scene {
    transform: translateX(-50%) scale(calc(100vw / 75rem));
    transform-origin: top center;
  }
}

@media (max-width: 1023px) {
  .pricing {
    overflow-x: clip;
  }
}


@media (max-width: 767px) {
  .pricing__decor-item--left {
    display: none;
  }

  .pricing__decor-item--right {
    display: none;
  }

  .pricing__board > .pricing__decor-item--bottom {
    display: none;
  }

  .pricing__decor-scene {
    opacity: 0.85;
  }
}

.pricing__pair {
  position: relative;
  z-index: 1;
  overflow: visible;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  flex: none;
  width: 34.1875rem;
  max-width: 100%;
}

.pricing__pair > .pricing__mode {
  flex: 0 0 100%;
  width: 100%;
}

.pricing__pair > .pricing-card {
  position: relative;
  z-index: 1;
}

.pricing__header {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.375rem;
  margin-bottom: 0;
  width: 100%;
}

.pricing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 11px;
  background: rgba(2, 0, 172, 0.18);
}

.pricing__eyebrow-icon {
  width: 1.27375rem;
  height: 1.27375rem;
  flex-shrink: 0;
  display: block;
}

.pricing__eyebrow-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.125rem;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #3203ea 9.13%,
    #5d41ff 86.06%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.pricing__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 33.5rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 3.1875rem;
  text-align: center;
  color: var(--color-text);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

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

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

.pricing__subtitle {
  max-width: 63.25rem;
  width: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.3125rem;
  color: var(--color-text-muted);
  text-align: center;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.pricing__board {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  overflow: visible;
}

.pricing__mode {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 2.625rem;
}

.pricing__mode--self .pricing__mode-line {
  width: 5.923125rem;
}

.pricing__mode--self .pricing__mode-text {
  max-width: 10.104375rem;
}

.pricing__mode--group .pricing__mode-line {
  width: 6.03125rem;
}

.pricing__mode--group .pricing__mode-text {
  max-width: 9.325625rem;
}

.pricing__mode-line {
  flex: none;
  width: 7.4375rem;
  height: 0;
  border: none;
  border-top: 2px solid #151939;
  background: none;
}

.pricing__mode-text {
  flex: none;
  padding-inline: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3125rem;
  text-align: center;
  color: var(--color-text-muted);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.pricing__columns {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  max-width: 69.875rem;
  overflow: visible;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex: none;
  width: 16.71875rem;
  max-width: 100%;
  min-height: 30.125rem;
  padding: 1.5rem;
  background: #080c21;
  border: 1px solid #2b304d;
  border-radius: 30px;
  box-sizing: border-box;
  isolation: isolate;
}

.pricing-card--featured {
  min-height: 32rem;
  border-color: #387ad4;
  box-shadow: inset 0 0 24px #2206c7;
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.4375rem;
  padding: 5px 10px;
  border-radius: 0 0 7px 7px;
  background: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 0.875rem;
  color: #030d21;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  box-sizing: border-box;
}

.pricing-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 219.5px;
  flex: 1;
}

.pricing-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.pricing-card__titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pricing-card__plan {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.pricing-card__pick {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  color: #b3adae;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.pricing-card__icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 42px;
  width: 100%;
  padding-inline: 24px;
  box-sizing: border-box;
}

.pricing-card__icon {
  display: block;
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  object-fit: contain;
}

.pricing-card__subjects {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card__or {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  color: #b3adae;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.pricing-card__subject {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  color: #ffffff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.pricing-card__dot {
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
}

.pricing-card__dot--math {
  border: 1px solid #d41e04;
}

.pricing-card__dot--history {
  border: 1px solid #2206c7;
}

.pricing-card__dot--active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: transparent;
}

.pricing-card__dot--math.pricing-card__dot--active {
  border-color: #d41e04;
}

.pricing-card__dot--math.pricing-card__dot--active::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #981502;
}

.pricing-card__dot--history.pricing-card__dot--active {
  border-color: #2206c7;
}

.pricing-card__dot--history.pricing-card__dot--active::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19039b;
}

.pricing-card__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 13.6875rem;
  margin-inline: auto;
  text-align: left;
}

.pricing-card__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pricing-card__price-main {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 59px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.pricing-card--featured .pricing-card__price-main {
  color: var(--color-accent);
}

.pricing-card__period {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  color: #b3adae;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  color: #b3adae;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.pricing-card__feature::before {
  content: '';
  width: 17.5px;
  height: 17.5px;
  flex-shrink: 0;
  background: url("../../img/figma/export/pricing-feature-check.064ccc75569f.svg") no-repeat center / contain;
}

.pricing-card__feature--save {
  color: var(--color-accent);
  white-space: nowrap;
}

.pricing-card__feature--save::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("../../img/figma/export/pricing-feature-save.8009f60a51fc.svg") no-repeat center / contain;
}

/* Frame 255 / primary — спільна оболонка кнопки */
.pricing-card__btn {
  margin-top: auto;
  flex: none;
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  width: 12.6875rem;
  height: 3.8125rem;
  padding: 20px 35px;
  border: 1px solid #4c44f5;
  border-radius: 15px;
  text-decoration: none;
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

/* Frame 4 */
.pricing-card__btn-inner {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex: none;
  width: 8.3125rem;
  height: 1.3125rem;
}

/* Придбати курс — Figma: fill #FFF + stroke 1px #0E0BB3 + shadow */
.pricing-card__btn-label {
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  width: 8.3125rem;
  height: 1.3125rem;
  font-family: 'Arimo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
  line-height: 21px;
  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-rendering: geometricPrecision;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: color var(--transition-base);
}

/* Frame 255 — outline */
.pricing-card__btn--outline {
  background: transparent;
  background-image: none;
  box-shadow: inset 0 0 13px #6152f2;
}

/* Придбати курс основ. — primary */
.pricing-card__btn--primary {
  background: radial-gradient(
    206.19% 206.19% at 50% 50%,
    #100cb8 0%,
    #4f45e5 100%
  );
  box-shadow: inset 0 0 13px #6152f2;
}

/* Property 1=Variant2 — hover (лише pointer: fine — без sticky hover на iOS) */
@media (hover: hover) and (pointer: fine) {
  .pricing-card__btn--primary: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;
  }

  .pricing-card__btn--outline:hover {
    box-shadow: 0 0 50px #2c28d2, inset 0 0 50px #6152f2;
  }

  .pricing-card__btn--primary:hover .pricing-card__btn-label,
  .pricing-card__btn--outline:hover .pricing-card__btn-label {
    color: #ffffff;
    -webkit-text-stroke: 0 transparent;
    paint-order: normal;
  }
}

.pricing-card__btn--primary:focus-visible {
  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;
}

.pricing-card__btn--outline:focus-visible {
  box-shadow: 0 0 50px #2c28d2, inset 0 0 50px #6152f2;
}

.pricing-card__btn--primary:focus-visible .pricing-card__btn-label,
.pricing-card__btn--outline:focus-visible .pricing-card__btn-label {
  color: #ffffff;
  -webkit-text-stroke: 0 transparent;
  paint-order: normal;
}

/* Property 1=Variant3 — pressed */
.pricing-card__btn--primary: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;
}

.pricing-card__btn--outline:active {
  box-shadow: 0 0 50px #2c28d2;
}

.pricing-card__btn--primary:active .pricing-card__btn-label,
.pricing-card__btn--outline:active .pricing-card__btn-label {
  color: #7d86b9;
  -webkit-text-stroke: 0 transparent;
  paint-order: normal;
}

.pricing__guarantee-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0;
  width: 100%;
}

/* Frame 45 */
.pricing__guarantee {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px;
  gap: 8px;
  width: 28.24125rem;
  max-width: 100%;
  min-height: 2.433125rem;
  background: #030823;
  border-radius: 11px;
}

/* Frame 394 */
.pricing__guarantee-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 26.99125rem;
  max-width: 100%;
  min-height: 1.183125rem;
}

.pricing__guarantee-icon {
  flex: none;
  width: 1.25rem;
  height: 1.3125rem;
}

.pricing__guarantee-text {
  flex: none;
  margin: 0;
  max-width: 25.375rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.125rem;
  color: var(--color-text-muted);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .pricing__guarantee-text {
    white-space: nowrap;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .pricing__board > .pricing__decor-item--bottom {
    display: none;
  }

  .pricing__columns {
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
  }

  .pricing__pair {
    width: 100%;
    max-width: 34.1875rem;
    justify-content: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 16.71875rem;
    min-height: 0;
  }

  .pricing-card__features {
    flex: initial;
    max-width: 100%;
  }

  .pricing-card__body {
    max-width: 100%;
  }
}

/* Mobile — pair/cards; header/modes in mobile-home.css */
@media (max-width: 767px) {
  .pricing__pair {
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    width: 100%;
    max-width: 16.71875rem;
  }

  .pricing-card__price-main {
    font-size: 3rem;
    line-height: 1.229;
  }

  .pricing-card__icons {
    gap: clamp(1.5rem, 8vw, 2.625rem);
    padding-inline: 12px;
  }

  .pricing-card__subjects {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .pricing-card__subject {
    white-space: normal;
  }
}
