:root {
  --red: #e10600;
  --ink: #111111;
  --paper: #ffffff;
  --line: #111111;
  --muted: #6b6b6b;
  --gap: 1rem;
  --max: 92rem;
  --font: "Montserrat", "Segoe UI", sans-serif;
  --app-height: 100svh;
}

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

html,
body {
  margin: 0;
  height: var(--app-height);
  max-height: var(--app-height);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
}

body {
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  flex: 0 0 auto;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid #eee;
}

.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem;
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(0.58rem, 1.5vw, 0.82rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.nav-item + .nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1.5px;
  background: var(--red);
}

.nav-icon {
  width: clamp(1.7rem, 4vw, 2.35rem);
  height: clamp(1.7rem, 4vw, 2.35rem);
  display: block;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active {
  color: var(--red);
}

.nav-item.is-active .nav-label {
  box-shadow: inset 0 -3px 0 var(--red);
}

.nav-item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.site-main {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
  min-width: 0;
  background: var(--paper);
}

.poster {
  margin: 0;
  position: absolute;
  inset: var(--gap);
}

.poster-link,
.poster picture,
.poster img {
  display: block;
  width: 100%;
  height: 100%;
}

.poster-link {
  cursor: pointer;
}

.poster-link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}

.poster img {
  object-fit: contain;
  object-position: center center;
  background: var(--paper);
}

.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;
}

.page-service .site-main {
  display: flex;
  flex-direction: column;
}

.service {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0 auto;
  padding: 0.6rem 1rem 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 0;
}

.service-poster {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  position: static;
}

.service-poster:empty {
  display: none;
}

.service-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--paper);
}

.service-copy {
  flex: 0 1 26rem;
  width: 26rem;
  min-width: 14rem;
  min-height: 0;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.service-copy h1 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.service-copy h1 .accent {
  color: var(--red);
}

.service-lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.5;
  color: #222;
}

.service-copy h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(0.62rem, 1.1vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 34rem;
  text-align: left;
}

.service-list li {
  position: relative;
  margin: 0 0 0.45rem;
  padding-left: 1.05rem;
  font-size: clamp(0.78rem, 1.3vw, 0.98rem);
  font-weight: 600;
  line-height: 1.45;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--red);
}

.service-cta {
  margin: 0;
  font-weight: 800;
  font-size: clamp(0.78rem, 1.3vw, 0.95rem);
  line-height: 1.35;
}

.service-cta .accent {
  color: var(--red);
}

.service-phone {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--ink);
  border-bottom: 3px solid var(--red);
}

@media (max-width: 767px) {
  .service {
    padding: 0.45rem 0.75rem 0.3rem;
  }

  .service-block {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .service-poster {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: 36%;
    aspect-ratio: 16 / 9;
  }

  .service-copy {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    height: auto;
    gap: 0.45rem;
    justify-content: flex-start;
    overflow: auto;
  }

  .service-lead,
  .service-list {
    max-width: 100%;
  }
}

.site-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #eee;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.5rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
}

.site-footer p {
  margin: 0;
}

.page-company .site-main {
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.company {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.company-card {
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.company-card h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.company-tag {
  margin: 0 0 1.35rem;
  font-size: clamp(0.62rem, 1.1vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.company-dl {
  margin: 0;
}

.company-dl dt {
  margin: 0.95rem 0 0.28rem;
  font-size: clamp(0.62rem, 1.1vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.company-dl dd {
  margin: 0;
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  font-weight: 600;
  line-height: 1.55;
}

.company-dl address {
  font-style: normal;
}

.company-dl a {
  border-bottom: 3px solid var(--red);
}

.company-services {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.85rem;
}

.company-services a {
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--red);
}

.footer-mark a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
}

.footer-mark a:hover,
.footer-mark a:focus-visible {
  color: var(--red);
}

.footer-mark a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.footer-copy {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 767px) {
  :root {
    --gap: 0.4rem;
  }

  .nav-item {
    letter-spacing: 0.04em;
    gap: 0.22rem;
    padding: 0.4rem 0.12rem;
  }
}

@media (max-width: 420px) {
  .nav-label {
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }
}
