/* Premium tariff cards: compact, luminous and responsive in the Moneo palette. */
#tariff-grid {
  position: relative;
  isolation: isolate;
  gap: clamp(12px, 1.7vw, 20px);
  margin-top: clamp(18px, 2.5vw, 30px);
}

#tariff-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -5%;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 45%, rgba(110, 196, 78, 0.14), transparent 33%),
    radial-gradient(circle at 83% 22%, rgba(183, 238, 138, 0.08), transparent 25%);
  filter: blur(18px);
}

#tariff-grid .tariff {
  --tariff-accent: #9ab0a4;
  --tariff-rgb: 154, 176, 164;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(18px, 2.1vw, 26px);
  border: 1px solid rgba(var(--tariff-rgb), 0.34);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(var(--tariff-rgb), 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012) 36%, rgba(3, 7, 5, 0.52)),
    rgba(9, 15, 12, 0.87);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38),
    0 16px 36px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

#tariff-grid .tariff::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  top: -88px;
  right: -72px;
  border-radius: 50%;
  background: rgba(var(--tariff-rgb), 0.3);
  filter: blur(20px);
  opacity: 0.7;
  transition: opacity 220ms ease, transform 320ms ease;
}

#tariff-grid .tariff::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--tariff-accent), transparent);
  opacity: 0.9;
}

#tariff-grid .tariff-basic { --tariff-accent: #a8bab0; --tariff-rgb: 168, 186, 176; }
#tariff-grid .tariff-plus { --tariff-accent: var(--cyan); --tariff-rgb: 183, 238, 138; }
#tariff-grid .tariff-pro { --tariff-accent: var(--green); --tariff-rgb: 110, 196, 78; }
#tariff-grid .tariff-vip { --tariff-accent: #f5e08a; --tariff-rgb: 245, 224, 138; }

#tariff-grid .tariff h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0 0 15px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

#tariff-grid .tariff .tariff-name {
  color: var(--tariff-accent);
  font-family: Manrope, system-ui, sans-serif;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  text-shadow: 0 0 18px rgba(var(--tariff-rgb), 0.18);
}

#tariff-grid .tariff .mult {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 7px;
  padding: 4px 9px;
  border: 1px solid rgba(var(--tariff-rgb), 0.3);
  border-radius: 999px;
  background: rgba(var(--tariff-rgb), 0.1);
  color: var(--tariff-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
}

#tariff-grid .tariff .limit-line {
  min-height: 2.9em;
  margin: 0 0 14px;
  color: #c8d5cd;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

#tariff-grid .tariff .price-block {
  min-height: auto;
  margin: 0 0 15px;
  padding: 14px 0 13px;
  border-top: 1px solid rgba(220, 236, 216, 0.1);
  border-bottom: 1px solid rgba(220, 236, 216, 0.1);
}

#tariff-grid .tariff .price {
  color: var(--tariff-accent);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  text-shadow: 0 0 22px rgba(var(--tariff-rgb), 0.2);
}

#tariff-grid .tariff .period {
  margin: 7px 0 0;
  color: #84968c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#tariff-grid .tariff .checks {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

#tariff-grid .tariff .checks li {
  margin: 0;
  padding-left: 1.25rem;
  color: #b7c6bd;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

#tariff-grid .tariff .checks li::before {
  top: 0.42em;
  width: 0.48em;
  height: 0.25em;
  border-color: var(--tariff-accent);
}

#tariff-grid .tariff .btn-choice {
  min-height: 44px;
  margin-top: auto;
  border-color: rgba(var(--tariff-rgb), 0.55);
  border-radius: 12px;
  background: rgba(var(--tariff-rgb), 0.08);
  color: var(--tariff-accent);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#tariff-grid .tariff .badge-featured {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(110, 196, 78, 0.46);
  background: rgba(110, 196, 78, 0.16);
  color: #caffba;
  font-size: 0.62rem;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-transform: uppercase;
}

#tariff-grid .tariff.is-featured {
  z-index: 1;
  border-color: rgba(110, 196, 78, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(218, 255, 203, 0.22),
    0 0 0 1px rgba(110, 196, 78, 0.14),
    0 14px 40px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(110, 196, 78, 0.16);
}

#tariff-grid .tariff.is-featured .btn-choice {
  border-color: var(--green);
  background: var(--green);
  color: #091108;
  box-shadow: 0 8px 20px rgba(110, 196, 78, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

#tariff-grid .tariff.tariff-vip {
  border-color: rgba(245, 224, 138, 0.54);
  background:
    linear-gradient(145deg, rgba(245, 224, 138, 0.14), transparent 37%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012) 36%, rgba(3, 7, 5, 0.52)),
    rgba(16, 15, 9, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 244, 190, 0.2), 0 16px 38px rgba(0, 0, 0, 0.3), 0 0 26px rgba(245, 224, 138, 0.09);
}

#tariff-grid .tariff.tariff-vip .price,
#tariff-grid .tariff.tariff-vip .mult,
#tariff-grid .tariff.tariff-vip .tariff-name {
  background: none;
  color: var(--tariff-accent);
}

#tariff-grid .tariff .vip-crown {
  color: var(--tariff-accent);
  font-size: 1.15em;
  text-shadow: 0 0 16px rgba(245, 224, 138, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  #tariff-grid .tariff:hover {
    transform: translateY(-7px);
    border-color: rgba(var(--tariff-rgb), 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 22px 46px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--tariff-rgb), 0.15);
  }

  #tariff-grid .tariff:hover::before { opacity: 1; transform: scale(1.18); }
  #tariff-grid .tariff .btn-choice:hover { border-color: var(--tariff-accent); background: rgba(var(--tariff-rgb), 0.18); color: var(--tariff-accent); }
  #tariff-grid .tariff.is-featured .btn-choice:hover { background: #91dd73; color: #091108; }
}

@media (max-width: 767px) {
  #tariff-grid { gap: 12px; }
  #tariff-grid .tariff { border-radius: 18px; }
  #tariff-grid .tariff .limit-line { min-height: 0; }
}

@media (max-width: 380px) {
  #tariff-grid .tariff { padding: 17px; }
  #tariff-grid .tariff h3 { font-size: 1.16rem; }
  #tariff-grid .tariff .price { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  #tariff-grid .tariff,
  #tariff-grid .tariff::before { transition: none; }
}
