*,
*::before,
*::after { box-sizing: border-box; }

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --text: #0d1726;
    --muted: #66768d;
    --line: rgba(13, 23, 38, 0.08);
    --primary: #1266da;
    --primary-dark: #0d4faa;
    --accent: #19b37d;
    --shadow: 0 18px 55px rgba(16, 34, 67, 0.10);
    --radius: 30px;
    --container: 1200px;
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
    color: var(--text);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
main { display: block; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.narrow-center { max-width: 900px; margin: 0 auto; text-align: center; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(13, 23, 38, 0.06);
}
.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
    width: 48px; height: 48px; border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; letter-spacing: 0.05em; box-shadow: 0 12px 24px rgba(17, 102, 216, 0.20);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy small { color: var(--muted); }

.main-nav { display: inline-flex; align-items: center; gap: 26px; position: relative; }
.main-nav > a,
.nav-button {
    font-weight: 700; color: rgba(13, 23, 38, 0.85);
    background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.has-dropdown {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: -18px;
}

.has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 22px;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(920px, calc(100vw - 40px));
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(13,23,38,.08);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(15,31,62,.18);
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(10px);
}
.mega-column {
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(13,23,38,.06);
}
.mega-title { display: block; margin-bottom: 12px; font-weight: 800; color: var(--text); }
.mega-column a { display: block; padding: 10px 0; color: var(--muted); font-weight: 700; }
.mega-column a:hover { color: var(--primary); }

.header-actions { display: inline-flex; align-items: center; gap: 12px; }
.header-link { color: var(--muted); font-weight: 700; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 22px; border-radius: 999px;
    font-weight: 800; transition: transform .18s ease, background .18s ease;
    border: 1px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 44px; padding: 0 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: rgba(255,255,255,.82); color: var(--text); border-color: rgba(255,255,255,.18); }
.btn-secondary.glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); }

.eyebrow {
    display: inline-block; margin-bottom: 14px; color: var(--accent);
    font-weight: 800; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em;
}
.eyebrow.light { color: rgba(255,255,255,.82); }

.hero, .page-hero { position: relative; }
.hero-cinematic { min-height: 84vh; display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 740px; padding: 110px 0 88px; }

