/* //////////////////////// content-wrapper //////////////////////// */
.content-wrapper {
  padding-inline: 10px;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .content-wrapper {
    padding-inline: 24px;
  }
}

@media screen and (min-width: 1024px) {
  .content-wrapper {
    padding-inline: 40px;
  }
}

@media screen and (min-width: 1440px) {
  .content-wrapper {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 0;
  }
}
/* //////////////////////// end content-wrapper //////////////////////// */

/* //////////////////////// pricing-hero //////////////////////// */
.pricing-hero {
  margin: 150px auto 0;
  text-align: center;
}

.pricing-hero__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}

.pricing-hero__subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-top: 8px;
}

.pricing-hero__test-button {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  width: max-content;
  margin: 24px auto 0;
  padding: 10px 10px;
  background-color: #0053e2;
  color: #ffffff;
  border-radius: 8px;
  display: block;
  border: 2px solid #0053e2;
  transition:
          border 0.3s ease,
          color 0.3s ease,
          background-color 0.3s ease;
}

a.pricing-hero__test-button:hover {
  border: 2px solid #0053e2;
  color: #0053e2;
  background-color: #fff;
}

.pricing-hero__test-add {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #696d70;
  width: 90%;
  margin: 8px auto 0;
}

@media screen and (min-width: 768px) {
}

@media screen and (min-width: 1024px) {
  .pricing-hero {
    width: 50%;
  }

  .pricing-hero__title {
    font-size: 40px;
  }

  .pricing-hero__subtitle {
    font-size: 20px;
  }

  .pricing-hero__test-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .pricing-hero__test-add {
    width: 100%;
  }
}
/* //////////////////////// end pricing-hero //////////////////////// */

/* //////////////////////// pricing-controls //////////////////////// */
.pricing-controls {
  margin-top: 64px;
}

.pricing-controls__wrapper {
  display: flex;
  flex-direction: column;
}

.audience-switch {
  padding: 8px;
  width: 100%;
  border-radius: 200px;
  background-color: #f4f3ef;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.audience-switch--white {
  margin-top: 32px;
  background-color: #fff;
  margin-inline: auto;
}

.audience-switch__option {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  border: none;
  padding: 5px 10px;
  background-color: transparent;
  transition: color 0.3s ease;
}

.audience-switch__option:hover {
  color: #00000080;
}

.audience-switch__option--active {
  background-color: #f9c015;
  border-radius: 200px;
  cursor: default;
}

.audience-switch__option--active:hover {
  color: inherit;
}

.billing-toggle {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.billing-toggle__label {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: #9fa3a8;
  white-space: nowrap;
}

.billing-toggle__label--active {
  color: #000000;
}

.billing-toggle__switch {
  width: 44px;
  height: 24px;
  border-radius: 100px;
  background-color: #e7e8e9;
  border: none;
  box-shadow: 0px 0.5px 1px 0px #0000001a inset;
  transition: background-color 0.3s ease;
}

.billing-toggle__switch[aria-checked="true"] {
  background-color: #0053e2;
}

.billing-toggle__switch:hover {
  background-color: #cfd1d4;
}

.billing-toggle__switch[aria-checked="true"]:hover {
  background-color: #3375e8;
}

.billing-toggle__switch-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0px 2px 10px 0px #0000001a;
  display: block;
  margin: 2px;
  transition: transform 0.3s ease;
}

.billing-toggle__switch[aria-checked="true"] .billing-toggle__switch-knob {
  transform: translateX(20px);
}

.billing-toggle__discount-badge {
  font-weight: 700;
  font-size: 10px;
  line-height: 1.1;
  color: #0c8749;
  background-color: #dbeee3;
  border-radius: 40px;
  padding: 5px 5px;
  text-align: center;
  white-space: nowrap;
}

@media screen and (min-width: 1024px) {
  .pricing-controls {
    margin-top: 80px;
  }

  .pricing-controls__wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .audience-switch {
    width: max-content;
  }

  .audience-switch__option {
    padding: 12px 33px;
  }

  .billing-toggle__discount-badge {
    font-size: 14px;
    padding: 5px 10px;
  }

  .billing-toggle__label {
    font-size: 16px;
  }

  .billing-toggle {
    margin-top: 0px;
  }
}
/* //////////////////////// end pricing-controls //////////////////////// */

/* //////////////////////// pricing-plans //////////////////////// */
.pricing-plans {
  margin-top: 40px;
}

.pricing-plans__title {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  text-align: center;
}

