/* =========================================================
   Om Electricals Power Pvt. Ltd. — website styles
   Visual language taken from the company brochure:
   navy #1c4571 + sky blue #2998cf, Playfair Display headings,
   Source Sans body, faint "+" pattern, navy caption bars.
   ========================================================= */

:root {
  --navy: #1c4571;
  --navy-deep: #13314f;
  --navy-ink: #0f2740;
  --sky: #2998cf;
  --sky-soft: #8cc8e8;
  --bg: #f4f8fb;
  --card: #ffffff;
  --ink: #1d2b3a;
  --muted: #5a6b7e;
  --line: #d6e1eb;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(19, 49, 79, .35);
  --shadow-sm: 0 4px 14px -6px rgba(19, 49, 79, .3);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 23v10M23 28h10' stroke='%23c3d4e3' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 200; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* faint "+" pattern from the brochure — text placed on it always sits on a solid panel */
.pattern { background-color: var(--bg); background-image: var(--plus); }
.boxed {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 28px -18px rgba(19, 49, 79, .45);
}

/* thin navy→sky stripe used at the bottom of every brochure page */
.stripe { height: 6px; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 35%, var(--sky) 100%); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--sky); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

.chip { display: inline-block; background: var(--navy); color: #fff; padding: 6px 18px; font-size: 17px; letter-spacing: .01em; }
.pill { display: inline-block; background: var(--navy); color: #fff; padding: 7px 20px; border-radius: 999px; font-size: 15px; box-shadow: var(--shadow-sm); }

/* ---------- Section headings (brochure style) ---------- */
.section { padding: 96px 0; position: relative; }
.section-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(34px, 4.4vw, 52px);
  color: var(--sky); text-align: center; letter-spacing: .005em;
}
.section-title.navy { color: var(--navy); }
.section-title.left { text-align: left; }
.section-sub {
  text-align: center; font-family: var(--serif); font-weight: 700; color: var(--navy);
  font-size: clamp(20px, 2.2vw, 26px); margin: 10px 0 0; line-height: 1.25;
}
.section-lead { max-width: 680px; margin: 12px auto 0; text-align: center; color: var(--muted); font-size: 18px; }
.section-head { margin-bottom: 52px; }
.section-head.boxed { max-width: 820px; margin: 0 auto 52px; padding: 26px 36px 28px; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: 0 6px 24px -14px rgba(19, 49, 79, .45); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--navy); }
.brand-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); font-weight: 700; margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px; position: relative; }
.nav-menu a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--sky); transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--navy); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu .nav-cta a { background: var(--navy); color: #fff; border-radius: 999px; padding: 9px 20px; margin-left: 8px; }
.nav-menu .nav-cta a::after { display: none; }
.nav-menu .nav-cta a:hover { background: var(--sky); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 8px; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* =========================================================
   Hero — mirrors the brochure cover (text left, machines right
   overlapping the navy band). Plain background, no pattern.
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero-top { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center;
  padding-top: 64px; padding-bottom: 40px; min-height: 520px;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--sky); }
.hero h1 { margin: 0; font-weight: inherit; }
.hero-title { display: block; font-family: var(--serif); font-weight: 900; color: var(--navy); font-size: clamp(38px, 5vw, 62px); line-height: 1.07; letter-spacing: -.005em; }
.hero-sub { display: block; font-family: var(--sans); font-weight: 400; font-size: clamp(18px, 1.8vw, 22px); color: var(--ink); margin: 18px 0 16px; line-height: 1.35; }
.hero .chip { font-size: clamp(16px, 1.6vw, 19px); }
.hero-desc { color: var(--muted); max-width: 540px; margin: 22px 0 30px; font-size: 17.5px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; width: 100%; aspect-ratio: 1 / .86; }
.hero-art img { position: absolute; height: auto; filter: drop-shadow(0 18px 22px rgba(15, 39, 64, .28)); }
.hero-art .art-magnet { width: 40%; left: 36%; top: 4%; animation: sway 6s ease-in-out infinite; transform-origin: 52% 0; }
.hero-art .art-chain { position: absolute; left: calc(36% + 40% * .52 - 1.5px); top: -200px; height: calc(200px + 4.5%); width: 3px; background: repeating-linear-gradient(180deg, #3b4652 0 7px, #6c7884 7px 10px); border-radius: 2px; }
.hero-art .art-motor { width: 74%; left: -4%; bottom: -30%; z-index: 2; }
.hero-art .art-transformer { width: 33%; right: 0; bottom: -18%; z-index: 1; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .art-magnet { animation: none; } html { scroll-behavior: auto; } }

.hero-band { background: var(--navy); color: #fff; position: relative; z-index: 1; }
.hero-band .container { padding-top: 38px; padding-bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 40px; list-style: none; margin: 0; padding: 0; }
.stat-num { display: block; font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1.05; color: #fff; white-space: nowrap; }
.stat-num em { font-style: normal; font-family: var(--sans); font-weight: 700; color: var(--sky-soft); margin-left: 2px; }
.stat-num small { font-size: .5em; font-weight: 600; color: var(--sky-soft); }
.stat-label { display: block; font-size: 15px; color: #c7d8e8; margin-top: 6px; line-height: 1.35; }

/* =========================================================
   About
   ========================================================= */
.about { padding-top: 0; }
.about-banner {
  width: 100%; height: clamp(260px, 36vw, 500px); object-fit: cover; object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
}
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; margin-top: -20px; position: relative; }
.about-copy .section-title { margin-bottom: 14px; }
.about-kicker { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 21px; line-height: 1.4; margin-bottom: 18px; }
.about-copy p:not(.about-kicker) { font-size: 18px; color: #2d3d4f; text-align: justify; hyphens: auto; }
.glance { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; border-top: 5px solid var(--sky); }
.glance h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 24px; margin-bottom: 14px; }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.glance li:last-child { border-bottom: 0; }
.glance svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--sky); margin-top: 2px; }
.glance strong { color: var(--navy); }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.value svg { width: 34px; height: 34px; color: var(--sky); margin-bottom: 14px; }
.value h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 21px; margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.value-primary { background: var(--navy); border-color: var(--navy); }
.value-primary h3 { color: #fff; }
.value-primary p { color: #c7d8e8; }
.value-primary svg { color: var(--sky-soft); }

/* Vision & mission band */
.vision { margin-top: 110px; background: var(--navy); color: #fff; position: relative; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.vision-copy { padding: 64px 0; }
.vision-copy h2 { font-family: var(--serif); font-weight: 900; color: var(--sky); font-size: clamp(36px, 4.4vw, 54px); margin-bottom: 20px; }
.vision-copy h3 { font-family: var(--serif); font-weight: 700; color: var(--sky); font-size: 26px; margin: 30px 0 10px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); max-width: 460px; }
.vision-copy p { color: #dbe7f2; font-size: 19px; max-width: 460px; margin: 0; }
.vision-photo { position: relative; justify-self: center; margin: -48px 0; text-align: center; }
.vision-photo img { width: min(380px, 100%); aspect-ratio: 3 / 4; object-fit: cover; border: 8px solid #fff; box-shadow: var(--shadow); }
.vision-photo .pill { position: relative; margin-top: -18px; background: var(--navy); border: 2px solid #fff; }

/* =========================================================
   Photo cards (brochure: photo + navy caption bar)
   ========================================================= */
.photo-card, .svc-card {
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.photo-card:hover, .svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo-card .media, .svc-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; padding: 6px 6px 0; }
.photo-card .media img, .svc-card .media img { width: 100%; height: 100%; object-fit: cover; }
.svc-card .media.contain { background: linear-gradient(180deg, #fff 0%, #eef4f9 100%); padding: 18px; }
.svc-card .media.contain img { object-fit: contain; }
.caption {
  background: var(--navy); color: #fff; text-align: center;
  padding: 14px 16px 15px; margin-top: 6px;
  display: flex; flex-direction: column; justify-content: center;
}
.photo-card .caption { flex: 1; }
.caption h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; line-height: 1.3; }
.caption p { margin: 4px 0 0; color: var(--sky-soft); font-size: 15px; font-weight: 600; line-height: 1.35; }

/* =========================================================
   Services
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.svc-card .caption { min-height: 122px; }
.svc-card .caption h3 { font-size: 17.5px; }
.svc-body { padding: 18px 20px 22px; flex: 1; }
.svc-body p { font-size: 15.5px; color: #3a4a5c; line-height: 1.55; margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.checks svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--sky); margin-top: 1px; }
.services-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
  max-width: 820px; margin: 48px auto 0; padding: 22px 28px;
}
.services-cta p { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 21px; line-height: 1.3; }

/* =========================================================
   Infrastructure
   ========================================================= */
.infra { background: var(--bg); overflow: hidden; }
.infra::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: url("../assets/img/bg-industry.jpg") center bottom / cover no-repeat;
  opacity: .7; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%);
          mask-image: linear-gradient(to top, #000 30%, transparent 100%);
}
.infra .container { position: relative; z-index: 1; }
.infra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.infra-grid .strip .media { aspect-ratio: 2.35 / 1; }
.tag-soon {
  display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px;
  background: var(--sky); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; vertical-align: 2px;
}
.infra-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.fact { background: #fff; border: 1px solid var(--line); padding: 18px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.fact b { display: block; font-family: var(--serif); font-weight: 900; color: var(--navy); font-size: 24px; line-height: 1.15; white-space: nowrap; }
.fact span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 6px; line-height: 1.35; }
.equip-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.equip-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); box-shadow: var(--shadow-sm); padding: 24px 26px 18px; }
.equip-card h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 22px; margin-bottom: 10px; }
.equip-card .checks li { font-weight: 400; border-bottom: 1px dashed var(--line); padding: 8px 0; }
.equip-card .checks li:last-child { border-bottom: 0; }

/* =========================================================
   Test facilities
   ========================================================= */
.tests-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.test { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 8px 8px 18px; }
.test-photo { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.test-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.test-photo:hover img { transform: scale(1.04); }
.test-tab {
  align-self: flex-start; margin: -22px 0 0 -20px; position: relative;
  background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700;
  font-size: 18px; line-height: 1.2; padding: 10px 22px 11px 20px;
  border-radius: 0 999px 999px 0; box-shadow: var(--shadow-sm); max-width: calc(100% + 12px);
}
.test-meta { padding: 12px 8px 0; font-size: 15px; color: #3a4a5c; }
.test-meta .make { color: var(--sky); font-weight: 700; display: block; margin-bottom: 2px; }
.test-meta span { display: block; }

/* =========================================================
   Equipment table
   ========================================================= */
.equipment { background: #fff; }
.table-wrap { overflow-x: auto; box-shadow: var(--shadow-sm); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table.equip { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 16px; }
.equip thead th { background: var(--navy); color: #fff; text-align: left; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 14px 18px; }
.equip thead th:first-child { width: 90px; text-align: center; white-space: nowrap; }
.equip td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.equip td:first-child { text-align: center; color: var(--navy); font-weight: 700; }
.equip tbody tr:nth-child(even) { background: #f3f7fb; }
.equip tbody tr:hover { background: #e7f2fa; }
.equip td b { color: var(--navy); font-weight: 700; }
.equip td .qty { color: var(--sky); font-weight: 700; margin-right: 4px; }

/* =========================================================
   Why choose us (navy band)
   ========================================================= */
.why { background: var(--navy); color: #fff; }
.why .section-title { color: var(--sky); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.why-grid li { display: flex; gap: 18px; padding: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--radius); }
.why-num { font-family: var(--serif); font-weight: 900; font-size: 38px; color: var(--sky); line-height: 1; flex: 0 0 auto; }
.why-grid h3 { font-size: 19px; color: #fff; margin-bottom: 6px; font-weight: 700; }
.why-grid p { margin: 0; color: #c7d8e8; font-size: 16px; line-height: 1.5; }

/* =========================================================
   Workshop gallery — equal 4:3 tiles, straight bottom edge
   ========================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g-item {
  display: block; width: 100%; margin: 0; padding: 0; border: 4px solid #fff; background: #fff;
  cursor: zoom-in; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-item .g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; text-align: left;
  background: linear-gradient(transparent, rgba(15, 39, 64, .85)); color: #fff; font-size: 15px; font-weight: 600;
  opacity: 0; transition: opacity .25s;
}
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; }
@media (hover: none) { .g-item .g-cap { opacity: 1; } }

/* =========================================================
   Customers — framed box with title on the border
   ========================================================= */
.customers-box { position: relative; border: 2px solid #b9cde0; border-radius: 14px; padding: 56px 28px 32px; background: rgba(255, 255, 255, .6); }
.customers-box .section-title { position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%); background: var(--bg); padding: 0 22px; white-space: nowrap; }
.customers-lead { text-align: center; max-width: 760px; margin: 0 auto 30px; color: var(--muted); font-size: 17px; }
.customers-lead strong { color: var(--navy); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.logo-grid li { background: #fff; border: 1px solid var(--line); height: 100px; padding: 12px 14px; display: flex; align-items: center; justify-content: center; transition: box-shadow .2s, transform .2s; }
.logo-grid li:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.logo-grid img { max-height: 100%; max-width: 100%; object-fit: contain; }
.customers-note { text-align: center; color: var(--muted); margin: 26px 0 0; font-size: 16px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: #fff; }
.faq-wrap { max-width: 920px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: background .2s, box-shadow .2s; }
.faq-item[open] { background: #fff; box-shadow: var(--shadow-sm); border-color: #c5d6e6; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: 17.5px; line-height: 1.35; }
.faq-item summary svg { position: absolute; right: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); transition: transform .2s; color: var(--sky); }
.faq-item[open] summary svg { transform: translateY(-50%) rotate(180deg); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; color: #334455; font-size: 16.5px; line-height: 1.6; }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--navy); color: #fff; overflow: hidden; }
.contact .section-title { color: var(--sky); }
.contact .section-sub { color: #fff; }
.contact .section-lead { color: #c7d8e8; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-list { margin: 0 0 28px; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.contact-item svg { width: 26px; height: 26px; color: var(--sky); flex: 0 0 26px; margin-top: 2px; }
.ci-label { display: block; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-soft); margin-bottom: 4px; font-weight: 700; }
.contact-item p { margin: 0; font-size: 18px; color: #fff; }
.contact-item a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.contact-item a:hover { border-color: var(--sky); }
.map { border: 6px solid #fff; box-shadow: var(--shadow); background: #dfe8f0; }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

.form-card { background: #fff; color: var(--ink); padding: 32px; box-shadow: var(--shadow); border-top: 5px solid var(--sky); position: relative; }
.form-card h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 26px; margin-bottom: 6px; }
.form-intro { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #c5d4e2; background: #f8fbfd; border-radius: 6px; padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(41, 152, 207, .2); background: #fff; }
.form-card .btn-primary { width: 100%; justify-content: center; }
.form-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-note svg { width: 14px; height: 14px; vertical-align: -2px; }
.form-note.err { color: #b3261e; font-weight: 600; }
.form-note.err a { color: #b3261e; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 34px 6px 10px; }
.form-success > svg { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: #e3f3ea; color: #1f7a4d; margin: 0 auto 14px; display: block; }
.form-success p { color: var(--muted); margin: 8px 0 22px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--navy-ink); color: #b9cadb; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 56px; padding-bottom: 36px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 50px; }
.footer-brand span { font-family: var(--serif); font-weight: 900; font-size: 22px; color: #fff; line-height: 1.15; }
.footer p { font-size: 15.5px; max-width: 380px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; font-size: 15.5px; }
.footer a { color: #b9cadb; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; font-size: 14px; }
.footer .bolt { width: 15px; height: 15px; vertical-align: -2px; color: var(--sky); display: inline-block; }

/* =========================================================
   Lightbox & back-to-top
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(10, 25, 42, .9); padding: 24px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border: 6px solid #fff; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 16px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: var(--sky); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s, background .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--sky); }
.to-top svg { width: 22px; height: 22px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card .caption { min-height: 0; }
  .infra-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .nav-menu a { padding: 8px 9px; font-size: 15px; }
  .tests-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -16px rgba(19, 49, 79, .5);
    padding: 8px 16px 18px; transform: translateY(-120%); visibility: hidden; transition: transform .25s, visibility .25s;
  }
  .nav-menu.open { transform: translateY(0); visibility: visible; }
  .nav-menu a { padding: 13px 8px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-menu a::after { display: none; }
  .nav-menu .nav-cta a { margin: 14px 0 0; text-align: center; border-bottom: 0; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 0; min-height: 0; }
  .hero-text { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { max-width: 560px; margin: 24px auto 0; }
  .hero-art .art-chain { top: -24px; height: calc(24px + 4.5%); }
  .hero-band .container { padding-top: calc(min(560px, 100vw - 48px) * .26 + 26px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; text-align: center; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .vision-grid { grid-template-columns: 1fr; gap: 0; }
  .vision-copy { padding: 56px 0 36px; }
  .vision-photo { margin: 0 0 -60px; }
  .vision-photo img { width: min(320px, 100%); }
  .vision { margin-bottom: 60px; }

  .equip-lists { grid-template-columns: 1fr; }
  .tests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head.boxed { padding: 20px 18px 22px; margin-bottom: 36px; }
  .brand img { width: 38px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10.5px; letter-spacing: .1em; }
  .hero-art .art-motor { bottom: -24%; }
  .hero-band .container { padding-top: calc((100vw - 32px) * .21 + 22px); }
  .stat-num { font-size: 28px; }
  .about-kicker { font-size: 19px; }
  .about-copy p:not(.about-kicker) { text-align: left; font-size: 17px; }
  .glance { padding: 22px 20px; }
  .values { grid-template-columns: 1fr; }
  .services-grid, .infra-grid { grid-template-columns: 1fr; }
  .services-cta { justify-content: center; text-align: center; }
  .infra-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tests-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .test-tab { margin-left: -14px; }
  .why-grid { grid-template-columns: 1fr; }
  .customers-box { padding: 44px 12px 20px; }
  .customers-box .section-title { padding: 0 12px; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-grid li { height: 84px; padding: 10px; }
  .faq-item summary { padding: 16px 48px 16px 16px; }
  .faq-a { padding: 0 16px 18px; }
  .form-card { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-grid .g-item:first-child { grid-column: 1 / -1; }
  .g-item { border-width: 3px; }
  table.equip { min-width: 0; font-size: 15.5px; }
  .equip thead th:nth-child(3) { display: none; }
  .equip thead tr, .equip tbody tr { display: grid; grid-template-columns: 56px 1fr; }
  .equip thead th:first-child { width: auto; padding: 14px 6px; }
  .equip td { border-bottom: 0; padding: 12px 12px 2px; }
  .equip td:first-child { grid-row: span 2; padding: 12px 6px; }
  .equip td:nth-child(3) { padding: 0 12px 12px; color: var(--muted); font-size: 14.5px; }
  .equip tbody tr { border-bottom: 1px solid var(--line); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

@media print {
  .header, .to-top, .lightbox, .map, .form-card { display: none !important; }
  .section { padding: 36px 0; }
}
