:root {
  --ink: #003b5a;
  --link: #0074b8;
  --hot: #e10600;
  --line: rgba(0, 59, 90, 0.12);
  --space: 20px;
  --header-h: 68px;
  --column: 920px;
  color-scheme: only light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: #f7f9fb;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  transition: background-color 0.35s ease;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--hot);
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 30;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: background 0.35s ease;
}

.art {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 72px;
  height: 100vh;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.top-inner {
  width: min(var(--column), 100%);
  margin: 0 auto;
  padding: 0 var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.title {
  line-height: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.title img {
  width: min(168px, 46vw);
  height: auto;
}

#nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav a {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: 999px;
}

#nav a:hover {
  color: #000;
  background: rgba(0, 59, 90, 0.05);
  text-decoration: none;
}

#nav a[aria-current="true"] {
  color: var(--hot);
  background: rgba(225, 6, 0, 0.06);
}

.sheet {
  position: relative;
  z-index: 1;
  width: min(var(--column), calc(100% - 32px));
  margin: var(--header-h) auto 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 59, 90, 0.08);
}

.page {
  padding: 8px var(--space) 28px;
}

section {
  scroll-margin-top: var(--header-h);
}

#home {
  min-height: calc(100svh - var(--header-h) - 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
}

#contact {
  min-height: calc(100svh - var(--header-h));
  margin: 8px calc(var(--space) * -1) 0;
  padding: 36px var(--space) 28px;
  border-top: 1px solid rgba(0, 116, 184, 0.18);
  background: linear-gradient(180deg, rgba(0, 116, 184, 0.08), rgba(255, 255, 255, 0) 180px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--link);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.lead + p {
  margin: 16px 0 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.high {
  color: var(--link);
  font-style: italic;
}

h2.high {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.1;
}

.sidebox {
  margin: 28px 0 0;
  padding: 14px 16px;
  border: 0;
  border-left: 3px solid var(--link);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 116, 184, 0.06);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.sidebox p {
  margin: 0;
}

.where {
  margin-top: 8px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.stack li {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.more:hover {
  color: var(--hot);
  text-decoration: none;
}

.more span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.more:hover span {
  transform: translateY(3px);
}

address {
  font-style: normal;
}

address p {
  margin: 0 0 16px;
}

.mail {
  font-size: 1.15rem;
}

.foot {
  margin: 28px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 12px;
}

body[data-page="contact"] {
  background: #d5e4ef;
}

body[data-page="contact"] .backdrop {
  background: linear-gradient(165deg, rgba(0, 116, 184, 0.28), rgba(0, 59, 90, 0.1) 48%, rgba(255, 255, 255, 0.2));
}

body[data-page="contact"] .top {
  background: rgba(226, 238, 246, 0.92);
  box-shadow: 0 8px 24px rgba(0, 59, 90, 0.08);
}

@media (min-width: 760px) {
  :root {
    --space: 40px;
    --header-h: 76px;
  }

  .lead {
    font-size: 1.45rem;
  }

  .home-grid,
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px 40px;
    align-items: start;
  }

  .sidebox {
    margin-top: 0;
  }

  #home .sidebox {
    margin-top: 8px;
  }
}

@media (min-width: 760px) {
  .art {
    width: 180px;
  }
}

@media (min-width: 1100px) {
  .art {
    width: 260px;
    opacity: 0.95;
  }

  body[data-page="contact"] .art {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  .backdrop,
  .top,
  .more span {
    transition: none;
  }
}