.pricing-plans__subtitle {
  margin-top: 8px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.pricing-plans__grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.plan-card--blue {
  border-radius: 16px;
  box-shadow: 0px 0px 14px 0px #ccddf9;
}

.plan-card__header {
  padding: 16px 16px;
  background-color: #f4f3ef;
  border-radius: 16px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  grid-row: 1;
}

.plan-card__header--blue {
  background: linear-gradient(276.34deg, #3375e8 0%, #0053e2 100%);
}

.plan-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-card__popular {
  font-weight: 600;
  font-size: 10px;
  line-height: 100%;
  color: #ffffff;
  padding: 8px;
  background-color: #0053e2;
  border-radius: 40px;
}

.plan-card__name {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
}

.plan-card__name--white {
  color: #ffffff;
}

.plan-card__tagline {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}

.plan-card__tagline--white {
  color: #ffffff;
}

.plan-card__content {
  border: 2px solid #f4f3ef;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 16px 16px 24px;
  grid-row: 2;
}

.plan-card__content--blue {
  border: none;
}

.plan-card__price {
  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
}

.plan-card__price-amount {
  font-weight: 700;
  font-size: 32px;
  line-height: 100%;
}

.plan-card__price-period {
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  color: #0000004d;
}

.plan-card__price-original {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  color: rgba(0, 0, 0, 0.75);
  margin-top: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #00000033;
}

.plan-card__price-original-period {
  font-weight: 400;
}

.plan-card__list-box {
  margin-top: 12px;
}

ul.plan-card__specs-list {
  margin-top: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #696d70;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.plan-card__list-infinity {
  font-size: 22px !important;
  margin-top: -5px;
}

.plan-card__list-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
}

.plan-card__specs-list span {
  margin-left: auto;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}

.plan-card__specs-list li {
  display: flex;
  justify-content: space-between;
}

.plan-card__cta-button {
  margin-top: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  background-color: transparent;
  width: 100%;
  height: 48px;
  border: none;
  color: #000;
  transition:
          background-color 0.3s ease,
          color 0.3s ease,
          border 0.3s ease;
}

.plan-card__cta-button--outline {
  border: 2px solid #000000;
}

a.plan-card__cta-button--outline:hover {
  background-color: #00000033;
  color: #000000;
  border: transparent;
}

.plan-card__cta-button--blue {
  background-color: #0053e2;
  color: #ffffff;
  border: 2px solid #0053e2;
}

a.plan-card__cta-button--blue:hover {
  border: 2px solid #0053e2;
  color: #0053e2;
  background-color: #fff;
}

.plan-card__cta-button--dark-blue {
  background-color: #001e60;
  color: #ffffff;
  border: 2px solid #001e60;
}

a.plan-card__cta-button--dark-blue:hover {
  border: 2px solid #001e60;
  color: #001e60;
  background-color: #fff;
}

.plan-card__features-heading {
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  color: #696d70;
}

ul.plan-card__features-list {
  margin-top: 16px;
}

.plan-card__features-list li {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: stretch;
  gap: 5px;
}

.plan-card__features-list li:not(:first-child) {
  margin-top: 8px;
}

.pricing-plans__note {
  margin-top: 16px;
}

.pricing-plans__add {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.1;
  color: #404752;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .pricing-plans__grid {
    width: 70%;
    margin-inline: auto;
    gap: 24px;
  }
}

@media screen and (min-width: 1024px) {
  .pricing-plans__grid {
    width: 100%;
  }

  .pricing-plans__title {
    font-size: 32px;
    text-align: left;
  }

  .pricing-plans__subtitle {
    font-size: 20px;
    text-align: left;
    width: 56%;
  }

  .pricing-plans__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 24px;
  }

  .plan-card {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    gap: 0;
  }

  .plan-card__name {
    font-size: 28px;
  }

  .plan-card__tagline {
    font-size: 16px;
  }

  .plan-card__price {
    font-size: 24px;
  }

  .plan-card__price-original {
    font-size: 18px;
    margin-top: 10px;
  }

  .plan-card__price-amount {
    font-size: 40px;
  }

  .plan-card__price-period {
    font-size: 24px;
  }

  .plan-card__header {
    padding: 20px 24px;
    background-color: #f4f3ef;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }

  .plan-card--blue {
    border-radius: 24px;
  }

  .plan-card__popular {
    font-size: 12px;
  }

  .plan-card__content {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 24px 24px 32px;
  }

  .plan-card__lists {
    min-height: 165px;
  }

  ul.plan-card__specs-list {
    font-size: 16px;
  }

  .plan-card__specs-list span {
    font-size: 16px;
  }

  .plan-card__list-infinity {
    font-size: 26px !important;
    margin-top: -7px;
  }

  .plan-card__cta-button {
    margin-top: 24px;
    border-radius: 12px;
    font-size: 16px;
  }

  .plan-card__features-heading {
    margin-top: 32px;
  }

  .plan-card__features-list li {
    font-size: 16px;
    gap: 8px;
  }

  .pricing-plans__add {
    font-size: 14px;
  }

  .pricing-plans__note {
    margin-top: 24px;
  }
}
/* //////////////////////// end pricing-plans //////////////////////// */

/* //////////////////////// pricing-help //////////////////////// */
.pricing-help {
  margin-top: 80px;
}

.pricing-help__bg {
  background: linear-gradient(90deg, #99baf3 0%, #ead4ff 100%);
  border-radius: 24px;
  padding: 56px 40px;
}

.pricing-help__free {
  background-color: #ffffff33;
  border: 1px solid #ffffff80;
  border-radius: 8px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: #001e60;
  width: max-content;
  padding: 8px 10px;
  margin: auto;
}

.pricing-help__title {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  text-align: center;
  margin-top: 24px;
}

.pricing-help__subtitle {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  margin-top: 8px;
}

.pricing-help__button {
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
  color: #fff;
  background-color: #001e60;
  border-radius: 12px;
  margin: 24px auto 0;
  padding: 18px 20px;
  display: block;
  width: max-content;
  border: 2px solid #001e60;
  transition:
          border 0.3s ease,
          color 0.3s ease,
          background-color 0.3s ease;
}

a.pricing-help__button:hover {
  border: 2px solid #001e60;
  color: #001e60;
  background-color: transparent;
}

.pricing-help__review {
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.pricing-help__avatar-icon:not(:first-child) {
  margin-left: -15px;
}

.pricing-help__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-help__text {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.1;
}

@media screen and (min-width: 1024px) {
  .pricing-help {
    margin-top: 96px;
  }

  .pricing-help__bg {
    border-radius: 40px;
    padding: 56px 40px;
    border-radius: 40px;
    width: 60%;
    margin: auto;
  }

  .pricing-help__free {
    font-size: 14px;
  }

  .pricing-help__title {
    font-size: 32px;
  }

  .pricing-help__subtitle {
    font-size: 20px;
    width: 80%;
    margin-inline: auto;
  }

  .pricing-help__button {
    font-size: 16px;
    padding: 20px 30px;
    border-radius: 16px;
  }

  .pricing-help__avatar-icon {
    width: 36px;
    height: 36px;
  }

  .pricing-help__star-icon {
    width: 17px;
    height: 17px;
  }
}
/* //////////////////////// end pricing-help //////////////////////// */

/* ////////////////////////  tariff-comparison //////////////////////// */
.tariff-comparison {
  margin-top: 80px;
  background-color: #f4f3ef;
  padding-block: 46px;
}

.tariff-comparison__title {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  text-align: center;
}

/* ////////////////////////  end tariff-comparison //////////////////////// */

/* ////////////////////////  tariff-dropdown //////////////////////// */
.tariff-dropdown {
  margin-top: 32px;
  position: relative;
}

.tariff-dropdown__name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}

.tariff-dropdown__box {
  position: relative;
  width: 100%;
  z-index: 10;
  margin-top: 8px;
}

.tariff-dropdown__trigger {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 1px solid #00000033;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.tariff-dropdown__trigger:hover {
  border-color: #000;
}

.tariff-dropdown__placeholder {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
  color: #000;
}

.tariff-dropdown__arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.tariff-dropdown__box.is-open .tariff-dropdown__arrow {
  transform: rotate(180deg);
}

.tariff-dropdown__content {
  position: absolute;

  top: calc(100% + 4px);
  left: 0;
  right: 0;

  padding: 8px;

  background: #fff;
  border-radius: 8px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);

  transition:
          opacity 0.2s ease,
          visibility 0.2s ease,
          transform 0.2s ease;
}

