:root {
  --bg-dark: #0f1b2b;
  --bg-gradient-start: #07112a;
  --bg-gradient-end: #112345;
  --card-bg: rgba(28, 44, 77, 0.8);
  --card-light: #f0f3fa;
  --text-light: #f5f7fa;
  --text-dark: #0b0f15;
  --accent: #4c6fff;
  --accent-alt: #36d6ae;
  --gold: #f5c86e;
  --gold-dark: #e8b650;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(5, 11, 23, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

section,
header,
footer {
  padding: 80px clamp(24px, 5vw, 80px);
}

header.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 16px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 30px rgba(76, 111, 255, 0.35);
}

.cta.ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
}

.cta.secondary {
  background: rgba(76, 111, 255, 0.15);
  color: var(--text-light);
}

.cta:hover {
  transform: translateY(-2px);
}

.cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.cta:not(:disabled) {
  cursor: pointer;
  pointer-events: auto;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.hero__stats .stat strong {
  display: block;
  font-size: 36px;
  color: var(--gold);
}

.hero__visual {
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.hero__visual-placeholder {
  text-align: center;
}

.hero__visual-icon {
  font-size: 80px;
  margin-bottom: 16px;
}

.hero__visual-placeholder p {
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
}

.section-subtitle {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.7);
}

.benefits {
  background: var(--bg-dark);
}

.benefits__grid {
  margin-top: 40px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.benefits__grid article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.how-it-works {
  background: radial-gradient(circle at top, rgba(76, 111, 255, 0.15), transparent), var(--bg-dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.steps article {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.steps span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-alt);
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 16px;
}

.tariffs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.tariff-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tariff-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.tariff-price {
  font-size: 32px;
  color: var(--gold);
}

.tariff-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px 0;
}

.tariff-period-btn {
  flex: 1 1 60px;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tariff-period-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tariff-period-btn.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  border-color: transparent;
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(76, 111, 255, 0.35);
}

.tariff-price-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.tariff-price-main {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.1;
}

.tariff-price-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.tariff-price-original {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

.tariff-price-savings {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
}

.tariff-price-note {
  font-size: 12px;
  color: var(--gold);
}

.tariff-card ul {
  padding-left: 18px;
  margin: 0;
  flex-grow: 1;
}

.pay-form {
  background: linear-gradient(135deg, rgba(76, 111, 255, 0.15), rgba(54, 214, 174, 0.15));
  display: flex;
  justify-content: center;
}

.pay-form__card {
  max-width: 680px;
  width: 100%;
  background: rgba(15, 27, 43, 0.95);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 27, 43, 0.8);
  color: var(--text-light);
  font-size: 16px;
}

.method-description-box {
  margin-top: 12px;
  padding: 16px;
  background: rgba(76, 111, 255, 0.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  transition: background 0.2s;
}

.method-description-box p {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
}

.method-hint-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.method-selected {
  animation: fadeIn 0.3s ease-in;
}

.method-selected h4 {
  color: var(--accent);
  margin: 0 0 12px 0;
  font-size: 16px;
}

.method-selected p {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.9);
}

.method-info-btn {
  padding: 8px 16px;
  background: rgba(76, 111, 255, 0.2);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.method-info-btn:hover {
  background: rgba(76, 111, 255, 0.3);
  transform: translateY(-1px);
}

.loading-indicator {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(245, 200, 110, 0.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.how-it-works-details {
  transition: all 0.3s ease;
}

.how-it-works-details summary {
  list-style: none;
  outline: none;
  transition: color 0.2s;
}

.how-it-works-details summary::-webkit-details-marker {
  display: none;
}

.how-it-works-details summary:hover {
  color: var(--accent-alt);
}

.how-it-works-details[open] summary {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

label small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.tariff-functions-count {
  margin: 12px 0;
  padding: 12px;
  background: rgba(245, 200, 110, 0.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: 14px;
}

.tariff-functions-details {
  margin: 16px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tariff-functions-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  padding: 8px;
  user-select: none;
  transition: color 0.2s;
}

.tariff-functions-details summary:hover {
  color: var(--accent-alt);
}

.tariff-functions-details[open] summary {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.tariff-functions-content {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  line-height: 1.8;
}

.tariff-functions-content p {
  margin: 8px 0;
}

.tariff-functions-content strong {
  color: var(--gold);
}

.payment-instruction {
  background: rgba(76, 111, 255, 0.1);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.payment-instruction h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
}

.payment-instruction ol {
  margin: 0;
  padding-left: 24px;
  line-height: 1.8;
}

.payment-instruction li {
  margin-bottom: 12px;
}

.payment-instruction li strong {
  color: var(--gold);
}

.payment-instruction p {
  margin-top: 16px;
  padding: 12px;
  background: rgba(245, 200, 110, 0.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 400;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.pay-form__links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.pay-form__links a {
  color: var(--accent);
  text-decoration: none;
}

.trust {
  background: var(--bg-dark);
}

.trust__badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.trust__badges > div {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.testimonials__carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.testimonial__meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.faq__list details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 16px;
}

.faq__contacts {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.payment-methods {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-methods__intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.bank-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 160px;
}

.bank-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.bank-card ul {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}


footer.footer {
  background: var(--bg-gradient-end);
  display: grid;
  gap: 20px;
  text-align: center;
}

.footer__ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero__stats {
    flex-direction: column;
  }

  .faq__contacts {
    flex-direction: column;
  }

  .pay-form__card {
    padding: 24px;
  }
  
  .comparison-table-compact {
    overflow-x: auto;
  }
  
  .comparison-table-compact table {
    font-size: 12px;
  }
  
  .comparison-table-compact th,
  .comparison-table-compact td {
    padding: 8px;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 90vh;
  }
  
  .full-comparison-table {
    font-size: 12px;
  }
}

/* ========== СТИЛИ ДЛЯ КОМПАКТНОЙ ТАБЛИЦЫ СРАВНЕНИЯ ========== */

.comparison-compact {
  margin: 48px 0;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table-compact {
  overflow-x: auto;
  margin-top: 24px;
}

.comparison-table-compact table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 27, 43, 0.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.comparison-table-compact thead {
  background: rgba(76, 111, 255, 0.2);
}

.comparison-table-compact th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.comparison-table-compact td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table-compact td strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-light);
}

.comparison-table-compact td small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.comparison-total {
  background: rgba(76, 111, 255, 0.1);
  font-weight: 600;
}

.comparison-total td {
  padding: 20px 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.total-count {
  font-size: 24px;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.total-percent {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

/* ========== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ========== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 5;
}

.modal-header h2 {
  margin: 0;
  color: var(--gold);
  font-size: 24px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

.comparison-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 16px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.comparison-table-full {
  margin-top: 24px;
  overflow-x: auto;
}

.full-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 27, 43, 0.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.full-comparison-table thead {
  background: rgba(76, 111, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.full-comparison-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.full-comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.full-comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.subcategory-header {
  background: rgba(76, 111, 255, 0.15);
  font-weight: 600;
}

.subcategory-header td {
  padding: 16px;
  color: var(--accent-alt);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.check-cell {
  text-align: center;
  font-size: 18px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

