.tariffs-page {
  padding-bottom: 48px;
}

.tariffs-hero {
  padding: 48px 0 24px;
  text-align: center;
}

.tariffs-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -.05em;
  line-height: .95;
  margin: 12px 0 16px;
  text-transform: uppercase;
}

.tariffs-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 680px;
}

.tariffs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px auto 36px;
  position: sticky;
  top: 72px;
  z-index: 20;
}

.tariffs-tab {
  background: rgba(251, 255, 242, .88);
  border: 2px solid rgba(30, 42, 22, .14);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--shadow);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  padding: 12px 22px;
  transition: transform .15s, background .2s;
}

.tariffs-tab:hover {
  transform: translateY(-1px);
}

.tariffs-tab.is-active {
  background: var(--accent);
  border-color: #1e2a16;
}

.tariffs-section {
  margin-bottom: 56px;
  scroll-margin-top: 140px;
}

.tariffs-section-head {
  margin-bottom: 24px;
  text-align: center;
}

.tariffs-section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -.04em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.tariffs-section-head p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 640px;
}

.tariffs-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tariff-card {
  background: rgba(251, 255, 242, .9);
  border: 2px solid rgba(30, 42, 22, .14);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 24px;
  transition: transform .2s;
}

.tariff-card:hover {
  transform: translateY(-3px);
}

.tariff-card.featured {
  border-color: #1e2a16;
  box-shadow: 10px 10px 0 #8fbf24;
}

.tariff-card-head {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.tariff-card-icon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  border: 3px solid #c5d699;
  border-radius: 999px;
  color: var(--text);
  display: inline-grid;
  height: 56px;
  justify-content: center;
  place-items: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  width: 56px;
  background: linear-gradient(180deg, #edf5d3 0%, #e3ecc4 52%, #d9e4b8 100%);
  box-shadow:
    0 4px 0 #8aab5c,
    0 6px 14px rgba(30, 42, 22, 0.14),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(30, 42, 22, 0.1);
}

.tariff-card-icon::before {
  content: '';
  position: absolute;
  inset: 4px 12px auto;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.tariff-card-icon svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: block;
}

.tariff-card.featured .tariff-card-icon {
  color: #faffef;
  text-shadow: 0 2px 0 rgba(30, 42, 22, 0.32);
  border-color: #a8c94a;
  background: linear-gradient(180deg, #c5e038 0%, #8fbf24 38%, #6da618 72%, #4f8f18 100%);
  box-shadow:
    0 5px 0 var(--btn-shadow-deep),
    0 8px 16px rgba(30, 42, 22, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -4px 8px rgba(30, 42, 22, 0.16);
}

.tariff-card.featured .tariff-card-icon::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 100%);
}

.tariff-card h3 {
  font-size: 1.45rem;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0;
}

.tariff-card-subtitle {
  color: var(--muted);
  font-size: .95rem;
  margin: 6px 0 0;
}

.tariff-features {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tariff-features li {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  line-height: 1.45;
}

.tariff-features li span:last-child {
  flex: 1;
  min-width: 0;
}

.tariff-features .feature-check {
  margin-top: 1px;
}

.tariff-prices {
  background: rgba(237, 245, 211, .72);
  border: 2px solid rgba(30, 42, 22, .1);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.tariff-price-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tariff-price-row span:first-child {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.tariff-price-row strong {
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.tariff-card-actions {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 4px;
}

.tariff-card-actions .btn,
.tariff-card-actions .btn.btn-sm {
  box-sizing: border-box;
  font-size: .88rem;
  justify-content: center;
  max-width: 220px;
  min-height: 42px;
  padding: 9px 18px;
  width: 100%;
}

.tariffs-empty {
  background: rgba(251, 255, 242, .88);
  border: 2px dashed rgba(30, 42, 22, .18);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.tariffs-loading {
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
}

.tariffs-cta {
  background: rgba(237, 245, 211, .72);
  border: 2px solid rgba(30, 42, 22, .14);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--shadow);
  margin-top: 12px;
  padding: 28px;
  text-align: center;
}

.tariffs-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 10px;
}

.tariffs-cta p {
  color: var(--muted);
  margin: 0 auto 18px;
  max-width: 560px;
}

@media (max-width: 860px) {
  .tariffs-tabs {
    top: 64px;
  }

  .tariffs-hero,
  .tariffs-section-head,
  .tariffs-section-head h2,
  .tariffs-section-head p,
  .tariff-card-subtitle,
  .tariff-features,
  .tariff-features li,
  .tariff-prices,
  .tariffs-cta,
  .tariffs-cta p,
  .tariffs-loading,
  .tariffs-empty {
    text-align: center;
  }

  .tariff-features {
    display: inline-block;
    margin-inline: auto;
    text-align: left;
  }
}