.tariff-dropdown__box.is-open .tariff-dropdown__content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tariff-dropdown__options {
  display: flex;
  flex-direction: column;
}

.tariff-dropdown__compare {
  width: 100%;
  height: 36px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #0053e2;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 100%;
  text-align: center;
}

.tariff-dropdown__compare:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tariff-dropdown__hint {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.33;
  position: absolute;
  margin-top: 4px;
}

@media screen and (min-width: 1024px) {
  .tariff-comparison {
    margin-top: 96px;
    padding-block: 80px;
  }

  .tariff-comparison__title {
    font-size: 32px;
    line-height: 1.25;
  }

  .tariff-dropdown {
    display: none;
  }

  .tariff-dropdown__hint {
    display: none;
  }
}

/* ////////////////////////  end tariff-dropdown //////////////////////// */

/* ////////////////////////  plan-option //////////////////////// */
.plan-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 67px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.plan-option:hover {
  background: #f7f7f7;
}

.plan-option__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.plan-option__checkmark {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  margin-right: 8px;
  border: 1px solid #9fa3a8;
  border-radius: 4px;
  background: #fff;
}

.plan-option__checkbox:checked + .plan-option__checkmark {
  background: #0053e2;
  border: 1px solid #0053e2;
}

.plan-option__checkbox:checked + .plan-option__checkmark::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  margin: 2px auto 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan-option:has(.plan-option__checkbox:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}

.plan-option__info {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
}

.plan-option__name {
  font-weight: 700;
}

.plan-option__price {
  margin-top: 5px;
  color: #9fa3a8;
}

.plan-option__price strong {
  color: #000;
}

.plan-option__yearly {
  display: block;
  margin-top: 5px;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.6;
  color: #00000066;
}
/* ////////////////////////  end plan-option //////////////////////// */



/* ////////////////////////  comparison-table //////////////////////// */
.comparison-table-wrapper {
  margin-top: 36px;
  border-radius: 8px;
}

.comparison-table {
  border: none;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table td {
  border-right: 1px solid #00000033;
  text-align: center;
}

/* щоб не було зайвої лінії з правого краю таблиці */
.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: none;
}

.comparison-table thead th {
  width: 33.3%;
}

.comparison-table__head {
  position: sticky;
  top: 109px;
  z-index: 10;
  margin-bottom: 58px;
}

.comparison-table__plan {
  text-align: left;
  padding: 8px 10px;
  border-right: 1px solid #00000033;
  border-bottom: 1px solid #00000033;
  vertical-align: top;
  height: 0;
}

.comparison-table__plan-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.comparison-table__plan-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}

.comparison-table__plan-period {
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  color: #9fa3a8;
  margin-top: 4px;
}

.comparison-table__plan-price {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
  color: #9fa3a8;
  margin-top: 4px;
  white-space: nowrap;
  display: block;
}

.comparison-table__plan-price strong {
  color: #000;
}

.comparison-table__plan-yearly {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.33;
  color: #9fa3a8;
  margin-top: 2px;
}

.comparison-table__category-title {
  text-align: left;
}

.comparison-table__category-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-top: 1px solid #00000033;
  border-right: 1px solid #00000033;

  font-family: Open Sans;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;

  transition: background-color 0.3s ease;
}

.comparison-table__category-button:hover {
  background-color: #ffffff80;
}

.comparison-table__category-button:last-child:hover {
  border-bottom-left-radius: 8px;
}

.comparison-table__category-button:hover
.comparison-table__category-icon-svg
path {
  stroke-opacity: 1;
}

.comparison-table__category:not(:has(~ .comparison-table__category))
.comparison-table__category-button {
  border-bottom: none;
}

.comparison-table__category-button.is-open {
  background-color: #ffffff80;
  color: #0053e2;
  transition: background-color 0.3s ease;
  border-bottom: none;
}

.comparison-table__category-button.is-open:hover {
  background-color: #f4f3ef;
}

.comparison-table__category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-table__category-icon-svg {
  transition: transform 0.3s ease;
}

.comparison-table__category-button.is-open
.comparison-table__category-icon-svg {
  transform: rotate(45deg);
}

.comparison-table__category-button.is-open
.comparison-table__category-icon-svg
path {
  stroke-opacity: 1;
}

.comparison-table__category-icon-ai {
  margin-left: 5px;
}

.comparison-table__row th,
.comparison-table__row td {
  border-top: 1px solid #00000033;
}

