:root {
    --modern-bg: #070d1a;
    --modern-surface: #121a2e;
    --modern-card: #18233d;
    --modern-text: #eef2ff;
    --modern-muted: #9aa7c7;
    --modern-accent: #6dd3ff;
    --modern-accent-2: #7cffc4;
    --modern-white: #ffffff;
    --modern-radius: 16px;
    --modern-container: 1200px;
    --modern-space: clamp(60px, 8vw, 110px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html,
body { overflow-x: clip; }
body.modern-body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: radial-gradient(circle at 25% 0%, #0f1f3d 0%, var(--modern-bg) 45%);
    color: var(--modern-text);
    line-height: 1.6;
}
body.modern-body.modern-menu-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--modern-accent-2);
    outline-offset: 3px;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; margin-bottom: 16px; }
p { color: var(--modern-muted); margin-bottom: 16px; }

.modern-container { width: min(var(--modern-container), calc(100% - 32px)); margin-inline: auto; }
.section { padding: var(--modern-space) 0; }
.section-muted { background: #0f172a; }
.section-dark { background: #090f1d; }
.modern-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kicker { color: var(--modern-accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
.section-head { margin-bottom: 30px; }
.modern-card {
    background: var(--modern-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--modern-radius);
    padding: 24px;
}
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--modern-accent);
    color: #041321;
    border-radius: 999px;
    border: 0;
    padding: 12px 26px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.modern-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(109, 211, 255, .22); }
.modern-btn-sm { padding: 8px 16px; font-size: 14px; }
.modern-btn-outline { background: transparent; border: 1px solid var(--modern-accent); color: var(--modern-accent); }
.modern-btn-outline:hover { background: rgba(109,211,255,.14); }
.modern-link { color: var(--modern-accent); font-weight: 600; }
.modern-link:hover { color: var(--modern-white); }

.modern-topbar { border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(7, 12, 22, 0.75); }
.topbar-inner { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-meta, .topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-meta-full { width: 100%; justify-content: space-between; }
.topbar-meta span,
.topbar-meta a { margin: 0; font-size: 13px; color: var(--modern-muted); }
.topbar-meta a:hover { color: var(--modern-white); }
.topbar-email-link { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }

.topbar-language-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.topbar-language-label { margin: 0; font-size: 13px; color: var(--modern-muted); }
.topbar-language-select {
    min-width: 120px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--modern-white);
    padding: 4px 12px;
}
.topbar-language-select option { color: #111827; }


.modern-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: rgba(7, 12, 22, 0.85);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .3s ease, box-shadow .3s ease;
}
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: min-height .3s ease; }
.modern-brand img { width: 160px; max-height: 44px; object-fit: contain; }
.modern-nav { display: flex; align-items: center; gap: 18px; }
.modern-nav a { color: var(--modern-muted); font-weight: 600; font-size: 15px; transition: color .2s ease; }
.modern-nav a.is-active, .modern-nav a:hover { color: var(--modern-white); }
.modern-menu-toggle { display: none; background: transparent; border: 0; width: 42px; cursor: pointer; }
.modern-menu-toggle span { display: block; height: 2px; background: var(--modern-white); margin: 7px 0; transition: transform .25s ease, opacity .25s ease; }
.header-cta { margin-left: 8px; }
.header-client-session { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; }
.header-client-name { color: var(--modern-white); font-weight: 700; }
.header-client-name:hover { color: var(--modern-accent); }
.header-logout-form { margin: 0; }
.header-logout-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .08);
    color: var(--modern-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.header-logout-btn:hover { background: rgba(109, 211, 255, .2); border-color: rgba(109, 211, 255, .5); }
.modern-nav-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 14, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.modern-header.is-scrolled {
    background: rgba(6, 10, 20, 0.96);
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.modern-header.is-scrolled .header-inner { min-height: 76px; }
.modern-header.is-compact .header-inner { min-height: 70px; }
.modern-header.is-menu-open .modern-nav-overlay { opacity: 1; pointer-events: auto; }
.modern-header.is-menu-open .modern-menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.modern-header.is-menu-open .modern-menu-toggle span:nth-child(2) { opacity: 0; }
.modern-header.is-menu-open .modern-menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.modern-hero { padding-top: 30px; }
.modern-hero-slider {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; align-items: center; min-height: 65vh; padding: clamp(28px, 5vw, 52px); }
.hero-copy h1,
.hero-copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 12ch; }
.hero-copy p { max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-media img,
.hero-placeholder { border-radius: 24px; min-height: min(480px, 56vh); object-fit: cover; width: 100%; }
.hero-placeholder {
    background: linear-gradient(135deg,#1f2f52,#233f6a);
    display: grid;
    place-items: center;
    font-size: clamp(1.4rem, 2vw, 2.3rem);
    font-weight: 800;
}
.modern-hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 26px;
}
.hero-nav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.24);
    background: transparent;
    color: var(--modern-white);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hero-nav:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.44); background: rgba(255,255,255,.08); }
