﻿/* ===== БАЗОВЫЙ СБРОС И ПЕРЕМЕННЫЕ ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --bg-deep: #03060b;
      --panel-bg: rgba(10, 18, 28, 0.94);
      --panel-bg-secondary: rgba(14, 24, 36, 0.97);
      --border-neon: rgba(0, 255, 255, 0.2);
      --border-neon-strong: rgba(0, 240, 255, 0.5);
      --accent-primary: #00f0ff;
      --accent-secondary: #9d4eff;
      --text-main: #ffffff;
      --text-dim: #e0eaff;
      --text-muted: #a0b8d0;
      --success: #00e676;
      --error: #ff5370;
      --link-soft-blue: #93c5fd;
      --glow-shadow: 0 10px 10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 255, 255, 0.15) inset, 0 0 10px rgba(0, 180, 255, 0.18);
      --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
      
      /* Единые размеры шрифтов - увеличены */
      --fs-title: 1.5rem;
      --fs-subtitle: 0.9rem;
      --fs-body: 0.9rem;
      --fs-small: 0.8rem;
    }

    body {
      font-family: var(--font-sans);
      background: transparent;
      color: var(--text-main);
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 16px;
      line-height: 1.5;
      overflow: hidden;
    }

    /* Декоративный общий фон отключен, чтобы блоки визуально не сливались */
    body::before {
      content: none;
    }

    .wrap {
      max-width: 1400px;
      width: 100%;
      height: 100%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
      overflow: hidden;
    }

    /* ===== СЕТКА: ТРИ ПАНЕЛИ В РЯД ===== */
    .dashboard {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      align-items: stretch;
      height: 430px;
      flex-shrink: 0;
    }

    /* ===== ФУТУРИСТИЧЕСКАЯ ПАНЕЛЬ ===== */
    .panel {
      background: var(--panel-bg);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      border: 1px solid var(--border-neon);
      border-radius: 28px;
      padding: 22px 20px;
      box-shadow: var(--glow-shadow);
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      height: 100%;
    }

    .panel:hover {
      border-color: var(--border-neon-strong);
      transform: translateY(-3px);
    }

    /* сканирующая линия */
    .panel::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
      animation: scan 5s linear infinite;
      opacity: 0.4;
    }

    @keyframes scan {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }

    /* ===== ЗАГОЛОВОК С ЛОГОТИПОМ ===== */
    .header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      flex-wrap: nowrap;
      gap: 10px;
    }

    .brand-title {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .brand-title img {
      width: 38px;
      height: 38px;
      max-width: 38px;
      max-height: 38px;
      border-radius: 12px;
      border: 1px solid var(--accent-primary);
      box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
      background: #0a121c;
      object-fit: contain;
      flex: 0 0 38px;
    }

    .brand-title h1 {
      font-size: var(--fs-title);
      font-weight: 500;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #fff, #c0e0ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      white-space: nowrap;
    }

    /* подзаголовок */
    .studio-tagline {
      font-size: var(--fs-small);
      color: var(--accent-primary);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin-bottom: 10px;
      opacity: 0.9;
    }

    /* СТАТУС — СПРАВА */
    .status {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 4px 12px 4px 8px;
      background: rgba(0, 20, 30, 0.7);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(0, 255, 255, 0.2);
      border-radius: 60px;
      font-family: var(--font-mono);
      font-size: var(--fs-small);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      flex-shrink: 0;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--error);
      box-shadow: 0 0 12px var(--error);
    }

    .dot.on {
      background: var(--success);
      box-shadow: 0 0 12px var(--success);
    }

    /* ===== ОСНОВНОЙ ТЕКСТ ===== */
    p, li, .schedule-item, .membership-description {
      font-size: var(--fs-body);
      color: var(--text-dim);
      line-height: 1.5;
    }

    a:not(.btn):not(.big-cta),
    a:not(.btn):not(.big-cta):visited,
    a:not(.btn):not(.big-cta):active {
      color: var(--link-soft-blue);
      text-decoration-color: rgba(147, 197, 253, 0.8);
    }

    a:not(.btn):not(.big-cta):hover {
      color: #bfdbfe;
      text-decoration-color: #bfdbfe;
    }

    /* ===== РАСПИСАНИЕ ===== */
    .schedule-block {
      margin: 12px 0 0;
      padding: 16px 14px;
      border-radius: 22px;
      background: rgba(0, 20, 40, 0.5);
      border: 1px solid rgba(0, 255, 255, 0.15);
      backdrop-filter: blur(8px);
    }

    .schedule-link {
      display: block;
      text-decoration: none;
      color: inherit;
    }

    .schedule-link:hover .schedule-block {
      border-color: rgba(0, 240, 255, 0.45);
      box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.2) inset;
    }

    .schedule-title {
      font-size: var(--fs-small);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--accent-primary);
      margin-bottom: 10px;
      font-weight: 400;
    }

    .schedule-title-hint {
      font-size: 0.72em;
      letter-spacing: 0.4px;
      text-transform: none;
      color: rgba(190, 230, 255, 0.9);
      font-weight: 400;
      white-space: nowrap;
    }

    .schedule-item {
      font-family: var(--font-mono);
      border-left: 2px solid var(--accent-primary);
      padding-left: 12px;
      margin-bottom: 8px;
      font-size: var(--fs-small);
      line-height: 1.4;
    }

    .schedule-item:last-child {
      margin-bottom: 0;
    }

    /* ===== ФОРМЫ ===== */
    label {
      display: block;
      font-size: var(--fs-small);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--text-muted);
      margin: 12px 0 5px;
    }

    input {
      width: 100%;
      padding: 10px 16px;
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(0, 255, 255, 0.2);
      border-radius: 30px;
      color: white;
      font-size: var(--fs-body);
      backdrop-filter: blur(4px);
      transition: 0.2s;
    }

    input:focus {
      outline: none;
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2);
    }

    /* ===== КНОПКИ ===== */
    .panel .row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: auto;
      padding-top: 15px;
    }

    button, .btn {
      padding: 10px 18px;
      border-radius: 40px;
      font-weight: 600;
      font-size: var(--fs-small);
      border: none;
      cursor: pointer;
      transition: 0.2s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(30, 40, 60, 0.8);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.05);
      color: white;
      letter-spacing: 0.3px;
      flex: 1 1 auto;
    }

    button.primary, .btn.primary {
      background: linear-gradient(135deg, #00c6ff, #0072ff);
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 8px 15px -6px #0072ff, 0 0 0 1px rgba(255,255,255,0.1) inset;
    }

    button.primary:hover, .btn.primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 15px 20px -8px #0072ff, 0 0 0 1px rgba(255,255,255,0.2) inset;
    }

    /* ===== ПАНЕЛЬ MEMBERSHIP ===== */
    .membership-content {
      display: grid;
      grid-template-rows: auto 1fr auto;
      flex: 1;
    }

    .membership-description {
      margin: 6px 0 10px;
      font-size: var(--fs-body);
    }

    /* стилизация цены */
    .price-tag {
      font-size: 2rem;
      font-weight: 700;
      margin: 6px auto 10px;
      background: linear-gradient(135deg, #9d4eff, #2f81f7);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: inline-block;
      padding: 6px 22px;
      border-radius: 40px;
      border: 1px solid rgba(157, 78, 255, 0.5);
      background-color: rgba(157, 78, 255, 0.1);
      backdrop-filter: blur(8px);
      box-shadow: 0 0 20px rgba(157, 78, 255, 0.3);
      width: fit-content;
      align-self: center;
      justify-self: center;
    }

    .membership-content .row {
      margin-top: 0 !important;
      align-self: end;
      width: 100%;
    }

    /* ===== СООБЩЕНИЯ ===== */
    .msg {
      margin-top: 10px;
      padding: 8px 14px;
      border-radius: 30px;
      display: none;
      font-weight: 500;
      backdrop-filter: blur(10px);
      border: 1px solid;
      font-size: var(--fs-small);
    }
    .msg.ok {
      display: block;
      background: rgba(0, 230, 118, 0.1);
      border-color: var(--success);
      color: #a5ffc9;
    }
    .msg.warn {
      display: block;
      background: rgba(255, 183, 77, 0.1);
      border-color: #ffb74d;
      color: #ffe0b2;
    }
    .msg.err {
      display: block;
      background: rgba(255, 83, 112, 0.1);
      border-color: var(--error);
      color: #ffb2b2;
    }
    .hidden {
      display: none !important;
    }

    .tg-hint {
      margin-top: 8px;
      padding: 8px 12px;
      border-radius: 12px;
      border: 1px solid rgba(0, 240, 255, 0.45);
      background: rgba(0, 240, 255, 0.08);
      color: #d8f7ff;
      font-size: var(--fs-small);
      line-height: 1.35;
    }

    #tgLinkBtn.attention {
      border-color: rgba(0, 240, 255, 0.9);
      box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.25), 0 0 16px rgba(0, 240, 255, 0.45);
      animation: tgPulse 1.2s ease-in-out infinite;
    }

    @keyframes tgPulse {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-1px); }
    }

    .vpn-warning {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255, 183, 77, 0.55);
      background: rgba(255, 183, 77, 0.1);
      color: #ffe5bf;
      font-size: var(--fs-small);
      line-height: 1.35;
    }

    /* ===== ПРОДАЮЩИЙ БЛОК MEMBERSHIP ===== */
    .offer {
      margin-top: 8px;
      background: var(--panel-bg-secondary);
      backdrop-filter: blur(15px);
      border: 1px solid rgba(157, 78, 255, 0.4);
      border-radius: 28px;
      padding: 28px 32px;
      box-shadow: var(--glow-shadow), 0 0 0 2px rgba(157, 78, 255, 0.2) inset;
      position: relative;
      flex-shrink: 0;
      height: 340px;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .offer-layout {
      display: grid;
      grid-template-columns: 1.3fr 0.9fr;
      gap: 32px;
      align-items: center;
      position: relative;
      z-index: 2;
      width: 100%;
      height: 100%;
      transform: translateX(0);
      will-change: transform;
    }

    .offer-content {
      display: flex;
      flex-direction: column;
      height: 100%;
      justify-content: space-between;
      padding-right: 4px;
      overflow: visible; /* Убираем внутренний скролл */
    }

    .offer-badge {
      display: inline-block;
      padding: 5px 18px;
      border-radius: 60px;
      background: linear-gradient(90deg, #9d4eff, #2f81f7);
      color: white;
      font-weight: 600;
      font-size: var(--fs-small);
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 10px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 5px 15px rgba(157, 78, 255, 0.5);
      width: fit-content;
    }

    .offer h3 {
      font-size: 1.7rem;
      font-weight: 600;
      line-height: 1.2;
      margin-bottom: 8px;
      background: linear-gradient(135deg, #fff, #c5d9ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .offer p {
      font-size: var(--fs-body);
      color: var(--text-dim);
      margin-bottom: 10px;
    }

    .offer ul {
      list-style: disc;
      margin: 6px 0 8px;
      padding-left: 20px;
    }

    .offer li {
      margin: 5px 0;
      padding-left: 0;
      position: relative;
      color: var(--text-dim);
      font-size: var(--fs-body);
    }
    .offer li::before {
      content: none;
    }

    .offer-note {
      padding: 10px 14px;
      border-radius: 22px;
      background: rgba(157, 78, 255, 0.1);
      border: 1px solid rgba(157, 78, 255, 0.3);
      color: #ccdaff;
      backdrop-filter: blur(8px);
      margin-top: 6px;
      font-size: var(--fs-small);
    }

    .offer-side {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      gap: 12px;
    }

    .offer-image-wrap {
      width: 100%;
      max-width: 320px;
      min-height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .offer-image {
      display: block;
      width: 100%;
      height: auto;
      max-height: 260px;
      object-fit: contain;
      border-radius: 18px;
      border: 1px solid rgba(157, 78, 255, 0.35);
      background: rgba(11, 16, 25, 0.45);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    }

    .big-cta {
      width: 100%;
      max-width: 300px;
      min-height: 90px;
      font-size: 2.2rem;
      font-weight: 700;
      border-radius: 50px;
      background: linear-gradient(135deg, #9d4eff, #2f81f7);
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 20px 30px -10px #9d4eff, 0 0 0 2px rgba(255, 255, 255, 0.1) inset;
      color: white;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.3s;
      margin: 0 0 8px;
      padding: 0 18px;
    }
    .big-cta.cta-image-only {
      width: auto;
      max-width: none;
      min-height: 0;
      margin: 0 0 8px;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
    .cta-main-image {
      display: block;
      width: auto;
      max-width: 300px;
      max-height: 120px;
      height: auto;
      object-fit: contain;
      border-radius: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }
    .big-cta.cta-image-only:hover {
      transform: none;
      box-shadow: none;
    }
    .big-cta:hover {
      transform: scale(1.02) translateY(-2px);
      box-shadow: 0 30px 40px -10px #9d4eff, 0 0 0 2px rgba(255, 255, 255, 0.2) inset;
    }
    .offer-price-note {
      color: var(--text-muted);
      font-size: var(--fs-small);
      text-align: center;
    }

    /* ===== ЕДИНЫЕ ЗАГОЛОВКИ ===== */
    h2 {
      font-size: var(--fs-title);
      font-weight: 500;
      margin-bottom: 8px;
      color: var(--text-main);
    }

    /* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
    @media (max-width: 1100px) {
      body {
        height: auto;
        overflow-y: auto;
        padding: 12px;
      }
      .wrap {
        height: auto;
        overflow-y: visible;
      }
      .dashboard {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        min-height: auto;
      }
      .dashboard .panel:last-child {
        grid-column: span 2;
      }
      .offer {
        height: auto;
      }
    }

    @media (max-width: 750px) {
      .dashboard {
        grid-template-columns: 1fr;
      }
      .dashboard .panel:last-child {
        grid-column: auto;
      }
      .offer-layout {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .offer-content {
        align-items: center;
      }
      .offer-badge {
        margin-left: auto;
        margin-right: auto;
      }
      .header-row {
        flex-wrap: wrap;
      }
      .brand-title {
        gap: 8px;
      }
      .brand-title img {
        width: 28px;
        height: 28px;
        max-width: 28px;
        max-height: 28px;
        flex: 0 0 28px;
        border-radius: 8px;
      }
      .brand-title h1 {
        white-space: normal;
      }
    }

    /* Низкие экраны: не обрезаем нижний блок index */
    @media (max-height: 920px) {
      body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
      }
      .wrap {
        height: auto;
        min-height: calc(100vh - 32px);
        overflow: visible;
      }
    }
.page-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  pointer-events: none;
  background: transparent;
}

.page-bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(3, 6, 11, 0.32), rgba(3, 6, 11, 0.32));
  z-index: -2;
  pointer-events: none;
}