.comparison-table__row th {
  background-color: #ffffff80;
}

.comparison-table__row td:nth-child(even) {
  background-color: #ffffff80;
}

.comparison-table__row--development {
  color: #00000080;
}

.comparison-table__label-row th {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

.comparison-table__row td {
  padding-block: 8px;
  width: 33.3%;
}

.comparison-table__row td:first {
  border-top: transparent;
}

.comparison-table__badge {
  display: block;
  margin: 0 auto 4px;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 10px;
  line-height: 100%;
}

.comparison-table__badge--development {
  border: 1px solid #fc6d20;
  color: #fc6d20;
}

.comparison-table__badge--new {
  color: #0c8749;
  background-color: #dbeee3;
}

.comparison-table__try-row {
  border-top: 1px solid #00000033;
}

.comparison-table__try-cell {
  padding: 12px;
  border-right: 1px solid #00000033;
}

.comparison-table__try-button {
  padding-block: 10px;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  line-height: 100%;
  text-align: center;
  display: block;
  transition:
          border-color 0.3s ease,
          background-color 0.3s ease,
          color 0.3s ease;
}

.comparison-table__try-cell:nth-child(1) .comparison-table__try-button {
  border: 1px solid #000000;
  color: #000000;
}

.comparison-table__try-cell:nth-child(1):hover .comparison-table__try-button {
  background-color: #00000033;
  color: #000000;
  border-color: transparent;
}

.comparison-table__try-cell:nth-child(2) .comparison-table__try-button {
  border: 1px solid #0053e2;
  background-color: #0053e2;
  color: #fff;
}

.comparison-table__try-cell:nth-child(2):hover .comparison-table__try-button {
  border: 1px solid #0053e2;
  color: #0053e2;
  background-color: transparent;
}

.comparison-table__try-cell:nth-child(3) .comparison-table__try-button {
  border: 1px solid #001e60;
  background-color: #001e60;
  color: #fff;
}

.comparison-table__try-cell:nth-child(3):hover .comparison-table__try-button {
  border: 1px solid #001e60;
  color: #001e60;
  background-color: transparent;
}

.comparison-table__tooltip-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}

.comparison-table__tooltip-text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-22%);
  background: #101a26;
  box-shadow: 0px 3px 8px 2px #0000001a;
  box-shadow: 0px 2px 4px -2px #0000001a;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 20;
  pointer-events: none;
}

.comparison-table__tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20%;
  border: 5px solid transparent;
  border-top-color: #101a26;
}

.comparison-table__tooltip-icon:hover .comparison-table__tooltip-text,
.comparison-table__tooltip-icon:focus .comparison-table__tooltip-text {
  opacity: 1;
  visibility: visible;
}

