  :root {
      --bg:        #06090f;
      --bg2:       #0b1120;
      --bg3:       #0f1929;
      --panel: rgba(17, 29, 48, 0.85);
      --border:    rgba(0,200,255,0.12);
      --border2:   rgba(0,200,255,0.25);
      --cyan:      #00c8ff;
      --cyan2:     #00e5ff;
      --gold:      #f0c040;
      --text:      #cdd8ee;
      --text-muted:#6b8098;
      --text-dim:  #3a5070;
      --white:     #eef4ff;
      --eu-blue:   #003399;
      --eu-stars:  #ffcc00;
      --red:       #ff4060;
      --radius:    10px;
      --radius-lg: 18px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  /* Добавяме тъмен слой с 70% плътност (0.7) над картинката */
  background: linear-gradient(rgba(6, 9, 15, 0.7), rgba(6, 9, 15, 0.7)), 
              url('../background.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}
    /* ──────────────── GRID BACKGROUND ──────────────── */
    /* Намерете body::before и добавете/променете само следните редове */
    body::before {
      content: '';
      position: fixed; 
      inset: -50px; /* Увеличаваме малко обхвата (вместо 0), за да има аванс за движение без да се виждат бели ръбове */
      z-index: 0;
      background: url('../background.png') no-repeat center center fixed;
      background-size: cover;
      pointer-events: none;
      opacity: 0.08;
      
      /* Добавяме трансформация, която ще контролираме с JS */
      transform: translateY(var(--scroll-offset, 0px));
      will-change: transform; /* Оптимизация за плавно движение */
    }

    /* ──────────────── NAV ──────────────── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 5%;
      height: 100px;
      background: rgba(6,9,15,0.82);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border);
    }
    .nav-logo {
      display: flex; align-items: center; gap: 16px; /* Увеличено разстояние до текста */
      text-decoration: none;
    }
    
    /* Увеличен размер на контейнера на логото за по-добра видимост */
    .nav-logo-img-wrap {
      width: 180px; height: 84px; /* Увеличено от 42px на 56px */
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid rgba(0,240,255,0.35);
      box-shadow: 0 0 20px rgba(0,200,255,0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      background: #0d1625;
      flex-shrink: 0; /* Предпазва логото от свиване на мобилни устройства */
    }
    
    /* Фина настройка на мащаба и позицията на банера в новия размер */
    .nav-logo-img-wrap img {
      width: 165%; height: 165%;
      object-fit: cover;
      object-position: 16.5% 53%; /* Центрира точно върху зеления щит */
    }

    .nav-logo-text { font-family: 'Syne', sans-serif; }
    .nav-logo-text strong { display: block; font-size: 17px; font-weight: 800; color: var(--white); letter-spacing: 0.02em; line-height: 1.2; }
    .nav-logo-text span { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--cyan); letter-spacing: 0.12em; text-transform: uppercase; }

    .nav-links {
      display: flex; align-items: center; gap: 32px;
      list-style: none;
    }
    .nav-links a {
      text-decoration: none; color: var(--text-muted);
      font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
      text-transform: uppercase;
      transition: color .2s;
    }
    .nav-links a:hover { color: var(--cyan); }

    .nav-cta {
      background: transparent;
      border: 1px solid var(--cyan);
      color: var(--cyan);
      padding: 8px 20px;
      border-radius: 6px;
      font-size: 13px; font-weight: 500;
      cursor: pointer; text-decoration: none;
      transition: background .2s, color .2s;
      font-family: 'DM Sans', sans-serif;
    }
    .nav-cta:hover { background: var(--cyan); color: var(--bg); }

    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
    .hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

    /* ──────────────── HERO ──────────────── */
    #hero {
      min-height: 100vh;
      display: flex; flex-direction: column; justify-content: center; align-items: center;
      padding: 120px 5% 80px;
      position: relative; overflow: hidden;
      text-align: center;
    }

