:root {
  --bg: #0b0d12;
  --card: #12141b;
  --muted: #a2a7b7;
  --text: #e6e9f2;
  --brand: #4caf50;
  --brand-2: #3ea047;
  --accent: #7c4dff;
  --danger: #f44336;
  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #132, transparent),
              radial-gradient(1200px 600px at 110% 10%, #214, transparent),
              var(--bg);
  line-height: 1.6;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,13,18,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { color: #fff; font-weight: 800; letter-spacing: 0.2px; text-decoration: none; font-size: 20px; }
.logo a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
.logo a:hover { opacity: 0.8; }
.nav { display: flex; gap: 16px; }
.menu-toggle { display: none; }
.nav-link { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; transition: .2s ease; }
.nav-link:hover { color: #fff; background: var(--glass); }
.nav-link.active { color: #fff; background: #1a1f2b; }

.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.hero-content h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.subtitle { color: var(--muted); margin: 0 0 22px; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.hero-note { color: var(--muted); font-size: 14px; }
.hero-stats { display: flex; gap: 18px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.hero-stats .stat { display: grid; gap: 4px; }
.hero-stats strong { color: #fff; font-size: 18px; }

.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.glass-card { width: 320px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.gc-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--muted); }
.gc-row strong { color: #fff; }
.gc-progress { height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.gc-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); width: 0; border-radius: 999px; animation: grow 2.5s ease forwards; }
@keyframes grow { from { width: 0; } to { width: 78%; } }

.section { padding: 68px 0; }
.section h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit, .step, .t-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.benefit .icon { font-size: 22px; }
.benefit h3, .step h3 { margin: 8px 0 8px; font-size: 18px; }
.benefit p, .step p { color: var(--muted); margin: 0; }
.chip { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 999px; border: 1px solid var(--border); background: #1a1f2b; color: #cbd1e2; margin-left: 6px; vertical-align: middle; }
.chip.soon { background: #2a1f38; border-color: rgba(124,77,255,0.4); color: #cdbaff; }
.section-note { color: var(--muted); margin-top: 12px; font-size: 14px; }

.hiw .steps .step { position: relative; }
.step-num { position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border-radius: 50%; background: #1a1f2b; color: #fff; display: grid; place-items: center; border: 1px solid var(--border); font-weight: 700; }

.pricing { position: relative; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); position: relative; }
.price-card .badge { position: absolute; top: 14px; right: 14px; background: #2c7; color: #063; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.2); }
.pc-head h3 { margin: 0 0 8px; }
.pc-price { font-size: 28px; font-weight: 800; color: #fff; }
.pc-price .num { font-size: 34px; }
.pc-price .per { color: var(--muted); font-size: 14px; margin-left: 6px; font-weight: 600; }
.pc-note { color: var(--muted); font-size: 13px; margin-top: -6px; }
.pc-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.pc-features li { position: relative; padding-left: 20px; }
.pc-features li:before { content: '✔'; position: absolute; left: 0; color: var(--brand); }

.guarantee { margin-top: 18px; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.g-icon { font-size: 18px; }

.testimonials .t-card p { margin: 0 0 10px; }
.t-author { color: var(--muted); font-size: 14px; }

.final-cta { background: linear-gradient(180deg, rgba(124,77,255,0.12), rgba(124,77,255,0.06)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.final-cta-inner { text-align: center; }
.final-cta .btn { margin-top: 10px; }
.speed-test-teaser {
  position: relative;
  background: radial-gradient(800px at 10% 20%, rgba(124,77,255,0.15), transparent),
              radial-gradient(800px at 90% 20%, rgba(76,175,80,0.18), transparent),
              rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.teaser-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.teaser-copy p {
  color: var(--muted);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
}
.teaser-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.teaser-metrics {
  display: grid;
  gap: 16px;
}
.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.metric-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-size: 12px;
}
.metric-card strong {
  display: block;
  font-size: 28px;
  margin: 6px 0;
}

.site-footer { padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; position: relative; }
.footer-links, .footer-nav { display: flex; gap: 14px; }
.footer-menu-toggle { display: none; }
.footer-nav { display: flex; gap: 14px; }
.footer-links a { 
    color: var(--muted); 
    text-decoration: none; 
    transition: .2s ease; 
    position: relative;
}

.footer-links a:hover { 
    color: #fff; 
}

.footer-links a.active { 
    color: var(--brand);
    font-weight: 600;
}

.footer-links a.active::after,
.footer-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--brand);
    border-radius: 1px;
}

.footer-nav a {
    color: var(--muted); 
    text-decoration: none; 
    transition: .2s ease; 
    position: relative;
}

.footer-nav a:hover { 
    color: #fff; 
}

.footer-nav a.active { 
    color: var(--brand);
    font-weight: 600;
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); background: #1a1f2b; color: #fff; cursor: pointer; transition: .15s ease; font-weight: 600; text-decoration: none; }
.btn:hover { transform: translateY(-1px); background: #212739; }
.btn-lg { padding: 14px 18px; font-size: 16px; }
.btn-primary { background: linear-gradient(90deg, var(--brand), var(--accent)); border: none; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; border: 1px solid var(--border); }

.modal { position: fixed; inset: 0; display: none; z-index: 1000; overflow-y: auto; }
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; margin: 6vh auto; width: min(520px, 92%); background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; overflow: visible; z-index: 1001; }
.modal-close { 
    position: absolute; 
    right: 12px; 
    top: 12px; 
    border: none; 
    background: #222838; 
    color: #fff; 
    width: 32px; 
    height: 32px; 
    border-radius: 8px; 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    z-index: 5;
    pointer-events: auto;
}
.modal-body { position: relative; overflow: visible; }
.modal-body h3 { margin: 4px 0 14px; }
.modal-plan { color: var(--muted); margin: -4px 0 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; position: relative; overflow: visible; }
#checkoutForm { position: relative; overflow: visible; }
.field input { background: #11151f; color: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.pay-row { display: flex; align-items: center; gap: 12px; }
.pay-note { color: var(--muted); font-size: 12px; }
.modal-status { margin-top: 10px; background: #11151f; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--muted); }

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.consent-field.error {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.45);
    animation: shake 0.45s ease;
}

.consent-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.consent-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #11151f;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.consent-checkbox input:checked ~ .checkmark {
    background-color: var(--brand);
    border-color: var(--brand);
}

.consent-checkbox input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.consent-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
}

.consent-field.error .consent-text {
    color: #ff9d9d;
}

.consent-text a {
    color: #4caf50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.consent-text a:hover {
    text-decoration: underline;
    color: #5cbf60;
}

.consent-tip {
    display: block;
    font-size: 13px;
    color: #ffb5b5;
    line-height: 1.4;
    background: rgba(244, 67, 54, 0.14);
    border: 1px solid rgba(244, 67, 54, 0.35);
    border-radius: 10px;
    padding: 0 12px;
    margin-top: 4px;
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.18);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
}

.consent-tip[data-visible="1"],
.consent-field.error .consent-tip {
    max-height: 200px;
    opacity: 1;
    padding: 10px 12px;
    transform: translateY(0);
}

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

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.consent-field.error .checkmark {
    border-color: rgba(244, 67, 54, 0.8);
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.15);
}

.legal-links {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    text-align: center;
}

.legal-links p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #ffc107;
}

.legal-links a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* Мобильная адаптация */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 14px; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  
  /* Гамбургер-меню для header */
  .header-inner {
    position: relative;
  }
  
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11,13,18,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
  }
  
  .nav.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 12px;
    text-align: center;
  }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    width: 40px;
    height: 40px;
    position: relative;
  }
  
  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .menu-toggle span:nth-child(1) {
    top: 12px;
  }
  
  .menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  .menu-toggle span:nth-child(3) {
    bottom: 12px;
  }
  
  .menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  
  .menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  /* Footer адаптация */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .footer-menu-toggle {
    display: flex !important;
    align-self: flex-end;
    margin-top: -40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    width: 40px;
    height: 40px;
    position: relative;
  }
  
  /* Применяем те же стили для footer-menu-toggle */
  .footer-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-menu-toggle span:nth-child(1) {
    top: 12px;
  }
  
  .footer-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  .footer-menu-toggle span:nth-child(3) {
    bottom: 12px;
  }
  
  .footer-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .footer-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  
  .footer-menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .footer-links, .footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11,13,18,0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
  }
  
  .footer-nav.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .footer-links a, .footer-nav a {
    padding: 12px;
    text-align: center;
  }
  
  /* Hero CTA адаптация */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .hero-cta .btn {
    width: 100%;
    margin-right: 0;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  /* Убираем горизонтальный скролл */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  html {
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    padding: 0 16px;
  }
  
  /* Адаптация подсказки для мобильных */
  .consent-tip {
    max-width: calc(100vw - 32px);
    white-space: normal;
    left: 0;
    right: 0;
  }
  
  .consent-tip::after {
    left: 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 32px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .glass-card {
    width: 100%;
    max-width: 320px;
  }
}

/* Мобильное уведомление на главной */
.mobile-notice {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(124, 77, 255, 0.08));
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mobile-notice-icon {
  font-size: 56px;
  line-height: 1;
}

.mobile-notice h3 {
  font-size: 20px;
  margin: 4px 0 0;
  color: #fff;
}

.mobile-notice p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  max-width: 320px;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  width: 100%;
}

.mobile-actions .btn {
  width: 100%;
  max-width: 280px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-btn:active {
  transform: scale(0.95);
}

.share-btn.telegram {
  background: #0088cc;
}

.share-btn.whatsapp {
  background: #25D366;
}

.share-btn.email {
  background: #666;
}

.mobile-notice .hero-note {
  margin-top: 4px;
  font-size: 13px;
}