@media screen and (min-width: 1024px) {
  .comparison-table-wrapper {
    margin-top: 0;
    overflow: visible;
    border: none;
  }

  .comparison-table__characteristics-head {
    text-align: left;
    vertical-align: top;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    border-right: 1px solid #00000033;
    border-bottom: 1px solid #00000033;
    box-shadow: -1px 0 0 0 #00000033;
    width: 28% !important;
    border-top-left-radius: 8px;
  }

  .comparison-table__plan-name {
    font-size: 20px;
    line-height: 1.2;
  }

  .comparison-table__plan-period {
    font-size: 16px;
    line-height: 1.5;
  }

  .comparison-table__plan-price {
    display: inline;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
  }

  .comparison-table__category-button {
    font-size: 20px;
    line-height: 1.2;
    padding: 16px;
  }

  .comparison-table__category-icon-svg {
    width: 20px;
    height: 20px;
  }

  .comparison-table {
    table-layout: fixed;
    position: relative;
  }

  .comparison-table__plan,
  .comparison-table__characteristics-head,
  .comparison-table__add-plan-head {
    background-color: #f4f3ef;
    position: relative;
    z-index: 1;
    border-top: 1px solid #00000033;
  }

  .comparison-table-wrapper {
    position: relative;
  }

  .comparison-table-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #00000033;
    border-radius: 8px;
    pointer-events: none;
    z-index: 5;
  }

  .comparison-table thead th {
    width: auto;
  }

  .comparison-table__plan {
    position: relative;
    padding: 16px 20px;
  }

  .comparison-table__head .comparison-table__plan {
    background-color: #F4F3EF;
  }

  .comparison-table__plan:nth-child(odd) {
    background-color: #ffffff80;
  }

  .comparison-table__plan-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #00000066;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition:
            background-color 0.2s ease,
            color 0.2s ease;
  }

  .comparison-table__plan-remove:hover {
    background-color: #00000014;
    color: #000;
  }

  .comparison-table__try-button--head {
    display: block;
    margin-top: 24px;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    text-align: center;
    text-decoration: none;
    transition:
            background-color 0.3s ease,
            border-color 0.3s ease;
  }

  .comparison-table__head
  tr
  th:nth-child(2)
  .comparison-table__try-button--head {
    border: 1px solid #000000;
    color: #000000;
  }
  .comparison-table__head
  tr
  th:nth-child(2)
  .comparison-table__try-button--head:hover {
    background-color: #00000033;
    border-color: transparent;
  }

  .comparison-table__head
  tr
  th:nth-child(3)
  .comparison-table__try-button--head {
    border: 1px solid #0053e2;
    background-color: #0053e2;
    color: #fff;
  }
  .comparison-table__head
  tr
  th:nth-child(3)
  .comparison-table__try-button--head:hover {
    background-color: transparent;
    color: #0053e2;
  }

  .comparison-table__head
  tr
  th:nth-child(4)
  .comparison-table__try-button--head {
    border: 1px solid #001e60;
    background-color: #001e60;
    color: #fff;
  }
  .comparison-table__head
  tr
  th:nth-child(4)
  .comparison-table__try-button--head:hover {
    background-color: transparent;
    color: #001e60;
  }

  .comparison-table__head
  tr
  th:nth-child(5)
  .comparison-table__try-button--head {
    border: 1px solid #000000;
    color: #000000;
  }
  .comparison-table__head
  tr
  th:nth-child(5)
  .comparison-table__try-button--head:hover {
    background-color: #00000033;
    border-color: transparent;
  }

  .comparison-table__add-plan-head {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    border-bottom: 1px solid #00000033;
    min-width: 170px;
    position: relative;
    z-index: 20;
    vertical-align: top;
    height: 0;
    background-color: #faf9f7;
    border-top-right-radius: 8px;
    box-shadow: 1px 0 0 0 #00000033;
  }

  .comparison-table__plan:last-child {
    border-top-right-radius: 8px;
    box-shadow: 1px 0 0 0 #00000033;
  }

  .comparison-table__add-plan-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* label зверху, select знизу */
    height: 100%;
  }

  .comparison-table__add-plan-label {
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
  }

  .comparison-table__add-plan-select {
    position: relative;
    z-index: 30;
    margin-top: 8px;
  }

  .comparison-table__add-plan-trigger {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border: 1px solid #00000033;
    border-radius: 8px;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s ease;
  }

  .comparison-table__add-plan-trigger:hover {
    border-color: #000;
  }

  .comparison-table__add-plan-select.is-open
  .comparison-table__add-plan-trigger
  svg {
    transform: rotate(180deg);
  }

  .comparison-table__add-plan-trigger svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .comparison-table__add-plan-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 2px 10px 0px #0000001a;
    padding: 4px;
    z-index: 100;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
  }

  .comparison-table__add-plan-select.is-open .comparison-table__add-plan-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .comparison-table__add-plan-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  .comparison-table__add-plan-option-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
  }

  .comparison-table__add-plan-option-period {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
  }

  .comparison-table__add-plan-option:hover {
    background: #f7f7f7;
  }

  .comparison-table__add-plan-option-period {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #00000080;
  }

  .comparison-table__add-plan-option-period strong {
    color: #000;
  }

  .comparison-table__add-plan-option-yearly {
    font-size: 12px;
    line-height: 1.3;
    color: #00000066;
  }

  .comparison-table__add-plan-cell {
    border-right: none;
    background-color: #ffffff80;
    border-bottom-right-radius: 8px;
  }

  /* Один рядок на характеристику: назва зліва + значення у своїх колонках */
  .comparison-table__feature-row {
    background-color: transparent;
  }

  .comparison-table__feature-label {
    text-align: left;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    border-right: 1px solid #00000033;
    overflow-wrap: break-word;
    background-color: #ffffff80;
  }

  .comparison-table__feature-label .comparison-table__badge {
    margin: 0 8px 0 4px;
    vertical-align: middle;
  }

  .comparison-table__feature-row:last-child {
    border-bottom: none;
  }

  .comparison-table__feature-row:last-child .comparison-table__value-cell {
    border-bottom: none;
  }

  .comparison-table__value-cell:last-child {
    border-bottom-right-radius: 8px;
  }

  .comparison-table__add-plan-cell:last-child {
    border-bottom: none;
  }

  .comparison-table__value-cell {
    text-align: center;
    padding-block: 8px;
  }

  .comparison-table__row td:nth-child(even) {
    background-color: unset;
  }

  .comparison-table__icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    display: block;
    margin: auto;
  }

  .comparison-table__try-row {
    display: none;
  }
}
/* ////////////////////////  end comparison-table //////////////////////// */



/* ////////////////////////  tariff-info//////////////////////// */
.tariff-info {
  margin-top: 80px;
}

.tariff-info__title {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  text-align: center;
  padding-inline: 10px;
}

.tariff-info__subtitle {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 8px;
  text-align: center;
  padding-inline: 10px;
}

.tariff-info__slider-outer {
  position: relative;
  margin-top: 20px;
}

.tariff-info__slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 15px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-left: 10px;
}

.tariff-info__slider::-webkit-scrollbar {
  display: none;
}

