* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--vee-bg);
  color: var(--vee-text);
  line-height: var(--leading-normal);
  min-height: 100vh;
}

a { color: var(--vee-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  height: var(--header-h);
  background: var(--vee-surface);
  border-bottom: 1px solid var(--vee-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: var(--weight-bold);
  font-size: 1.05rem;
  color: var(--vee-text);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover,
.logo:focus {
  text-decoration: none;
  color: var(--vee-text);
}

.logo__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.header-nav { display: flex; gap: var(--space-3); align-items: center; }

.main-content {
  padding: var(--space-4);
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: calc(var(--bottom-nav-h) + 2rem);
}

.site-footer {
  text-align: center;
  padding: var(--space-6);
  color: var(--vee-muted);
  font-size: var(--text-sm);
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero { text-align: center; padding: var(--space-8) 0; }
.hero h1 {
  font-size: var(--text-hero-sm);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}
.hero-sub { color: var(--vee-muted); margin-bottom: var(--space-6); }
.hero-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

.features { display: grid; gap: var(--space-4); margin: var(--space-8) 0; }

@media (min-width: 768px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: var(--text-hero); }
}

.feature-card,
.card,
.tariff-card,
.auth-card {
  background: var(--vee-surface);
  border: 1px solid var(--vee-border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.tariffs-section h2 { margin-bottom: var(--space-2); }
.section-lead { color: var(--vee-muted); margin: 0 0 var(--space-4); font-size: 0.95rem; }

.tariff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: stretch;
}

@media (min-width: 540px) {
  .tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .tariff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding-top: calc(var(--space-5) + 0.15rem);
}

.tariff-card--recommended {
  border-color: var(--vee-warm);
  box-shadow: 0 0 0 1px var(--vee-warm);
  padding-top: calc(var(--space-5) + 0.35rem);
}

.tariff-badge {
  position: absolute;
  top: -0.7rem;
  left: var(--space-5);
  background: var(--vee-warm);
  color: #1a1206;
  font-size: 0.7rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  z-index: 1;
}

.tariff-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tariff-card__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  min-height: 2.5em;
}

.tariff-card__meta {
  margin: 0 0 var(--space-3);
  min-height: 3.75em;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--vee-muted);
}

.tariff-card__price {
  margin-top: auto;
  margin-bottom: var(--space-4);
  min-height: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tariff-price {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  margin: 0;
  line-height: var(--leading-tight);
}

.tariff-price-crypto {
  color: var(--vee-muted);
  font-size: 0.95rem;
  margin: 0.2rem 0 0;
  line-height: 1.3;
}

.tariff-card__actions {
  margin-top: auto;
  flex-shrink: 0;
}

.tariff-card__actions .btn {
  margin-top: 0;
}

.seo-block { margin: var(--space-10) 0 var(--space-4); }
.seo-block h2 { font-size: var(--text-h2); margin-bottom: 0.75rem; }
.seo-block p { color: var(--vee-muted); margin: 0 0 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-brand { color: var(--vee-text); font-weight: var(--weight-semibold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--vee-accent);
  transition: background 0.2s ease;
  line-height: var(--leading-tight);
}

.btn:hover { background: var(--vee-accent-hover); text-decoration: none; }
.btn-primary { background: var(--vee-accent); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--vee-border);
  color: var(--vee-text);
}
.btn-outline:hover { background: var(--vee-surface-2); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: var(--text-sm); }
.btn-block { display: flex; width: 100%; }

.btn-telegram {
  background: var(--vee-telegram);
  color: #fff;
  border: none;
}
.btn-telegram:hover { background: var(--vee-telegram-dark); color: #fff; text-decoration: none; }

.tg-icon {
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.78 15.29l-.29 4.09c.42 0 .6-.18.82-.4l1.97-1.89 4.09 3.01c.75.41 1.29.2 1.48-.69l2.68-12.58c.27-1.24-.45-1.72-1.24-1.42L2.27 9.37c-1.2.47-1.18 1.14-.2 1.44l4.98 1.55L18.9 6.9c.57-.38 1.09-.17.66.23'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.78 15.29l-.29 4.09c.42 0 .6-.18.82-.4l1.97-1.89 4.09 3.01c.75.41 1.29.2 1.48-.69l2.68-12.58c.27-1.24-.45-1.72-1.24-1.42L2.27 9.37c-1.2.47-1.18 1.14-.2 1.44l4.98 1.55L18.9 6.9c.57-.38 1.09-.17.66.23'/%3E%3C/svg%3E") center / contain no-repeat;
}

.telegram-auth { display: flex; justify-content: center; margin: var(--space-2) 0; }
.auth-card--telegram { text-align: center; }

.form label { display: block; margin-bottom: var(--space-4); }
.form input,
.form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--vee-border);
  background: var(--vee-bg);
  color: var(--vee-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--vee-accent);
}

.form .select-wrap {
  position: relative;
  display: block;
  margin-top: 0.35rem;
}

.form .select-wrap select {
  margin-top: 0;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form .select-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--vee-muted);
  font-size: var(--text-body);
  line-height: 1;
}

.auth-card { max-width: 400px; margin: var(--space-8) auto; }
.auth-card h1 { font-size: var(--text-h1); font-weight: var(--weight-bold); text-align: center; margin: 0 0 var(--space-5); }
.auth-footer { text-align: center; margin-top: var(--space-4); }

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--vee-muted);
  margin: 1.1rem 0;
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vee-border);
}

