:root {
  --navy-900: #0b1f2b;
  --navy-800: #0f2a3a;
  --navy-700: #163b52;
  --primary: #285c7c;
  --primary-50: #eaf2f7;
  --accent: #f7b731;
  --accent-600: #e6a91e;
  --coral: #e37459;
  --ink: #14212b;
  --text: #43515c;
  --muted: #7a8790;
  --line: #e4e9ed;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(11, 31, 43, .25);
  --shadow-sm: 0 6px 20px -8px rgba(11, 31, 43, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p { font-size: 1.08rem; color: var(--muted); }
.section__head--light h2 { color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.eyebrow--light { color: #fff; }
.hl { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font: 700 .95rem/1 var(--font-head); border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn svg { font-size: 1.15em; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn--lg { padding: 17px 30px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgba(247, 183, 49, .7); }
.btn--accent:hover { background: var(--accent-600); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--navy-700); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 18px 0; transition: background .3s, padding .3s, box-shadow .3s; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__logo { height: 40px; width: auto; }
.brand__logo--dark { display: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font: 800 1.25rem var(--font-head); letter-spacing: -.01em; }
.brand__text small { font-size: .72rem; opacity: .8; letter-spacing: .04em; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { color: rgba(255, 255, 255, .88); font: 600 .95rem var(--font-head); position: relative; padding: 6px 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { padding: 11px 20px; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }

.nav.is-scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.nav.is-scrolled .brand { color: var(--ink); }
.nav.is-scrolled .brand__logo--light { display: none; }
.nav.is-scrolled .brand__logo--dark { display: block; }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--ink); }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; color: #fff; overflow: hidden; padding: 130px 0 90px; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 31, 43, .92) 0%, rgba(11, 31, 43, .7) 45%, rgba(11, 31, 43, .25) 100%), linear-gradient(0deg, rgba(11, 31, 43, .6), transparent 40%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { max-width: 1200px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 14ch; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; color: rgba(255, 255, 255, .85); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { list-style: none; padding: 0; margin: 54px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; font: 600 .92rem var(--font-head); color: rgba(255, 255, 255, .85); }
.hero__badges li { display: flex; align-items: center; gap: 10px; }
.hero__badges svg { font-size: 1.35rem; color: var(--accent); }
.hero__content > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero__content > *:nth-child(2) { animation-delay: .1s; }
.hero__content > *:nth-child(3) { animation-delay: .2s; }
.hero__content > *:nth-child(4) { animation-delay: .3s; }
.hero__content > *:nth-child(5) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Stats */
.stats { position: relative; z-index: 2; margin-top: -60px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 34px 28px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong, .stat span { font: 800 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font-head); color: var(--primary); letter-spacing: -.03em; }
.stat span { color: var(--accent); }
.stat p { margin: 8px 0 0; font-size: .92rem; color: var(--muted); }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; padding: 0 60px 60px 0; }
.about__img { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 100%; aspect-ratio: 4/5; }
.about__img--float { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 8px solid #fff; }
.about__tag { position: absolute; left: -20px; top: 40px; background: var(--accent); color: var(--navy-900); padding: 18px 22px; border-radius: 14px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.about__tag strong { font: 800 2rem/1 var(--font-head); }
.about__tag span { font: 600 .8rem/1.25 var(--font-head); }
.about__text p { font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23285c7c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Services */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 1.7rem; margin-bottom: 22px; transition: background .35s, color .35s; }
.card:hover .card__icon { background: var(--primary); color: #fff; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Process */
.process { background: var(--navy-800); color: rgba(255, 255, 255, .75); position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgba(40, 92, 124, .55), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(247, 183, 49, .12), transparent 70%); }
.process .container { position: relative; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { padding: 30px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); transition: background .3s, transform .3s var(--ease); }
.step:hover { background: rgba(255, 255, 255, .08); transform: translateY(-4px); }
.step__n { display: block; font: 800 2.6rem/1 var(--font-head); color: var(--accent); margin-bottom: 18px; letter-spacing: -.04em; }
.step h3 { color: #fff; }
.step p { margin: 0; font-size: .95rem; }

/* Projects */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filter { border: 1px solid var(--line); background: #fff; padding: 10px 20px; border-radius: 999px; font: 600 .9rem var(--font-head); color: var(--text); cursor: pointer; transition: all .25s; }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery { columns: 3 300px; column-gap: 18px; }
.gallery__item { break-inside: avoid; margin-bottom: 18px; border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--bg-soft); animation: fadeIn .5s var(--ease) both; }
.gallery__item img { width: 100%; transition: transform .7s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 31, 43, .55), transparent 50%); opacity: 0; transition: opacity .35s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item span { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font: 600 .85rem var(--font-head); opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.gallery__item:hover span { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } }
.projects__more { text-align: center; margin-top: 30px; }

/* CTA */
.cta { position: relative; padding: clamp(80px, 11vw, 140px) 0; color: #fff; text-align: center; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 42, 58, .93), rgba(40, 92, 124, .82)); }
.cta h2 { color: #fff; }
.cta p { font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0 auto 34px; }
.cta .hero__actions { justify-content: center; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; color: var(--ink); }
.contact__list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact__list a { font-weight: 600; color: var(--primary); }
.contact__list a:hover { color: var(--accent-600); }
.ci { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 1.25rem; }
.contact__legal { font-size: .85rem; color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form h3 { font-size: 1.45rem; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font: 600 .85rem var(--font-head); color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-family: var(--font-body); font-weight: 400; font-size: .97rem; padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(40, 92, 124, .12); }
.form .is-invalid { border-color: var(--coral); }
.form__check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; color: var(--text) !important; }
.form__check input { width: 18px; height: 18px; accent-color: var(--primary); }
.form__check a { color: var(--primary); text-decoration: underline; }
.form__note { margin: 0; font-size: .9rem; text-align: center; min-height: 1.2em; }
.form__note.ok { color: #2f8a57; }
.form__note.err { color: var(--coral); }
.map { margin-top: 70px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* Partners */
.partners { background: var(--bg-soft); padding: 70px 0; }
.partners__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: center; }
.partners__inner h3 { font-size: 1.6rem; }
.partners__inner p { margin: 0; color: var(--muted); }
.partners__logo { background: #fff; border-radius: var(--radius); padding: 34px; display: grid; place-items: center; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.partners__logo:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.partners__logo img { max-height: 70px; width: auto; }

/* Footer */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .65); padding: 80px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer__grid > div > a:not(.brand) { display: block; padding: 5px 0; transition: color .2s; }
.footer__grid > div > a:not(.brand):hover { color: var(--accent); }
.brand--footer { margin-bottom: 18px; }
.footer__grid p { max-width: 320px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0 30px; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 30px; }
.footer__bottom p { margin: 0; }

/* FAB */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease); }
.fab svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.fab:hover { transform: scale(1.08); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 20, 28, .95); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 22px; color: rgba(255, 255, 255, .7); font: 600 .9rem var(--font-head); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(8, 20, 28, .6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__box { background: #fff; border-radius: var(--radius); padding: 40px; max-width: 640px; max-height: 85vh; overflow: auto; position: relative; }
.modal__box h4 { margin: 20px 0 6px; font-size: 1rem; }
.modal__close { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); }

/* Cookie */
.cookie { position: fixed; left: 22px; bottom: 22px; z-index: 45; max-width: 420px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; align-items: center; gap: 16px; font-size: .88rem; transform: translateY(150%); transition: transform .5s var(--ease); }
.cookie.is-visible { transform: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--primary); text-decoration: underline; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal, .hero__content > * { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links { position: fixed; inset: 0; background: var(--navy-900); flex-direction: column; justify-content: center; gap: 26px; transform: translateX(100%); transition: transform .45s var(--ease); }
  .nav__links a:not(.btn) { color: #fff !important; font-size: 1.4rem; }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open .nav__toggle span { background: #fff; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about__grid, .contact__grid, .partners__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .services__grid, .steps, .footer__grid, .form__row { grid-template-columns: 1fr; }
  .brand__logo { height: 32px; }
  .hero { padding-top: 110px; }
  .hero__actions .btn { width: 100%; }
  .about__media { padding: 0 30px 40px 0; }
  .about__tag { left: -6px; }
  .cookie { left: 12px; right: 84px; bottom: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .map { height: 280px; }
}
