:root{
    --bg1:#0b1d2a;
    --bg2:#02080d;
    --text:#ffffff;
    --muted:rgba(255,255,255,0.78);
    --line:rgba(255,255,255,0.14);
    --accent:#00f6ff;
    --shadow: 0 20px 60px rgba(0,0,0,0.35);
    --radius: 18px;
    --max: 1200px;
  }

  *{ margin:0; padding:0; box-sizing:border-box; font-family:"Segoe UI", Arial, sans-serif; }
  body{
    min-height:100vh;
    color:var(--text);
    background:
      radial-gradient(circle at top, var(--bg1), var(--bg2) 70%);
    overflow-x:hidden;
  }
  canvas{ 
  position:fixed; inset:0; z-index:0; 
  pointer-events: none !important; /* Клик проходит сквозь фон на кнопки */
  }

  .orb{
    position:fixed;
    width:300px; height:300px;
    //background:radial-gradient(circle, rgba(0, 247, 255, 0.3), transparent 70%);
    background:radial-gradient(circle, rgba(0, 247, 255, 0.3), transparent 70%);
    filter: blur(60px);
    animation: float 20s infinite alternate;
    z-index:1;
    pointer-events: none !important; /* Клик проходит сквозь фон на кнопки */
  }
  .orb.one{ top: 10%; left: -100px; }
  .orb.two{ bottom: 10%; right: -120px; animation-delay:5s; }
  @keyframes float{ from{ transform:translateY(0);} to{ transform:translateY(-80px);} }

  .wrapper{ position:relative; z-index:2; }

  /* ====== GLASS ====== */
  .glass{
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0,246,255,0.12);
  }

  /* ====== HEADER / NAV ====== */
  header{
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(2,8,13,0.55);
    backdrop-filter: blur(14px);
  }
  nav{
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
  }
  .logo{
    display:flex;
    align-items:center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor:pointer;
    user-select:none;
  }
  .logo .mark{
    width: 34px; height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), rgba(0,246,255,0.55));
    display:grid;
    place-items:center;
    color:#041219;
    font-weight: 900;
    box-shadow: var(--shadow);
  }
  nav ul{
    display:flex;
    gap: 18px;
    list-style:none;
    align-items:center;
    flex-wrap:wrap;
  }
  nav a:not(.logo2){ 
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background .2s, transform .2s;
  }
  nav a:hover:not(.logo){
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
  }

  /* Сброс стилей ссылок конкретно для логотипа */
nav a.logo-link {
    display: inline-flex;    /* Выравнивает иконку Q и текст по одной линии */
    align-items: center;     /* Центрирует по вертикали */
    gap: 8px;                /* Расстояние между иконкой и текстом */
    
    padding: 0;              /* Убирает паддинги, которые ломали высоту */
    border-radius: 0;        /* Убирает скругления углов */
    background: none;        /* Убирает любой фон */
    color: inherit;          /* Наследует цвет, который был у .logo */
    text-decoration: none;   /* Убирает подчеркивание */
}

/* Если при наведении на обычные ссылки nav a срабатывает hover, 
   отменяем его для логотипа, чтобы он не мигал */
