/* ================================================================
   ЭЛЕКТРОМОНТАЖНЫЕ РАБОТЫ — АЛМАТЫ
   style.css  |  Цвета из логотипа: тёмно-синий #1C2B3A + жёлтый #F5C800
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --navy:        #1C2B3A;
  --navy-light:  #243447;
  --navy-dark:   #131F2B;
  --yellow:      #F5C800;
  --yellow-dark: #D4AB00;
  --yellow-glow: rgba(245,200,0,0.13);
  --yellow-b:    rgba(245,200,0,0.25);
  --white:       #FFFFFF;
  --text-muted:  rgba(255,255,255,0.55);
  --text-dim:    rgba(255,255,255,0.32);
  --border:      rgba(255,255,255,0.08);
  --border-y:    rgba(245,200,0,0.22);
  --wa-green:    #25D366;
  --font-main:    'Montserrat', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px;
}

body { font-family: var(--font-main); background: var(--navy-dark); color: #fff; overflow-x: hidden; line-height: 1; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 5%; }

/* ── Labels ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 14px;
}
.section-tag::before { content: ''; width: 18px; height: 2px; background: var(--yellow); flex-shrink: 0; }
.section-title { font-family: var(--font-display); font-size: clamp(38px,5vw,66px); line-height: .93; letter-spacing: 1.5px; margin-bottom: 18px; }
.section-desc { font-size: 15px; color: var(--text-muted); line-height: 1.75; max-width: 500px; }
.section { padding: 100px 0; }
.section-navy { background: var(--navy); }
.section-dark { background: var(--navy-dark); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 56px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 32px; font-family: var(--font-main); font-size: 13px; font-weight: 700; letter-spacing: .6px; cursor: pointer; border: none; border-radius: var(--r-sm); transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--yellow); color: var(--navy-dark); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-wa { background: var(--wa-green); color: #fff; }
.btn-wa:hover { background: #1EB858; transform: translateY(-2px); }

/* ================================================================ NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(19,31,43,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.nav-logo img { height: 46px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--white); transition: color .2s; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-phone-num { font-family: var(--font-display); font-size: 20px; letter-spacing: 1px; color: var(--yellow); }
.nav-cta { background: var(--yellow); color: var(--navy-dark); border: none; padding: 10px 22px; border-radius: var(--r-sm); font-family: var(--font-main); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s; white-space: nowrap; }
.nav-cta:hover { background: var(--yellow-dark); }

/* ================================================================ HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 80px; position: relative; overflow: hidden; background: url('../img/baner-e.jpg') no-repeat center center; background-size: cover; }
.hero-bg-gradient { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 31, 43, 0.94) 0%, rgba(19, 31, 43, 0.85) 45%, rgba(19, 31, 43, 0.35) 100%), radial-gradient(circle at 80% 50%, rgba(245, 200, 0, 0.05) 0%, transparent 60%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(245,200,0,.05) 1px, transparent 1px), linear-gradient(90deg,rgba(245,200,0,.05) 1px,transparent 1px); background-size: 60px 60px; opacity: .6; }
.hero-bolt-bg { position: absolute; right: 4%; top: 50%; transform: translateY(-52%); font-size: clamp(200px,30vw,480px); line-height: 1; opacity: .03; color: var(--yellow); font-family: var(--font-display); pointer-events: none; user-select: none; }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow-glow); border: 1px solid var(--border-y); padding: 7px 18px; border-radius: 30px; margin-bottom: 36px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }
.hero h1 { font-family: var(--font-display); font-size: clamp(58px,8.5vw,108px); line-height: .91; letter-spacing: 2px; margin-bottom: 28px; }
.h1-yellow { color: var(--yellow); }
.h1-stroke { -webkit-text-stroke: 1.5px rgba(255,255,255,.2); color: transparent; }
.hero-sub { font-size: 16px; line-height: 1.75; color: var(--text-muted); max-width: 520px; margin-bottom: 44px; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; padding-top: 40px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-val { font-family: var(--font-display); font-size: 46px; color: var(--yellow); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-dim); letter-spacing: .3px; margin-top: 5px; line-height: 1.45; }

/* ================================================================ TICKER */
.ticker { background: var(--yellow); padding: 13px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker-scroll 30s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-size: 15px; letter-spacing: 2px; color: var(--navy-dark); padding: 0 28px; display: inline-flex; align-items: center; gap: 10px; }
.ticker-track span svg { width: 14px; height: 14px; fill: var(--navy-dark); flex-shrink: 0; }
@keyframes ticker-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ================================================================ SERVICES */
.services-cats { display: flex; flex-direction: column; gap: 3px; }
.cat-header { display: flex; align-items: center; gap: 16px; background: var(--navy); padding: 20px 28px; cursor: pointer; transition: background .2s; border-left: 3px solid transparent; border-radius: var(--r-sm); user-select: none; }
.cat-header:hover, .cat-header.open { background: var(--navy-light); border-left-color: var(--yellow); }
.cat-icon-wrap { width: 44px; height: 44px; background: var(--yellow-glow); border: 1px solid var(--border-y); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-icon-wrap svg { width: 22px; height: 22px; fill: var(--yellow); }
.cat-name { font-family: var(--font-display); font-size: 21px; letter-spacing: 1px; flex: 1; }
.cat-count { font-size: 11px; font-weight: 700; color: var(--yellow); background: var(--yellow-glow); border: 1px solid var(--border-y); padding: 4px 12px; border-radius: 20px; }
.cat-chevron { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; transition: transform .3s; }
.cat-chevron svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat-header.open .cat-chevron { transform: rotate(90deg); }
.cat-body { display: none; background: var(--navy-dark); border-left: 3px solid var(--yellow); border-radius: 0 0 var(--r-sm) var(--r-sm); margin-bottom: 2px; }
.cat-body.open { display: block; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1px; background: var(--border); }
.service-item { background: var(--navy-dark); padding: 24px 28px; transition: background .2s; }
.service-item:hover { background: var(--navy); }
.service-item-icon { width: 36px; height: 36px; margin-bottom: 14px; }
.service-item-icon svg { width: 36px; height: 36px; fill: var(--yellow); }
.service-item-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.service-item-desc { font-size: 12px; color: var(--text-muted); line-height: 1.65; }

/* ================================================================ WHY */
#why {
  position: relative;
  overflow: hidden;
  background: url('../img/baner-e2.jpg') no-repeat center center;
  background-size: cover;
}
.why-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 31, 43, 0.94) 0%, rgba(19, 31, 43, 0.85) 45%, rgba(19, 31, 43, 0.35) 100%),
              radial-gradient(circle at 80% 50%, rgba(245, 200, 0, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.features { margin-top: 40px; }
.feature { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.feature:first-child { border-top: 1px solid var(--border); }
.feat-icon { width: 46px; height: 46px; background: var(--yellow-glow); border: 1px solid var(--border-y); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feat-icon svg { width: 22px; height: 22px; fill: var(--yellow); }
.feat-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.feat-text { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.certs-box { background: var(--navy); border: 1px solid var(--border-y); border-radius: var(--r-md); padding: 40px 36px; position: relative; }
.certs-box::after { content: ''; position: absolute; bottom: -8px; right: -8px; top: 8px; left: 8px; border: 1px solid var(--border-y); border-radius: var(--r-md); z-index: -1; }
.cert-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: rgba(255,255,255,.82); }
.cert-item:last-child { border-bottom: none; }
.cert-ic { width: 34px; height: 34px; background: var(--yellow-glow); border: 1px solid var(--border-y); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cert-ic svg { width: 16px; height: 16px; fill: var(--yellow); }

/* ================================================================ PROCESS */
.process-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 60px; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, transparent, var(--yellow), transparent); opacity: .35; z-index: 0; }
.step { text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.step-num { width: 60px; height: 60px; border-radius: 50%; background: var(--navy-dark); border: 2px solid var(--yellow); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-family: var(--font-display); font-size: 28px; color: var(--yellow); }
.step-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.step-desc { font-size: 11px; color: var(--text-dim); line-height: 1.6; }

/* ================================================================ PORTFOLIO */
.portfolio-tabs { display: flex; gap: 4px; margin-bottom: 36px; }
.ptab { padding: 10px 26px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; border-radius: var(--r-sm); border: 1.5px solid var(--border); color: var(--text-muted); background: transparent; transition: all .2s; }
.ptab.active, .ptab:hover { background: var(--yellow); color: var(--navy-dark); border-color: var(--yellow); }
.portfolio-panel { display: none; }
.portfolio-panel.active { display: block; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.port-item { position: relative; overflow: hidden; border-radius: var(--r-sm); aspect-ratio: 4/3; background: var(--navy); cursor: pointer; }
.port-item.wide { grid-column: span 2; }
.port-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.port-item:hover img { transform: scale(1.06); }
.port-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(19,31,43,.85) 0%, transparent 55%); display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: opacity .3s; }
.port-item:hover .port-overlay { opacity: 1; }
.port-label { font-size: 12px; font-weight: 700; color: var(--yellow); letter-spacing: .5px; }
/* Video grid */
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.video-item { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--navy); cursor: pointer; }
.video-item.wide { grid-column: span 2; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.video-item:hover .video-thumb { transform: scale(1.05); }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(19,31,43,.35); transition: background .25s; }
.video-item:hover .video-play { background: rgba(19,31,43,.15); }
.play-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.video-item:hover .play-circle { transform: scale(1.1); }
.play-circle svg { width: 24px; height: 24px; fill: var(--navy-dark); margin-left: 3px; }
.video-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px; background: linear-gradient(to top, rgba(19,31,43,.9), transparent); opacity: 0; transition: opacity .3s; }
.video-item:hover .video-info { opacity: 1; }
.video-title { font-size: 12px; font-weight: 700; color: var(--yellow); }

/* ================================================================ TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin-top: 56px; }
.team-card { background: var(--navy); border-radius: var(--r-md); overflow: hidden; transition: transform .25s; }
.team-card:hover { transform: translateY(-5px); }
.team-photo-wrap { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; background: var(--navy-light); }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(160deg, var(--navy-light), var(--navy)); }
.team-placeholder svg { width: 64px; height: 64px; fill: rgba(245,200,0,.2); }
.team-info { padding: 18px 20px; }
.team-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.team-role { font-size: 12px; color: var(--yellow); font-weight: 600; margin-bottom: 8px; }
.team-exp { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ================================================================ OBJECTS */
.objects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; margin-top: 56px; }
.obj { background: var(--navy); padding: 36px 30px; position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .25s; border-radius: var(--r-sm); }
.obj:hover { background: var(--navy-light); }
.obj.wide { grid-column: span 2; min-height: 280px; }
.obj-badge { position: absolute; top: 18px; right: 18px; background: var(--yellow-glow); border: 1px solid var(--border-y); padding: 4px 12px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); }
.obj-icon { width: 52px; height: 52px; margin-bottom: 16px; }
.obj-icon svg { width: 52px; height: 52px; fill: rgba(245,200,0,.25); }
.obj-title { font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; margin-bottom: 8px; line-height: 1.05; }
.obj-desc { font-size: 12px; color: var(--text-dim); line-height: 1.65; }