.hero-badge img, .shield-icon img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

    #hero h1 {
      font-family: 'Syne', sans-serif;
      font-size: clamp(42px, 7vw, 92px);
      font-weight: 800;
      line-height: 1.0;
      color: var(--white);
      letter-spacing: -0.02em;
      max-width: 820px;
      margin-bottom: 28px;
      margin-left: auto; margin-right: auto;
    }
    #hero h1 .accent { color: var(--cyan); }
    #hero h1 .accent2 { color: var(--eu-stars); }

    .hero-sub {
      color: var(--text);
      font-weight: 400;
      max-width: 560px;
      margin-bottom: 48px;
      font-weight: 300;
      margin-left: auto; margin-right: auto;
    }
    .badge-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.badge-link:hover {
  opacity: 0.85; /* Дискретен ефект при посочване с мишката, показващ че е кликаемо */
}
    .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
    .btn-primary {
      background: linear-gradient(135deg, var(--cyan), #0080ff);
      color: #000; font-weight: 700;
      padding: 14px 32px; border-radius: 8px;
      text-decoration: none; font-size: 15px;
      box-shadow: 0 0 32px rgba(0,200,255,0.35);
      transition: transform .2s, box-shadow .2s;
      font-family: 'Syne', sans-serif;
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 48px rgba(0,200,255,0.55); }
    .btn-secondary {
      background: transparent; border: 1px solid var(--border2);
      color: var(--text); padding: 14px 32px; border-radius: 8px;
      text-decoration: none; font-size: 15px;
      transition: border-color .2s, color .2s;
    }
    .btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

    .hero-stats {
      margin-top: 72px;
      display: flex; gap: 48px; flex-wrap: wrap;
      justify-content: center;
    }
    .stat { border-left: 2px solid var(--cyan); padding-left: 18px; }
    .stat-num { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; color: var(--white); }
    .stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

    /* Нова заглавна визия с Вашето оригинално лого */
    .hero-visual {
      position: absolute; right: 2%; top: 50%;
      transform: translateY(-50%);
      width: clamp(340px, 46vw, 680px);
      opacity: 0.05;
      pointer-events: none;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 40px rgba(0,200,255,0.15);
      border: 1px solid rgba(0,200,255,0.2);
    }
    .hero-visual img { width: 100%; display: block; height: auto; }

    /* Glowing orb */
    .orb {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      filter: blur(80px);
    }
    .orb-1 { width: 500px; height: 500px; background: rgba(0,51,153,0.35); top: -100px; right: 10%; }
    .orb-2 { width: 300px; height: 300px; background: rgba(0,200,255,0.12); bottom: 10%; left: -50px; }

    /* ──────────────── SECTION SHARED ──────────────── */
    section { position: relative; z-index: 1; }
    .container { max-width: 1140px; margin: 0 auto; padding: 0 5%; }

    .section-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; letter-spacing: 0.18em;
      color: var(--cyan); text-transform: uppercase;
      margin-bottom: 14px; display: block;
    }
    .section-title {
      font-family: 'Syne', sans-serif;
      font-size: clamp(28px, 4vw, 48px);
      font-weight: 800; color: var(--white);
      line-height: 1.1; margin-bottom: 20px;
    }
    .section-body { color: var(--text-muted); max-width: 560px; font-size: 16px; }

    /* ──────────────── SERVICES ──────────────── */
    #services { padding: 100px 0; }
    .services-header { margin-bottom: 60px; }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
    }
    .service-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 36px 32px;
      position: relative; overflow: hidden;
      transition: border-color .3s, transform .3s;
    }
    .service-card::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--cyan), transparent);
      opacity: 0; transition: opacity .3s;
    }
    .service-card:hover { border-color: var(--border2); transform: translateY(-4px); }
    .service-card:hover::before { opacity: 1; }

    .service-icon {
      width: 52px; height: 52px; border-radius: 12px;
      background: rgba(0,200,255,0.08);
      border: 1px solid rgba(0,200,255,0.2);
      display: flex; align-items: center; justify-content: center;
      font-size: 24px; margin-bottom: 24px;
    }
    .service-card h3 {
      font-family: 'Syne', sans-serif;
      font-size: 20px; font-weight: 700;
      color: var(--white); margin-bottom: 12px;
    }
    .service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
    .service-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
    .tag {
      background: rgba(0,200,255,0.07);
      border: 1px solid rgba(0,200,255,0.15);
      color: var(--cyan); padding: 4px 10px;
      border-radius: 4px; font-size: 11px;
      font-family: 'JetBrains Mono', monospace;
      letter-spacing: 0.06em;
    }

    /* ──────────────── WHY US ──────────────── */
    #why {
      padding: 100px 0;
      background: linear-gradient(180deg, transparent, var(--bg2), transparent);
    }
    .why-inner {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 80px; align-items: center;
    }
    .why-list { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
    .why-item {
      display: flex; gap: 16px; align-items: flex-start;
      padding: 20px; border-radius: var(--radius);
      border: 1px solid transparent;
      transition: border-color .2s, background .2s;
    }
    .why-item:hover { background: var(--panel); border-color: var(--border); }
    .why-num {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px; color: var(--cyan); min-width: 28px;
      margin-top: 3px;
    }
    .why-item h4 { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); margin-bottom: 6px; }
    .why-item p { font-size: 14px; color: var(--text-muted); }

    .why-visual {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 40px;
      position: relative; overflow: hidden;
    }
    .compliance-meter { margin-bottom: 28px; }
    .compliance-meter label {
      display: flex; justify-content: space-between;
      font-size: 13px; margin-bottom: 8px;
    }
    .compliance-meter label span:first-child { color: var(--text); }
    .compliance-meter label span:last-child { color: var(--cyan); font-family: 'JetBrains Mono', monospace; }
    .bar-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
    .bar-fill {
      height: 100%; border-radius: 3px;
      background: linear-gradient(90deg, var(--cyan), #0080ff);
      animation: barGrow 1.4s ease forwards;
      transform-origin: left;
    }
    @keyframes barGrow { from { width: 0 } }

    .shield-badge {
      display: flex; align-items: center; gap: 16px;
      margin-top: 28px; padding: 16px;
      background: rgba(0,200,255,0.05);
      border: 1px solid var(--border);
      border-radius: var(--radius);
    }
.shield-icon { 
  width: 24px; height: 16px; 
  display: flex; align-items: center; 
  flex-shrink: 0;
}
    .shield-text strong { display: block; color: var(--white); font-family: 'Syne', sans-serif; }
    .shield-text span { font-size: 13px; color: var(--text-muted); }

    /* ──────────────── BLOG ──────────────── */
    #blog { padding: 100px 0; }
    .blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; flex-wrap: wrap; gap: 20px; }
    .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

    .blog-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      display: flex; flex-direction: column;
      transition: border-color .3s, transform .3s;
    }
    .blog-card:hover { border-color: var(--border2); transform: translateY(-4px); }

    .blog-card-header {
      padding: 28px 28px 20px;
      border-bottom: 1px solid var(--border);
    }
    .blog-meta {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 14px;
    }
    .blog-category {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
      padding: 3px 10px; border-radius: 4px;
    }
    .cat-gdpr { background: rgba(0,51,153,0.3); color: #80aaff; border: 1px solid rgba(0,51,153,0.5); }
    .cat-nis2 { background: rgba(240,192,64,0.1); color: var(--gold); border: 1px solid rgba(240,192,64,0.3); }
    .cat-cyber { background: rgba(0,200,255,0.08); color: var(--cyan); border: 1px solid rgba(0,200,255,0.2); }
    .blog-date { font-size: 12px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

    .blog-card h3 {
      font-family: 'Syne', sans-serif;
      font-size: 18px; font-weight: 700; color: var(--white);
      line-height: 1.35; margin-bottom: 10px;
    }
    .blog-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

    .blog-card-footer {
      padding: 18px 28px;
      display: flex; justify-content: space-between; align-items: center;
      margin-top: auto;
    }
    .read-more {
      font-size: 13px; color: var(--cyan); text-decoration: none;
      display: flex; align-items: center; gap: 6px;
      transition: gap .2s;
      font-weight: 500;
    }
    .read-more:hover { gap: 10px; }
    .read-more::after { content: '→'; }
    .read-time { font-size: 12px; color: var(--text-dim); }

    .blog-featured {
      background: linear-gradient(135deg, rgba(0,51,153,0.2), rgba(0,200,255,0.05));
      border-color: rgba(0,100,200,0.3);
    }

    /* ──────────────── TESTIMONIALS ──────────────── */
    #testimonials { padding: 100px 0; background: linear-gradient(180deg, transparent, var(--bg2), transparent); }
    .testi-header { text-align: center; margin-bottom: 60px; }
    .testi-header .section-body { margin: 0 auto; text-align: center; }

    .testi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 24px;
    }
    .testi-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      position: relative;
      transition: border-color .3s, transform .3s;
    }
    .testi-card:hover { border-color: var(--border2); transform: translateY(-4px); }

    .testi-card::before {
      content: '"';
      position: absolute; top: 16px; right: 24px;
      font-size: 80px; line-height: 1;
      color: rgba(0,200,255,0.07);
      font-family: Georgia, serif;
    }
    .stars { color: var(--eu-stars); font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
    .testi-card blockquote {
      font-size: 15px; color: var(--text);
      line-height: 1.7; font-style: italic; margin-bottom: 24px;
    }
    .testi-author { display: flex; align-items: center; gap: 14px; }
    .testi-avatar {
      width: 44px; height: 44px; border-radius: 50%;
      background: linear-gradient(135deg, var(--eu-blue), var(--cyan));
      display: flex; align-items: center; justify-content: center;
      font-family: 'Syne', sans-serif; font-weight: 800;
      font-size: 15px; color: white;
      flex-shrink: 0;
    }
    .testi-info strong { display: block; color: var(--white); font-family: 'Syne', sans-serif; font-size: 14px; }
    .testi-info span { font-size: 12px; color: var(--text-muted); }
    .testi-company {
      margin-top: 6px;
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px; letter-spacing: 0.1em;
      color: var(--cyan); text-transform: uppercase;
    }

    /* ──────────────── CONTACT ──────────────── */
    #contact { padding: 100px 0 80px; }
    .contact-inner {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 80px; align-items: start;
    }
    .contact-info { }
    .contact-items { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
    .contact-item {
      display: flex; align-items: flex-start; gap: 16px;
      padding: 16px; border-radius: var(--radius);
      border: 1px solid var(--border);
      background: var(--panel);
    }
    .contact-item-icon { font-size: 20px; }
    .contact-item-body strong { color: var(--white); display: block; font-size: 13px; margin-bottom: 2px; }
    .contact-item-body span { color: var(--text-muted); font-size: 14px; }

    .contact-form {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 40px;
    }
    .form-title { font-family: 'Syne', sans-serif; font-size: 22px; color: var(--white); margin-bottom: 28px; }
    .form-title { font-family: 'Syne', sans-serif; font-size: 22px; color: var(--white); margin-bottom: 28px; }
    .form-group { margin-bottom: 20px; }
    .form-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      color: var(--white);
      padding: 12px 16px;
      font-size: 14px;
      font-family: 'DM Sans', sans-serif;
      outline: none; transition: border-color .2s;
      resize: vertical;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus { border-color: var(--cyan); }
    .form-group select { cursor: pointer; }
    .form-group select option { background: var(--bg2); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .submit-btn {
      width: 100%;
      background: linear-gradient(135deg, var(--cyan), #0080ff);
      color: #000; font-weight: 700;
      padding: 14px; border: none; border-radius: 8px;
      font-size: 15px; cursor: pointer;
      font-family: 'Syne', sans-serif; letter-spacing: 0.04em;
      transition: opacity .2s, transform .2s;
      margin-top: 8px;
    }
    .submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }

    /* ──────────────── FOOTER ──────────────── */
    footer {
      border-top: 1px solid var(--border);
      padding: 48px 0 32px;
      background: var(--bg2);
    }
    .footer-inner {
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px; margin-bottom: 40px;
    }
    .footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 16px; max-width: 260px; line-height: 1.6; }
    .footer-col h4 { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); margin-bottom: 16px; font-size: 14px; }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-col ul a { text-decoration: none; color: var(--text-muted); font-size: 13px; transition: color .2s; }
    .footer-col ul a:hover { color: var(--cyan); }
    .footer-bottom {
      border-top: 1px solid var(--border);
      padding-top: 28px;
      display: flex; justify-content: space-between; align-items: center;
      flex-wrap: wrap; gap: 12px;
    }
    .footer-bottom p { font-size: 12px; color: var(--text-dim); }
    .eu-cert {
      display: flex; align-items: center; gap: 8px;
      font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace;
    }

    /* ──────────────── MOBILE ──────────────── */
    @media (max-width: 900px) {
      .nav-links, .nav-cta { display: none; }
      .hamburger { display: flex; }
      nav.open .nav-links {
        display: flex; flex-direction: column;
        position: fixed; top: 70px; left: 0; right: 0;
        background: rgba(6,9,15,0.97);
        padding: 24px 5%; border-bottom: 1px solid var(--border);
        gap: 20px;
      }
      nav.open .nav-links a { font-size: 16px; }
      .why-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
      .footer-inner { grid-template-columns: 1fr 1fr; }
      .hero-visual { display: none; }
      .hero-stats { gap: 32px; }
    }
    @media (max-width: 600px) {
      .footer-inner { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
    }

    /* ──────────────── SCROLL REVEAL ──────────────── */
    .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.visible { opacity: 1; transform: none; }

    /* ──────────────── QUIZ COMPONENT (Точка 1) ──────────────── */
.quiz-container {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.quiz-header { margin-bottom: 24px; }
.quiz-main-title { font-family: 'Syne', sans-serif; font-size: 22px; color: var(--white); font-weight: 700; }

.quiz-progress-bar {
  width: 100%; height: 4px; background: rgba(255,255,255,0.05);
  border-radius: 2px; margin-bottom: 32px; overflow: hidden;
}
.quiz-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--cyan), var(--cyan2));
  transition: width 0.4s ease;
}

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeInQuiz 0.4s ease forwards; }

