/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --bg-dark: #0a0e1a;
    --bg-section: #0f1629;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.4);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --viber: #7360f2;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
    --container: 1200px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.35s var(--ease);
    --radius: 16px;
    --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 120px 0; }

/* ===== TYPOGRAPHY HELPERS ===== */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: btnShine 3s infinite;
}
@keyframes btnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-viber {
    background: var(--viber);
    color: white;
    box-shadow: 0 4px 15px rgba(115, 96, 242, 0.3);
}
.btn-viber:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(115, 96, 242, 0.4);
}

.full-width { width: 100%; justify-content: center; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    font-size: 0.82rem;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.top-bar a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.top-bar a:hover { color: var(--primary-light); }

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    border-left: 1px solid var(--border);
    padding-left: 1rem;
}
.lang-switcher a {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.75rem;
}
.lang-switcher a.active {
    background: var(--primary);
    color: white;
}

/* ===== HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.main-header.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 1001;
}
.logo-img {
    height: 36px;
    width: auto;
    border-radius: 6px;
}
.logo-accent { color: var(--primary-light); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}
.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active-link {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.header-actions { z-index: 1001; display: flex; align-items: center; gap: 1rem; }

.header-lang-switcher {
    display: flex;
    gap: 0.25rem;
    border: none;
    padding: 0;
    border-left: none;
}
.header-lang-switcher a {
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.header-lang-switcher a:hover {
    color: white;
    border-color: var(--primary);
}
.header-lang-switcher a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}
.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
                var(--bg-dark);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.stat-number { color: var(--primary-light); }

.stat-label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

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

/* ===== SERVICES ===== */
.services { background: var(--bg-section); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.service-card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.card-link {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.card-link:hover { color: var(--accent-light); }

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 15px 30px var(--primary-glow);
}
.badge-number { display: block; font-size: 2rem; font-weight: 800; font-family: 'Outfit', sans-serif; }
.badge-text { font-size: 0.8rem; color: rgba(255,255,255,0.8); }

.about-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.features { display: flex; flex-direction: column; gap: 1.5rem; }

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.feature-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.feature-item strong { display: block; margin-bottom: 0.25rem; }
.feature-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== PROCESS ===== */
.process { background: var(--bg-section); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.step {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.step:hover .step-num {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

.step-line {
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(99,102,241,0.3), rgba(99,102,241,0.05));
    z-index: 0;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.05));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.cta-text h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-text p { color: var(--text-muted); }

.cta-actions { display: flex; gap: 1rem; flex-shrink: 0; }

/* ===== CONTACT ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-info {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.05));
    border-right: 1px solid var(--border);
}

.contact-info h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-list strong { display: block; margin-bottom: 0.15rem; font-size: 0.85rem; color: var(--text-muted); }
.contact-icon.viber-icon { background: rgba(115, 96, 242, 0.1); border-color: rgba(115, 96, 242, 0.2); color: var(--viber); }
.contact-list a { color: var(--text-main); transition: var(--transition); }
.contact-list a:hover { color: var(--primary-light); }

.contact-form {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-dark);
    color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

/* ===== FOOTER ===== */
.main-footer {
    background: #060912;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-info p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

.social-links {
    display: flex;
    gap: 0.75rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-main);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px var(--primary-glow);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover { transform: translateY(-4px); }

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ADMIN TOOLS ===== */
.admin-tools { background: var(--bg-section); }

.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.admin-tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.admin-tool-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.04));
    border-bottom: 1px solid var(--border);
}
.tool-icon { font-size: 1.5rem; }
.tool-header h3 { font-size: 1.1rem; margin: 0; }

.tool-body {
    padding: 1.5rem 2rem 2rem;
}
.tool-body label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.tool-input-row {
    display: flex;
    gap: 0.75rem;
}
.tool-input-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}
.tool-input-row input:focus {
    border-color: var(--primary);
    background: rgba(99,102,241,0.05);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.tool-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 10px;
}

.tool-result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--text-muted);
    max-height: 220px;
    overflow-y: auto;
    display: none;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}
.tool-result.visible { display: block; }
.tool-result .success { color: #10b981; }
.tool-result .error { color: #ef4444; }
.tool-result .info { color: var(--primary-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .step-line { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.3rem; padding: 1rem; }

    .header-actions .btn { display: none; }
    .header-lang-switcher { display: flex; }
    .mobile-menu-toggle { display: flex; }

    .hero { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-stats { justify-content: center; gap: 2rem; flex-wrap: wrap; }

    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-badge { bottom: -15px; right: 10px; padding: 1rem; }
    .badge-number { font-size: 1.5rem; }

    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .admin-tools-grid { grid-template-columns: 1fr; }

    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cta-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .section-padding { padding: 80px 0; }
    .process-steps { grid-template-columns: 1fr; }
    .contact-info, .contact-form { padding: 2rem; }
    .tool-input-row { flex-direction: column; }
}

/* ===== ARTICLES SECTION ===== */
.articles { background: var(--bg-dark); }

.articles-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* Featured card spans full height on left */
.article-card.featured {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: default;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.article-img-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card.featured .article-img-wrap { height: 260px; }
.article-card:not(.featured) .article-img-wrap { height: 180px; }

.article-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.article-card:hover .article-img-wrap img { transform: scale(1.05); }

.article-tag-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.article-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}

.article-card.featured .article-body { padding: 2rem; }

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.author-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99,102,241,0.3);
    background: var(--bg-section);
    flex-shrink: 0;
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0;
}
.article-card.featured .article-title { font-size: 1.55rem; }

.article-sub {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 500;
    margin: 0;
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.article-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    border-radius: 50px;
}

/* ===== ARTICLE MODAL ===== */
.article-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 18, 0.88);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.article-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.article-modal {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s var(--ease);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.article-modal-overlay.active .article-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: sticky;
    top: 1rem;
    float: right;
    margin: 1rem 1rem 0 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }

.modal-header-img {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -52px; /* overlap with close btn area */
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 2rem 2.5rem 2.5rem;
}

.modal-meta {
    margin-bottom: 1.25rem;
}

.modal-meta .article-author {
    font-size: 0.95rem;
}

.modal-meta .article-author div {
    display: flex;
    flex-direction: column;
}

.modal-meta .article-author strong { color: var(--text-main); }
.modal-meta .article-author span { color: var(--text-dim); font-size: 0.82rem; }

.modal-body h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-subtitle {
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.modal-text { color: var(--text-muted); line-height: 1.8; font-size: 0.97rem; }
.modal-text p { margin-bottom: 1rem; }
.modal-text h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin: 1.5rem 0 0.6rem;
    font-family: 'Outfit', sans-serif;
}
.modal-text ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.modal-text li { color: var(--text-muted); }
.modal-text strong { color: var(--text-main); }

/* ===== ARTICLES RESPONSIVE ===== */
@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .article-card.featured { grid-row: auto; }
    .article-card.featured .article-img-wrap { height: 220px; }
}

@media (max-width: 480px) {
    .modal-body { padding: 1.5rem; }
    .modal-header-img { height: 200px; margin-top: -44px; }
}
