.has-pricing .header__inner {
  gap: 28px;
  padding-inline: clamp(24px, 3vw, 52px);
}

.has-pricing .header__main {
  gap: 24px;
}

.has-pricing .header__aside {
  gap: 28px;
}

.header__section-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.header__prices {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.header__prices span {
  font-size: 20px;
  font-weight: 400;
}

.header__prices:hover {
  background-color: #fff;
  color: #236690;
}

.header__prices:focus-visible,
.pricing-card__help:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.pricing {
  --pricing-ink: #194e73;
  --pricing-muted: #60788b;
  --pricing-line: #dce9f1;
  scroll-margin-top: 24px;
  padding: clamp(48px, 5vw, 88px) clamp(20px, 4vw, 64px) clamp(48px, 4.6vw, 80px);
  color: var(--pricing-ink);
  background-color: #f0f7fb;
  line-height: 1.5;
}

.pricing__inner {
  max-width: 1280px;
  margin-inline: auto;
}

.pricing__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.pricing__eyebrow {
  margin-bottom: 10px;
  color: #427b9e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pricing__title {
  font-family: var(--font-family-accent);
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 400;
  line-height: 1.2;
}

.pricing__validity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  color: var(--pricing-muted);
  font-size: 14px;
  line-height: 1.6;
}

.pricing__ticket {
  margin-top: 12px;
  color: var(--pricing-muted);
  font-size: 16px;
}

.pricing__calendar {
  flex: 0 0 20px;
  color: #438ab7;
}

.pricing__date-break {
  display: none;
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pricing-card {
  min-width: 0;
  padding: 30px 28px 22px;
  border: 1px solid var(--pricing-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(29 78 115 / 3%);
}

.pricing-card__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pricing-card__marker {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #57a1d4;
}

.pricing-card__title {
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 600;
  line-height: 1.3;
}

.pricing-card__help {
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border: 1px solid #a1bfd3;
  border-radius: 50%;
  color: #407d9f;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1;
}

.pricing-card__help:hover {
  background-color: #eaf4fa;
}

.pricing-card__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.pricing-card__table th,
.pricing-card__table td {
  text-align: right;
}

.pricing-card__table th:first-child {
  width: 32%;
  text-align: left;
}

.pricing-card__table thead th {
  padding: 0 14px 16px;
  color: var(--pricing-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.pricing-card__table thead th:first-child {
  vertical-align: top;
}

.pricing-card__days {
  display: block;
  margin-top: 4px;
  color: #536f82;
  font-size: 13px;
}

.pricing-card__table tbody th,
.pricing-card__table tbody td {
  padding: 20px 14px;
  border-top: 1px solid #e8eff4;
  vertical-align: middle;
}

.pricing-card__table tbody th {
  font-size: 18px;
  font-weight: 500;
}

.pricing-card__table tbody td {
  white-space: nowrap;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.pricing-card__currency {
  font-size: .76em;
  font-weight: 500;
}

.pricing-card__row--unlimited th,
.pricing-card__row--unlimited td {
  background-color: #edf6fc;
}

.pricing-card__row--unlimited th:first-child {
  border-radius: 12px 0 0 12px;
}

.pricing-card__row--unlimited td:last-child {
  border-radius: 0 12px 12px 0;
}

.pricing__benefits {
  display: flex;
  align-items: baseline;
  gap: 10px 24px;
  padding: 24px 0 30px;
  scroll-margin-top: 24px;
}

.pricing__benefits-title {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
}

.pricing__benefits-text {
  color: var(--pricing-muted);
  font-size: 15px;
  line-height: 1.6;
}

.pricing__conditions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 30px;
  border-top: 1px solid #cedfe9;
}

.pricing__conditions--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-condition + .pricing-condition {
  padding-left: 28px;
  border-left: 1px solid #cedfe9;
}

.pricing-condition__value {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.pricing-condition__text {
  max-width: 340px;
  color: var(--pricing-muted);
  font-size: 15px;
  line-height: 1.6;
}

.pricing__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The external certificate widget sets a 375px minimum on the whole page. */
.has-pricing #certificate_widget {
  min-width: 0;
}

.has-pricing .certificates {
  scroll-margin-top: 24px;
}

/* Keep the anchor reachable while the external widget is still loading. */
.has-pricing .certificates:target:has(#certificate_widget:empty) {
  display: block;
  min-height: calc(100svh - var(--sticky-top) - var(--sticky-bottom) - 24px);
}

@media (1240px < width <= 1520px) {
  .has-pricing .header__main {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .has-pricing .header__note {
    flex-basis: 100%;
    text-align: left;
    font-size: 11px;
    line-height: 1.2;
    top: 0;
  }

  .has-pricing .header__note br {
    display: none;
  }
}

@media (width <= 1240px) {
  .has-pricing .header__inner {
    gap: 0;
    padding: 0;
  }

  .has-pricing .header__main {
    gap: 12px;
    padding: 24px 22px 0;
  }

  .has-pricing .header__aside {
    gap: 0;
  }

  .header__prices {
    padding: 10px 14px;
    background: rgb(21 53 76 / 30%);
    font-size: 14px;
  }
}

@media (width <= 900px) {
  .pricing__cards {
    gap: 18px;
  }

  .pricing-card {
    padding: 24px 16px 16px;
  }

  .pricing-card__table thead th,
  .pricing-card__table tbody th,
  .pricing-card__table tbody td {
    padding-inline: 8px;
  }

  .pricing-card__table tbody th {
    font-size: 16px;
  }

  .pricing__benefits {
    flex-direction: column;
    gap: 6px;
  }

  .pricing-condition__value {
    font-size: 18px;
  }
}

@media (width <= 760px) {
  .pricing__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
  }

  .pricing__eyebrow {
    font-size: 10px;
    letter-spacing: .11em;
  }

  .pricing__title {
    font-size: clamp(28px, 7vw, 38px);
  }

  .pricing__validity {
    padding-bottom: 0;
    font-size: 13px;
  }

  .pricing__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pricing-card {
    padding: 24px 18px 18px;
    border-radius: 20px;
  }

  .pricing-card__heading {
    gap: 10px;
    margin-bottom: 24px;
  }

  .pricing-card__table tbody td {
    font-size: clamp(21px, 5.8vw, 28px);
  }

  .pricing-card__table tbody th,
  .pricing-card__table tbody td {
    padding-block: 17px;
  }

  .pricing__benefits {
    padding: 22px 2px 28px;
  }

  .pricing__benefits-title,
  .pricing__benefits-text {
    font-size: 14px;
  }

  .pricing__conditions {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 26px;
  }

  .pricing-condition + .pricing-condition {
    padding-left: 0;
    border-left: 0;
  }

  .pricing-condition__text {
    max-width: none;
    font-size: 14px;
  }
}

@media (width <= 360px) {
  .pricing {
    padding-inline: 16px;
  }

  .pricing-card {
    padding-inline: 12px;
  }

  .pricing-card__title {
    font-size: 19px;
  }

  .pricing-card__table thead th {
    font-size: 14px;
  }

  .pricing-card__table tbody th {
    font-size: 14px;
  }

  .pricing-card__table tbody td {
    font-size: 20px;
  }

  .has-pricing .header__note {
    font-size: 11px;
  }
}