@keyframes fadeInQuiz {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question { font-family: 'Syne', sans-serif; font-size: 18px; color: var(--white); margin-bottom: 20px; }
.quiz-options { display: grid; grid-template-columns: 1fr; gap: 12px; }

@media (min-width: 650px) {
  .quiz-options { grid-template-columns: 1fr 1fr; }
}

.quiz-opt-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 14px; text-align: left;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.quiz-opt-btn:hover {
  background: rgba(0, 200, 255, 0.08);
  border-color: var(--cyan);
  color: var(--white);
}
/* ──────────────── COOKIE BANNER (Точка 5) ──────────────── */
/* ──────────────── ОБНОВЕН COOKIE BANNER ──────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px; /* Малко по-компактна ширина за по-добър баланс */
  background: rgba(17, 29, 48, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none; /* Контролира се през JS */
  animation: slideInUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInUpCookie {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-text strong {
  display: block;
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 8px;
}

.cookie-text p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 20px 0; /* Долно разстояние, което отделя текста от бутоните под него */
}

.cookie-text a {
  color: var(--cyan);
  text-decoration: underline;
}

/* Бутоните вече се позиционират директно под текста */
.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end; /* Подравнява бутоните в долния десен ъгъл на банера */
}

/* На мобилни устройства банерът заема цялата ширина с еднакви отстояния */
@media (max-width: 480px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

.cookie-btn {
  padding: 9px 20px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn-reject:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.btn-accept {
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  border: none;
  color: var(--bg);
}

.btn-accept:hover {
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
  transform: translateY(-1px);
} 
/* ==========================================================================
   HIGH-TECH BLOG MODAL STYLES (Стъпка 3)
   ========================================================================== */

/* Главният контейнер, който покрива целия екран */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 10000; /* Сигурност, че ще бъде над абсолютно всичко, дори над навигацията */
  display: none;  /* Скрит по подразбиране, активира се чрез JS клас .active */
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Класът, който JS ще добавя за показване */
.blog-modal.active {
  display: flex;
}

/* Тъмният полупрозрачен фон зад прозореца */
.blog-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 23, 0.85);
  backdrop-filter: blur(8px); /* Модерен размиващ ефект за фоновия сайт */
  animation: fadeInModalOverlay 0.25s ease forwards;
}

/* Самият изскачащ прозорец (картичката със статията) */
.blog-modal-window {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 85vh; /* Ограничаваме височината до 85% от екрана */
  background: var(--panel); /* Използва същия тъмен цвят като вашите панели */
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 131, 255, 0.05);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  /* Начално състояние за анимацията */
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  animation: scaleInModalWindow 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

/* Бутонът за затваряне (Х) горе вдясно */
.blog-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  padding: 5px;
  line-height: 1;
}
.blog-modal-close:hover {
  color: var(--cyan);
  transform: rotate(90deg); /* Дискретно завъртане за по-добра интеракция */
}

