:root {
    --primary: #3733A1; 
    --accent: #6366F1;  
    --text-dark: #111827;
    --text-light: #4B5563;
    --btn-blue: #3E8BFF;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 12px 35px rgba(55, 51, 161, 0.04);
    --shadow-hover: 0 24px 50px rgba(99, 102, 241, 0.09);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7ff 0%, #fafafc 50%, #f0f0f9 100%);
    background-attachment: fixed;
    line-height: 1.8;
    animation: fadeIn 0.8s ease-out forwards;
    /* Kompensuojame fiksuotą navigaciją, kad tekstas nepalįstų po ja */
    padding-top: 90px; 
}

/* Pataisyta animacija (be transform), kad nesulaužytų prilipusio meniu */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; color: var(--primary); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 2.6rem; margin-bottom: 1.5rem; line-height: 1.25; }
p { color: var(--text-light); margin-bottom: 1.5rem; font-size: 1.05rem; }

/* --- NAVIGACIJA (FIKSUOTA VISADA IR MATOMA SKROLINANT) --- */
.header {
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important; 
    backdrop-filter: blur(12px);
    z-index: 99999 !important; 
    padding: 1.2rem 0; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(55, 51, 161, 0.05);
}
.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--text-dark); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* --- HERO SEKCIJOS --- */
.hero-page { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: center; padding: 5rem 24px; max-width: 1200px; margin: 0 auto; }
.hero-image-wrapper img { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--radius); }

/* --- MYGTUKAI --- */
.btn { display: inline-block; padding: 14px 36px; border-radius: 99px; font-family: 'Poppins', sans-serif; font-weight: 600; text-decoration: none; cursor: pointer; transition: var(--transition); border: none; font-size: 0.95rem; text-align: center; }
.btn-primary { background-color: var(--btn-blue); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(62, 139, 255, 0.25); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); padding: 10px 28px; margin-top: 1rem; }
.btn-outline:hover { background: var(--accent); color: var(--white); }

.section { padding: 5rem 24px; max-width: 1200px; margin: 0 auto; }

/* --- DINAMINIS PLAČIAU TEKSTAS --- */
.expandable-content { max-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.4s ease-out, max-height 0.5s ease-out; }
.expandable-content.open { max-height: 1500px; opacity: 1; margin-top: 1.5rem; }

/* --- PASLAUGŲ IR KORTELIŲ STRUKTŪRA --- */
.service-big-card { 
    background: var(--white); padding: 4rem; border-radius: var(--radius); margin-bottom: 3.5rem; 
    box-shadow: var(--shadow); border: 1px solid rgba(55, 51, 161, 0.02);
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center;
}
.service-big-card.reverse { grid-template-columns: 0.8fr 1.2fr; }
.service-big-card.reverse .service-text { order: 2; }
.service-big-card.reverse .service-image { order: 1; }
.service-image img { width: 100%; max-height: 420px; object-fit: contain; }

.grid-balanced { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-top: 3.5rem; }
.card { background: var(--white); padding: 3.5rem; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid rgba(55, 51, 161, 0.03); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* --- B1 LOGO INTEGRACIJA --- */
.b1-block { background: var(--white); padding: 4rem; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 4rem; margin-top: 5rem; }
.b1-link { display: block; flex-shrink: 0; transition: var(--transition); }
.b1-link:hover { transform: scale(1.05); }
.b1-block img { max-width: 180px; height: auto; }

/* --- FORMOS IR KONTAKTAI --- */
.form-group { margin-bottom: 1.2rem; }
.form-group input, .form-group textarea { width: 100%; padding: 16px 24px; border: 1px solid #E5E7EB; border-radius: 99px; font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--white); }
.form-group textarea { border-radius: var(--radius); height: 140px; resize: none; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }

.contact-top-grid { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; 
    align-items: stretch; 
    margin-bottom: 3rem; 
}
.contact-image-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

.contact-info-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--white); padding: 3rem 4rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 4rem; border: 1px solid rgba(55, 51, 161, 0.02); }

