  :root {
    --primary-subtle-bg: #eef2ff; --primary: #4f46e5; --primary-dark: #4338ca; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #0f172a; background: #fff; line-height: 1.6; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

nav { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 16px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
nav .logo { color: var(--primary); font-size: 1.3rem; font-weight: 800; text-decoration: none; letter-spacing: -.5px; }
nav .logo img { height: 38px; vertical-align: middle; margin-right: 8px; }
nav .nav-links { display: flex; gap: 28px; }
nav .nav-links a { color: #64748b; text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
nav .nav-links a:hover { color: var(--primary); }

.hero { background: #0f172a; padding: 100px 0 120px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 20%, transparent) 0%, transparent 70%); top: -100px; right: -100px; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--primary) 15%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 5px 14px; border-radius: 50px; margin-bottom: 24px; }
.hero h1 { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 16px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.05rem; color: #94a3b8; margin-bottom: 32px; }
.btn { display: inline-block; background: var(--primary); color: #fff; padding: 13px 32px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { display: inline-block; border: 1px solid rgba(255,255,255,.2); color: #94a3b8; padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; margin-left: 12px; transition: border-color .2s, color .2s; }
.btn-outline:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.hero-code { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 24px; font-family: monospace; font-size: .8rem; color: #94a3b8; line-height: 2; }
.hero-code .c-purple { color: #818cf8; }
.hero-code .c-green { color: #34d399; }
.hero-code .c-yellow { color: #fbbf24; }

section { padding: 80px 0; }
section:nth-child(even) { background: #f8fafc; }
.section-tag { display: inline-block; background: var(--primary-subtle-bg); color: var(--primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 4px 14px; border-radius: 50px; margin-bottom: 14px; }
h2 { font-size: 2rem; font-weight: 800; color: #0f172a; letter-spacing: -.5px; margin-bottom: 8px; }
h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; margin-top: 12px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.service-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px 24px; transition: box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px color-mix(in srgb, var(--primary) 10%, transparent); border-color: #c7d2fe; }
.service-card .num { font-size: 1.8rem; font-weight: 900; color: var(--primary); opacity: .25; margin-bottom: 12px; line-height: 1; }
.service-card h3 { color: #1e293b; font-size: 1rem; font-weight: 700; }

.o-nas-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.o-nas-inner p { color: #64748b; }
.o-nas-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.1); }

.contact { background: #0f172a; }
.contact .section-tag { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.contact h2 { color: #fff; }
.contact h2::after { background: var(--primary); }
.contact-info { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.contact-info p { display: flex; align-items: center; gap: 10px; color: #94a3b8; }
.contact-info a { color: var(--primary); text-decoration: none; font-weight: 600; }
.social-links { margin-top: 24px; display: flex; gap: 12px; }
.social-links a { background: color-mix(in srgb, var(--primary) 15%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); padding: 8px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background .2s; }
.social-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.map { padding: 0; }
.map iframe { width:100%;height:420px;border:0;display:block;filter:grayscale(30%); }

footer { background: #020617; color: #475569; text-align: center; padding: 28px 0; font-size: .85rem; }
footer strong { color: var(--primary); }

@media (max-width: 640px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-code { display: none; }
    .hero h1 { font-size: 2rem; }
    .o-nas-inner { grid-template-columns: 1fr; }
}

/* ── Modern animations ────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.hero .container > * { animation: fadeUp .7s ease both; }
.hero .container > *:nth-child(1) { animation-delay: .05s; }
.hero .container > *:nth-child(2) { animation-delay: .15s; }
.hero .container > *:nth-child(3) { animation-delay: .25s; }
.hero .container > *:nth-child(4) { animation-delay: .35s; }
.hero .container > *:nth-child(5) { animation-delay: .45s; }

/* ── Typography quality ───────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* ── Mobile hamburger nav ─────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    border-radius: 6px;
    color: #64748b;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.nav-toggle:hover { opacity: .75; }
.nav-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    nav .container { flex-wrap: wrap; }
    nav .nav-links {
        order: 9;
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(128,128,128,.18);
        margin-top: 8px;
    }
    nav .nav-links.is-open { display: flex; }
    nav .nav-links a {
        padding: 11px 0;
        font-size: .95rem;
        letter-spacing: 0;
        text-transform: none;
        border-bottom: 1px solid rgba(128,128,128,.1);
        width: 100%;
        display: block;
    }
    nav .nav-links a:last-child { border-bottom: none; }
}