/* Контейнерът със скрол, където се излива текстът */
.blog-modal-scroll {
  padding: 44px;
  overflow-y: auto; /* Позволява скролване само вътре в прозореца */
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
}

/* Стилизиране на елементите вътре в статията */
.blog-modal-scroll h2 {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
  padding-right: 40px; /* Аванс, за да не застъпи бутона Х */
  line-height: 1.3;
}

.blog-modal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.blog-modal-body p {
  margin-bottom: 18px;
}

.blog-modal-body h3 {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.blog-modal-body ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.blog-modal-body li {
  margin-bottom: 8px;
  position: relative;
}

/* Стил за съобщението по време на зареждане */
.modal-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

/* АНИМАЦИИ */
@keyframes fadeInModalOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleInModalWindow {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Адаптивност за мобилни екрани */
@media (max-width: 600px) {
  .blog-modal { padding: 10px; }
  .blog-modal-window { max-height: 92vh; }
  .blog-modal-scroll { padding: 28px 20px; }
  .blog-modal-scroll h2 { font-size: 22px; }
}
/* ──────────────── PAGINATION STYLES ──────────────── */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--white);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.2);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  color: var(--bg);
  border-color: transparent;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
/* ==========================================================================
   3D PERSPECTIVE SERVICES GRID (+20% По-големи карти & Коригиран Хедър)
   ========================================================================== */

