/**
 * برگهٔ تعرفه
 */

.tariff-page .tariff-page__container.home__container {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.tariff-page__intro-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.tariff-page__breadcrumb {
  margin-bottom: 0;
}

.tariff-page__hero.home__hero {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: var(--space-4);
  padding-bottom: 0;
}

.tariff-page__stack {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 80px;
  min-width: 0;
}

.tariff-page__stack > * {
  min-width: 0;
}

.tariff-page .price-plan {
  margin: 0;
}

/* جدول مقایسه — پس‌زمینه تیره */
.tariff-comparison {
  box-sizing: border-box;
  width: 100%;
  padding: var(--space-7) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg-gradient);
  color: #fff;
  text-align: center;
}

.tariff-comparison__header {
  max-width: 40rem;
  margin: 0 auto var(--space-6);
}

.tariff-comparison__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
}

.tariff-comparison__intro {
  margin: 0;
  font-size: 1rem;
  line-height: 2;
  color: color-mix(in srgb, #fff 85%, transparent);
}

.tariff-comparison__scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.tariff-comparison__table {
  width: 100%;
  min-width: 52rem;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
}

.tariff-comparison__th,
.tariff-comparison__criterion,
.tariff-comparison__cell {
  vertical-align: top;
  padding: var(--space-4);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
}

.tariff-comparison__th {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  background-color: color-mix(in srgb, #fff 6%, transparent);
}

.tariff-comparison__th--criterion {
  width: 11rem;
}

.tariff-comparison__th-title {
  display: block;
}

.tariff-comparison__th-sub {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.75rem;
  font-weight: 400;
  color: color-mix(in srgb, #fff 70%, transparent);
}

.tariff-comparison__th--netron {
  border-top: 4px solid var(--color-primary);
  background-color: color-mix(in srgb, var(--color-primary) 14%, #0f172a);
}

.tariff-comparison__criterion {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
  color: #fff;
  background-color: color-mix(in srgb, #fff 4%, transparent);
  text-align: center;
}

.tariff-comparison__cell {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: color-mix(in srgb, #fff 92%, transparent);
  background-color: color-mix(in srgb, #0f172a 40%, transparent);
}

.tariff-comparison__cell--netron {
  background-color: color-mix(in srgb, var(--color-primary) 10%, #0f172a);
}

.tariff-comparison__list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}

.tariff-comparison__list li {
  position: relative;
  padding-inline-start: var(--space-5);
  margin-bottom: var(--space-2);
}

.tariff-comparison__list li:last-child {
  margin-bottom: 0;
}

.tariff-comparison__list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  font-size: 1rem;
  line-height: 1;
}

.tariff-comparison__list--positive li::before {
  content: "✓";
  color: var(--color-primary);
}

.tariff-comparison__list--negative li::before {
  content: "✕";
  color: var(--color-error);
}

.tariff-page .home__faq-and-forms {
  margin: 0;
}

/* متن پایانی بازشونده — همان الگوی دسته / خدمت */
.tariff-page .category-page__end-text {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tariff-page .category-page__end-text-heading {
  margin: 0 0 var(--space-4);
  font-size: 1.25rem;
  color: var(--color-text-heading);
}

.tariff-page .category-page__end-text-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tariff-page .category-page__end-text-body.is-clamped {
  max-height: 11rem;
  overflow: hidden;
  position: relative;
}

.tariff-page .category-page__end-text-body.is-clamped::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  height: clamp(5.25rem, 32vh, 7rem);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--color-background) 10%, transparent) 18%,
    color-mix(in srgb, var(--color-background) 32%, transparent) 38%,
    color-mix(in srgb, var(--color-background) 62%, transparent) 58%,
    color-mix(in srgb, var(--color-background) 88%, transparent) 78%,
    var(--color-background) 100%
  );
}

.tariff-page .category-page__end-text-body:not(.is-clamped)::after {
  display: none;
}

.tariff-page .category-page__end-text-inner {
  color: var(--color-text-body);
  font-size: 1rem;
  line-height: 1.85;
}

.tariff-page .category-page__end-text-inner > *:first-child {
  margin-top: 0;
}

.tariff-page .category-page__end-text-inner > *:last-child {
  margin-bottom: 0;
}

.tariff-page .category-page__end-text-inner img {
  max-width: 100%;
  height: auto;
}

.tariff-page .category-page__end-text-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--color-primary);
  text-underline-offset: 0.2em;
}

.tariff-page .category-page__end-text-toggle:hover,
.tariff-page .category-page__end-text-toggle:focus-visible {
  outline: none;
}

.tariff-page .category-page__end-text-toggle-chevron {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-inline-end: 2px solid var(--color-primary);
  border-block-end: 2px solid var(--color-primary);
  transform: rotate(45deg);
  translate: 0 -0.1rem;
}

@media (max-width: 47.99rem) {
  .tariff-comparison {
    padding: var(--space-5) var(--space-3);
  }

  .tariff-comparison__table {
    min-width: 44rem;
  }
}
