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

:root {
    --navy: #0f2742;
    --navy-2: #163a5f;
    --primary: #1f5fa8;
    --primary-dark: #184c87;
    --primary-soft: #e8f0fa;
    --text: #1f2a37;
    --muted: #5b6776;
    --border: #e3e8ef;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --success: #1e7b4f;
    --error: #b42318;
    --radius: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 39, 66, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 39, 66, 0.08);
    --transition: 0.2s ease;
    --header-h: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--primary);
}

[hidden] {
    display: none !important;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    z-index: 2000;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Navigacija */
header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color var(--transition), box-shadow var(--transition);
}

header.scrolled,
header.solid {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

nav {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    flex: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-links a {
    display: block;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
    color: var(--navy);
    background: var(--bg-alt);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

/* Kalbos perjungiklis */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    background: #fff;
}

.lang-switch a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background var(--transition), color var(--transition);
}

.lang-switch a:hover {
    color: var(--navy);
}

.lang-switch a[aria-current="true"] {
    background: var(--navy);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--navy);
    font-size: 1.2rem;
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: calc(var(--header-h) + 110px) 0 110px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}

.hero-content {
    position: relative;
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9cc3ee;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: #fff;
    color: var(--navy);
}

.btn-primary:hover {
    background: #e9eef5;
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-solid {
    background: var(--primary);
    color: #fff;
}

.btn-solid:hover {
    background: var(--primary-dark);
}

.btn-solid:disabled {
    opacity: 0.6;
    cursor: wait;
}

.btn-outline {
    border-color: var(--border);
    color: var(--navy);
    background: #fff;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 72px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 760px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Turinio sekcijos */
section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

section h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.3rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 16px;
}

section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin: 48px 0 16px;
}

section .card-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 8px;
}

#paslaugos .card-title {
    color: #fff;
}

section p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

/* Kortelės */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    border-color: #cdd7e3;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-card h4 {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.97rem;
    margin-bottom: 0;
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.icon svg {
    width: 22px;
    height: 22px;
}

svg.i {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Paslaugų sekcija */
#paslaugos {
    background: var(--navy);
    color: #fff;
}

#paslaugos h2,
#paslaugos h3 {
    color: #fff;
}

#paslaugos .section-label {
    color: #9cc3ee;
}

#paslaugos .feature-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

#paslaugos .feature-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

#paslaugos .feature-card h4 {
    color: #fff;
}

#paslaugos .feature-card p {
    color: rgba(255, 255, 255, 0.72);
}

#paslaugos .icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.check-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 32px;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
}

.check-list li strong {
    color: #fff;
    font-weight: 600;
}

.check-list svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: #7fb3ea;
    stroke-width: 2.4;
}

/* Darbo eiga */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 56px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 52px;
    right: -12px;
    height: 1px;
    background: var(--border);
}

.step:last-child::after {
    display: none;
}

.step h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.step p {
    font-size: 0.97rem;
    margin-bottom: 0;
}

/* Kainos */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.price-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.price-card h4 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.price-card .price-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.price small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
}

.price-card ul {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.price-card li {
    padding: 6px 0 6px 26px;
    position: relative;
    color: var(--muted);
}

.price-card li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 13px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}

/* Grafiko blokas */
.notice {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 28px;
}

.notice .icon {
    margin-bottom: 0;
    flex: none;
}

.notice p {
    margin-bottom: 0;
}

/* Atsiliepimai */
.testimonial {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.testimonial blockquote {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 20px;
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--navy);
    display: block;
}

.testimonial cite span {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 0.9rem;
}

/* DUK */
.faq {
    max-width: 820px;
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq details:first-child {
    border-top: 1px solid var(--border);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 40px 20px 0;
    font-weight: 600;
    color: var(--navy);
    font-size: 1.05rem;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--transition);
}

.faq details[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq summary:hover {
    color: var(--primary);
}

.faq .answer {
    padding: 0 40px 20px 0;
}

.faq .answer p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Kontaktai */
.contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 16px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-card .icon {
    margin-bottom: 0;
    flex: none;
}

a.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-value {
    display: block;
    font-weight: 600;
    color: var(--navy);
    word-break: break-word;
}

/* Forma */
.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
}

.field .optional {
    color: var(--muted);
    font-weight: 400;
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.97rem;
    color: var(--text);
    padding: 11px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.15);
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.checkbox input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    flex: none;
}

.hp {
    position: absolute;
    left: -9999px;
}

.form-status {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-status.ok {
    color: var(--success);
}

.form-status.err {
    color: var(--error);
}

/* Žemėlapis */
.map {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #e9eef4;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    text-align: center;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-placeholder {
    padding: 24px;
}

.map-placeholder p {
    font-size: 0.85rem;
    margin: 12px 0 0;
}

/* Poraštė */
footer {
    background: #0b1d31;
    color: #fff;
    padding: 64px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}

.footer-section p,
.footer-section a {
    display: block;
    color: #9aa7b6;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-section a:hover {
    color: #fff;
}

.footer-section .logo {
    color: #fff;
    margin-bottom: 16px;
    display: flex;
}

.footer-section .logo-mark {
    background: #fff;
    color: var(--navy);
}

.copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #77869a;
    font-size: 0.875rem;
}

.copyright a {
    color: #9aa7b6;
}

.copyright a:hover {
    color: #fff;
}

/* Mygtukas „į viršų“ */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-md);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 900;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top svg {
    width: 20px;
    height: 20px;
}

/* Teisiniai puslapiai */
.legal {
    padding: calc(var(--header-h) + 64px) 0 96px;
}

.legal .container {
    max-width: 800px;
}

.legal h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal .updated {
    color: var(--muted);
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 1.25rem;
    margin: 36px 0 12px;
}

.legal p,
.legal li {
    color: var(--muted);
    font-size: 1rem;
}

.legal ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.legal li {
    margin-bottom: 6px;
}

/* Animacijos */
.scroll-animate {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-animate { opacity: 1; transform: none; transition: none; }
}

/* Atsakomybė mobiliesiems įrenginiams */
@media (max-width: 960px) {
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }

    .step::after {
        display: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .menu-toggle {
        display: block;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 12px 16px 20px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links a {
        padding: 12px 14px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 72px 0;
    }

    .hero {
        padding: calc(var(--header-h) + 64px) 0 72px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 48px;
    }

    .features-grid,
    .pricing-grid,
    .steps,
    .check-list,
    .form-row,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .logo-text {
        display: none;
    }

    .notice {
        flex-direction: column;
    }
}
