.tariffs {
  --tariffs-accent: #FFC700;
  --tariffs-accent-ink: #1A1A1A;
  padding: 48px 24px 96px;
  max-width: 1280px;
  margin: 0 auto;
}

.tariffs__header {
  text-align: center;
  margin-bottom: 32px;
}

.tariffs__title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 12px;
}

.tariffs__subtitle {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #4A4A4A;
  margin: 0 auto;
  max-width: 720px;
}

.tariffs__banner {
  margin: 24px auto 0;
  display: inline-block;
  padding: 10px 18px;
  background-color: #FFF4E5;
  color: #8A4B00;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* =========================
   Comparison table (web)
   ========================= */
.tariffs__comparison {
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
}

.tariffs__comparison-scroll {
  overflow-x: auto;
}

.tariffs-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.tariffs-table th,
.tariffs-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #EEEEEE;
  border-left: 1px solid #EEEEEE;
  vertical-align: middle;
}

.tariffs-table tr > :first-child {
  width: 30%;
  border-left: 0;
  text-align: left;
}

.tariffs-table thead th {
  vertical-align: top;
  background: #FAFAFA;
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.tariffs-table thead .tariffs-table__plan--default {
  background: #FFF9DF;
  box-shadow: inset 0 3px 0 var(--tariffs-accent);
}

.tariffs-table tbody th {
  color: #4A4A4A;
  font-size: 14px;
  font-weight: 500;
}

.tariffs-table tbody td {
  color: #1A1A1A;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.tariffs-table tbody tr:nth-child(even) > * {
  background: rgba(255, 199, 0, 0.10);
}

.tariffs-table tbody tr.tariffs-table__summary > * {
  background: rgba(255, 199, 0, 0.18);
  font-weight: 600;
}

.tariffs-table tbody tr.tariffs-table__summary td {
  font-weight: 700;
}

.tariffs-table tbody tr:last-child > * {
  border-bottom: 0;
}

.tariffs-table__plan-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 18px;
}

.tariffs-table__badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--tariffs-accent);
  color: var(--tariffs-accent-ink);
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tariffs-table__plan-description {
  margin-top: 8px;
  color: #767676;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.tariffs__comparison-hint {
  padding: 14px 20px;
  border-top: 1px solid #EEEEEE;
  color: #767676;
  font-size: 13px;
  text-align: center;
}

/* =========================
   Mobile cards
   ========================= */
.tariffs__mobile-cards {
  position: relative;
  display: none;
  align-items: stretch;
  gap: 12px;
}

.tariffs__track {
  flex: 1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 24px;
}

.tariffs__track::-webkit-scrollbar {
  display: none;
}

.tariffs__nav {
  flex: 0 0 44px;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #E5E5E5;
  background-color: #FFFFFF;
  color: #1A1A1A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
  padding: 0;
}

.tariffs__nav:hover:not([disabled]) {
  background-color: var(--tariffs-accent);
  color: var(--tariffs-accent-ink);
  border-color: var(--tariffs-accent);
}

.tariffs__nav:active:not([disabled]) {
  transform: scale(0.96);
}

.tariffs__nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.tariffs__mobile-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 10px;
}

.tariffs__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background-color: #D7D7D7;
  padding: 0;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    width 0.2s ease;
}

.tariffs__dot.is-active {
  background-color: var(--tariffs-accent);
  width: 24px;
}

/* =========================
   Card
   ========================= */
.tariff-card {
  flex: 0 0 320px;
  scroll-snap-align: center;
  scroll-snap-stop: always;

  background-color: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.tariff-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.tariff-card--default {
  border-color: var(--tariffs-accent);
  box-shadow: 0 4px 16px rgba(255, 199, 0, 0.22);
}

.tariff-card__header {
  margin-bottom: 20px;
}

.tariff-card__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.tariff-card__title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}

.tariff-card__badge {
  background-color: var(--tariffs-accent);
  color: var(--tariffs-accent-ink);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tariff-card__description {
  font-size: 14px;
  line-height: 1.5;
  color: #4A4A4A;
  margin: 0;
}

.tariff-card__variants {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F0F0F0;
}

.tariff-variant {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.tariff-variant__price {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1A1A1A;
}

.tariff-variant__period {
  font-size: 14px;
  color: #767676;
}

.tariff-card__limits {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.tariff-limit {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.tariff-limit__label {
  color: #4A4A4A;
}

.tariff-limit__value {
  color: #1A1A1A;
  font-weight: 600;
  text-align: right;
}

.tariff-card__cta {
  border-top: 1px solid #F0F0F0;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tariff-card__cta-hint {
  font-size: 13px;
  color: #767676;
  text-align: center;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
  .tariffs__nav {
    display: none;
  }
}

@media (min-width: 641px) {
  .tariffs__mobile-cards,
  .tariffs__mobile-dots {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .tariffs__comparison {
    display: none;
  }
  .tariffs {
    padding: 28px 12px 56px;
  }
  .tariffs__header {
    margin-bottom: 20px;
  }
  .tariffs__title {
    font-size: 26px;
    line-height: 1.15;
  }
  .tariffs__subtitle {
    font-size: 15px;
  }
  .tariffs__banner {
    display: block;
    margin-top: 18px;
    border-radius: 14px;
    line-height: 1.4;
  }
  .tariffs__mobile-cards {
    display: block;
  }
  .tariffs__track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    padding: 0;
    gap: 16px;
  }
  .tariff-card {
    width: 100%;
    flex: none;
    min-height: 0;
    padding: 22px 18px;
    border-radius: 16px;
  }
  .tariffs__mobile-dots {
    display: none;
  }
  .tariff-card__title-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tariff-card__title {
    font-size: 20px;
  }
  .tariff-card__header,
  .tariff-card__variants {
    margin-bottom: 16px;
  }
  .tariff-card__variants {
    padding-bottom: 16px;
  }
  .tariff-card__limits {
    gap: 12px;
    margin-bottom: 18px;
  }
  .tariff-limit {
    align-items: flex-start;
    font-size: 13px;
  }
  .tariff-limit__label {
    max-width: 68%;
  }
  .tariff-limit__value {
    flex: 0 0 auto;
  }
  .tariff-card__cta {
    padding-top: 16px;
  }
}
