
/* Google Fonts are linked in HTML. This CSS handles themes, layout and effects. */
:root{
  --bg: #0B0F17;
  --text: #E8EDF7;
  --text-2:#B5C0D6;
  --surface: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.12);
  --brand-1:#8A5CF6;
  --brand-2:#1BCEDF;
  --glass-blur: 14px;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --modal-bg: #ffffff;
  --modal-text: #000000;
}
[data-theme="light"]{
  --bg: #F6F8FF;
  --text: #0B1020;
  --text-2:#3C435A;
  --surface: rgba(10,15,30,0.07);
  --border: rgba(10,15,30,0.12);
}
[data-theme='dark'] {
  --modal-bg: #2c2c2c;
  --modal-text: #f0f0f0;
}

/* Base */
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, rgba(138,92,246,.35), transparent 60%),
              radial-gradient(900px 600px at -10% 20%, rgba(27,206,223,.28), transparent 50%),
              linear-gradient(180deg, var(--bg), var(--bg));
  overflow-x:hidden;
}

/* Animated gradient layer */
.bg-anim{
  position: fixed; inset: -20% -20% auto -20%;
  height: 120vh;
  background: conic-gradient(from 0deg, var(--brand-1), var(--brand-2), var(--brand-1));
  opacity:.18; filter: blur(120px);
  animation: spin 22s linear infinite;
  z-index:-1;
}
@keyframes spin{ to{ transform: rotate(1turn);} }

.container{ width:min(1200px,92vw); margin-inline:auto; }

/* Nav */
.nav{
  position: sticky; 
  top: 0; 
  z-index: 50;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    135deg, 
    rgba(138, 92, 246, 0.25), 
    rgba(27, 206, 223, 0.25)
  );
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; }
.brand{ 
  display:flex; 
  align-items:center; 
  gap:12px; 
  font-weight:800; 
  letter-spacing:.2px; 
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.menu{ display:flex; align-items:center; gap:18px; }
.menu a{ 
  color:var(--text-2); 
  text-decoration:none; 
  font-weight:600; 
  position: relative;
  padding: 8px 0;
}
.menu a:hover{ color:var(--text); }
.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--brand-1), var(--brand-2));
  transition: width 0.3s ease;
}
.menu a:hover::after {
  width: 100%;
}

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 18px; border-radius:14px; font-weight:700; letter-spacing:.2px; cursor:pointer; border:1px solid transparent; text-decoration:none; transition:.25s ease; }
.btn-primary{
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color:white; box-shadow: 0 0 0 0 rgba(139,92,246,0);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 0 22px 4px color-mix(in srgb, var(--brand-1) 30%, transparent); }
.btn-ghost{ background: transparent; border-color: var(--border); color:var(--text); }
.btn-ghost:hover{ background: var(--surface); }

/* Sections */
.section{ padding: 72px 0; }
.kicker{ color: var(--brand-2); font-weight:800; text-transform: uppercase; letter-spacing:.18em; font-size:.8rem; }
.h1{ font-size: clamp(32px, 5vw, 56px); line-height:1.05; margin:10px 0 12px; font-weight:900; }
.h2{ font-size: clamp(24px, 3.2vw, 38px); line-height:1.15; margin: 10px 0; }
.lead{ font-size: clamp(15px, 2.2vw, 18px); color:var(--text-2); }

/* Hero */
.hero{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items:center; }
@media (max-width: 980px){ .hero{ grid-template-columns: 1fr; } }
.hero-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur));
}

/* Обновленные стили для изображения телефона */
.hero-card--image {
  position: relative;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  margin-top: 30px;
}

.chart-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(5%);
  position: relative;
  z-index: 1;
}

