/* El-Eman Inspection and Corrosion Services, design 2: "Route map".
   Signature: services as stations along a drawn pipeline (.route, .section-route).
   Supporting motif: the pipe cross-section ring (.ring), echoing the ECS logo ellipse. */

:root {
  --indigo-900: #1a1452;
  --indigo-800: #241c6e;
  --indigo-600: #3c2c99;
  --indigo-300: #8f86d6;
  --cyan: #0d9cd0;
  --cyan-light: #63c9ef;
  --red: #da2a1a;
  --red-dark: #b82012;
  --mist: #eaf3f8;
  --white: #ffffff;
  --ink: #1b1940;
  --muted: #55607a;
  --line: #d3dde6;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Red Hat Text", "Helvetica Neue", Arial, sans-serif;

  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-h1: clamp(3rem, 1.6rem + 6vw, 6.5rem);

  --pad: 16px;
  --header-h: 72px;
}
@media (min-width: 720px) { :root { --pad: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--fs-body)/1.65 var(--text); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo-600); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3 { margin: 0; color: var(--indigo-800); text-wrap: balance; }
h2 { font: 800 var(--fs-h2)/1 var(--display); letter-spacing: 0.005em; }
h3 { font: 700 var(--fs-h3)/1.3 var(--text); }
p { margin: 0 0 1em; }

