.pricing {
  padding-bottom: var(--section-spacing);
}

.pricing__heading {
  padding-inline: var(--section-padding-x);
}
@media (max-width: 988px) {
  .pricing__heading { padding-inline: var(--section-padding-x-mobile); }
}

/* PROPOSED: Teachers' subtitle type, no frame for this line. */
.pricing__lead {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(16px, calc(12.216px + 0.54054vw), 20px);
  line-height: 1.3;
  color: var(--color-text);
}

.pricing__cards {
  margin-top: var(--section-name-to-section);
  /* The tiers' copy differs in length; keeps the buttons on one line. */
  align-items: stretch;
}

.pricing__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.pricing__panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  /* PROPOSED (2026-10-01 redesign for readability): name and price,
     who it's for, then what's included, evenly spaced. */
  gap: 24px;
  padding: clamp(30px, calc(20.541px + 1.35135vw), 40px);
  background: var(--color-cards-bg);
  border-radius: var(--radius-medium);
  transition: border-radius 0.3s ease;
}
@media (hover: hover) and (pointer: fine) and (min-width: 989px) {
  .pricing__card:hover .pricing__panel { border-radius: 60px; }
}
.pricing__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-text);
}

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

.pricing__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(24px, calc(16.432px + 1.08108vw), 32px);
  line-height: 1.2;
  color: var(--color-text);
}

/* PROPOSED: the redesign's reading sizes — 16→18 for the tagline and
   the list, 16 for "for whom" (the frame's 14 read too small). */
.pricing__tagline,
.pricing__prefix,
.pricing__feature {
  font-size: clamp(16px, calc(14.108px + 0.27027vw), 18px);
}
.pricing__tagline {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
}

.pricing__subtitle {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
}

.pricing__prefix {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

.pricing__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Geologica Light in the source; primary font at 400. */
.pricing__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
}
/* Centred on the first line (1.4em tall). */
.pricing__feature img {
  flex: none;
  display: block;
  width: 18px;
  height: 18px;
  margin-top: calc(0.7em - 9px);
}

.pricing__price-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
/* The name sits on the price (one line in every tier, so the prices line
   up across the cards); the price's own top bearing gives the space. */
.pricing__title {
  margin-bottom: 4px;
}

.pricing__price-row {
  display: flex;
  align-items: flex-end;
}

.pricing__price {
  font-family: var(--font-primary);
  font-weight: 500;
  /* PROPOSED: 44→64 (the frame's 70→90 made the card taller than the screen). */
  font-size: clamp(44px, calc(25.081px + 2.7027vw), 64px);
  line-height: 1;
  color: var(--color-text);
}

/* Figma: a 10px-padded box overlapping the price by 10px. */
.pricing__period {
  padding: 10px;
  margin-left: -10px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
  color: var(--color-text);
}

.pricing__note {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  white-space: pre-wrap;
  color: var(--color-text);
}

.pricing__button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 67.203px;
  background: var(--color-cards-bg);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--font-size-button-cta);
  color: var(--color-text);
  text-decoration: none;
}
/* No stroke: the frame's #000 one dropped, nothing else on the site
   has one. */
.pricing__card--featured .pricing__button {
  background: var(--color-accent-buttons);
}
.pricing__button--disabled {
  cursor: default;
  opacity: var(--opacity-secondary-text);
}
/* The roll fills the pill (its 44px inline padding included) so the
   whole button, not just the label, triggers the shared roll hover. */
.pricing__button .roll {
  width: 100%;
  height: 100%;
}
.pricing__button .roll__mask {
  height: 100%;
}
.pricing__button .roll__line {
  justify-content: center;
  padding-inline: 44px;
}

/* PROPOSED (her config, no frame): the feature text's type, louder
   than the footnotes under it. */
.pricing__guarantee {
  margin: 30px 0 0;
  padding-inline: var(--section-padding-x);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
}
.pricing__guarantee strong { font-weight: 500; }
.pricing__guarantee a { color: inherit; }
@media (max-width: 988px) {
  .pricing__guarantee { padding-inline: var(--section-padding-x-mobile); }
}

/* PROPOSED (her config, no frame): the note's type under the cards. */
.pricing__footnotes {
  list-style: none;
  margin: 12px 0 0;
  padding-inline: var(--section-padding-x);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-text);
}
@media (max-width: 988px) {
  .pricing__footnotes { padding-inline: var(--section-padding-x-mobile); }
}

/* Scales with the card; PROPOSED 20px at the 424 card — the frame's 25
   stuck out too far (her call, 2026-10-03) — ×350/424 at the mobile
   width. */
