* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0c1220;
    --bg-soft: #f4f7fb;
    --ink: #122038;
    --brand: #2f6ef9;
    --brand-2: #63a4ff;
    --line: #dde6f4;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg-soft);
}

.container {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 56px);
    padding-right: clamp(20px, 4vw, 56px);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: rgba(9, 16, 31, 0.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.main-nav {
    display: flex;
    gap: 1.3rem;
}

.main-nav a {
    color: #f2f6ff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.95;
}

.main-nav a:hover {
    color: #ffffff;
}

.menu-btn {
    display: none;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 1.2rem;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(130deg, #081126 5%, #10274f 40%, #1a3a76 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(7, 13, 24, 0.45), rgba(10, 20, 35, 0.75)), var(--hero);
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(7, 13, 24, 0.45), rgba(10, 20, 35, 0.75)), var(--hero-next);
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    opacity: 0;
    transition: opacity 0.65s ease;
}

.hero.hero-crossfading::after {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 25% 10%, rgba(99, 164, 255, 0.35), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(47, 110, 249, 0.24), transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 840px;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.88;
}

.hero h1 {
    margin: 0.55rem 0 0.8rem;
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.1;
}

.hero-text {
    margin: 0 auto 1.6rem;
    max-width: 62ch;
    opacity: 0.93;
}

.cta-btn {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #1f5fe8, #4f8cff);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 16px !important;
    border-radius: 4px;
    font-weight: 700;
    line-height: 1.25;
}

.section {
    padding: 5.2rem 0;
    scroll-margin-top: 92px;
}

.hero-content,
.band-overlay {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.section h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(1.7rem, 2.5vw, 2.4rem);
}

.section-light {
    background: var(--bg-soft);
}

.section-dark {
    background: var(--bg-dark);
    color: #e8eefc;
}

.split {
    display: grid;
    gap: 2rem;
    align-items: center;
    grid-template-columns: 1.3fr 1fr;
}

.about-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(12, 30, 63, 0.2);
}

.about-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.stats {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.stats div {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    padding: 0.85rem;
}

.stats strong {
    display: block;
    font-size: 1.3rem;
    color: var(--brand);
}

.stats span {
    font-size: 0.88rem;
    color: #4d6387;
}

.parallax-band {
    position: relative;
    height: 46vh;
    min-height: 270px;
    overflow: hidden;
    background-image: var(--band);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    display: grid;
    place-items: center;
}

.parallax-band.small {
    height: 34vh;
}

.band-overlay {
    background: linear-gradient(180deg, rgba(4, 10, 20, 0.42), rgba(4, 10, 20, 0.7));
    color: #fff;
    padding: 2rem;
    text-align: center;
    width: 100%;
}

.band-overlay p {
    margin: 0;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 600;
}

.project-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
    background: #101b32;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    display: block;
}

.project-media {
    position: relative;
}

.project-compare {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: pan-y;
    background: #0b1528;
}

.project-body-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.project-compare-expand {
    flex: 0 0 auto;
    width: 32px !important;
    height: 32px !important;
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
    padding: 0 !important;
    line-height: 1;
    border-radius: 50% !important;
    border: 1px solid rgba(191, 208, 240, 0.45);
    background: rgba(13, 26, 47, 0.76);
    color: #e3edff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-compare-expand:hover {
    background: rgba(20, 40, 70, 0.9);
    border-color: rgba(218, 231, 255, 0.65);
    transform: translateY(-1px);
}

.project-compare-expand i {
    font-size: 0.84rem;
}

.project-image-base,
.project-image-before {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image-before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--compare-pos, 50%)) 0 0);
    transition: clip-path 0.2s ease;
}

.project-compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-pos, 50%);
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(12, 19, 33, 0.2);
    pointer-events: none;
    z-index: 3;
    transition: left 0.2s ease;
}

.project-compare.is-dragging .project-image-before,
.project-compare.is-dragging .project-compare-divider {
    transition: none;
}

.project-compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(10, 18, 30, 0.82);
    border: 2px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38);
    pointer-events: auto;
    cursor: ew-resize;
    touch-action: none;
}

.project-compare-handle::before,
.project-compare-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.project-compare-handle::before {
    left: 9px;
    transform: translateY(-50%) rotate(-135deg);
}

.project-compare-handle::after {
    right: 9px;
    transform: translateY(-50%) rotate(45deg);
}

.project-compare-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    margin: 0;
}

.project-image-toggle {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.16s ease;
}

.project-image-toggle.is-interactive {
    cursor: pointer;
}

.project-image-toggle.is-fading {
    opacity: 0.25;
}

.project-watermark {
    position: absolute;
    top: 10px;
    padding: 0.26rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(9, 17, 31, 0.66);
    color: #f3f7ff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
    z-index: 5;
}

.project-watermark.is-before {
    left: 10px;
    right: auto;
}

.project-watermark.is-after {
    right: 10px;
    left: auto;
}

.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
}

.compare-modal[hidden] {
    display: none !important;
}

.compare-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, 0.78);
    backdrop-filter: blur(2px);
}

.compare-modal__panel {
    position: relative;
    z-index: 1;
    width: min(94vw, 1200px);
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 15, 28, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
}