.modern-hero .swiper-pagination { position: static; display: flex; width: auto; }
.modern-hero .swiper-pagination-bullet { background: rgba(255,255,255,.45); }
.modern-hero .swiper-pagination-bullet-active { background: var(--modern-accent); }

.modern-marquee { overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.marquee-track { display: flex; gap: 26px; white-space: nowrap; color: var(--modern-white); font-weight: 700; animation: marquee 25s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.portfolio-item { position: relative; overflow: hidden; border-radius: var(--modern-radius); min-height: 220px; }
.portfolio-thumb { background: linear-gradient(140deg,#12345f,#0d596b); height: 100%; display: grid; place-items: center; font-weight: 700; }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(2,8,20,.82); display: grid; place-content: center; text-align: center; opacity: 0; transition: .3s; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:focus-within .portfolio-overlay { opacity: 1; }

.client-logo { min-height: 100px; border: 1px dashed rgba(255,255,255,.25); border-radius: 12px; display: grid; place-items: center; color: var(--modern-muted); }
.cta-box { background: var(--modern-surface); border-radius: var(--modern-radius); padding: clamp(24px,4vw,44px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.modern-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .header-cta { display: none; }
    .header-client-session { margin-left: 0; }
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero-copy h1,
    .hero-copy h2 { max-width: none; }
}
@media (max-width: 820px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .modern-topbar { display: none; }
    .modern-menu-toggle { display: block; }
    .modern-nav {
        position: fixed;
        top: 78px;
        left: 16px;
        right: 16px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        background: #0a1223;
        padding: 14px;
        display: grid;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: .25s;
        z-index: 45;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    .modern-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .hero-media img,
    .hero-placeholder { min-height: 280px; }
    .cta-box, .footer-inner, .topbar-inner { flex-direction: column; align-items: flex-start; }
    .topbar-language-form { width: 100%; }
    .topbar-language-select { width: 100%; }
    .section-head h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
    .section-head p { font-size: .97rem; }
}

.reveal-inline { max-width: 760px; }
.modern-feature-grid .feature-card,
.service-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    transition: transform .28s ease, border-color .28s ease;
}
.modern-feature-grid .feature-card:hover,
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(109,211,255,.45);
}
.modern-feature-grid .feature-card,
.service-card,
.portfolio-item,
.client-logo,
.blog-card,
.team-card,
.counter-card,
.testimonial-card {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.portfolio-item:hover,
.blog-card:hover,
.team-card:hover,
.client-logo:hover,
.counter-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
.feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--modern-accent-2);
    background: rgba(124,255,196,.12);
    border: 1px solid rgba(124,255,196,.22);
}

.about-layout { align-items: center; gap: 28px; }
.about-copy h2 { max-width: 16ch; }
.about-points {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.about-points li {
    position: relative;
    padding-left: 22px;
    color: var(--modern-muted);
}
.about-points li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    position: absolute;
    left: 0;
    top: .55em;
    background: var(--modern-accent);
}
.about-media { padding: 14px; }
.about-media img,
.about-media .hero-placeholder { border-radius: 14px; min-height: 360px; }
.about-media-copy { padding: 18px 12px 8px; }
.about-media-copy p { margin-bottom: 0; }

.services-plan-hint {
    margin-top: 26px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 16px;
}
.services-plan-hint p { margin-bottom: 0; }

.portfolio-grid .portfolio-item {
    border: 1px solid rgba(255,255,255,.08);
    min-height: 250px;
}
.portfolio-grid .portfolio-thumb {
    padding: 18px;
    align-items: end;
    background: linear-gradient(150deg, #173763, #0b5a67);
}
.portfolio-grid .portfolio-thumb span { color: rgba(255,255,255,.9); font-weight: 600; }

@media (max-width: 820px) {
    .services-plan-hint { flex-direction: column; align-items: flex-start; }
    .about-media img,
    .about-media .hero-placeholder { min-height: 250px; }
}

.modern-testimonial-slider { padding-bottom: 34px; }
.testimonial-card {
    min-height: 100%;
    display: grid;
    gap: 22px;
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.testimonial-quote {
    margin: 0;
    color: var(--modern-text);
    font-size: 1.02rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-author img,
.testimonial-author span {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
}
.testimonial-author span {
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    color: var(--modern-text);
    background: rgba(109,211,255,.16);
}
.testimonial-author h3 { margin-bottom: 2px; font-size: 1rem; }
.testimonial-author small { color: var(--modern-muted); }

.team-grid .team-card {
    text-align: center;
    display: grid;
    gap: 12px;
}
.team-avatar { display: grid; place-items: center; }
.team-avatar img,
.team-avatar span {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
}
.team-avatar span {
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    background: rgba(124,255,196,.14);
}
.team-card small { color: var(--modern-accent-2); font-weight: 600; }
.team-card p { margin-bottom: 0; }

.counters .counter-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--modern-radius);
    padding: 24px;
}
.counter-card h3 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 8px;
}
.counter-prefix,
.counter-suffix { color: var(--modern-accent-2); }

.clients-grid { gap: 16px; }
.modern-plan-card {
    position: relative;
    padding-top: 58px;
}
.modern-plan-price {
    position: absolute;
    top: 16px;
    right: 16px;
    border-radius: 999px;
    background: rgba(109, 211, 255, .2);
    color: var(--modern-text);
    font-weight: 700;
    padding: 8px 14px;
}
.modern-plan-price small {
    opacity: .85;
    font-weight: 600;
}
.modern-plan-card h3 {
    margin-bottom: 10px;
}
.modern-plan-card p {
    margin-bottom: 14px;
}
.modern-plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.modern-plan-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.modern-plan-features .icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(124,255,196,.2);
    color: var(--modern-accent-2);
    display: inline-grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    flex: none;
    margin-top: 3px;
}
.client-logo {
    min-height: 90px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.02);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 12px;
}
.client-logo span { color: var(--modern-text); font-weight: 600; }

.blog-grid .blog-card {
    display: grid;
    gap: 10px;
    height: 100%;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0; }
.blog-card p { margin-bottom: 0; }
.blog-card .modern-link { margin-top: auto; }

.cta-box p { margin-bottom: 0; }
.cta-copy { display: grid; gap: 10px; }
.lead-form {
    width: min(560px, 100%);
    background: linear-gradient(160deg, rgba(11, 23, 49, .9), rgba(10, 20, 44, .95));
    border: 1px solid rgba(143,178,255,.28);
    border-radius: 20px;
    padding: 28px 24px 24px;
    display: grid;
    gap: 18px;
    box-shadow: 0 18px 46px rgba(5, 16, 40, .34);
}
.lead-form-header {
    text-align: left;
}
.lead-form-header h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    line-height: 1.2;
}
.lead-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.lead-form label {
    display: grid;
    gap: 8px;
    font-size: .92rem;
    color: var(--modern-text);
}
.lead-form-field {
    position: relative;
    font-weight: 600;
}
.lead-form-field span {
    display: inline-flex;
    align-items: center;
    color: #d8e8ff;
    letter-spacing: .01em;
}
.lead-form input,
.lead-form textarea {
    width: 100%;
    border: 1px solid rgba(160,194,255,.24);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: var(--modern-white);
    padding: 12px 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    font-size: .98rem;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder {
    color: rgba(198,215,255,.62);
}
.lead-form input:focus,
.lead-form textarea:focus {
    border-color: var(--modern-accent);
    box-shadow: 0 0 0 4px rgba(109,211,255,.2);
    background: rgba(9, 23, 52, .92);
    outline: none;
}
.lead-form textarea {
    min-height: 132px;
    resize: vertical;
}
.lead-form-full { grid-column: 1 / -1; }
.lead-form-captcha {
    margin-top: 0;
}
.lead-form .modern-btn {
    width: 100%;
    justify-content: center;
    margin-top: 2px;
}
.lead-form-alert {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .9rem;
}
.lead-form-alert.success { background: rgba(124,255,196,.2); color: #b7ffe3; }
.lead-form-alert.error { background: rgba(255,98,115,.2); color: #ffc3cb; }
.lead-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.modern-footer {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 42px 0 24px;
}
.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}
.footer-brand img { width: 150px; margin-bottom: 12px; }
.footer-brand p { max-width: 38ch; margin-bottom: 0; }
.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}
.footer-links h4 { margin-bottom: 4px; font-size: 1rem; }
.footer-links a,
.footer-links span { color: var(--modern-muted); font-size: .95rem; }
.footer-links a:hover { color: var(--modern-text); }
.footer-bottom {
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 16px;
}
.footer-bottom p { margin-bottom: 0; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .modern-testimonial-slider { overflow: visible; }
    .modern-testimonial-slider .swiper-slide { height: auto; }
    .testimonial-card { padding: 20px; }
    .testimonial-quote { font-size: .95rem; }
    .grid-4.clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-actions { width: 100%; }
    .lead-form-grid { grid-template-columns: 1fr; }
    .lead-form { width: 100%; }
    .cta-actions .modern-btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
}


@media (max-width: 560px) {
    .modern-container { width: min(var(--modern-container), calc(100% - 24px)); }
    .modern-hero-controls { padding: 0 12px 18px; }
    .hero-grid { padding: 22px 18px; gap: 20px; }
    .hero-copy h1,
    .hero-copy h2 { font-size: clamp(1.7rem, 8.5vw, 2.1rem); }
    .modern-card,
    .counter-card,
    .testimonial-card,
    .cta-box { padding: 18px; }
    .portfolio-grid .portfolio-item { min-height: 220px; }
    .grid-4.clients-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track { animation: none; }
}
