/* ========================================================================== */
/* 03F.1 — Tariffs                                                           */
/* Visual reference: 10_tariffs_longterm_business.png                        */
/* ========================================================================== */

.tariffs {
  scroll-margin-top: calc(var(--header-h) + 18px);
  padding: 0;
}

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


.tariffs__title {
  margin: 0;
  color: var(--c-slate-950);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.tariffs__lead {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--c-slate-500);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.tariffs__desktop { display: none; }

.tariffs__mobile {
  display: grid;
  gap: 14px;
  overflow: visible;
}

.tariffs__segments {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: calc(var(--gutter) + 6px);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 8px calc(var(--gutter) + 6px) 12px;
  margin-inline: calc((var(--gutter) + 6px) * -1);
  width: calc(100% + ((var(--gutter) + 6px) * 2));
  scrollbar-width: none;
}

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

.tariffs__segments button {
  flex: 0 0 100px;
  min-width: 100px;
  min-height: 42px;
  scroll-snap-align: start;
  scroll-margin-inline: 6px;
  padding: 0 10px;
  border: 1px solid var(--c-slate-200);
  border-radius: 11px;
  background: var(--c-white);
  color: var(--c-slate-700);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    background 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.tariffs__segments button:hover {
  border-color: rgba(99,102,241,.34);
}

.tariffs__segments button.is-active {
  border-color: var(--c-indigo-600);
  background: linear-gradient(135deg, var(--c-indigo-600), #3428ed);
  color: var(--c-white);
  box-shadow: 0 8px 18px rgba(79,70,229,.16);
}

.tariffs__mobile-list {
  display: grid;
  gap: 10px;
}

.tariff-mobile-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 10px 12px;
  border: 1px solid var(--c-slate-200);
  border-radius: var(--radius-16);
  background: var(--c-white);
  box-shadow: 0 4px 14px rgba(15,23,42,.025);
}

.tariff-mobile-card > img {
  width: 86px;
  height: 70px;
  object-fit: contain;
}

.tariff-mobile-card__copy {
  min-width: 0;
}

.tariff-mobile-card__copy h3 {
  margin: 0;
  color: var(--c-slate-900);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.tariff-mobile-card__copy p {
  margin: 5px 0 0;
  color: var(--c-slate-500);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.tariff-mobile-card__price {
  min-width: 82px;
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--c-slate-500);
  text-align: right;
}

.tariff-mobile-card__price strong {
  color: var(--c-slate-900);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.tariff-mobile-card__price span {
  font-size: 9px;
  font-weight: 600;
}

.tariff-mobile-card__price.is-individual {
  min-width: 104px;
}

.tariff-mobile-card__price.is-individual strong {
  color: var(--c-indigo-600);
  font-size: 11px;
}

.tariffs__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--c-slate-500);
  font-size: 10px;
  font-weight: 600;
}

.tariffs__note-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1.5px solid var(--c-indigo-600);
  border-radius: 50%;
  color: var(--c-indigo-600);
  font-size: 10px;
  font-weight: 800;
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1;
}

@media (max-width: 430px) {
  .tariffs__segments {
    gap: 8px;
    padding-inline: calc(var(--gutter) + 4px);
    scroll-padding-inline: calc(var(--gutter) + 4px);
    width: calc(100% + ((var(--gutter) + 4px) * 2));
    margin-inline: calc((var(--gutter) + 4px) * -1);
  }

  .tariffs__segments button {
    flex-basis: 98px;
    min-width: 98px;
    padding-inline: 8px;
    font-size: 9px;
    white-space: nowrap;
  }

  .tariff-mobile-card {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 10px;
  }

  .tariff-mobile-card > img {
    width: 76px;
    height: 64px;
  }

  .tariff-mobile-card__copy h3 { font-size: 13px; }
  .tariff-mobile-card__copy p { font-size: 9px; }
  .tariff-mobile-card__price strong { font-size: 13px; }
}

@media (min-width: 768px) {
  .tariffs__head { margin-bottom: 22px; }
  .tariffs__title { font-size: 36px; }
  .tariffs__lead { font-size: 14px; }

  .tariffs__mobile { display: none; }
  .tariffs__desktop { display: block; }

  .tariffs__table-wrap {
    overflow: hidden;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--radius-20);
    background: var(--c-white);
    box-shadow: 0 6px 22px rgba(15,23,42,.035);
  }

  .tariffs__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .tariffs__table th,
  .tariffs__table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--c-slate-100);
    vertical-align: middle;
  }

  .tariffs__table thead th {
    background: #fbfcff;
    color: var(--c-slate-600);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
  }

  .tariffs__table thead th:first-child {
    width: 29%;
    padding-left: 18px;
    text-align: left;
  }

  .tariffs__table tbody tr:last-child th,
  .tariffs__table tbody tr:last-child td {
    border-bottom: 0;
  }

  .tariffs__table tbody th {
    padding-left: 18px;
    text-align: left;
  }

  .tariffs__table tbody td {
    color: var(--c-slate-500);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
  }

  .tariffs__table tbody td strong {
    display: block;
    color: var(--c-slate-900);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
  }

  .tariffs__table tbody td span {
    display: block;
    margin-top: 2px;
    font-size: 9px;
  }

  .tariffs__table tbody td.tariffs__individual strong {
    color: var(--c-indigo-600);
    font-size: 12px;
  }

  .tariffs__vehicle {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .tariffs__vehicle img {
    width: 82px;
    height: 58px;
    object-fit: contain;
  }

  .tariffs__vehicle div {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .tariffs__vehicle strong {
    color: var(--c-slate-900);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  .tariffs__vehicle span {
    color: var(--c-slate-500);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
  }

  .tariffs__note {
    margin-top: 12px;
    font-size: 11px;
  }
}

@media (min-width: 1180px) {
  .tariffs__table th,
  .tariffs__table td {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .tariffs__table thead th { font-size: 12px; }
  .tariffs__table tbody td strong { font-size: 15px; }
  .tariffs__vehicle strong { font-size: 15px; }
}