.project-compare.project-compare-modal {
    aspect-ratio: 16/9;
    border-radius: 8px;
}

.project-compare.project-compare-modal.is-single {
    cursor: default;
}

.project-compare.project-compare-modal.is-single .project-image-before,
.project-compare.project-compare-modal.is-single .project-compare-divider,
.project-compare.project-compare-modal.is-single .project-compare-slider,
.project-compare.project-compare-modal.is-single .project-watermark.is-before {
    display: none;
}

.compare-modal__close {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    transform: none;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(6, 12, 22, 0.92);
    color: #f3f7ff;
    border-radius: 8px;
    padding: 0.38rem 0.9rem;
    cursor: pointer;
}

body.compare-modal-open {
    overflow: hidden;
}

@media (max-width: 1023px) {
    .project-compare-expand {
        display: none;
    }

    .compare-modal {
        display: none;
    }
}

.project-body {
    padding: 1rem;
}

.project-body h3 {
    margin: 0;
    color: #f3f7ff;
}

.project-body p {
    margin: 0;
    color: #bfd0f0;
    font-size: 0.95rem;
}

.two-col {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: 1.2fr 1fr;
}

.review-list {
    display: grid;
    gap: 0.9rem;
}

.review-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.review-card p {
    margin: 0.3rem 0 0.65rem;
    color: #2f3e5d;
}

.stars {
    color: #f7b500;
    letter-spacing: 1px;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.1rem;
    box-shadow: 0 10px 32px rgba(15, 35, 68, 0.08);
}

.panel h3,
.panel h2 {
    margin-top: 0.1rem;
}

.panel-wide {
    max-width: 860px;
    margin: 0 auto;
}

.form-stack,
.form-grid {
    display: grid;
    gap: 0.72rem;
    padding: 5px;
}

form.form-stack,
form.form-grid,
#contact form.form-grid {
    padding: 5px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #354b71;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfdcee;
    border-radius: 4px;
    padding: 5px !important;
    background: #fff;
    color: #122038;
}

.form-stack input,
.form-stack select,
.form-stack textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
#contact input,
#contact select,
#contact textarea {
    padding: 5px !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 110, 249, 0.14);
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(135deg, #1f5fe8, #4f8cff) !important;
    padding: 10px 16px !important;
    min-height: 40px;
    line-height: 1.25;
    font-weight: 700;
    cursor: pointer;
}

.form-stack button,
.form-grid button,
#contact button {
    background: linear-gradient(135deg, #1f5fe8, #4f8cff) !important;
    color: #fff !important;
    padding: 10px 16px !important;
}

button.is-loading {
    opacity: 0.9;
    cursor: wait;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    display: inline-block;
    margin-right: 8px;
    animation: btn-spin 0.75s linear infinite;
}

@keyframes btn-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.flash {
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    margin: 0.4rem 0 0.8rem;
    font-size: 0.9rem;
}

.flash.success {
    background: #d8f7e8;
    color: #115c3f;
    border-left: 4px solid #24b172;
}

.flash.error {
    background: #ffe4e7;
    color: #7b1320;
    border-left: 4px solid #d74b5a;
}

.empty {
    opacity: 0.85;
}

.soft-top {
    border-top: 1px solid #e2eaf7;
}

.site-footer {
    background: #09111f;
    color: #d4e0f7;
    padding: 2rem 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #a0b4d0;
}

.footer-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-info a {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-info a:hover {
    color: #86efac;
}

.footer-info .fa-whatsapp {
    font-size: 1.1rem;
}

.footer-copy {
    font-size: 0.82rem;
    color: #5a7a9a;
    text-align: right;
}

.footer-copy p {
    margin: 0;
}

.footer-legal-links {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    font-size: 0.8rem;
}

.footer-legal-links a {
    color: #9fc2ff;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: #d7e8ff;
}

.legal-content h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.legal-content h2 {
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
    line-height: 1.6;
    color: #2f3e5d;
}

.legal-content ul {
    padding-left: 1.1rem;
    margin: 0.4rem 0;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 0.8rem;
}

.cookie-banner__inner {
    width: min(1040px, 100%);
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 17, 31, 0.96);
    color: #d4e0f7;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.cookie-banner__inner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-banner__inner a {
    color: #9fc2ff;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(135deg, #1f5fe8, #4f8cff);
    padding: 8px 14px;
    min-height: 36px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
}

.about-contact {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #4d6387;
}

.about-contact p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-contact a {
    color: #22a24a;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.about-contact a:hover {
    color: #16803a;
}

.about-contact .fa-whatsapp {
    font-size: 1.15rem;
}

@media (max-width: 700px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand {
        justify-content: center;
    }
    .footer-info p {
        justify-content: center;
    }
    .footer-copy {
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
    }
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .split,
    .two-col,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .menu-btn {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        right: 4%;
        background: rgba(10, 18, 35, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 4px;
        display: none;
        flex-direction: column;
        min-width: 200px;
        padding: 0.7rem;
    }

    .main-nav.open {
        display: flex;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .parallax-band {
        background-attachment: scroll;
    }
}
