:root {
  --ink:#17344B;
  --accent:#1683b5;
  --link: #075e84;
  --muted: #4d6273;
  --line: #d7e3e9;
  --paper: #f3f8fa;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: var(--link);
  text-underline-offset: .18em;
  text-decoration-thickness: .08em;
}

a:hover {
  text-decoration-thickness: .14em;
}

a:focus-visible,
table:focus-visible {
  outline: 3px solid #b85c00;
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 30px;
}

.skip {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: .6rem .9rem;
  transform: translateY(-200%);
  border: 1px solid var(--ink);
  border-radius: .35rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.skip:focus {
  transform: translateY(0);
}

.site-header {
  border-top: 5px solid var(--accent);
  background: #fff;
  box-shadow: 0 2px 12px rgb(23 52 75 / 6%);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 15px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.brand span {
  min-width: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 500;
  line-height: 1.4;
}

.lang {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfc;
}

.lang a {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.lang a:hover {
  background: #e6f1f5;
}

.lang a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.header-nav {
  border-top: 1px solid var(--line);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}

.site-nav a {
  display: block;
  padding: 11px 9px 10px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--paper);
  color: var(--link);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--link);
}

main {
  min-height: 55vh;
  padding-block: 52px 80px;
}

main:focus {
  outline: none;
}

article {
  max-width: 940px;
  overflow-wrap: break-word;
}

article a {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  max-width: 24ch;
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  hyphens: auto;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.page article > h1::before,
.catalog article > h1::before {
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

h2 {
  margin: 44px 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  letter-spacing: -.02em;
}

h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 18px;
}

article > p {
  max-width: 75ch;
}

article > h1 + p {
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.6;
}

li {
  margin: 6px 0;
}

li::marker {
  color: var(--accent);
}

article img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: .6rem;
}

figure {
  margin: 26px 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .86rem;
}

table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: .5rem;
  font-size: .92rem;
}

th,
td {
  min-width: 9.5rem;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eaf3f7;
  font-weight: 700;
}

tbody tr:nth-child(even) td {
  background: #f8fbfc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.home article,
.catalog article {
  max-width: none;
}

.home article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.home article::before {
  grid-column: 1;
  grid-row: 1 / 3;
  border: 1px solid #d6e8ef;
  border-left: 5px solid var(--accent);
  border-radius: .85rem;
  background: linear-gradient(115deg, #f4fafc 10%, #e4f2f7 100%);
  content: "";
}

.home article > h1,
.home article > p:first-of-type {
  position: relative;
  grid-column: 1;
}

.home article > h1 {
  grid-row: 1;
  max-width: none;
  margin: 0;
  padding: clamp(30px, 5vw, 60px) clamp(24px, 5vw, 58px) 0;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
}

.home article > p:first-of-type {
  grid-row: 2;
  max-width: 56rem;
  margin: 0;
  padding: 22px clamp(24px, 5vw, 58px) clamp(30px, 5vw, 58px);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}

.home article > p:first-of-type + p {
  margin-top: 28px;
}

.home article > p:has(> a[href="services.html"]),
.home article > p:has(> a[href^="mailto:"]) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: none;
  font-size: 0;
}

.home article > p:has(> a[href="services.html"]) a,
.home article > p:has(> a[href^="mailto:"]) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #b9d1db;
  border-radius: .4rem;
  background: #fff;
  color: var(--link);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.home article > p:has(> a[href="services.html"]) a:first-child,
.home article > p:has(> a[href^="mailto:"]) a:first-child {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.home article > p:has(> a[href="services.html"]) a:hover,
.home article > p:has(> a[href^="mailto:"]) a:hover {
  border-color: var(--link);
  background: var(--link);
  color: #fff;
}

.home article > ul,
.catalog article > ul {
  display: grid;
  gap: 16px;
  margin: 4px 0 24px;
  padding: 0;
  list-style: none;
}

.home article > ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog article > ul {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.home article > ul > li,
.catalog article > ul > li {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: .6rem;
  background: #fff;
  box-shadow: 0 5px 18px rgb(23 52 75 / 5%);
}

.home article > ul > li a,
.catalog article > ul > li a {
  font-weight: 750;
}

.download {
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: .4rem;
  background: var(--paper);
  font-size: .95rem;
}

.download a {
  font-weight: 700;
}

.notice {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-left: 4px solid #b77900;
  background: #fff5da;
  color: #503800;
  font-size: .92rem;
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: #e6f0f4;
  font-size: .9rem;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 36px;
}

.foot-grid p {
  margin: 0 0 6px;
}

.foot-grid p:last-child {
  margin-bottom: 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  color: #fff;
}

.site-footer a:focus-visible {
  outline-color: #ffd676;
}

@media (max-width: 700px) {
  .shell {
    padding-inline: 20px;
  }

  .masthead {
    gap: 12px;
    padding-block: 12px;
  }

  .brand {
    gap: 8px;
    font-size: .92rem;
  }

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

  .brand small {
    font-size: .7rem;
  }

  .lang a {
    min-width: 34px;
    min-height: 34px;
  }

  .site-nav {
    gap: 0 3px;
  }

  .site-nav a {
    padding: 9px 7px 8px;
    font-size: .84rem;
  }

  main {
    padding-block: 32px 56px;
  }

  h2 {
    margin-top: 36px;
  }

  .home article > ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shell {
    padding-inline: 12px;
  }

  h1,
  .home article > h1 {
    font-size: clamp(1.4rem, 7.3vw, 2rem);
  }

  .home article > h1,
  .home article > p:first-of-type {
    padding-inline: 16px;
  }
}

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

@media print {
  .site-header,
  .foot-links,
  .download,
  .skip {
    display: none;
  }

  .shell {
    max-width: none;
    padding-inline: 0;
  }

  main {
    min-height: 0;
    padding-block: 0;
  }

  article {
    max-width: none;
  }

  .home article {
    display: block;
  }

  .home article::before {
    display: none;
  }

  .home article > h1,
  .home article > p:first-of-type {
    max-width: none;
    padding: 0;
  }

  .home article > p:first-of-type {
    margin-top: 18px;
  }

  .home article > p:has(> a[href="services.html"]),
  .home article > p:has(> a[href^="mailto:"]) {
    display: block;
    font-size: inherit;
  }

  .home article > p:has(> a[href="services.html"]) a,
  .home article > p:has(> a[href^="mailto:"]) a,
  .home article > p:has(> a[href="services.html"]) a:first-child,
  .home article > p:has(> a[href^="mailto:"]) a:first-child {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: inherit;
    text-decoration: underline;
  }

  .site-footer {
    border-top: 1px solid var(--line);
    background: none;
    color: var(--ink);
  }

  h2 {
    break-after: avoid;
  }

  figure,
  .home article > ul > li,
  .catalog article > ul > li {
    break-inside: avoid;
  }
}