/* 1. Контейнерът-камера */
.services-perspective {
  perspective: 2000px;
  width: 100%;
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* 2. Изометричната решетка */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 410px);
  gap: 50px;
  
  transform: rotateX(25deg) rotateZ(-10deg);
  transform-style: preserve-3d;
  
  padding: 30px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-perspective:hover .services-grid {
  transform: rotateX(25deg) rotateZ(-10deg);
}

/* 3. Стил на картите */
.service-3d-card {
  position: relative;
  width: 410px;  
  height: 290px; 
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  cursor: default;
  
  box-shadow: -25px 25px 50px rgba(0, 0, 0, 0.75), 
              0 0 35px rgba(0, 131, 255, 0.02);
  
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.45s ease, 
              border-color 0.45s ease;
}

/* 4. Вътрешно съдържание */
.service-3d-content {
  position: absolute;
  inset: 0;
  padding: 35px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(11, 21, 36, 0.9), rgba(7, 13, 23, 0.95));
  border-radius: var(--radius-lg);
  
  transform: translateZ(20px); 
  transition: transform 0.45s ease;
}

/* НОВО: Нов хедър контейнер за подредба на един ред */
.service-3d-header {
  display: flex;
  align-items: center; /* Центрира иконата и заглавието вертикално */
  gap: 15px; /* Разстояние между иконата и заглавието */
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 200, 255, 0.1); /* Дискретна кибер линия */
}

