/* ==========================================================================
   1. ГЛОБАЛНИ ПРОМЕНЛИВИ И ШРИФТОВЕ (Синьо-лилава технологична палитра)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800;900&display=swap');

:root {
    /* Цветове - Извлечени от логото и Avada Business */
    --color-bg-dark: #060c18;          /* Дълбок тъмен фон */
    --color-bg-card-dark: #0d1629;    /* Тъмни карти */
    --color-accent-blue: #0052ff;      /* Ярко синьо */
    --color-accent-purple: #6c5ce7;   /* Технологично лилаво */
    --color-gradient-primary: linear-gradient(135deg, #0052ff 0%, #7c3aed 100%);
    --color-gradient-text: linear-gradient(135deg, #00d2ff 0%, #925fe6 100%);
    
    /* Светла тема и неутрални тонове */
    --color-bg-light: #f4f6fb;        /* Намалява заслепяващата белота */
    --color-bg-white: #ffffff;
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    
    /* Граници и сенки */
    --border-color-light: #e2e8f0;
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(108, 92, 231, 0.15);
    
    /* Типография */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   2. НУЛИРАНЕ И БАЗОВИ СТИЛОВЕ
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   3. ТИПОГРАФИЯ И ЗАГЛАВИЯ
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.25;
}

h1 { font-size: 3.5rem; letter-spacing: -1.5px; }
h2 { font-size: 2.25rem; letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; letter-spacing: -0.3px; }

p { color: var(--color-text-muted); margin-bottom: 1rem; }
strong { color: var(--color-text-main); font-weight: 600; }

/* ==========================================================================
   4. СТАБИЛЕН ХЕДЪР
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.02);
}

.main-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.main-menu a {
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gradient-primary);
    transition: width 0.3s ease;
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--color-accent-blue);
}

.main-menu a:hover::after,
.main-menu a.active::after {
    width: 100%;
}

.main-menu a.nav-btn-highlight {
    background: var(--color-gradient-primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
}

.main-menu a.nav-btn-highlight::after {
    display: none;
}

/* ==========================================================================
   5. HERO СЕКЦИЯ (Тъмна, авторитетна, с нюанси на синьо и лилаво)
   ========================================================================== */
main { margin-top: 85px; }

.hero-section {
    position: relative;
    background-color: var(--color-bg-dark);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 82, 255, 0.25) 0%, transparent 50%);
    padding: 140px 24px 120px;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 24px;
}

.hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.highlight-gradient {
    display: block;
    background: var(--color-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 760px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* ==========================================================================
   6. БУТОНИ
   ========================================================================== */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 82, 255, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* ==========================================================================
   7. СЕКЦИИ, КАРТИ И ФОРМУЛЯРИ
   ========================================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; }

.bg-pattern {
    background-color: var(--color-bg-light);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
}

.section-header { margin-bottom: 60px; }
.text-center { text-align: center; }

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-purple);
    letter-spacing: 1.5px;
}

.header-divider {
    width: 60px;
    height: 3px;
    background: var(--color-gradient-primary);
    margin: 20px auto 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.card-tech {
    position: relative;
    background: var(--color-bg-white);
    padding: 48px 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color-light);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card-tech:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(108, 92, 231, 0.3);
}

.card-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-gradient-primary);
    border-radius: 8px 8px 0 0;
}

.card-tech h3 {
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.styled-list {
    list-style: none;
    margin-top: 20px;
}

.styled-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-accent-blue);
    border-radius: 2px;
}

/* Езикови значки и табове */
.lang-badge {
    display: inline-block;
    padding: 3px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-bg { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-en { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-missing { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; }

.lang-tab-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    color: #64748b;
    transition: all 0.2s ease;
}

.lang-tab-btn.active {
    background: var(--color-accent-blue);
    color: #ffffff;
    border-color: var(--color-accent-blue);
}

/* ==========================================================================
   8. ФУТЪР
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    /* Намаляваме огромното горно и долно отстояние (от 80px на 50px) */
    padding: 50px 0 20px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px; /* Леко събираме колоните */
    /* Намаляваме празнината до долната черта (от 60px на 30px) */
    padding-bottom: 30px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    /* Драстично увеличаваме логото (от 40px на 75px) */
    height: 75px; 
    width: auto;
    max-width: 100%;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-link {
    color: #a5b4fc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    /* Намаляваме разстоянието над копирайт текста */
    padding-top: 20px; 
    text-align: center;
    font-size: 0.85rem;
}

/* Социални мрежи във футъра */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* Прави ги идеални кръгове */
    color: var(--color-text-light);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-gradient-primary); /* Светват с корпоративния градиент */
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px); /* Повдигат се леко при посочване */
    box-shadow: 0 5px 15px rgba(0, 82, 255, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   9. МОБИЛНА ВЕРСИЯ & АДАПТИВНОСТ
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-main);
}

@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    /* Автоматично спиране на zoom при фокус във формуляри в iOS Safari */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }

    .nav-container { height: 80px !important; } 
    
    /* АГРЕСИВНО РАЗПЪВАНЕ НА ЛОГОТО С !IMPORTANT */
    .logo-img { 
        height: 65px !important; 
        width: auto !important;
        max-width: 75vw !important;
    }
    
    .mobile-menu-btn { display: flex; }
    
    .nav-wrapper {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-wrapper.is-open { display: block; }
    .main-menu { flex-direction: column; padding: 20px; gap: 16px; }
    .hero-buttons { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; }

    /* МАТЕМАТИЧЕСКО ОГРАНИЧЕНИЕ ЗА ЗАГЛАВИЕТО С !IMPORTANT */
    .hero-title {
        font-size: 2.2rem !important; 
        /* Изкуствено ограничаваме ширината до 290px. Това ГАРАНТИРА, че пренасянето ще бъде хармонично на малки екрани */
        max-width: 290px !important; 
        margin-left: auto !important;
        margin-right: auto !important;
        line-height: 1.25 !important;
    }
}

/* Помощни класове за вътрешни страници */
.hero-inner {
    padding: 120px 24px 80px !important;
}

.hero-title-inner {
    font-size: 3rem !important;
}

.card-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-accent-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.card-title-link a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title-link a:hover {
    color: var(--color-accent-blue);
}