.flash-wrap { max-width: var(--content-max); margin: var(--space-2) auto; padding: 0 var(--space-4); }

.flash {
  padding: 0.75rem var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
  overflow: hidden;
}

.flash.is-hiding {
  opacity: 0;
  max-height: 0 !important;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.flash-success,
.flash-info { background: var(--vee-success-soft); border: 1px solid var(--vee-success); }
.flash-error { background: var(--vee-error-soft); border: 1px solid var(--vee-error); }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  display: flex;
  background: var(--vee-surface);
  border-top: 1px solid var(--vee-border);
  z-index: 100;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vee-muted);
  font-size: var(--text-xs);
  text-decoration: none;
  padding: var(--space-2);
}

.bottom-nav a.active { color: var(--vee-accent); font-weight: var(--weight-semibold); }

.copy-row { display: flex; gap: var(--space-2); }
.copy-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.copy-field { display: block; margin: var(--space-4) 0; }
.copy-field span { font-size: var(--text-sm); color: var(--vee-muted); }

.copy-field--inline {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}

.copy-field--inline .copy-field__main { flex: 1; min-width: 0; }

.muted { color: var(--vee-muted); }
.text-muted { color: var(--vee-muted); }
.small { font-size: 0.85rem; }
.hidden { display: none; }

.card-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: var(--weight-semibold);
}

.card-heading__icon {
  flex-shrink: 0;
  color: var(--vee-accent);
}

.card-heading__icon--warm { color: var(--vee-warm); }

.card-referral h2,
.card-apps h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.card + .card { margin-top: var(--space-4); }

.sub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 0.9rem;
}

.sub-info {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.sub-info li {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.sub-info__label {
  font-weight: var(--weight-semibold);
  color: var(--vee-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: var(--weight-medium);
}

.badge--success { color: var(--vee-success); }

.badge__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.progress-bar { margin-bottom: 0.85rem; }
.progress-bar:last-child { margin-bottom: 0; }

.progress-bar__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.progress-bar__label { color: var(--vee-text); }
.progress-bar__hint { color: var(--vee-muted); }

.progress-bar__track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--vee-surface-2);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--vee-accent);
  transition: width 0.3s ease;
}

.progress-bar__fill--warm { background: var(--vee-warm); }
.progress-bar__fill--success { background: var(--vee-success); }

.tooltip-wrap {
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: var(--vee-muted);
}

.apps-platform { margin-bottom: 0.85rem; }

.apps-platform h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--vee-muted);
  font-weight: var(--weight-semibold);
}

.apps-list { margin: 0; padding-left: 1.1rem; }
.apps-list li { margin-bottom: 0.25rem; }
.apps-how-title { margin: var(--space-4) 0 var(--space-2); font-size: 0.95rem; }

.cabinet-footer-link { margin-top: var(--space-5); text-align: center; }
.cabinet-footer-link a { color: var(--vee-muted); font-size: 0.9rem; }

.success-text { color: var(--vee-success); }
.error-text { color: var(--vee-error); }
.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: var(--space-2); }

.faq { margin-top: var(--space-8); }
.faq h2 { margin-bottom: var(--space-4); }

.faq-item {
  background: var(--vee-surface);
  border: 1px solid var(--vee-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: 0.75rem;
}

.faq-item h3 { margin: 0 0 var(--space-2); font-size: var(--text-h3); }
.faq-item p { margin: 0; color: var(--vee-muted); }

.minimal-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--vee-bg);
  color: var(--vee-text);
  font-family: var(--font-sans);
}

.minimal-card {
  max-width: 420px;
  width: 100%;
  background: var(--vee-surface);
  border: 1px solid var(--vee-border);
  border-radius: var(--radius);
  padding: var(--space-6);
}

@media (min-width: 1024px) {
  .bottom-nav { display: none; }
  .main-content { padding-bottom: var(--space-8); }
}