nav a.logo-link:hover {
    background: none;
    transform: none;
}

  .pill{
    background: linear-gradient(120deg, var(--accent), rgba(0,246,255,0.55));
    color:#041219;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 900;
    border:none;
    cursor:pointer;
    transition: transform .2s;
    box-shadow: var(--shadow);
    white-space: nowrap;
  }
  
  .pill:hover{ transform: translateY(-2px) scale(1.01); }

  .ghost{
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: border .2s, transform .2s, background .2s;
    white-space: nowrap;
  }
  .ghost:hover{
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.06);
  }

  main{
    max-width: var(--max);
    margin: 0 auto;
    padding: 26px 18px 70px;
  }

  /* ====== HERO ====== */
  .hero{
    display:grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items:center;
    padding: 34px 0 24px;
  }
  .badge{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
  }
  .badge-dot{
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(0,246,255,0.9);
  }
  h1{
    font-size: clamp(30px, 4vw, 52px);
    margin: 12px 0;
    line-height: 1.06;
    letter-spacing: 0.4px;
  }
  .lead{
    font-size: 18px;
    color: var(--muted);
    margin: 16px 0 22px;
    max-width: 720px;
  }
  .cta-row{
    display:flex;
    gap: 12px;
    flex-wrap:wrap;
    align-items:center;
  }
  .hint{
    color: rgba(255,255,255,0.70);
    font-size: 14px;
  }

  .hero-card{
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(0,246,255,0.18), rgba(255,255,255,0.04));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
  }
  .hero-card::after{
    content:'';
    position:absolute;
    width: 260px; height: 260px;
    top: -120px; right: -100px;
    background: radial-gradient(circle, rgba(0,246,255,0.35), transparent 58%);
    filter: blur(18px);
    opacity: 0.8;
  }
  .stats{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 14px;
  }
  .stat{
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0,0,0,0.28);
    padding: 12px;
  }
  .stat strong{ display:block; font-size: 16px; }
  .stat small{ color: rgba(255,255,255,0.72); }

  /* ====== SECTIONS / GRIDS ====== */
  section{ margin-top: 56px; }
  h2{
    font-size: 30px;
    margin: 0 0 18px;
    color: var(--accent);
    letter-spacing: 0.4px;
  }
  .grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
  .card{
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.07);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    overflow:hidden;
  }
  .card:hover{
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(0,246,255,0.22);
  }
  .card h3{ margin: 0 0 8px; }
  .card p{ margin: 0; color: var(--muted); line-height: 1.45; }

  .partners{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }
  .partner{
    padding: 14px;
    text-align:center;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
  }

  .price-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .price{
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    background: linear-gradient(150deg, rgba(0,246,255,0.16), rgba(255,255,255,0.04));
    position: relative;
    overflow:hidden;
  }
  .price .tag{
    position:absolute;
    top: 14px; right: 14px;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
  }
  ul.clean{
    list-style:none;
    padding:0;
    margin: 12px 0 16px;
    display:grid;
    gap: 8px;
    color: rgba(255,255,255,0.75);
  }

  .timeline{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
  }

  /* ====== CONTACT CTA ====== */
  .cta-banner{
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(0,246,255,0.16), rgba(255,255,255,0.05));
    box-shadow: var(--shadow);
    display:grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items:center;
  }

  .field{
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.35);
    color: var(--text);
    outline: none;
    width: 100%;
  }
  .field::placeholder{ color: rgba(255,255,255,0.55); }
  .field:focus{
    border-color: rgba(0,246,255,0.55);
    box-shadow: 0 0 0 3px rgba(0,246,255,0.12);
  }
  .field.invalid{
    border-color: rgba(255,120,180,0.9);
    box-shadow: 0 0 0 3px rgba(255,120,180,0.12);
  }

  /* ====== FOOTER ====== */
  .footer{
    margin-top: 48px;
    padding: 26px 0 36px;
    border-top: 1px solid var(--line);
    color: rgba(255,255,255,0.7);
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap: 12px;
  }

  /* ====== MODAL ====== */
  .modal-overlay{
    position: fixed;
    inset: 0;
    display:none;
    align-items:center;
    justify-content:center;
    padding: 22px;
    background: rgba(0,0,0,0.60);
    z-index: 100;
  }
  .modal-overlay.open{ display:flex; }
  .modal{
    width: min(560px, 100%);
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(2,8,13,0.88);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    overflow:hidden;
  }
  .modal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
  }
  .modal-title{
    margin:0;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.2px;
  }
  .modal-close{
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border-radius: 12px;
    cursor:pointer;
    padding: 8px 10px;
    font-weight: 900;
    transition: transform .2s, border-color .2s;
  }
  .modal-close:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.35); }

  .modal-body{
    padding: 16px;
    display:grid;
    gap: 10px;
  }
  .modal-note{
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 6px;
  }
  .modal-actions{
    padding: 14px 16px 16px;
    border-top: 1px solid var(--line);
    display:flex;
    gap: 10px;
    justify-content:flex-end;
    flex-wrap:wrap;
    background: rgba(255,255,255,0.03);
  }

  /* ====== RESPONSIVE ====== */
  @media (max-width: 960px){
    ul.cross{ display:none; }
    .hero{ grid-template-columns: 1fr; }
    .cta-banner{ grid-template-columns: 1fr; }
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce){
    .orb{ animation:none; }
    .card:hover, nav a:hover, .pill:hover, .ghost:hover { transform:none; }
  }

  /* Принудительное отображение модального окна при добавлении класса .open */
.modal-overlay.open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.content-layer {
  position: relative !important;
  z-index: 10 !important; /* Поднимает все кнопки выше фона */
}