:root {
  --ink: #16324f;
  --ink-2: #21486f;
  --blue: #136abb;
  --blue-deep: #0d4f92;
  --orange: #d13c0c;
  --orange-deep: #b83209;
  --paper: #f5f8fb;
  --text: #1b2836;
  --muted: #3e4d5e;
  --line: #d7e0ea;
  --header: 148px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
figure { margin: 0; }

.skip {
  position: absolute;
  right: 12px;
  top: -40px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section[id],
.card[id] {
  scroll-margin-top: calc(var(--header) + 12px);
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 0;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.brand img {
  height: 128px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-inline-start: auto;
  min-height: 44px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-nav a,
.header-call {
  display: inline-flex;
  align-items: center;
  height: 44px;
  line-height: 1;
  text-decoration: none;
}
.site-nav a {
  color: #243446;
  font-weight: 600;
  font-size: 1rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blue-deep); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.header-call {
  font-weight: 800;
  color: var(--blue-deep);
  box-shadow: inset 0 -2px 0 var(--orange);
  white-space: nowrap;
}
@media (min-width: 761px) {
  .header-bar { position: relative; }
  .site-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #e8f2fb 100%);
  padding: 42px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.kicker, .section-label {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
  line-height: 1.3;
}
.hero h1 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.2;
  font-weight: 800;
  max-width: 14em;
  color: #10283f;
}
.lead {
  margin-top: 16px;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(19, 58, 102, 0.14);
  background: #d7e6f4;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-ghost {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1.5px #9ec3e6;
}
.btn-ghost:hover { background: #f3f8fd; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

.band { padding: 72px 0; }
.band-tight { padding-top: 8px; }
.section-head { max-width: 44rem; margin-bottom: 28px; }
.section-head h2, .repair h2, .coverage h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.3;
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:nth-child(4),
.card:nth-child(5) { grid-column: span 3; }
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card img.show-rack,
.topic img.show-rack {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #121418;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.work-grid a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #d5e0ea;
}
.work-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.card-body { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); }
.text-link {
  font-weight: 700;
  color: var(--blue-deep);
  text-underline-offset: 0.18em;
  margin-top: 6px;
}
.text-link:hover { color: var(--orange); }

.repair {
  background: #fff;
  border-block: 1px solid var(--line);
  padding: 56px 0;
}
.repair-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 32px;
  align-items: center;
}
.repair p { color: var(--muted); margin-top: 10px; font-size: 1.08rem; }
.repair-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.repair-points strong { display: block; font-size: 1.12rem; }
.repair-points span { color: var(--muted); font-size: 1.05rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 16px;
  padding: 26px 22px 28px;
}
.steps span { color: var(--orange); font-weight: 800; font-size: 1.15rem; }
.steps h3 { margin: 12px 0 10px; font-size: 1.5rem; }
.steps p { color: #2a394b; font-size: 1.12rem; line-height: 1.55; }

.coverage { padding-bottom: 8px; }
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.coverage article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
}
.coverage p:last-child { color: var(--muted); margin-top: 12px; font-size: 1.12rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
}
.contact-card, .contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card div { display: grid; gap: 2px; }
.contact-card dt { color: #5b6b7c; font-size: 0.95rem; }
.contact-card dd { margin: 0; font-weight: 700; font-size: 1.12rem; }
.contact-card a { text-underline-offset: 0.18em; }
.contact-card a:hover { color: var(--orange); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #5f7388;
  background: #fbfcfd;
  border-radius: 10px;
  padding: 12px 12px;
  color: var(--text);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #5f7388;
  opacity: 1;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--blue-deep);
  outline-offset: 2px;
  border-color: var(--blue-deep);
}
.field-hint { font-weight: 500; color: var(--muted); }
.form-note { color: #3e4d5e; font-size: 1rem; }
.form-status { margin: 0; font-weight: 700; }
.form-status:empty { display: none; }
.map-link { margin: 12px 0 0; }
.map-frame {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 340px; border: 0; }

.site-footer {
  background: #fff;
  color: #415266;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
}
.footer-bar, .footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { color: var(--blue-deep); text-decoration: none; font-weight: 700; }
.footer-phone { font-weight: 800; }

.page { padding: 32px 0 72px; }
.page h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.25;
  font-weight: 800;
}
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 28px;
  align-items: center;
}
.about-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #d7e2ec;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.lede {
  margin-top: 14px;
  max-width: 42rem;
  font-size: 1.14rem;
  color: var(--muted);
}
.nowrap { white-space: nowrap; }
.page-cta { margin-top: 28px; }
.page-photo {
  margin: 22px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: #d7e2ec;
}
.page-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.statement { margin-top: 28px; }
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}
.stack { display: grid; gap: 16px; }
.panel, .side-card, .topic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.panel, .side-card { padding: 22px 22px 24px; }
.panel h2, .topic h2, .side-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.panel p + p, .side-card p + p { margin-top: 10px; }
.panel ul, .side-card ul {
  margin: 12px 0 0;
  padding: 0 1.15rem 0 0;
  display: grid;
  gap: 8px;
}
.panel li { color: #243446; }
.side-card { position: sticky; top: calc(var(--header) + 12px); }
.side-card a.btn { margin-top: 16px; }
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.topic { overflow: hidden; }
.topic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.topic img.show-entry { aspect-ratio: 4 / 3; object-position: center; }
.topic-body { padding: 16px 18px 18px; }
.topic p, .panel p, .side-card p { color: var(--muted); }
.card h3 a, .repair h2 a { text-underline-offset: 0.18em; }
.card h3 a:hover, .repair h2 a:hover { color: var(--blue-deep); }
.page a:not(.btn) { text-underline-offset: 0.18em; }

.dock { display: none; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card,
  .card:nth-child(4),
  .card:nth-child(5) { grid-column: auto; }
  .card-project { grid-column: 1 / -1; }
  .hero-grid,
  .repair-grid,
  .steps,
  .coverage-grid,
  .contact-grid,
  .page-layout,
  .about-intro,
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .side-card { position: static; }
  .repair-grid .btn { justify-self: start; }
  .hero { padding: 28px 0 40px; }
  .band { padding: 52px 0; }
}

@media (max-width: 760px) {
  :root { --header: 112px; }
  .nav-toggle { display: inline-flex; align-items: center; margin-inline-start: auto; }
  .header-links { margin-inline-start: 0; min-height: 0; }
  .header-call { display: none; }
  .header-bar { gap: 12px; padding: 4px 0; }
  .brand img { height: 100px; }
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    transform: none;
    background: #fff;
    padding: 8px 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 32, 48, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { height: auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 12;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .dock a {
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    padding: 14px 8px calc(14px + env(safe-area-inset-bottom));
    color: var(--blue-deep);
  }
  .dock a + a { background: var(--orange); color: #fff; }
  body { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
