@charset "UTF-8";

.service-page--bitrix {
  --service-accent: var(--blue);
  --service-hot: var(--acid);
  --service-soft: var(--blue-soft);
}

.service-page--bitrix .service-hero__actions .button { color: var(--ink); }
.service-page--bitrix .service-title-line--accent > span { color: var(--acid); }

.tariff-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
}

.tariff-period p {
  margin: 0;
  max-width: 620px;
  color: var(--text-secondary-light);
  font-size: 15px;
  line-height: 1.55;
}

.tariff-period__switch {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--line-light);
  background: var(--sand);
}

.tariff-period__switch button {
  min-width: 92px;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tariff-period__switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--acid);
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-light);
}

.tariff-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 28px 24px;
  border-right: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--ink);
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.tariff-card:last-child { border-right: 0; }

.tariff-card--featured {
  background: var(--ink);
  color: var(--paper);
}

.tariff-card > span {
  color: var(--blue-deep);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tariff-card--featured > span { color: var(--acid); }

.tariff-card h3 {
  margin: 28px 0 8px;
  font-size: clamp(28px, 2.4vw, 42px);
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.tariff-card__lead {
  margin: 0 0 28px;
  color: var(--text-secondary-light);
  font-size: 14px;
  line-height: 1.5;
}

.tariff-card--featured .tariff-card__lead { color: var(--text-secondary-dark); }

.tariff-card dl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
}

.tariff-card--featured dl { border-top-color: var(--line-dark); }

.tariff-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
}

.tariff-card--featured dl > div { border-bottom-color: var(--line-dark); }

.tariff-card dt { color: var(--text-secondary-light); }
.tariff-card--featured dt { color: var(--text-tertiary-dark); }
.tariff-card dd { margin: 0; font-weight: 750; text-align: right; }

.tariff-card__price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 28px;
}

.tariff-card__price b {
  font-size: clamp(28px, 2.2vw, 36px);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tariff-card__price small {
  color: var(--text-secondary-light);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tariff-card--featured .tariff-card__price small { color: var(--text-tertiary-dark); }

.tariff-card .button {
  margin-top: 18px;
  min-width: 0;
  background: var(--ink);
  color: var(--paper);
}

.tariff-card--featured .button {
  background: var(--acid);
  color: var(--ink);
}

.tariff-card .button:hover { background: var(--coral); color: var(--ink); }

.tariff-copy {
  background: var(--ink);
  color: var(--paper);
}

.tariff-copy__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(40px, 8vw, 140px);
}

.tariff-copy__grid p {
  margin: 0 0 22px;
  color: var(--text-secondary-dark);
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.55;
}

.tariff-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tariff-copy li {
  padding-left: 22px;
  color: var(--paper);
  font-size: 16px;
}

.tariff-copy li::before {
  margin-left: -22px;
  margin-right: 10px;
  color: var(--acid);
  content: "→";
}

.tariff-note {
  margin-top: 42px;
  padding: 22px 24px;
  border: 1px solid var(--line-dark);
}

.tariff-note span {
  color: var(--acid);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tariff-note p {
  margin: 12px 0 0;
  color: var(--text-secondary-dark);
  font-size: 14px;
}

.bitrix-promo .commerce-promo__title em { color: var(--acid); }
.bitrix-promo .commerce-promo__visual .commerce-promo__core { border-color: var(--blue); background: var(--blue); color: var(--paper); box-shadow: 0 0 40px rgba(49, 86, 239, 0.28); }
.bitrix-promo .commerce-promo__core small { color: rgba(244, 241, 232, 0.7); }
.bitrix-promo .commerce-promo__visual > i { background: linear-gradient(90deg, var(--acid), var(--blue)); }

@media (max-width: 1100px) {
  .tariff-grid { grid-template-columns: 1fr 1fr; }
  .tariff-card:nth-child(2) { border-right: 0; }
  .tariff-card:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
}

@media (max-width: 900px) {
  .tariff-copy__grid { grid-template-columns: 1fr; }
  .tariff-period { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .tariff-grid { grid-template-columns: 1fr; }
  .tariff-card,
  .tariff-card:nth-child(2),
  .tariff-card:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .tariff-card:last-child { border-bottom: 0; }
  .tariff-card { min-height: 0; }
}