.hero h1, .page-hero h1, .intro-grid h2, .service-showcase h2, .panel-copy h2, .detail-grid h2, .pricing-card h2, .contact-panel h2 {
    margin: 0 0 14px; line-height: 1.03; letter-spacing: -.03em;
}
.hero h1, .page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); color: #fff; }
.lead { font-size: 1.15rem; max-width: 60ch; }
.lead.light { color: rgba(255,255,255,.82); }
.center { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.section { padding: 88px 0; }
.section-intro { padding-top: 56px; }
.section-light { background: linear-gradient(180deg, #f9fbfe 0%, #eef3f8 100%); }
.section-dark { background: linear-gradient(180deg, #10192a 0%, #09111d 100%); color: #fff; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.intro-grid p { color: var(--muted); font-size: 1.05rem; }

.cards-grid-home {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    grid-template-rows: 1fr 1fr;
    gap: 22px;
}
.service-showcase {
    position: relative;
    min-height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(16, 34, 67, 0.14);
}
.service-showcase.large { grid-row: span 2; min-height: 744px; }
.showcase-image { position: absolute; inset: 0; background-size: cover; background-position: center; }
.showcase-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; color: #fff; }
.showcase-copy p { color: rgba(255,255,255,.82); max-width: 34ch; }

.split-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 22px; align-items: stretch; }
.panel-copy, .panel-image, .pricing-card, .contact-panel, .service-row-copy { border-radius: var(--radius); overflow: hidden; }
.panel-copy {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.panel-image {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 55px rgba(16, 34, 67, 0.14);
}

.compact-dark { padding: 90px 0 70px; background: linear-gradient(180deg, #101a2d 0%, #0a1220 100%); }
.gallery-grid { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.gallery-large, .gallery-small {
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    min-height: 260px;
    box-shadow: var(--shadow);
}
.gallery-large { grid-row: span 2; min-height: 540px; }

.detail-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: start; }
.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list li {
    position: relative; padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600;
}
.clean-list li:last-child { border-bottom: 0; }
.clean-list li::before {
    content: ""; width: 10px; height: 10px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: absolute; left: 0; top: 17px;
}

.service-stack { display: grid; gap: 22px; }
.service-row { display: grid; grid-template-columns: .92fr 1.08fr; gap: 22px; align-items: stretch; }
.service-row.reverse { grid-template-columns: 1.08fr .92fr; }
.service-row.reverse .service-row-image { order: 2; }
.service-row.reverse .service-row-copy { order: 1; }
.service-row-image {
    min-height: 380px; border-radius: var(--radius);
    background-size: cover; background-position: center;
    box-shadow: 0 18px 55px rgba(16, 34, 67, 0.14);
}
.service-row-copy {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 34px;
}
.status-badge {
    display: inline-flex; margin-top: 18px; padding: 10px 16px; border-radius: 999px;
    background: linear-gradient(135deg, rgba(18,102,218,.10), rgba(25,179,125,.12));
    border: 1px solid rgba(18,102,218,.18); color: var(--primary); font-weight: 800;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pricing-card {
    padding: 30px; background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10); backdrop-filter: blur(8px);
}
.pricing-card.featured { background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.08) 100%); }
.pricing-card h2 { color: #fff; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.price-list li:last-child { border-bottom: 0; }
.price-list span { color: rgba(255,255,255,.78); }
.price-list strong { white-space: nowrap; color: #fff; }

.contact-premium-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.contact-panel { padding: 34px; box-shadow: var(--shadow); }
.dark-panel { background: linear-gradient(180deg, #111b2d 0%, #09111d 100%); color: #fff; }
.form-panel { background: var(--surface); border: 1px solid var(--line); }
.contact-detail { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.contact-detail:last-child { border-bottom: 0; }
.dark-panel .contact-detail small { display: block; color: rgba(255,255,255,.62); margin-bottom: 6px; }
.dark-panel .contact-detail a, .dark-panel .contact-detail span { color: #fff; font-size: 1.08rem; font-weight: 700; }

.contact-form { display: grid; gap: 16px; margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: grid; gap: 8px; }
.form-group label { font-weight: 700; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--line);
    border-radius: 14px; background: #fff; color: var(--text); font: inherit;
}
.alert { padding: 14px 16px; border-radius: 12px; margin: 16px 0 20px; font-weight: 600; }
.alert-success { background: rgba(46,158,105,.12); border: 1px solid rgba(46,158,105,.3); color: #1c6d48; }
.alert-error { background: rgba(185,52,52,.10); border: 1px solid rgba(185,52,52,.25); color: #8f2b2b; }
.hidden-field { position: absolute; left: -9999px; }

.cta-band { background: linear-gradient(135deg, #1060cc 0%, #0e86b7 52%, #18a06f 100%); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.site-footer {
    background: #08101b; color: rgba(255,255,255,.86); padding-top: 56px;
}
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.site-footer a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 28px; padding: 18px 0 26px; font-size: .95rem; }

@media (max-width: 1100px) {
    .intro-grid, .split-grid, .pricing-grid, .contact-premium-grid, .cards-grid-home, .service-row, .service-row.reverse, .detail-grid, .footer-top {
        grid-template-columns: 1fr;
        display: grid;
    }
    .cards-grid-home { grid-template-rows: auto; }
    .service-showcase.large { grid-row: auto; min-height: 460px; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-large { grid-row: auto; min-height: 340px; }
    .service-row.reverse .service-row-image, .service-row.reverse .service-row-copy { order: initial; }
    .mega-menu { left: 0; transform: none; width: min(92vw, 920px); grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .header-inner { flex-wrap: wrap; justify-content: center; padding: 14px 0; }
    .main-nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
    .hero-copy { padding: 84px 0 70px; }
    .hero-cinematic { min-height: auto; }
    .form-row, .footer-columns { grid-template-columns: 1fr; }
    .main-nav .has-dropdown { width: 100%; text-align: center; }
    .mega-menu { position: static; opacity: 1; visibility: visible; pointer-events: auto; width: 100%; margin-top: 12px; display: none; }
    .has-dropdown:hover .mega-menu, .has-dropdown:focus-within .mega-menu { display: grid; }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 24px), var(--container)); }
    .btn { width: 100%; }
    .hero-actions { flex-direction: column; }
    .showcase-copy, .panel-copy, .service-row-copy, .pricing-card, .contact-panel { padding: 24px; }
}