:root {
  --navy: #081d4b;
  --navy-2: #0a2c5f;
  --blue: #147ed0;
  --cyan: #22c8dc;
  --teal: #18bda3;
  --green: #18df9a;
  --ink: #0e2144;
  --muted: #66748c;
  --bg: #f7fbff;
  --surface: #ffffff;
  --line: #e5edf6;
  --soft: #eff8fc;
  --shadow: 0 16px 42px rgba(16, 54, 93, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 42px)); margin: 0 auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: #fff; color: #000; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(13, 44, 88, .07); }
.nav-wrap { height: 76px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 28px; }
.brand { display: block; width: 174px; overflow: hidden; }
.brand img { width: 100%; height: 52px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 26px; }
.main-nav a { position: relative; text-decoration: none; font-size: 13px; font-weight: 700; color: #263b5c; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--blue)); transition: .22s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.header-cta { display: inline-flex; align-items: center; gap: 16px; padding: 12px 20px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; box-shadow: 0 10px 24px rgba(8, 29, 75, .14); }
.header-cta:hover { background: #0c3973; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; border-radius: 12px; background: #eef6fb; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 99px; }

.hero { position: relative; overflow: hidden; padding: 54px 0 42px; background: linear-gradient(135deg, #fbfdff 0%, #f0f9ff 48%, #eaf8fb 100%); }
.hero::before { content: ""; position: absolute; width: 680px; height: 680px; left: -430px; top: -160px; border-radius: 50%; border: 86px solid rgba(34,200,220,.09); box-shadow: 0 0 0 70px rgba(20,126,208,.04), 0 0 0 140px rgba(24,223,154,.035); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; min-height: 550px; }
.eyebrow, .section-label { margin: 0 0 16px; font-size: 12px; letter-spacing: .22em; font-weight: 800; color: var(--blue); }
.hero h1 { margin: 0; max-width: 570px; font-size: clamp(48px, 6.2vw, 76px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { background: linear-gradient(90deg, #0e517f, #13b9b1 65%, #18df9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-kicker { margin: 26px 0 8px; font-weight: 800; color: #1f3759; }
.hero-text { max-width: 600px; margin: 0; font-size: 17px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 13px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(95deg, var(--navy), #0a62a7 62%, #15b8af); color: #fff; box-shadow: 0 12px 30px rgba(12, 85, 146, .18); }
.btn-soft { background: #fff; color: var(--navy); border: 1px solid #dbe8f1; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; inset: -24px -28px 22px 40%; border-radius: 34px; background: linear-gradient(135deg, rgba(34,200,220,.18), rgba(24,223,154,.12)); filter: blur(4px); }
.hero-visual > img { width: 100%; aspect-ratio: 1.52; object-fit: cover; border-radius: 30px; box-shadow: 0 25px 60px rgba(12, 54, 94, .18); }
.hero-badge { position: absolute; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid rgba(255,255,255,.78); border-radius: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); box-shadow: 0 12px 34px rgba(18, 60, 96, .16); }
.hero-badge strong, .hero-badge small { display: block; }
.hero-badge strong { color: var(--navy); font-size: 13px; }
.hero-badge small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.badge-left { left: -26px; bottom: 28px; max-width: 235px; }
.badge-right { right: 18px; top: 20px; display: block; min-width: 135px; text-align: center; }
.badge-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #e5fbf6, #e9f7ff); color: var(--teal); font-size: 20px; }

.intro { padding: 48px 0; background: #fff; border-bottom: 1px solid #edf2f8; }
.intro-grid { display: grid; grid-template-columns: .8fr 1.3fr 1.15fr; gap: 38px; align-items: center; }
.intro-title h2 { margin: 0; font-size: clamp(31px, 3.8vw, 47px); line-height: 1.03; letter-spacing: -.04em; }
.intro-title h2 span { color: var(--blue); }
.intro-copy { padding-left: 36px; border-left: 1px solid #dfe8f0; }
.intro-copy p { margin: 0 0 9px; color: var(--muted); font-size: 14px; }
.intro-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.intro-values div { min-height: 116px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 18px; background: linear-gradient(180deg, #f6fbff, #f0f7fb); }
.intro-values span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 50%; background: #dff6ff; color: var(--blue); }
.intro-values strong { font-size: 12px; }
.intro-values small { font-size: 10px; color: var(--muted); }

.section { padding: 84px 0; }
.section-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: end; margin-bottom: 34px; }
.section-head.compact { grid-template-columns: 1fr; margin-bottom: 28px; }
.section-head h2, .project-head h2, .contact-title h2 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -.045em; }
.section-head > p { max-width: 530px; margin: 0; color: var(--muted); }
.services { background: var(--bg); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 226px; padding: 25px 24px; border: 1px solid #e6eef6; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 12px 34px rgba(28, 72, 112, .055); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d6e7f1; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #e4f8ff, #e8fbf4); color: var(--blue); font-size: 24px; font-weight: 800; }
.service-card h3 { margin: 21px 0 10px; font-size: 19px; line-height: 1.15; }
.service-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

.projects { position: relative; overflow: hidden; padding: 76px 0 82px; background: linear-gradient(120deg, #072248 0%, #083b63 60%, #0a5678 100%); color: #fff; }
.projects::after { content: ""; position: absolute; right: -120px; bottom: -130px; width: 520px; height: 310px; background: url('assets/img/pattern.png') center/cover no-repeat; opacity: .08; transform: rotate(-6deg); }
.project-head { position: relative; z-index: 2; margin-bottom: 30px; }
.project-head h2 { color: #fff; }
.section-label.light { color: #64e4ea; }
.project-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.project-card { margin: 0; }
.gallery-open { width: 100%; aspect-ratio: 1.38; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #0b3559; cursor: zoom-in; }
.gallery-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-open:hover img { transform: scale(1.04); }
.project-card figcaption { padding: 8px 3px 0; font-size: 11px; color: rgba(255,255,255,.7); }
.empty-projects { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.empty-projects span { display: block; aspect-ratio: 1.38; border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.08); }

.brands { background: #fff; }
.brand-strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid #e8eef4; border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(25, 61, 102, .06); }
.brand-logo { min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px; text-align: center; background: #fbfdff; border-radius: 14px; font-weight: 800; overflow: hidden; }
.brand-logo small { font-size: 6.5px; letter-spacing: .03em; opacity: .62; }
.brand-ubiquiti { color: #2379b4; font-size: 11px; letter-spacing: .08em; }
.mark-u { font-size: 29px; font-weight: 900; line-height: 1; transform: scaleX(.82); }
.brand-mikrotik { color: #111; font-size: 17px; flex-direction: row; }
.hex { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #14191f; color: #fff; font-size: 13px; }
.brand-tplink { color: #4acbd6; font-size: 16px; flex-direction: row; }
.tp-mark { font-size: 25px; }
.brand-dahua > span { color: #171717; font-size: 20px; font-style: italic; letter-spacing: -.04em; }
.brand-dahua > span::first-letter { color: #e3202b; }
.brand-hik { flex-direction: row; gap: 0; font-size: 16px; }
.brand-hik span { color: #df3038; } .brand-hik b { color: #686868; }
.brand-witek > span { color: #ef7d18; font-size: 18px; font-weight: 900; }
.brand-aruba > span { color: #f58220; font-size: 21px; font-weight: 500; }
.brand-fortinet > span { color: #262326; font-size: 16px; font-weight: 800; letter-spacing: -.04em; }
.forti-o { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 1px; background: #ef2b2f; color: transparent; clip-path: polygon(0 22%,22% 22%,22% 0,78% 0,78% 22%,100% 22%,100% 78%,78% 78%,78% 100%,22% 100%,22% 78%,0 78%); }
.brand-cisco { color: #1678b8; gap: 0; }
.cisco-bars { font-size: 18px; letter-spacing: -4px; line-height: .8; }
.brand-cisco strong { font-size: 14px; letter-spacing: .12em; }

.clients { background: #f9fbfd; border-top: 1px solid #eef3f7; }
.client-grid, .empty-clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.client-logo, .empty-clients span { min-height: 102px; border-radius: 16px; border: 1px solid #ebf0f5; background: #fff; }
.client-logo { display: grid; place-items: center; padding: 16px; }
.client-logo img { max-width: 145px; max-height: 58px; object-fit: contain; filter: grayscale(100%); opacity: .72; transition: .2s ease; }
.client-logo:hover img { filter: none; opacity: 1; }
.empty-clients span { background: linear-gradient(180deg, #fff, #f4f7fa); }

.contact { padding: 60px 0; background: linear-gradient(118deg, #06264e 0%, #082f5b 65%, #0b4666 100%); color: #fff; }
.contact-wrap { display: grid; grid-template-columns: .72fr 1.28fr; gap: 40px; align-items: center; }
.contact-title h2 span { color: #43d7df; }
.contact-title p:last-child { max-width: 470px; margin: 16px 0 0; color: rgba(255,255,255,.67); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 88px; padding: 14px 15px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.16); }
.contact-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-size: 23px; }
.whatsapp .contact-icon { background: linear-gradient(135deg, #1ad66f, #15af67); }
.instagram .contact-icon { background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5); }
.contact-card small, .contact-card strong { display: block; }
.contact-card small { font-size: 9px; color: #6d7b8f; }
.contact-card strong { margin-top: 2px; font-size: 12px; white-space: nowrap; }
.contact-card b { color: #7f8ba0; }

.footer { padding: 44px 0 22px; background: #06182f; color: rgba(255,255,255,.68); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px; align-items: start; }
.footer-brand img { width: 184px; height: 62px; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 400px; margin: 8px 0 0; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 20px; padding-top: 10px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.68); text-decoration: none; font-size: 12px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 4px; padding-top: 10px; font-size: 12px; }
.footer-contact strong { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 10px; color: rgba(255,255,255,.38); }

.quick-contact { position: fixed; right: 20px; bottom: 20px; z-index: 95; }
.quick-btn { border: 0; border-radius: 999px; padding: 13px 18px; background: linear-gradient(95deg, #18df9a, #17bde0); color: #04354c; font-weight: 900; cursor: pointer; box-shadow: 0 14px 34px rgba(2, 72, 83, .24); }
.quick-menu { position: absolute; right: 0; bottom: 58px; width: 242px; padding: 7px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.quick-menu a { display: block; padding: 11px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.quick-menu a:hover { background: #f3f8fb; }
.quick-menu strong, .quick-menu span { display: block; }
.quick-menu span { color: var(--muted); font-size: 11px; }

.lightbox { width: min(1100px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #06182f; color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; background: #02060e; }
.lightbox p { margin: 0; padding: 13px 18px; font-size: 12px; color: rgba(255,255,255,.78); }
.lightbox-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 25px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .18s; }

@media (max-width: 1050px) {
  .nav-wrap { grid-template-columns: 180px auto 1fr; }
  .main-nav { position: absolute; top: 68px; right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid #e3ebf2; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; justify-self: end; grid-column: 3; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 780px; }
  .hero-visual { max-width: 880px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-copy { padding-left: 0; border-left: 0; }
  .intro-values { max-width: 720px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .empty-projects { grid-template-columns: repeat(3, 1fr); }
  .brand-strip { grid-template-columns: repeat(5, 1fr); }
  .client-grid, .empty-clients { grid-template-columns: repeat(3, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-wrap { height: 68px; grid-template-columns: 160px 1fr auto; gap: 12px; }
  .brand { width: 154px; }
  .brand img { height: 46px; }
  .hero { padding: 40px 0 34px; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: 49px; }
  .hero-text { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-visual > img { aspect-ratio: 1.08; border-radius: 22px; }
  .badge-left { left: 10px; bottom: 10px; max-width: 210px; }
  .badge-right { right: 10px; top: 10px; }
  .intro { padding: 40px 0; }
  .intro-values { grid-template-columns: 1fr 1fr 1fr; }
  .section { padding: 66px 0; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .project-grid, .empty-projects { grid-template-columns: repeat(2, 1fr); }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .client-grid, .empty-clients { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 42px; }
  .hero-kicker { font-size: 14px; }
  .hero-badge { display: none; }
  .intro-values { grid-template-columns: 1fr; }
  .project-grid, .empty-projects { grid-template-columns: 1fr; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .quick-contact { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.brand-logo img { max-width: 132px; max-height: 48px; object-fit: contain; }
.brand-ubiquiti img { max-width: 46px; max-height: 42px; }
.brand-ubiquiti span { font-size: 9px; letter-spacing: .12em; color: #2379b4; }
.brand-mikrotik img { max-width: 132px; max-height: 38px; }
.brand-tplink img { max-width: 126px; max-height: 34px; }
.brand-dahua img { max-width: 132px; max-height: 42px; }
.brand-aruba img { max-width: 132px; max-height: 46px; }
.brand-fallback { display: none; }