.shell { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--indigo-800); color: #fff; }
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------ buttons -- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.7em 1.4em; border: 2px solid transparent; border-radius: 999px;
  font: 700 0.9375rem/1.2 var(--text); text-decoration: none; cursor: pointer;
}
.btn--sm { min-height: 40px; padding: 0.45em 1.1em; font-size: var(--fs-sm); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--line { background: transparent; border-color: var(--indigo-600); color: var(--indigo-600); }
.btn--line:hover { background: var(--indigo-600); color: #fff; }
.btn--line-light { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--line-light:hover { background: #fff; border-color: #fff; color: var(--indigo-800); }

/* ------------------------------------------------------------- header -- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-logo img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a { padding: 10px 14px; font-weight: 700; font-size: 0.9375rem; color: var(--indigo-800); text-decoration: none; border-radius: 999px; }
.menu > li > a:hover { color: var(--red); }
.menu > li > a[aria-current="page"] { background: var(--mist); }
.sub-toggle { display: none; }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; display: none;
  width: 320px; margin: 0; padding: 10px; list-style: none;
  background: var(--white); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgba(26, 20, 82, 0.4);
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { display: block; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* hover bridge */
.sub-menu a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.sub-menu a:hover { background: var(--mist); }
.sub-menu__short { font: 800 1.35rem/1 var(--display); color: var(--indigo-800); }
.sub-menu__cat { font-size: var(--fs-sm); color: var(--muted); }
.nav-toggle { display: none; }

@media (max-width: 919px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    font: 700 0.9375rem var(--text); color: var(--indigo-800);
    background: var(--mist); border: 0; border-radius: 999px; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px var(--pad) 24px; background: var(--white); box-shadow: 0 1px 0 var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .menu { flex-direction: column; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu > li > a { flex: 1; padding: 14px 0; font-size: var(--fs-body); border-radius: 0; }
  .menu > li > a[aria-current="page"] { background: none; color: var(--red); }
  .sub-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
  .sub-toggle::before { content: ""; position: absolute; left: 16px; top: 14px; width: 10px; height: 10px; border-right: 2px solid var(--indigo-800); border-bottom: 2px solid var(--indigo-800); transform: rotate(45deg); }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); top: 19px; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .sub-menu, .has-sub.is-open > .sub-menu { position: static; width: 100%; padding: 0 0 12px; box-shadow: none; }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { padding-inline: 0; }
}

/* ------------------------------------------------- ring (cross-section) -- */
.ring { position: relative; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring__ticks line { stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.5; }
.ring__coating { fill: none; stroke: var(--cyan-light); stroke-width: 3; }
.ring__wall { fill: none; stroke: #4a3bb0; stroke-width: 52; }
.ring__bore { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; }
.ring__stress { fill: none; stroke: var(--red); stroke-width: 52; }
.ring--home { aspect-ratio: auto; }
.ring__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 20px 0 0; font-size: var(--fs-sm); color: #fff; }
.ring__key { display: inline-flex; align-items: center; gap: 8px; }
.ring__key::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.ring__key--coating::before { background: var(--cyan-light); }
.ring__key--wall::before { background: var(--indigo-300); }
.ring__key--stress::before { background: var(--red); }

/* the one orchestrated motion: the stress arc sweeps into the pipe wall on the home hero */
@media (prefers-reduced-motion: no-preference) {
  .ring--home .ring__stress { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sweep 1.2s cubic-bezier(0.6, 0, 0.2, 1) 0.4s forwards; }
  .ring--home .ring__key--stress { opacity: 0; animation: fade 0.4s ease-out 1.5s forwards; }
  @keyframes sweep { to { stroke-dashoffset: 0; } }
  @keyframes fade { to { opacity: 1; } }
}

/* ---------------------------------------------------------- dark heroes -- */
.home-hero, .page-hero, .svc-hero { background: var(--indigo-800); color: #dcd9f5; overflow: hidden; }
.home-hero h1, .page-hero h1, .svc-hero h1 { color: #fff; }

.home-hero { padding-block: clamp(56px, 8vw, 112px); }
.home-hero__grid { display: grid; gap: 56px; align-items: center; }
.home-hero h1 { font: 800 var(--fs-h1)/0.92 var(--display); letter-spacing: 0.005em; max-width: 11ch; margin-bottom: 28px; }
.home-hero__lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 44ch; margin-bottom: 32px; }
.ring--home { width: min(72%, 440px); margin-inline: auto; }
@media (min-width: 920px) { .home-hero__grid { grid-template-columns: 7fr 5fr; } }

.page-hero { padding-block: clamp(48px, 6vw, 80px); }
.page-hero__grid { display: grid; gap: 32px; align-items: center; }
.page-hero h1 { font: 800 var(--fs-h1)/0.95 var(--display); margin-bottom: 20px; }
.page-hero__lead { font-size: var(--fs-lead); max-width: 52ch; margin: 0; }
.ring--page { display: none; }
@media (min-width: 920px) {
  .page-hero__grid { grid-template-columns: 1fr 260px; }
  .ring--page { display: block; width: 260px; margin-block: -40px; }
}

/* ------------------------------------------------- the route (signature) -- */
.route, .segment__stations { list-style: none; margin: 0; padding: 0; }
.route { position: relative; padding-left: 64px; }
.route::before { /* the pipe */
  content: ""; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 14px; border-radius: 7px;
  background: linear-gradient(90deg, var(--indigo-800), var(--indigo-600) 45%, #6a5cd0 55%, var(--indigo-800));
}
.segment { position: relative; padding-top: 28px; }
.segment::before { /* flange: marks the start of a category segment */
  content: ""; position: absolute; left: -54px; top: 34px; width: 30px; height: 6px; border-radius: 2px; background: var(--red);
}
.segment__name { margin: 0 0 8px; font: 700 var(--fs-sm)/1.4 var(--text); color: var(--red); }
.station { position: relative; }
.station::before { /* the node */
  content: ""; position: absolute; left: -57px; top: 30px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 8px solid var(--cyan); box-sizing: border-box;
}
.station:hover::before, .station:focus-within::before { background: var(--red); border-color: var(--red); }
.station__body {
  position: relative; display: grid; gap: 6px 40px; padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
}
.station__name { font: 800 clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem)/1 var(--display); letter-spacing: 0.01em; }
.station__name a { color: var(--indigo-800); text-decoration: none; }
.station__name a::after { content: ""; position: absolute; inset: 0; }
.station:hover .station__name a { color: var(--red); }
.station__name a:focus-visible { outline: none; }
.station:focus-within .station__body { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
.station__title { margin: 0; font-weight: 700; color: var(--muted); }
.station__excerpt { margin: 0; max-width: 60ch; }
.station__image { width: 100%; max-width: 260px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--mist); }
@media (min-width: 980px) {
  .station__body { grid-template-columns: 1fr 240px; grid-template-rows: auto auto 1fr; }
  .station__name, .station__title, .station__excerpt { grid-column: 1; }
  .station__image { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
}

/* --------------------------------------------------------------- home -- */
.clients { background: var(--mist); }
.clients__inner { display: grid; gap: 16px 48px; align-items: center; padding-block: 32px; }
.clients__title { font: 700 var(--fs-sm)/1.4 var(--text); color: var(--muted); }
.clients__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin: 0; padding: 0; list-style: none; }
.clients__logos img { max-height: 56px; width: auto; mix-blend-mode: multiply; }
@media (min-width: 920px) { .clients__inner { grid-template-columns: auto 1fr; } .clients__logos { justify-content: space-between; } }

.home-services { padding-block: clamp(64px, 8vw, 112px); }
.section-head { display: grid; gap: 16px 64px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(3rem, 2rem + 4vw, 5rem); }
.section-head p { max-width: 60ch; color: var(--muted); margin: 0; }
@media (min-width: 920px) { .section-head { grid-template-columns: 1fr 1.4fr; align-items: end; } }

.proof { background: var(--mist); padding-block: clamp(64px, 8vw, 112px); }
.proof__grid { display: grid; gap: 48px; align-items: center; }
.proof__text h2 { margin-bottom: 24px; max-width: 16ch; }
.proof__text p { max-width: 56ch; }
.proof__text .actions { margin-top: 28px; }
.proof__images { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.proof__images img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.proof__images img:first-child { grid-row: 1 / span 2; aspect-ratio: 3 / 4; }
@media (min-width: 920px) { .proof__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ----------------------------------------------------- service single -- */
.svc-hero { padding-block: clamp(40px, 6vw, 72px) 160px; }
.svc-hero__grid { display: grid; gap: 40px; align-items: center; }
.crumbs { display: flex; gap: 10px; margin-bottom: 24px; font-size: var(--fs-sm); }
.crumbs a { color: #c9c4f0; }
.crumbs span { color: var(--indigo-300); }
.svc-hero__short { display: block; font: 800 clamp(3.5rem, 2rem + 7vw, 8rem)/0.9 var(--display); letter-spacing: 0.005em; overflow-wrap: anywhere; }
.svc-hero__title { display: block; margin-top: 12px; font: 700 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.25 var(--text); color: var(--cyan-light); }
.svc-hero__excerpt { font-size: var(--fs-lead); line-height: 1.55; max-width: 50ch; margin: 24px 0 32px; }
.ring--hero { display: none; }
@media (min-width: 920px) {
  .svc-hero__grid { grid-template-columns: 1fr 300px; }
  .ring--hero { display: block; width: 300px; }
}

.svc-feature { display: grid; gap: 32px; margin-top: -120px; position: relative; }
.svc-feature__image { margin: 0; padding: 10px; background: var(--white); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(26, 20, 82, 0.45); }
.svc-feature__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px; }
.readings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; align-self: end; }
.readings > div { padding: 16px 16px 16px 0; border-top: 3px solid var(--indigo-800); }
.readings dd { margin: 0; font: 800 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.05 var(--display); color: var(--indigo-800); }
.readings dt { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.35; color: var(--muted); }
@media (min-width: 920px) {
  .svc-feature { grid-template-columns: 7fr 4fr; gap: 56px; }
  .readings { padding-bottom: 10px; }
}

.svc-layout { display: grid; gap: 40px; padding-block: 72px 40px; }
.section-route { display: none; }
@media (min-width: 1100px) {
  .svc-layout { grid-template-columns: 220px 1fr; gap: 72px; }
  .section-route { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.section-route__name { font: 700 var(--fs-sm) var(--text); color: var(--muted); margin-bottom: 12px; }
.section-route ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 32px; }
.section-route ol::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 6px; border-radius: 3px; background: var(--line); }
.section-route li { position: relative; }
.section-route li::before {
  content: ""; position: absolute; left: -32px; top: 9px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 5px solid var(--line); box-sizing: border-box; transition: border-color 0.2s, background 0.2s;
}
.section-route a { display: block; padding: 7px 0; font-size: 0.9375rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.section-route a:hover { color: var(--indigo-600); }
.section-route li.is-current::before { border-color: var(--red); background: var(--red); }
.section-route li.is-passed::before { border-color: var(--cyan); }
.section-route li.is-current a { color: var(--indigo-800); font-weight: 700; }

.svc-blocks { min-width: 0; }
.block { padding-block: 0 72px; }
.block__title { margin-bottom: 28px; max-width: 18ch; }
.block--panel { background: var(--mist); border-radius: 20px; padding: clamp(24px, 4vw, 48px); margin-bottom: 72px; }

.prose { max-width: 70ch; }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: 10px; }
.prose figcaption, .figures figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 720px) { .prose figure.is-aside { float: right; width: 42%; margin: 4px 0 16px 32px; } }
.prose::after { content: ""; display: table; clear: both; }

.video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--indigo-900); }

.advantages { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.advantages li { position: relative; padding: 20px 22px 20px 64px; background: var(--mist); border-radius: 14px; }
.advantages li::before { /* small cross-section glyph */
  content: ""; position: absolute; left: 22px; top: 22px; width: 24px; height: 24px; border-radius: 50%;
  border: 6px solid var(--indigo-600); box-shadow: 0 0 0 2px var(--mist), 0 0 0 4px var(--cyan); box-sizing: border-box;
}
.advantages h3 { margin-bottom: 4px; }
.advantages p { margin: 0; }
@media (min-width: 760px) { .advantages { grid-template-columns: 1fr 1fr; } }

.split { display: grid; gap: 32px; }
.split__image { margin: 0; }
.split__image img { width: 100%; border-radius: 14px; }
@media (min-width: 1200px) { .split { grid-template-columns: 1.3fr 1fr; align-items: start; } }

.process { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.process li { counter-increment: step; position: relative; padding: 4px 0 4px 72px; min-height: 52px; }
.process li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font: 800 1.6rem/1 var(--display); color: #fff; background: var(--indigo-800);
}
.process li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 56px; bottom: -14px; width: 4px; background: var(--line); }
.process p { margin: 0; padding-top: 10px; max-width: 62ch; }
.process__image { margin: 0; max-width: 520px; }
.process__image img { border-radius: 12px; border: 1px solid var(--line); }

.specs { display: grid; gap: 0 40px; margin: 0; }
.specs > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: var(--fs-sm); color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; font-size: 1.125rem; color: var(--indigo-800); }
@media (min-width: 760px) { .specs { grid-template-columns: 1fr 1fr; } }

.figures { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.figures figure { margin: 0; }
.figures img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--white); border-radius: 12px; border: 1px solid var(--line); }
.figures a:hover img { border-color: var(--indigo-600); }

.case__title { font: 800 clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem)/1.05 var(--display); }
.case__date { margin: 8px 0 20px; font-weight: 700; color: var(--red); }
.case__gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.case__gallery:empty { display: none; }
.case__gallery img { height: 140px; width: auto; border-radius: 8px; }
.case__doc { margin: 0; }

.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; }
.partner img { max-height: 72px; max-width: 200px; width: auto; }
.partner > div { flex: 1 1 320px; }
.partner p:last-child { margin: 0; font-weight: 700; }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px;
  font-weight: 700; color: var(--indigo-800); text-decoration: none; border: 1px solid var(--line); border-radius: 12px;
}
.docs a:hover { border-color: var(--indigo-600); color: var(--indigo-600); }
.doc__type { flex: none; font-size: 0.75rem; color: #fff; background: var(--red); padding: 4px 8px; border-radius: 999px; }

/* --------------------------------------------------------- quote band -- */
.quote-band { background: var(--indigo-800); color: #dcd9f5; padding-block: 64px; }
.quote-band h2 { color: #fff; margin-bottom: 12px; }
.quote-band__inner { display: grid; gap: 8px; }
.quote-band__inner .actions { margin-top: 16px; }
.quote-band--form { padding-block: clamp(64px, 8vw, 112px); }
.quote-band__grid { display: grid; gap: 48px; }
.quote-band--form h2 { font-size: clamp(3rem, 2rem + 4vw, 5rem); }
.quote-band__direct { font-weight: 700; font-size: var(--fs-lead); line-height: 1.7; }
.quote-band a:not(.btn) { color: #fff; }
.quote-band .field label { color: #fff; }
.quote-band .optional { color: #b7b1e6; }
@media (min-width: 920px) { .quote-band__grid { grid-template-columns: 5fr 7fr; gap: 80px; } }

.more-services { padding-block: 80px 112px; }
.more-services h2 { margin-bottom: 8px; }

/* ------------------------------------------------------------ contact -- */
.route-wrap { padding-block: 40px 112px; }
.contact { padding-block: 72px 112px; }
.contact__grid { display: grid; gap: 56px; }
.contact__form h2 { margin-bottom: 24px; }
.contact__details { margin: 0; display: grid; gap: 12px; align-content: start; }
.contact__details > div { padding: 16px 20px; background: var(--mist); border-radius: 14px; }
.contact__details dt { font-size: var(--fs-sm); color: var(--muted); }
.contact__details dd { margin: 2px 0 0; font-weight: 700; font-size: 1.125rem; color: var(--indigo-800); }
@media (min-width: 920px) { .contact__grid { grid-template-columns: 4fr 7fr; gap: 80px; } }

.form { display: grid; gap: 4px 20px; }
.field { margin: 0 0 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.9375rem; color: var(--indigo-800); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; font: 400 1rem/1.4 var(--text); color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: 12px;
}
.field textarea { resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--indigo-800) 50%), linear-gradient(135deg, var(--indigo-800) 50%, transparent 50%);
  background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(13, 156, 208, 0.3); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }

/* ------------------------------------------------------------- footer -- */
.site-footer { background: var(--indigo-900); color: #c9c4f0; font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: 40px; padding-block: 64px 40px; }
.site-footer__logo { width: 190px; height: auto; }
.site-footer h2 { font: 700 0.9375rem var(--text); color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { margin: 0; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--fs-sm); color: #9d97d4; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1.4fr; } }

/* ----------------------------------------------------------- lightbox -- */
.lightbox { max-width: min(1100px, 94vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(26, 20, 82, 0.9); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; background: #fff; border-radius: 8px; }
.lightbox__caption { margin: 12px 0 0; color: #fff; text-align: center; }
.lightbox__close { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; font-size: 2rem; color: #fff; background: none; border: 0; cursor: pointer; }
