:root {
  --navy-950: #040a26;
  --navy-900: #06103a;
  --navy-800: #0b1b5c;
  --blue-600: #1f4fe0;
  --blue-500: #2f6bff;
  --cyan-400: #5cc8ff;
  --ink: #0e1630;
  --ink-2: #4a5574;
  --paper: #ffffff;
  --paper-2: #f2f5fc;
  --line: #dfe5f3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 16, 58, .10);
  --font-h: "Chakra Petch", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 16px/1.65 var(--font-b); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 .8rem/1 var(--font-h); text-transform: uppercase; letter-spacing: .16em; color: var(--blue-500); margin-bottom: .9rem; }
.sub { color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); font-size: .95rem; }
.hl { color: var(--cyan-400); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 10px; border: 2px solid var(--blue-500);
  background: var(--blue-500); color: #fff; font: 600 1rem var(--font-h); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47, 107, 255, .35); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }
.btn--sm { padding: .55em 1em; font-size: .92rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(6, 16, 58, .92); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__chip { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 4px; font: 700 1.1rem var(--font-h);
  box-shadow: 0 0 0 4px rgba(92, 200, 255, .15); position: relative; }
.logo__txt { font: 500 1.25rem var(--font-h); letter-spacing: .02em; }
.logo__txt b { font-weight: 700; }
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; opacity: .85; }
.nav__menu a:not(.btn):hover { opacity: 1; color: var(--cyan-400); }
.nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* PCB motif */
.pcb { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--blue-500); opacity: .22; pointer-events: none; }
.pcb--faint { opacity: .07; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 70% 40%, #1638b8 0%, var(--navy-800) 35%, var(--navy-950) 80%); padding: clamp(48px, 8vw, 110px) 0; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--cyan-400); }
.lead { font-size: 1.12rem; color: rgba(255, 255, 255, .82); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 2.2rem; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { padding: .5em 1em; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .9rem; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .04); }
.badges b { color: var(--cyan-400); font-family: var(--font-h); }
.hero__img { position: relative; }
.hero__img { max-width: 440px; justify-self: center; width: 100%; }
.hero__img img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 25%; width: 100%; height: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(92, 200, 255, .3); }
.hero__img::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--cyan-400); border-radius: var(--radius); opacity: .5; }

/* Sections */
.sec { position: relative; padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.sec--alt { background: var(--paper-2); }
.sec--dark { background: var(--navy-900); color: #fff; }
.sec--dark .eyebrow { color: var(--cyan-400); }
.sec--dark .sub { color: rgba(255, 255, 255, .7); }
.sec > .wrap { position: relative; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 2rem; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c4d2f5; }
.card p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.card__ico { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); display: grid; place-items: center; margin-bottom: 18px; }
.card__ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card--accent { background: linear-gradient(140deg, var(--navy-900), var(--blue-600)); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.card--accent p { color: rgba(255, 255, 255, .82); }
.card--accent .btn { background: #fff; color: var(--navy-900); border-color: #fff; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6rem 0 1.8rem; }
.filters button { font: 500 .92rem var(--font-b); color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: .5em 1.1em; cursor: pointer; }
.filters button:hover { border-color: var(--cyan-400); }
.filters button.is-on { background: var(--blue-500); border-color: var(--blue-500); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--navy-800); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: .85rem; background: linear-gradient(transparent, rgba(4, 10, 38, .9)); opacity: 0; transition: opacity .25s; }
.gallery a:hover span, .gallery a:focus-visible span { opacity: 1; }
.gallery .is-hidden, .gallery .is-member { display: none; }
.g-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--blue-500); color: #fff;
  font: 600 .78rem var(--font-h); font-style: normal; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.g-badge::before { content: "▶ "; font-size: .7em; }
.gallery .g-series span { opacity: 1; }
.gallery .g-series { box-shadow: 6px 6px 0 -2px var(--navy-800), 6px 6px 0 0 rgba(92, 200, 255, .5); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--paper-2); }
.steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-500); color: #fff; font: 700 1.1rem var(--font-h); margin-bottom: 14px; box-shadow: 0 0 0 6px rgba(47, 107, 255, .15); }
.steps p { color: var(--ink-2); margin: 0; font-size: .96rem; }

/* About */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about__img { position: relative; margin: 0 0 0 14px; }
.about__img::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--blue-500); border-radius: var(--radius); opacity: .45; }
.about__img img { position: relative; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; box-shadow: 0 24px 50px rgba(6, 16, 58, .25); }
.about__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 22px 18px; border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(transparent, rgba(4, 10, 38, .88)); color: rgba(255, 255, 255, .8); font-size: .9rem; }
.about__name b { display: block; color: #fff; font: 700 1.35rem var(--font-h); }
.about__badge { position: absolute; top: 22px; right: -18px; padding: 14px 18px; border-radius: 12px; text-align: center; line-height: 1.2; font-size: .8rem;
  background: linear-gradient(140deg, var(--navy-900), var(--blue-600)); color: rgba(255, 255, 255, .85); box-shadow: 0 12px 28px rgba(6, 16, 58, .35); }
.about__badge b { display: block; font: 700 1.9rem var(--font-h); color: var(--cyan-400); }
.about__txt > p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-500); color: #fff; font-size: .8rem; }

/* Area */
.area { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.towns { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: .4em .9em; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-wrap { display: grid; gap: 14px; }
.map-btn { justify-content: center; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cline { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); text-decoration: none; font: 600 1.1rem var(--font-h); }
.cline > span:first-child { width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.cline small { display: block; font: 400 .8rem var(--font-b); color: rgba(255, 255, 255, .6); }
a.cline:hover { color: var(--cyan-400); }
.form { background: #fff; color: var(--ink); padding: 28px; border-radius: var(--radius); display: grid; gap: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: .7em .85em; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue-500); outline-offset: 0; background: #fff; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.form .chk input { width: auto; margin-top: 4px; }
.form .btn { justify-content: center; }
.form__msg { margin: 0; font-weight: 500; }
.form__msg.ok { color: #0a8a4a; }
.form__msg.err { color: #c62828; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.foot { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 34px 0; font-size: .9rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot .logo { color: #fff; }
.foot p { margin: 0; }

/* Floating call button (mobile) */
.fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--blue-500); place-items: center; font-size: 1.5rem; text-decoration: none; box-shadow: 0 10px 25px rgba(47, 107, 255, .5); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(4, 10, 38, .95); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; color: #fff; }
.lb img { max-height: 84vh; max-width: min(1200px, 100%); margin: 0 auto; border-radius: 8px; }
.lb figcaption { margin-top: 10px; opacity: .8; }
.lb button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: var(--blue-500); }
.lb__x { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 900px) {
  .hero__in, .about, .area, .contact { grid-template-columns: 1fr; gap: 36px; }
  .hero__img { order: -1; max-width: 360px; }
  .hero__img img { aspect-ratio: 1; object-position: 50% 20%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about__img { max-width: 400px; margin-right: 18px; }
}
@media (max-width: 760px) {
  .nav__burger { display: block; }
  .nav__menu { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px;
    background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .1); display: none; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav__menu .btn { margin-top: 12px; justify-content: center; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .fab { display: grid; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery span { opacity: 1; font-size: .75rem; padding: 20px 8px 6px; }
  .form__row { grid-template-columns: 1fr; }
  .lb__prev, .lb__next { top: auto; bottom: 16px; transform: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero__img::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