/* ================================================================ CTA */
.cta-stripe { background: var(--yellow); padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-title { font-family: var(--font-display); font-size: clamp(32px,4.5vw,58px); color: var(--navy-dark); line-height: 1.0; letter-spacing: 1px; margin-bottom: 10px; }
.cta-sub { font-size: 14px; color: rgba(19,31,43,.55); font-weight: 600; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.btn-cta-dark { background: var(--navy-dark); color: var(--yellow); border: none; padding: 16px 36px; border-radius: var(--r-sm); font-family: var(--font-main); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; display: inline-flex; align-items: center; gap: 10px; }
.btn-cta-dark:hover { background: var(--navy); }
.cta-note { font-size: 11px; color: rgba(19,31,43,.45); font-weight: 700; }

/* ================================================================ FOOTER */
footer { background: var(--navy); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 52px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 52px; width: auto; }
.footer-about { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 240px; margin-bottom: 24px; }
.footer-col h4 { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); margin-bottom: 18px; }
.footer-col li { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; cursor: pointer; transition: color .2s; line-height: 1.5; }
.footer-col li:hover { color: #fff; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.contact-line svg { width: 16px; height: 16px; fill: var(--yellow); flex-shrink: 0; margin-top: 1px; }
.footer-phone { font-family: var(--font-display); font-size: 22px; color: var(--yellow); letter-spacing: 1px; display: block; margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 11px; color: var(--text-dim); }

/* ================================================================ WA WIDGET */
.wa-widget { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-popup { background: #fff; border-radius: var(--r-lg); padding: 22px; width: 290px; box-shadow: 0 8px 40px rgba(0,0,0,.35); display: none; flex-direction: column; gap: 14px; position: relative; transform-origin: bottom right; animation: popIn .25s ease; }
.wa-popup.visible { display: flex; }
@keyframes popIn { from{opacity:0;transform:scale(.88)} to{opacity:1;transform:scale(1)} }
.wa-popup-close { position: absolute; top: -11px; right: -11px; width: 26px; height: 26px; border-radius: 50%; background: #888; color: #fff; border: none; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.wa-popup-header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.wa-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-avatar-icon { width: 24px; height: 24px; fill: var(--yellow); }
.wa-popup-name { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 2px; }
.wa-popup-status { font-size: 11px; color: var(--wa-green); font-weight: 600; }
.wa-popup-msg { font-size: 13px; color: #333; line-height: 1.65; background: #f5f5f5; border-radius: 8px 8px 8px 2px; padding: 12px 14px; }
.wa-popup-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--wa-green); color: #fff; padding: 13px; border-radius: 8px; font-weight: 700; font-size: 13px; text-decoration: none; transition: background .2s; }
.wa-popup-btn:hover { background: #1EB858; }
.wa-btn-main { width: 62px; height: 62px; border-radius: 50%; background: var(--wa-green); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 22px rgba(37,211,102,.5); transition: transform .2s, box-shadow .2s; position: relative; }
.wa-btn-main:hover { transform: scale(1.08); box-shadow: 0 6px 30px rgba(37,211,102,.65); }
.wa-pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37,211,102,.45); animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0%{transform:scale(.9);opacity:.8} 70%{transform:scale(1.35);opacity:0} 100%{transform:scale(1.35);opacity:0} }
.wa-btn-main svg { width: 30px; height: 30px; fill: white; }
.wa-tooltip { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.wa-btn-main:hover .wa-tooltip { opacity: 1; }

/* ================================================================ MODAL LEAD FORM */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 31, 43, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: rgba(28, 43, 58, 0.9);
  border: 1px solid var(--border-y);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--yellow);
  color: var(--navy-dark);
  border-color: var(--yellow);
  transform: rotate(90deg);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.1;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow);
  margin-bottom: 8px;
}
.form-group input,
.form-group select {
  width: 100%;
  background: rgba(19, 31, 43, 0.6);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-family: var(--font-main);
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: all 0.25s;
}
.form-group input::placeholder {
  color: var(--text-dim);
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 12px var(--yellow-glow);
  background: rgba(19, 31, 43, 0.85);
}
/* Custom dropdown wrappers */
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: '▼';
  font-size: 9px;
  color: var(--text-muted);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 0.2s;
}
.select-wrapper:focus-within::after {
  color: var(--yellow);
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}
.form-group select option {
  background: var(--navy-light);
  color: #fff;
}
/* Error validation styles */
.form-group.invalid input {
  border-color: #ff3333;
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.15);
}
.form-group .error-msg {
  display: none;
  font-size: 11px;
  font-weight: 600;
  color: #ff3333;
  margin-top: 6px;
}
.form-group.invalid .error-msg {
  display: block;
}