.service-3d-icon {
  font-size: 34px; 
  filter: drop-shadow(-5px 5px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.45s ease;
  line-height: 1;
}

.service-3d-content h3 {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-size: 21px; 
  font-weight: 600;
  margin: 0; /* Изчистване на старите марджини */
}

.service-3d-content p {
  color: var(--text-muted);
  font-size: 14.5px; 
  line-height: 1.6;
  margin-bottom: auto;
}

/* Стил за линка (Правим го да изглежда като интерактивен бутон) */
.service-3d-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.5px;
  margin-top: 20px;
  opacity: 0.8;
  cursor: pointer; /* Слагаме pointer само на линка */
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  display: inline-block;
  width: fit-content;
}

/* ==========================================================================
   5. НАПОМПАНИ HOVER ЕФЕКТИ
   ========================================================================== */

.service-3d-card:hover {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(100px) scale(1.05) !important;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 
              0 0 60px rgba(0, 200, 255, 0.45);
  border-color: var(--cyan);
  z-index: 10;
}

.service-3d-card:hover .service-3d-content {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px) !important;
  background: linear-gradient(135deg, rgba(15, 29, 48, 0.95), rgba(7, 13, 23, 0.98));
}

.service-3d-card:hover .service-3d-icon {
  transform: scale(1.15) rotate(5deg); /* Леко завъртане на иконата при фокус */
}