.pricing__tag {
  font-size: clamp(16.48px, calc(13.152px + 0.47567vw), 20px);
  position: absolute;
  top: clamp(14.5px, calc(34.35px - 1.3784vw), 24.7px);
  /* The frame's corner, but the long copy may stick out at most 16px
     (half its rotated width is 5.2em) — less than the cards' gap. */
  right: max(clamp(71.1px, calc(35.91px + 5.027vw), 108.3px), calc(5.2em - 16px));
  transform: translate(50%, -50%) rotate(16.69deg);
}
/* Stacked: half the rotated badge in from the card's edge, or its long
   copy leaves the phone screen; recompute if the badge text changes. */
@media (max-width: 699.98px) {
  .pricing__tag { right: 5.2em; }
}

@media (max-width: 699.98px) {
  .pricing__cards {
    flex-direction: column;
    gap: 30px;
    overflow: visible;
    padding-inline: var(--section-padding-x-mobile);
    scroll-snap-type: none;
  }
  .pricing__cards > :first-child { margin-inline-start: 0; }
  .pricing__cards > :last-child { margin-inline-end: 0; }
  .pricing__card {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Three tiers: columns ≥ 1200 (her number), the shared scroll track
   between, stacked below 700 (where the tracks' own nav also gives up).
   The track's own rules are the default; the other two tiers undo them. */
@media (min-width: 1200px) {
  .pricing__cards {
    overflow: visible;
    gap: 20px;
    padding-inline: var(--section-padding-x);
    scroll-snap-type: none;
  }
  .pricing__cards > :first-child { margin-inline-start: 0; }
  .pricing__cards > :last-child { margin-inline-end: 0; }
}
@media (min-width: 700px) and (max-width: 1199.98px) {
  .pricing__card {
    flex: 0 0 auto;
    width: clamp(350px, calc(280px + 10vw), 424px);
    scroll-snap-align: start;
  }
  /* Room for the sticker, which sits 22px above the card and would be
     clipped by the track's overflow; the margin gives it back. */
  .pricing__cards {
    padding-top: 22px;
    margin-top: calc(var(--section-name-to-section) - 22px);
  }
}

/* The plan cards, from the "новые пакеты" frame (1440 only; the low
   ends are PROPOSED). The payment-schedule cards on the offline pages
   share this section and keep the sizes above. */
.pricing__card--plan { gap: 15px; }
.pricing__card--plan .pricing__panel {
  /* Her card's own 67 above the price, as a minimum — the cards are equal
     height, so space-between still lands every price on one line. It
     holds its share of the card: 67 of her 424, so 55 of the phone's
     350. */
  justify-content: space-between;
  gap: clamp(55px, calc(50.543px + 1.1429vw), 67px);
  /* The frame pads 36 down the sides of 40. */
  padding: clamp(30px, calc(27.771px + 0.5714vw), 36px) clamp(30px, calc(20.541px + 1.35135vw), 40px);
}
.pricing__top {
  display: flex;
  flex-direction: column;
  gap: 30px; /* her call over the frame's 49 */
}
.pricing__card--plan .pricing__meta { gap: 12px; }
.pricing__card--plan .pricing__content {
  gap: 22px;
  padding-top: 0;
  border-top: none;
}
/* Nothing in this card ramps: the list, "Включено" and the note are
   14/16/14 at every width, so the name and the price hold their ratio to
   them at a flat size too. */
.pricing__card--plan .pricing__title {
  margin-bottom: 0;
  font-size: 28px;
}
.pricing__card--plan .pricing__subtitle {
  font-size: 14px;
  line-height: 1.35;
  /* Three lines are reserved whatever a text runs to, so "Включено"
     starts at the same height in every card (her call). Two lines are
     not reachable for all three: in the 3-column layout the card is
     342 wide and even the shortest of them needs three there. */
  min-height: calc(3 * 1.35em);
  opacity: var(--opacity-secondary-text);
}
.pricing__card--plan .pricing__prefix { font-size: 16px; }
/* The list is descriptive text, like the subtitle and the note (her
   call, 2026-10-06). */
.pricing__card--plan .pricing__feature { font-size: 14px; }
.pricing__card--plan .pricing__prefix { line-height: normal; }
.pricing__card--plan .pricing__feature { line-height: 1.3; }
.pricing__card--plan .pricing__price-block { gap: 0; }
.pricing__card--plan .pricing__price {
  font-size: 64px; /* PROPOSED: her 80 read too big, 40 too small */
  line-height: 1.1;
}
/* On her card the period rides the price's baseline inside one line, so
   it lines up on the digits, not under them. The 8 beside it is
   PROPOSED. */
.pricing__card--plan .pricing__price-row { align-items: baseline; }
.pricing__card--plan .pricing__period {
  padding: 0 0 0 8px;
  margin-left: 0;
  line-height: 1.1;
}
.pricing__card--plan .pricing__note { line-height: 1.65; }

/* Stacked, the button is read as part of its own card: 10 from it, 30 to
   the next one (her call, 2026-10-06). Must stay after
   .pricing__card--plan's own gap — same specificity. */
@media (max-width: 699.98px) {
  .pricing__card--plan { gap: 10px; }
}