/* Submit button with loader */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 14px;
  margin-top: 10px;
  position: relative;
}
.btn-submit.loading .btn-text {
  visibility: hidden;
  opacity: 0;
}
.btn-submit .spinner {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(19, 31, 43, 0.2);
  border-top-color: var(--navy-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-submit.loading .spinner {
  display: block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success state styles */
#modalSuccessState {
  text-align: center;
  padding: 10px 0;
}
.success-icon-wrap {
  width: 70px;
  height: 70px;
  background: var(--yellow-glow);
  border: 1px solid var(--border-y);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pulseSuccess 2s infinite;
}
@keyframes pulseSuccess {
  0% { box-shadow: 0 0 0 0 rgba(245, 200, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(245, 200, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 200, 0, 0); }
}
.success-title {
  color: var(--yellow) !important;
}
.success-desc {
  max-width: 320px;
  margin: 0 auto 10px;
}

/* ================================================================ LIGHTBOX PHOTO POPUP */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(10, 17, 24, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-modal.active {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-y);
  box-shadow: 0 0 30px rgba(245, 200, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  object-fit: contain;
  cursor: default;
}
.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: all 0.2s;
  cursor: pointer;
  z-index: 2001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.lightbox-close:hover {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}
.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  width: 90%;
  max-width: 600px;
}

/* ================================================================ OPTIMIZATION FOR READABILITY */
.btn { font-size: 15px; }
.section-tag { font-size: 12px; }
.stat-label { font-size: 13px; }
.cat-count { font-size: 12px; }
.service-item-title { font-size: 15px; }
.service-item-desc { font-size: 13px; }
.feat-title { font-size: 15px; }
.feat-text { font-size: 14px; }
.cert-item { font-size: 15px; }
.step-title { font-size: 18px; }
.step-desc { font-size: 13px; }
.ptab { font-size: 14px; }
.port-label { font-size: 14px; }
.video-title { font-size: 13px; }
.team-role { font-size: 13px; }
.team-exp { font-size: 12px; }
.obj-badge { font-size: 11px; }
.obj-desc { font-size: 15px; }
.cta-sub { font-size: 15px; }
.btn-cta-dark { font-size: 15px; }
.cta-note { font-size: 13px; }
.footer-about { font-size: 14px; }
.footer-col h4 { font-size: 11px; }
.footer-col li { font-size: 14px; }
.contact-line { font-size: 14px; }
.footer-copy { font-size: 12px; }
.wa-popup-close { font-size: 14px; }
.wa-popup-name { font-size: 14px; }
.wa-popup-status { font-size: 12px; }
.wa-popup-msg { font-size: 14px; }
.wa-popup-btn { font-size: 14px; }
.wa-tooltip { font-size: 13px; }
.modal-close { font-size: 15px; }
.modal-subtitle { font-size: 14px; }
.form-group label { font-size: 12px; }
.form-group input, .form-group select { font-size: 15px; }
.select-wrapper::after { font-size: 10px; }
.form-group .error-msg { font-size: 12px; }

/* ================================================================ RESPONSIVE */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .process-steps::before { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  .portfolio-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid .port-item.wide, .video-grid .video-item.wide { grid-column: span 1; }
  .objects-grid { grid-template-columns: repeat(2, 1fr); }
  .obj.wide { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .nav-inner { padding: 0 16px; height: 60px; }
  .nav-logo img { height: 38px; }
  .nav-cta { padding: 8px 16px; font-size: 12px; }
  .nav-phone-num { display: none; }

  .hero { padding: 90px 0 60px; min-height: auto; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); margin-bottom: 18px; }
  .hero-badge { margin-bottom: 24px; font-size: 11px; padding: 6px 14px; }
  .hero-sub { margin-bottom: 30px; font-size: 15px; }
  .hero-actions { gap: 10px; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px 10px; justify-content: space-between; }
  .hero-stats > div { flex: 0 0 45%; }

  .cat-header { padding: 16px; gap: 12px; }
  .cat-name { font-size: 17px; }
  .cat-count { font-size: 11px; padding: 2px 8px; }
  .cat-icon-wrap { width: 36px; height: 36px; }
  .cat-icon-wrap svg { width: 18px; height: 18px; }

  .certs-box { padding: 24px 20px; }
  .certs-box::after { display: none; }
  .cert-item { font-size: 14px; padding: 10px 0; }
  .cert-ic { width: 30px; height: 30px; }
  .cert-ic svg { width: 14px; height: 14px; }

  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .step-num { width: 50px; height: 50px; font-size: 18px; margin-bottom: 14px; }
  .step-title { font-size: 14px; }
  .step-desc { font-size: 13px; }

  .portfolio-grid, .video-grid { grid-template-columns: 1fr; }
  
  .team-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .team-card { max-width: 320px; margin: 0 auto; }
  
  .objects-grid { grid-template-columns: 1fr; }
  .obj.wide { grid-column: span 1; }

  .cta-inner { text-align: center; justify-content: center; }
  .cta-actions { width: 100%; align-items: stretch !important; margin-top: 15px; }
  .btn-cta-dark { width: 100%; justify-content: center; box-sizing: border-box; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-about { max-width: 100%; }

  .modal-content { padding: 30px 24px; }
  .modal-title { font-size: 28px; }

  .wa-widget { bottom: 14px; right: 14px; }
}