.tariff-info__card {
  scroll-snap-align: start;
  flex: 0 0 82%;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.tariff-info__card:nth-child(1) {
  background: linear-gradient(114.59deg, #faf9f7 0%, #e6eefc 100%);
  margin-left: 10px;
}

.tariff-info__card:nth-child(4) {
  background: linear-gradient(114.59deg, #faf9f7 0%, #fff0e9 100%);
}

.tariff-info__card:nth-child(5) {
  background: linear-gradient(114.59deg, #faf9f7 0%, #f8f1ff 100%);
}

.tariff-info__card.alt {
  background: #ffffff;
}

.tariff-info__card-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.tariff-info__card-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}

.tariff-info__card-desc {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #000000cc;
  margin-top: 16px;
}

.tariff-info__progress-track {
  position: relative;
  height: 8px;
  width: 80%;
  background-color: #e7e8e9;
  border-radius: 100px;
  box-shadow: 0px 0.5px 1px 0px #0000001a inset;
  margin: 16px auto 0;
}

.tariff-info__progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  height: 8px;
  border-radius: 4px;
  background: #0053e2; /* колір повзунка під бренд */
  transform: translateY(-50%);
  transition: left 0.25s ease;
  z-index: 100;
}

@media screen and (min-width: 768px) {
  .tariff-info__title {
    padding-inline: 24px;
  }
  
  .tariff-info__subtitle {
    padding-inline: 24px;
  }
}

@media screen and (min-width: 1024px) {
  .tariff-info {
    margin: 96px auto 0;
    max-width: 1100px;
  }

  .tariff-info__title {
    font-size: 32px;
    line-height: 1.25;
    padding-inline: 40px;
  }
  
  .tariff-info__subtitle {
    font-size: 20px;
    padding-inline: 40px;
    margin-top: 10px;
  }

  .tariff-info__slider-outer {
    margin-top: 40px;
  }

  .tariff-info__slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    scroll-snap-type: none;
  }

  .tariff-info__icon {
    width: 40px;
    height: 40px;
  }

  .tariff-info__card-title {
    font-size: 20px;
    line-height: 1.2;
  }

  .tariff-info__card-desc {
    font-size: 16px;
    line-height: 1.5;
  }

  .tariff-info__card {
    padding: 24px;
    scroll-snap-align: none;
  }

  .tariff-info__progress-track {
    display: none;
  }
}

@media screen and (min-width: 1200px) {
  .tariff-info__title {
    padding-inline: 0;
  }
  
  .tariff-info__subtitle {
    padding-inline: 0;
  }
}
/* ////////////////////////  end tariff-info //////////////////////// */



/* ////////////////////////  pricing-cta //////////////////////// */
.pricing-cta {
  margin-top: 80px;
  background: linear-gradient(90deg, #f9c015 0%, #fce08a 100%);
  position: relative;
  overflow: hidden;
}

.pricing-cta__bg {
  width: 180%;
  height: auto;
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translate(-50%);
}

.pricing-cta__content {
  position: relative;
  z-index: 10;
  padding: 80px 30px;
}

.pricing-cta__title {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  text-align: center;
  color: #001e60;
}

.pricing-cta__subtitle {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: #001e60;
  margin-top: 4px;
}

.pricing-cta__button {
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 100%;
  background-color: #001e60;
  border: 1px solid #001e60;
  border-radius: 12px;
  margin-top: 40px;
  transition:
          background-color 0.3s ease,
          color 0.3s ease,
          border-color 0.3s ease;
}

.pricing-cta__button:hover {
  background-color: transparent;
  color: #001e60;
  border-color: #001e60;
}

.pricing-cta__info {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: #001e60;
  margin: 20px auto 0;
  width: 90%;
}

@media screen and (min-width: 768px) {
  .pricing-cta {
    border-radius: 24px;
    margin-inline: 24px;
  }

  .pricing-cta__button {
    width: 300px;
    margin-inline: auto;
  }
}

@media screen and (min-width: 1024px) {
  .pricing-cta {
    margin: 96px auto 0;
    max-width: 900px;
    border-radius: 40px;
  }

  .pricing-cta__content {
    padding: 40px;
  }

  .pricing-cta__bg {
    margin-top: 0;
    width: 60%;
    transform: translate(0);
    left: unset;
    right: -10px;
    top: -40%;
  }

  .pricing-cta__title {
    font-size: 32px;
    line-height: 1.25;
    text-align: left;
    width: 80%;
  }

  .pricing-cta__subtitle {
    font-size: 20px;
    line-height: 1.6;
    text-align: left;
    margin-top: 4px;
    width: 70%;
  }

  .pricing-cta__button-box {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
  }

  .pricing-cta__button {
    margin-top: 0;
    font-size: 16px;
    height: 62px;
    min-width: 170px;
  }

  .pricing-cta__info {
    text-align: left;
    width: 270px;
    margin-inline: unset;
  }
}
/* ////////////////////////  end pricing-cta //////////////////////// */

/* ////////////////////////  tariff-conditions //////////////////////// */
.tariff-conditions {
  margin: 80px 0;
}

.tariff-conditions__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}

ul.tariff-conditions__list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tariff-conditions__list li {
  display: flex;
  gap: 8px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.33;
  color: #828387;
}

@media screen and (min-width: 1024px) {
  .tariff-conditions {
    margin: 96px auto;
    max-width: 900px;
  }

  .tariff-conditions__title {
    font-size: 20px;
    line-height: 1.25;
  }

  ul.tariff-conditions__list {
    margin-top: 32px;
    gap: 8px;
  }

  .tariff-conditions__list li {
    font-size: 14px;
    line-height: 1.4;
  }
}
/* ////////////////////////  end tariff-conditions //////////////////////// */

/* ============================================================
   Адаптация под серверный рендер таблицы сравнения.

   Вёрстка рассчитана на JS, который рисовал разную разметку для
   десктопа и мобильного и выводил только видимые колонки. Таблица
   теперь приходит с сервера в одном виде — все шесть тарифов, один
   <tr> на фичу, — поэтому:
     * мобильная раскладка собирается на CSS;
     * скрытые тарифы прячутся классом is-hidden;
     * порядковый номер видимой колонки скрипт кладёт в data-column,
       а чередование фона — в is-stripe (nth-child считал бы и
       скрытые, из-за чего полосы и цвета кнопок съезжали).
   ============================================================ */

.comparison-table .is-hidden {
  display: none;
}

/* Отступ первого экрана в вёрстке (150px) рассчитан на страницу без шапки сайта.
   На сайте над прайсингом есть фиксированная шапка и промо-плашка, из-за чего
   получалось больше 200px пустоты. */
.pricing-hero {
  margin-top: 32px;
}

@media screen and (min-width: 1024px) {
  .pricing-hero {
    margin-top: 64px;
  }
}

/* Иконки «входит / не входит»: фоном, чтобы не плодить <img> на каждую
   из ~1700 ячеек. Размер задаёт правило вёрстки, отсюда — contain. */
.comparison-table__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.comparison-table__icon--check {
  background-image: url(/static/images/pricing/included_in_plan.svg);
}

.comparison-table__icon--cross {
  background-image: url(/static/images/pricing/not_included_in_plan.svg);
}


.comparison-table__value-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Подпись под галочкой («2 сесії») — приходит из связи тариф↔фича. */
.comparison-table__sub-text {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  color: #00000099;
}

.comparison-table__feature-link {
  color: #0053e2;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}

.comparison-table__feature-link:hover,
.comparison-table__feature-link:focus {
  color: #001e60;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  border-bottom: 0;
}

/* Свёрнутая категория: строки прячет КЛАСС, а не атрибут hidden. hidden — это
   display:none прямо в разметке, и извлекатели текста такую строку выбрасывают:
   краулеру доставались заголовки категорий без единого значения. Класс же живёт
   в таблице стилей, до которой извлекатель не добирается. */
.comparison-table__feature-row.is-collapsed {
  display: none;
}

/* Неактивный сегмент прячется тем же классом и по той же причине. */
.pricing-plans.is-collapsed {
  display: none;
}

@media screen and (max-width: 1023px) {
  .comparison-table,
  .comparison-table__head,
  .comparison-table__body {
    display: block;
    width: 100%;
  }

  .comparison-table__body {
    border: 1px solid #00000033;
    border-right: none;
  }

  .comparison-table__head tr,
  .comparison-table__feature-row,
  .comparison-table__try-row {
    display: grid;
    grid-template-columns: repeat(var(--visible-plans, 3), 1fr);
    align-items: stretch;
  }

  /* Свёрнутые категории. Правило display:grid выше перебивает и браузерное
     [hidden]{display:none}, и наше скрытие по классу, поэтому здесь оно повторено —
     иначе на мобильном все категории раскрыты и не сворачиваются. */
  .comparison-table__feature-row.is-collapsed,
  .comparison-table__feature-row[hidden],
  .comparison-table__try-row[hidden] {
    display: none;
  }

  /* В вёрстке у ячейки тарифа height:0 — приём для табличной раскладки,
     чтобы вложенный flex тянулся на всю высоту строки. В grid это
     схлопывает колонку в ноль, поэтому здесь высоту возвращаем. */
  .comparison-table__plan,
  .comparison-table__add-plan-head {
    height: auto;
  }

  .comparison-table__plan {
    padding: 8px 10px;
    background-color: #F4F3EF;
  }

  .comparison-table__characteristics-head {
    display: none;
  }

  .comparison-table__category {
    display: block;
  }

  .comparison-table__category th {
    display: block;
    width: 100%;
  }

  /* Название фичи занимает всю ширину строки, значения выстраиваются под ним. */
  .comparison-table__feature-label {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    border-right: 1px solid #00000033;
  }

  .comparison-table__feature-row .comparison-table__value-cell {
    width: auto;
  }

  /* Слот «Додати план», крестик и кнопка в шапке — только на десктопе:
     на мобильном тарифы выбираются чекбоксами, а кнопки живут в нижней строке. */
  .comparison-table__add-plan-head,
  .comparison-table__add-plan-cell,
  .comparison-table__plan-remove,
  .comparison-table__try-button--head {
    display: none !important;
  }
}

@media screen and (min-width: 1024px) {
  /* Фиксированная раскладка из вёрстки сохраняется, но ширину колонок считаем от
     числа ВИДИМЫХ (скрытые через display:none в раскладке не участвуют), иначе
     справа оставалось пустое место. 28% занимает колонка характеристик. */
  .comparison-table__plan,
  .comparison-table__add-plan-head {
    width: calc(72% / var(--table-columns, 4));
  }

  /* В вёрстке отступ между переключателем сегмента и таблицей давала обёртка
     .pricing-plans (margin-top: 40px). У нас таблица лежит без неё, поэтому
     отступ задаём самой таблице — иначе она прилипает к переключателю. */
  .comparison-table-wrapper {
    margin-top: 40px;
  }

  .comparison-table__plan-remove[hidden] {
    display: none;
  }

  .comparison-table__add-plan-option[hidden] {
    display: none;
  }

  /* Полосы — по видимым колонкам, а не по позиции в DOM. */
  .comparison-table__plan:nth-child(odd),
  .comparison-table__value-cell:nth-child(odd) {
    background-color: #faf9f7;
  }


  /* Цвет кнопки «Спробувати» в вёрстке зависит от nth-child колонки. В разметке
     лежат все шесть тарифов, поэтому опираемся на порядковый номер видимой
     колонки, который проставляет скрипт. */
  .comparison-table__head
  tr
  th:nth-child(1)
  .comparison-table__try-button--head {
    border: 1px solid #000000;
    color: #000000;
  }

  .comparison-table__head
  tr
  th:nth-child(1)
  .comparison-table__try-button--head:hover {
    background-color: #00000033;
    border-color: transparent;
  }

  .comparison-table__plan[data-column="2"] .comparison-table__try-button--head {
    border: 1px solid #0053e2;
    background-color: #0053e2;
    color: #fff;
  }

  .comparison-table__plan[data-column="2"]
  .comparison-table__try-button--head:hover {
    background-color: #003ba5;
    border-color: #003ba5;
  }

  .comparison-table__plan[data-column="3"] .comparison-table__try-button--head {
    border: 1px solid #001e60;
    background-color: #001e60;
    color: #fff;
  }

  .comparison-table__plan[data-column="3"]
  .comparison-table__try-button--head:hover {
    background-color: #fff;
    color: #001e60;
  }
}

/* Цвет текста кнопок.

   В вёрстке `color` задан не у всех <button>: у переключателя сегментов, строк-категорий
   таблицы и выпадающих списков его нет. Глобальный ресет проекта (`button,input,select,
   textarea{font:inherit}` в style2.min.css) наследует только шрифт, поэтому цвет остаётся
   системным — UA-значением `buttontext`.

   На десктопе (и в мобильной эмуляции, она UA-стили не подменяет) `buttontext` чёрный,
   а на iOS Safari — системный синий, из-за чего с реального айфона подписи кнопок были
   синими. Задаём чёрный явно: на десктопе это ничего не меняет (там сейчас ровно
   rgb(0,0,0)), а на iOS убирает синеву.

   Специфичность — один класс, поэтому состояния (`:hover`, `.is-open` с фирменным синим
   у раскрытой категории) продолжают перебивать это правило. */
.audience-switch__option,
.tariff-dropdown__trigger,
.comparison-table__add-plan-trigger,
.comparison-table__add-plan-option,
.comparison-table__category-button {
  color: #000;
}

.comparison-table thead th,
.comparison-table tbody th,
.comparison-table tbody td,
.comparison-table__row td {
  width: auto;
}


/* Выпадающий выбор планов — поверх прилипшей шапки таблицы.

   У `.tariff-dropdown__box` и `.comparison-table__head` одинаковый z-index: 10.
   При равном z-index выигрывает тот, кто ниже по документу, то есть шапка —
   и на мобильном она прорезала раскрытый список, а «Порівняти» и нижние пункты
   оказывались под таблицей: клик уходил в неё, тариф не переключался. */
.tariff-dropdown__box {
  z-index: 30;
}


/* Цвет кнопок «Спробувати» в мобильной строке.

   Вёрстка красит их через `.comparison-table__try-cell:nth-child(N)`, но nth-child
   считает всех соседей — в том числе первую служебную ячейку с названием фичи.
   Из-за сдвига на единицу первая колонка получала стиль второй (синяя вместо
   обводки), вторая — третьей, а третьей не доставалось ничего. Правило
   nth-child(1) уходило служебной ячейке, где кнопки нет вовсе.

   Скрипт и так проставляет каждой видимой колонке `data-column` — берём его,
   как уже сделано для кнопок в шапке таблицы. Палитра та же: обводка, синяя,
   тёмно-синяя, а добавленный тариф снова с обводкой. */
.comparison-table__try-cell[data-column="1"] .comparison-table__try-button,
.comparison-table__try-cell[data-column="4"] .comparison-table__try-button {
  border: 1px solid #000000;
  background-color: transparent;
  color: #000000;
}

.comparison-table__try-cell[data-column="1"]:hover .comparison-table__try-button,
.comparison-table__try-cell[data-column="4"]:hover .comparison-table__try-button {
  background-color: #00000033;
  color: #000000;
  border-color: transparent;
}

.comparison-table__try-cell[data-column="2"] .comparison-table__try-button {
  border: 1px solid #0053e2;
  background-color: #0053e2;
  color: #fff;
}

.comparison-table__try-cell[data-column="2"]:hover .comparison-table__try-button {
  border: 1px solid #0053e2;
  background-color: transparent;
  color: #0053e2;
}

.comparison-table__try-cell[data-column="3"] .comparison-table__try-button {
  border: 1px solid #001e60;
  background-color: #001e60;
  color: #fff;
}

.comparison-table__try-cell[data-column="3"]:hover .comparison-table__try-button {
  border: 1px solid #001e60;
  background-color: transparent;
  color: #001e60;
}


/* Белый фон колонки «Додати план».

   В вёрстке у `.comparison-table__add-plan-cell` фон #ffffff80 задан, но его гасит
   правило `.comparison-table__row td:nth-child(even) { background-color: unset }`
   из десктопного медиазапроса — оно снимает полосатость колонок, а служебная ячейка
   идёт в строке последней и всегда оказывается чётной. Специфичность у него выше
   (0,2,1 против 0,1,0), поэтому фон не доживал, и пустая колонка была серой,
   а заполненная — белой.

   Возвращаем фон правилом такой же формы, но специфичнее. */
@media screen and (min-width: 1024px) {
  .comparison-table__row td.comparison-table__add-plan-cell:nth-child(even) {
    background-color: #ffffff80;
  }
}


/* Пустая полоса под шапкой таблицы на мобильном.

   У `.comparison-table__head` в вёрстке стоит `margin-bottom: 58px`. На десктопе
   это ничего не делает: у thead `display: table-header-group`, а к частям таблицы
   margin не применяется — правило висит вхолостую. Но в мобильной раскладке шапка
   становится `display: block` (см. блок выше), и отступ внезапно оживает,
   отрывая шапку от первой категории на 58 пикселей. */
@media screen and (max-width: 1023px) {
  .comparison-table__head {
    margin-bottom: 0;
    border: 1px solid #00000033;
    border-bottom: none;
    border-right: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
  }
}


/* Пустая полоса над кнопками «Спробувати» на мобильном.

   Строка кнопок начинается со служебной ячейки `.comparison-table__feature-label`
   — в остальных строках там лежит название фичи, а здесь она пустая. В мобильной
   раскладке строка становится гридом, ячейка занимает всю ширину (grid-column: 1/-1)
   и добавляет 20 пикселей пустоты между последней категорией и кнопками. Из-за неё
   низ таблицы выглядит оборванным. */
@media screen and (max-width: 1023px) {
  .comparison-table__try-row .comparison-table__feature-label {
    display: none;
  }
}

.plan-card__header--blue .plan-card__popular {
  background-color: #ffffff;
  color: #0053e2;
}
/* Гривневый дубль доплаты за пользователя и локацию.

   Идёт второй строкой под ценой в евро — так же, как вторая цена в шапке карточки.
   Строка спеки это flex (label слева, цена справа), поэтому перенос делается
   `flex-basis: 100%` у самого дубля, а не переносом в разметке: иначе он встал бы
   третьей колонкой в ту же строку.

   Селектор с `.plan-card__specs-list`, потому что общее правило
   `.plan-card__specs-list span` задаёт этому же элементу жирное чёрное начертание. */
.plan-card__specs-list li {
  flex-wrap: wrap;
}

.plan-card__specs-list .plan-card__spec-local {
  flex-basis: 100%;
  margin-left: auto;
  text-align: right;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.55);
}

@media screen and (max-width: 1023px) {
  .plan-card__specs-list .plan-card__spec-local {
    font-size: 14px;
  }
}