.service-3d-card:hover .service-3d-link {
  opacity: 1;
  padding-left: 8px;
  color: var(--cyan2);
}

/* ==========================================================================
   НОВО: СТИЛИЗАЦИЯ НА МОДАЛНИЯ ПРОЗОРЕЦ (СТЪКЛЕН ЕФЕКТ & ВЪТРЕШЕН СКРОЛ)
   ========================================================================== */

.service-modal {
  display: none; /* Скрит по подразбиране */
  position: fixed;
  z-index: 9999; /* Най-отгоре над всичко */
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 7, 13, 0.7); 
  backdrop-filter: blur(12px); /* Замъгляване на задния план */
  
  align-items: center;     /* Центрира модала вертикално */
  justify-content: center; /* Центрира модала хоризонтално */
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;        /* Забранява външния скрол */
}

/* Когато модалът е активен (Класът, който JavaScript добавя) */
.service-modal.show {
  display: flex !important;
  opacity: 1;
}

.service-modal-content {
  background: linear-gradient(135deg, #0f1929, #070d17);
  border: 1px solid var(--border2);
  padding: 40px;
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 200, 255, 0.15);
  
  /* ТУК Е ФИКСЪТ ЗА СКРОЛА: */
  max-height: 85vh;       /* Прозорецът заема максимум 85% от височината на екрана */
  overflow-y: auto;       /* Активира вътрешен скролбар само за дългия текст */
  
  transform: translateY(-30px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-modal.show .service-modal-content {
  transform: translateY(0);
}

/* Бутон за затваряне (Х) */
.service-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: var(--text-muted);
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 12; /* Да е над скролиращия текст */
}

.service-modal-close:hover {
  color: var(--red);
  transform: scale(1.1);
}

/* Стилизация на съдържанието вътре */
.modal-service-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 200, 255, 0.2);
}

.modal-service-icon {
  font-size: 45px;
}

.modal-service-title {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  color: var(--white);
  font-weight: 700;
}

.modal-service-body {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.8;
}

.modal-service-body p {
  margin-bottom: 20px;
}

.modal-service-list {
  list-style: none;
  margin-top: 15px;
}

.modal-service-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-service-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: bold;
}

/* Красив персонализиран скролбар за самия модал */
.service-modal-content::-webkit-scrollbar {
  width: 6px;
}
.service-modal-content::-webkit-scrollbar-track {
  background: rgba(4, 7, 13, 0.5);
  border-radius: 10px;
}
.service-modal-content::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 10px;
}

/* ==========================================================================
   6. РЕСПОНСИВ ЗА ТЕЛЕФОНИ
   ========================================================================== */
@media (max-width: 991px) {
  .services-perspective {
    perspective: none;
    padding: 20px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    width: 100%;
    gap: 24px;
    transform: none !important;
    padding: 0;
  }
  
  .service-3d-card {
    width: 100%;
    height: auto;
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  
  .service-3d-content {
    position: relative;
    inset: auto;
    padding: 28px;
    transform: none !important;
  }

  .service-3d-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .service-modal-content {
    padding: 30px 20px;
    max-height: 90vh;
  }
}
/* ==========================================================================
   FAQ SECTION STYLE (Хай-тек Акордеон)
   ========================================================================== */
.faq-section {
  padding: 100px 0;
  background: var(--background);
}

.faq-grid {
  max-width: 850px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: linear-gradient(135deg, rgba(11, 21, 36, 0.7), rgba(7, 13, 23, 0.9));
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.1);
}

.faq-question {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17.5px;
  color: var(--white);
  font-weight: 600;
  margin: 0;
  padding-right: 20px;
}

.faq-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  color: var(--cyan);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0; /* Скрит по подразбиране */
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 30px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  padding-bottom: 24px;
  margin: 0;
}

/* Клас за отворен въпрос (за JavaScript) */
.faq-item.active {
  border-color: var(--cyan);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg); /* Плюсът става на хикс */
  color: var(--red);
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Отваря се плавно */
  transition: max-height 0.5s ease-in-out;
}