:root {
  --navy: #102c54;
  --navy-deep: #0b2144;
  --ink: #142033;
  --muted: #3a4a5c;
  --line: #d5dee7;
  --paper: #f4f7fa;
  --white: #fff;
  --focus: #102c54;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero :focus-visible,
.site-footer :focus-visible,
.call-bar:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 6px var(--navy);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--navy);
  padding: 0.75rem 1rem;
  z-index: 80;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.05rem, 8vw, 3.4rem);
  margin: 0.35rem 0 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

p {
  margin: 0 0 0.9rem;
}

.lede {
  max-width: 42rem;
}

.section {
  padding: 2.75rem 0;
}

.section-paper {
  background: var(--paper);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-height: 4.5rem;
  padding: 0.4rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: calc(100% - 4.25rem);
}

.brand picture {
  display: block;
  line-height: 0;
}

.brand img {
  display: block;
  width: 56px;
  height: 56px;
  background: var(--paper);
}

.brand span {
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.js .nav-toggle {
  display: inline-flex;
}

.nav-toggle .label-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .label-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .label-close {
  display: inline;
}

.nav {
  display: flex;
  flex-direction: column;
  flex: 1 0 100%;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.nav a.btn,
.nav a.btn:hover {
  color: var(--white);
  text-decoration: none;
}

.nav .btn {
  width: 100%;
  text-decoration: none;
}

@media (max-width: 1099px) {
  .js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.25rem 1rem 1rem;
    max-height: calc(100dvh - 8.5rem);
    overflow: auto;
    box-shadow: 0 12px 24px rgba(16, 44, 84, 0.08);
  }

  .js .nav.is-open {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--paper);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section .btn-ghost:hover,
.rate .btn-ghost:hover {
  background: var(--paper);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.actions .btn {
  width: 100%;
}

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 1.75rem 0 2rem;
}

.hero h1,
.hero p {
  color: var(--white);
}

.eyebrow {
  margin: 0;
  font-weight: 700;
}

.hero .value {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  max-width: 38rem;
}

.hero .support {
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.service-grid,
.rates,
.gallery {
  display: grid;
  gap: 0.9rem;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-grid li,
.rate {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 1rem 1rem 1.1rem;
}

.section-paper .service-grid li {
  background: var(--white);
}

.service-grid p,
.rate p {
  margin: 0;
}

.service-grid p {
  color: var(--muted);
}

.rate {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rate-kind,
.rate-note,
.fine {
  color: var(--muted);
}

.price {
  margin: 0;
  color: var(--navy);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price span {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.rate .btn,
.contact-list .btn {
  width: 100%;
  margin-top: 0.6rem;
}

.reasons {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 42rem;
}

.reasons li {
  margin: 0.65rem 0;
  padding-left: 0.25rem;
}

.reasons li::marker {
  color: var(--navy);
}

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.cities li {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery > li {
  margin: 0;
  min-width: 0;
}

.gallery figure {
  margin: 0;
}

.gallery a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e6eef3;
}

.gallery figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 1rem;
}

.faq-list {
  margin: 0;
  max-width: 44rem;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

address {
  font-style: normal;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0 calc(2rem + 4.75rem + env(safe-area-inset-bottom));
}

.site-footer a {
  color: var(--white);
}

.footer-name {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-links {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.footer-links a,
.social a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

.social {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.todo-note {
  margin: 1rem 0 0;
  max-width: 36rem;
}

.todo-flag {
  display: inline-block;
  margin-left: 0.4rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.legal {
  margin: 1.25rem 0 0;
  color: #e4ecf4;
}

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: calc(3.5rem + env(safe-area-inset-bottom));
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.35);
}

.call-bar svg {
  flex: none;
}

body:has(dialog[open]) .call-bar {
  display: none;
}

#lightbox {
  border: 0;
  padding: 0.75rem;
  width: min(640px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  background: var(--white);
  border-radius: 12px;
}

#lightbox::backdrop {
  background: rgba(8, 20, 40, 0.78);
}

#lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 860px);
  margin: 0.6rem auto 0;
  object-fit: contain;
  background: #e6eef3;
}

.lightbox-caption {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

#lightbox .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 720px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .actions .btn {
    width: auto;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (min-width: 1000px) {
  .contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  .rates {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (min-width: 1100px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .js .nav-toggle {
    display: none;
  }

  .bar {
    flex-wrap: nowrap;
  }

  .nav {
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem 0.9rem;
    padding: 0;
  }

  .js .nav {
    display: flex;
    position: static;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .nav a {
    min-height: 44px;
    padding: 0;
  }

  .nav .btn {
    width: auto;
    margin-left: 0.35rem;
  }

  .brand {
    max-width: none;
  }

  .call-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: 2rem;
  }

  section {
    scroll-margin-top: 5.5rem;
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .call-bar,
  .nav-toggle,
  #lightbox {
    display: none !important;
  }

  .site-footer {
    padding-bottom: 1rem;
  }

  .nav {
    display: none;
  }

  a {
    text-decoration: underline;
  }
}
