﻿/* Compact tariffs: quantities stay below names, with all seven rows available. */
body[data-view="prices"] .content-view {
  display: block;
  max-width: 860px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
body[data-view="prices"] .content-view > .eyebrow,
body[data-view="prices"] .content-view > .page-intro { display: none; }
body[data-view="prices"] .content-view h1 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 12px;
}
body[data-view="prices"] .content-view > .inline-link {
  display: inline-block;
  font-size: 13px;
  line-height: 1.4;
}
.tariffs { min-width: 0; margin-bottom: 6px; }
.tariff-table {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}
.tariff-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.tariff-table thead th {
  padding: 7px 10px;
  background: #eff5de;
  color: #556b2a;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.tariff-table thead th:first-child { width: 50%; text-align: left; padding-left: 16px; }
.tariff-table thead th:nth-child(2) { width: 20%; }
.tariff-table thead th:last-child { width: 30%; }
.tariff-table tbody th,
.tariff-table tbody td {
  padding: 4px 10px;
  border-top: 1px solid #f1ecd9;
  vertical-align: middle;
}
.tariff-table .tariff-name { padding-left: 16px; text-align: left; overflow-wrap: normal; }
.tariff-title {
  display: block;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}
.tariff-duration {
  display: block;
  margin-top: 2px;
  color: #6b6e60;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.tariff-restriction, .tariff-price { text-align: center; }
.tariff-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 2px 5px #68511d0d;
}
.tariff-circle strong { font-weight: 1000; }
.tariff-circle small { margin-top: 2px; font-size: 10px; font-weight: 800; line-height: 1; }
.tariff-circle-age { color: #367324; background: linear-gradient(140deg, #f4f9df, #e4f0c8); font-size: 18px; }
.tariff-circle-price { color: #574019; background: linear-gradient(145deg, #ffeab0, #ffd05a); font-size: 24px; }
.tariff-amounts { display: flex; align-items: flex-start; justify-content: center; gap: 12px; }
.tariff-amount { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.tariff-amount > small { max-width: 90px; color: #686b5e; font-size: 10px; font-weight: 700; line-height: 1.2; overflow-wrap: normal; }
.tariff-cell-label { display: none; }
.tariff-table tbody tr:nth-child(even) { background: #fffdf8; }
.tariff-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 8px;
}
.tariff-footer p { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tariff-original {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e1eac8;
  border-radius: 24px;
  color: var(--green);
  background: #f0f5e3;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}
.tariff-original svg { width: 17px; height: 17px; flex: none; }
@media (hover: hover) { .tariff-original:hover { background: #e5efcf; } }
@media (min-width: 1025px) and (max-height: 850px) {
  body[data-view="prices"] .content-view { padding-block: 16px; }
  body[data-view="prices"] .content-view h1 { font-size: 30px; margin-bottom: 10px; }
  .tariff-circle { width: 42px; height: 42px; }
  .tariff-circle-age { font-size: 17px; }
  .tariff-circle-price { font-size: 22px; }
  .tariff-table tbody th, .tariff-table tbody td { padding-block: 3px; }
}
@media (max-width: 680px) {
  body[data-view="prices"] .content-view { padding: 16px 12px; border-radius: 24px; }
  body[data-view="prices"] .content-view h1 { font-size: 28px; margin-bottom: 10px; }
  .tariff-table { border-radius: 16px; }
  .tariff-table thead th { padding: 7px 4px; font-size: 10px; line-height: 1.2; }
  .tariff-table thead th:first-child { width: 46%; padding-left: 8px; }
  .tariff-table thead th:nth-child(2) { width: 18%; padding-inline: 0; }
  .tariff-table thead th:last-child { width: 36%; }
  .tariff-table tbody th, .tariff-table tbody td { padding: 4px; }
  .tariff-table .tariff-name { padding-left: 8px; }
  .tariff-title { font-size: 14px; }
  .tariff-circle { width: 38px; height: 38px; }
  .tariff-circle-age { font-size: 15px; }
  .tariff-circle-price { font-size: 21px; }
  .tariff-amounts { flex-direction: column; align-items: center; gap: 4px; }
  .tariff-amount { flex-direction: row; align-items: center; justify-content: center; gap: 4px; width: 100%; }
  .tariff-amount > small { width: 54px; max-width: calc(100% - 42px); text-align: left; font-size: 10px; line-height: 1.2; }
  .tariff-footer { flex-wrap: nowrap; gap: 8px; }
  .tariff-footer p { flex: 1; font-size: 11px; }
  .tariff-original { flex: 1; padding: 7px 8px; font-size: 11px; }
}
@media (max-width: 360px) {
  .tariff-title { font-size: 13px; }
  .tariff-table tbody th, .tariff-table tbody td { padding-inline: 2px; }
  .tariff-table .tariff-name { padding-left: 4px; }
  .tariff-table thead th:first-child { width: 44%; padding-left: 4px; }
  .tariff-table thead th:nth-child(2) { width: 18%; }
  .tariff-table thead th:last-child { width: 38%; }
}
