/**
 * Стили карточек тарифов (совместимы с stat/tariff.php)
 * Используются на tariff.php
 */
.tariff-section {
  margin-bottom: 24px;
}
.tariff-section h3 {
  margin-bottom: 8px;
}
.tariff-section h3.green {
  color: #25A937;
}
.tariff-section > p {
  margin-bottom: 12px;
}

.tariff-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
  height: 100%;
  min-height: 0;
}
.tariff-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.tariff-card-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 6px;
}
.tariff-card-badge {
  font-size: 0.75em;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #25A937;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.tariff-card-name {
  font-weight: 700;
  font-size: 1.1em;
  color: #333;
}
.tariff-card-speed {
  flex-shrink: 0;
  font-size: 1em;
  color: #25A937;
  font-weight: 600;
  margin-bottom: 6px;
}
.tariff-card-short-desc {
  flex: 1;
  font-size: 0.95em;
  color: #555;
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 0;
}
.tariff-more-btn {
  padding: 0;
  font-size: 0.9em;
  margin-bottom: 10px;
  vertical-align: baseline;
  background: none;
  border: none;
  cursor: pointer;
  color: #25A937;
  text-decoration: underline;
}
.tariff-more-btn:hover {
  color: #1E8C2D;
}
.tariff-card-details {
  flex-shrink: 0;
  margin-bottom: 12px;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 6px;
  border-left: 3px solid #25A937;
}
.tariff-card-description {
  font-size: 0.9em;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}
.tariff-card-features {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9em;
  color: #555;
  line-height: 1.6;
}
.tariff-card-price {
  flex-shrink: 0;
  font-size: 1.25em;
  font-weight: 700;
  color: #25A937;
  margin-bottom: 12px;
}
.tariff-connect-btn {
  flex-shrink: 0;
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  margin-top: auto;
  margin-bottom: 0;
  text-decoration: none !important;
  background-color: #25A937;
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s;
}
.tariff-connect-btn:hover {
  background-color: #1E8C2D;
  color: #fff !important;
}

/* Сетка карточек тарифов — равная ширина и высота в ряду */
.tariff-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 16px;
}
.tariff-cards-grid .tariff-card {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .tariff-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tariff-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tariff-cards-grid--1 {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .tariff-cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .tariff-cards-grid--1 {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .tariff-cards-grid--2 {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 767px) {
  .tariff-cards-grid--1 {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .tariff-cards-grid--2 {
    max-width: 100%;
  }
  .tariff-card {
    padding: 12px;
  }
  .tariff-card-header {
    flex-wrap: wrap;
  }
  .tariff-card-name {
    font-size: 1em;
  }
  .tariff-connect-btn {
    padding: 12px;
  }
}