/* --- POPUP MODALINIS LANGAS --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 13, 20, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; pointer-events: none; transition: var(--transition); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--white); padding: 4rem; border-radius: var(--radius); max-width: 600px; width: 90%; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.2); transform: translateY(-30px); transition: var(--transition); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 25px; font-size: 2rem; cursor: pointer; color: var(--text-light); }
.captcha-container { display: flex; align-items: center; gap: 12px; background: #F3F4F6; padding: 12px 20px; border-radius: 8px; margin-bottom: 1.5rem; border: 1px solid #E5E7EB; }
.captcha-container input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }

/* --- PORAŠTĖ --- */
.footer { background-color: #0A0D14; color: #9CA3AF; padding: 5rem 0 2.5rem; margin-top: 8rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px 3rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 4rem; border-bottom: 1px solid #1F2937; }
.footer h4 { color: var(--white); margin-bottom: 1.2rem; font-size: 1.1rem; }
.footer p, .footer li { color: #9CA3AF; font-size: 0.95rem; margin-bottom: 0.6rem; list-style: none; }
.footer-links a { display: block; color: #9CA3AF; text-decoration: none; margin-bottom: 0.8rem; transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.fb-round-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background-color: #1877F2; border-radius: 50%; transition: var(--transition); margin-top: 0.5rem; text-decoration: none; }
.fb-round-icon:hover { transform: translateY(-3px); background-color: #1565C0; }
.footer-bottom { max-width: 1200px; margin: 2.5rem auto 0; padding: 0 24px; display: flex; justify-content: space-between; color: #6B7280; font-size: 0.9rem; }

/* --- MOBILIOJO TELEFONO DIZAINAS (Iki 768px) --- */
@media (max-width: 768px) {
    h1 { font-size: 1.4rem; margin-bottom: 0.8rem; }
    h2, h3, h4 { font-size: 1.1rem; }
    p, li { font-size: 0.85rem; margin-bottom: 0.8rem; line-height: 1.5; }

    /* Meniu sutvarkymas: nuorodos po logo ir visada prilipęs headeris */
    .header { padding: 0.8rem 0 !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; }
    .navbar { flex-direction: column !important; gap: 10px !important; padding: 0 16px !important; align-items: center !important; }
    .nav-links { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 10px 15px !important; justify-content: center !important; width: 100% !important; }
    .nav-links a { font-size: 0.9rem !important; padding: 2px 0 !important; }
    
    /* Padidinta kompensacija, kad tekstas nepalįstų po dviejų eilučių mobiliuoju meniu */
    body { padding-top: 140px !important; }

    /* Teksto lygiavimas paliekamas toks, koks jums patiko */
    p, 
    .hero-page p, 
    .section p, 
    .expandable-content p, 
    .card p, 
    .service-text p {
        text-align: justify !important;
        width: 100%;
    }

    .hero-page { padding: 2rem 16px; grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }
    .section { padding: 2rem 16px; }
    
    .hero-image-wrapper img, .service-image img { max-height: 220px; }
    .contact-image-wrapper img { max-height: 200px; }
    .b1-block img { max-width: 100px; }

    .grid-balanced, .contact-top-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .card, .service-big-card, .b1-block { padding: 1.5rem; gap: 1.2rem; text-align: left; }
    .service-big-card { grid-template-columns: 1fr !important; }
    .service-big-card.reverse .service-text, .service-big-card.reverse .service-image { order: unset !important; }
    .b1-block { flex-direction: column; align-items: flex-start; }
    
    /* Centruojame visus mygtukus mobiliajame formate ties viduriu */
    .btn { 
        display: block !important; 
        margin: 1.5rem auto 0 auto !important; 
        max-width: max-content !important; 
        padding: 10px 24px; 
        font-size: 0.85rem; 
        text-align: center !important; 
    }

    .contact-info-strip { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.2rem; text-align: left; }
    .form-group input, .form-group textarea { padding: 12px 16px; font-size: 0.9rem; }
    
    .footer { margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 1.5rem; text-align: left; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}