:root {
  --paper: #ffffff;
  --ink: #2c3338;
  --ink-soft: #4a5560;
  --navy: #0b1f3a;
  --navy-hover: #16325c;
  --mist: #eef1f4;
  --line: #d3dae1;
  --line-strong: #b7c0c9;
  --danger: #8c2f2f;
  --max: 1120px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.45rem, 2vw, 1.7rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

p + p {
  margin-top: 12px;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}

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

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

::selection {
  background: var(--navy);
  color: #ffffff;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 60;
  background: var(--navy);
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

.top-rule {
  height: 3px;
  background: var(--navy);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

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

.site-header {
  position: relative;
  background: var(--paper);
  z-index: 20;
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.header-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}

.brand-name {
  display: block;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-line {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--navy);
  background: #ffffff;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}

.label-close {
  display: none;
}

.nav-check:focus-visible + .header-bar .nav-toggle {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.nav-check:checked + .header-bar .label-open {
  display: none;
}

.nav-check:checked + .header-bar .label-close {
  display: inline;
}

.site-nav ul {
  display: flex;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 8px 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--navy);
}

.meta-bar {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-inner {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.block {
  padding: 52px 0;
}

.band {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.crumb {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.crumb a {
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
}

.prose {
  max-width: 44rem;
}

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: stretch;
}

.split .figure {
  height: 100%;
  min-height: 280px;
}

.split .figure img {
  height: 100%;
  min-height: 280px;
}

.split-start {
  align-items: start;
}

.figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

.figure img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-figure img {
  height: 420px;
}

.figure figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.cards-2,
.cards-3,
.cards-4,
.steps {
  display: grid;
  gap: 16px;
}

.cards-2 {
  grid-template-columns: 1fr 1fr;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-4,
.steps {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.step {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 22px;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  border-color: var(--navy);
}

.more {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step-no {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
}

.sheet th,
.sheet td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.sheet th {
  width: 36%;
  color: var(--navy);
  font-weight: 600;
}

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

.list-plain li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-top: 1px solid var(--line);
}

.list-plain li:last-child {
  border-bottom: 1px solid var(--line);
}

.list-plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--navy);
}

.notice-panel {
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  background: #ffffff;
  padding: 20px 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.btn:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--mist);
  color: var(--navy);
  border-color: var(--navy);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span,
.check-field span {
  font-size: 14px;
  font-weight: 600;
}

.req {
  color: var(--navy);
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #ffffff;
}

select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 4px;
  accent-color: var(--navy);
}

.field-error,
.form-summary {
  color: var(--danger);
  font-size: 14px;
}

.form-summary {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--danger);
}

.prepared {
  width: 100%;
  min-height: 180px;
  margin: 14px 0;
  background: var(--mist);
}

.site-footer {
  background: var(--mist);
  border-top: 3px solid var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr 1.15fr;
  gap: 28px;
  padding: 42px 0 28px;
}

.footer-heading {
  margin-bottom: 12px;
  color: var(--navy);
  font-weight: 700;
}

.site-footer p,
.site-footer li {
  font-size: 15px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  text-decoration: underline;
}

address {
  font-style: normal;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #ffffff;
  border-top: 3px solid var(--navy);
}

.cookie-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
}

.cookie p + p {
  margin-top: 6px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:has(.cookie:not([hidden])) {
  padding-bottom: 148px;
}

@media (max-width: 980px) {
  .cards-4,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 0 max(20px, calc((100% - var(--max)) / 2)) 12px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }

  .nav-check:checked ~ .header-bar .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
    font-weight: 700;
  }

  .header-bar .wrap {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .split,
  .cards-2,
  .cards-3,
  .cards-4,
  .steps,
  .form-grid,
  .footer-grid,
  .cookie-inner {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .split .figure,
  .split .figure img,
  .figure img {
    height: 220px;
    min-height: 0;
  }

  .block {
    padding: 40px 0;
  }

  .wrap,
  .cookie-inner {
    width: min(var(--max), calc(100% - 32px));
  }

  .sheet,
  .sheet tbody,
  .sheet tr,
  .sheet th,
  .sheet td {
    display: block;
    width: 100%;
  }

  .sheet th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  body:has(.cookie:not([hidden])) {
    padding-bottom: 280px;
  }
}

@media (max-width: 420px) {
  .brand-line {
    display: none;
  }
}