/* Улучшенные стили для подписи */
.hero-card--image .kicker {
  position: relative;
  z-index: 2;
  margin-top: 15px;
  text-align: center;
  background: linear-gradient(
    to right, 
    rgba(138, 92, 246, 0.25), 
    rgba(27, 206, 223, 0.25)
  );
  backdrop-filter: blur(8px);
  padding: 12px 24px;
  border-radius: 14px;
  display: inline-block;
  width: auto;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  font-weight: 700;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Glass cards */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow);
}
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 1000px){ .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .grid-3{ grid-template-columns: 1fr; } }
.icon{
  width:44px; height:44px; display:grid; place-items:center; border-radius:12px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color:white; font-size:22px;
}

/* Pricing */
.pricing{ display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 22px;}
@media (max-width: 1000px){ .pricing{ grid-template-columns: 1fr; } }
.tier .price{ font-size: 34px; font-weight: 900; margin: 6px 0 12px; }
.tier .list{ margin: 12px 0 18px; color: var(--text-2); }
.tier .list li{ margin: 6px 0; }

/* CTA / Footer */
.footer{ padding: 28px 0; border-top:1px solid var(--border); color: var(--text-2); font-size: 14px; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--modal-bg);
  color: var(--modal-text);
  padding: 12px;
  border-radius: 8px;
  position: relative;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.input{ width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--border); background: transparent; color:var(--text); }
.form-row{ display:flex; gap:10px; flex-wrap:wrap; }

/* Reveal animations */
.reveal{ opacity: 0; transform: translateY(14px); }
.reveal.visible{ opacity: 1; transform: translateY(0); transition: .7s ease; }

/* Стили для платежной информации */
.invoice-card {
  padding: 12px;
  margin-bottom: 10px;
}

.invoice-content {
  color: var(--text);
  line-height: 1.2;
}

.invoice-title {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 1em;
}

.invoice-amount {
  margin-bottom: 10px;
  font-size: 1em;
  font-weight: bold;
}

.payment-details {
  margin: 10px 0 6px;
  font-weight: bold;
  font-size: 0.9em;
}

.payment-method {
  margin-bottom: 0;
}

.method-row {
  display: flex;
  margin-bottom: 4px;
  align-items: center;
}

.address-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 6px;
}

.method-label {
  min-width: 90px;
  font-weight: 600;
  font-size: 0.85em;
}

.method-value {
  font-size: 0.85em;
}

.address {
  font-family: monospace;
  background: var(--surface);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex: 1;
  font-size: 0.8em;
  line-height: 1.2;
  word-break: break-all;
}

.copy-btn {
  padding: 3px 6px;
  background: var(--brand-1);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75em;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--brand-2);
}

.after-payment {
  margin-top: 10px;
  font-style: italic;
  color: var(--text-2);
  font-size: 0.85em;
}

.form-result {
  margin-top: 8px;
  margin-bottom: 0;
}

#paid-btn {
  margin-top: 8px;
  padding: 8px 16px;
  font-size: 0.9em;
}

.modal-content .kicker {
  font-size: 0.7rem;
  padding: 4px 8px;
  margin-bottom: 8px;
}

/* Кнопка-бургер */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .chart-image {
    transform: translateY(3%);
    margin-top: 20px;
  }
  
  .hero-card--image .kicker {
    margin-top: 12px;
    font-size: 0.75rem;
    padding: 8px 16px;
  }
  
  .menu {
      display: none;
      flex-direction: column;
      gap: 12px;
      background: var(--surface);
      position: absolute;
      top: 60px;
      right: 10px;
      padding: 16px;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
  }

  .menu.show {
      display: flex;
  }

  .menu-toggle {
      display: block;
  }

  .nav-wrap {
      justify-content: space-between;
  }
}
/* Стили для выбора языка */
.language-selector {
  position: relative;
}

#lang-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px;
  min-width: 120px;
}

.language-selector::after {
  content: "▼";
  font-size: 0.7rem;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-2);
}

#lang-select:hover {
  background: var(--surface);
  border-color: var(--brand-1);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .language-selector {
    width: 100%;
  }
  
  #lang-select {
    width: 100%;
    margin-top: 8px;
  }
}

