:root {
  --blue: #004b7f;
  --blue-dark: #003f70;
  --blue-muted: #d7e2eb;
  --red: #e4003a;
  --page-bg: #e9eef4;
  --soft-bg: #f5f7fa;
  --text: #050505;
  --border: #c7d5e1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  font-weight: 700;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: #fff;
}

.skip-link:focus {
  top: 12px;
}

.site-shell {
  max-width: 1220px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  padding: 30px 60px 24px;
  background: var(--page-bg);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--blue);
  text-decoration: none;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
}

.brand small,
.footer-brand small {
  display: block;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 5px;
}

.spd-logo {
  display: inline-grid;
  place-items: end start;
  width: 78px;
  height: 78px;
  padding: 7px;
  background: var(--red);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.spd-logo.large {
  width: 108px;
  height: 108px;
  font-size: 48px;
}

.header-actions {
  display: flex;
  gap: 28px;
}

.icon-action,
.footer-tools button,
.footer-tools a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 32px;
  height: 4px;
  background: var(--blue);
  content: "";
}

.hamburger {
  position: relative;
  margin: 8px 0;
}

.hamburger::before {
  position: absolute;
  top: -9px;
}

.hamburger::after {
  position: absolute;
  top: 9px;
}

.search-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 4px solid var(--blue);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 13px;
  height: 4px;
  background: var(--blue);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 700px);
  gap: 58px;
  align-items: center;
  padding: 54px 60px 42px;
  background: var(--soft-bg);
}

.hero-copy h1 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.hero-image {
  position: relative;
  margin: 0;
  height: 334px;
  overflow: hidden;
  background: #a5acba;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: #8f8d97;
}

.hero-image figcaption {
  position: absolute;
  right: 9px;
  bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.slider-controls {
  display: flex;
  gap: 5px;
  padding: 0 60px;
  transform: translateY(-18px);
}

.round-control {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.round-control.muted {
  background: var(--blue-muted);
}

.content-narrow {
  width: calc(100% - 48px);
  max-width: 720px;
  margin: 0 auto;
}

.welcome {
  padding: 38px 0 72px;
}

h1,
h2,
h3 {
  color: var(--blue);
  line-height: 1.18;
}

.welcome h2 {
  margin: 0 0 28px;
  font-size: 34px;
}

.welcome p,
.text-page p,
.text-page li {
  margin: 0 0 22px;
}

.accordion {
  margin-top: 46px;
}

.accordion details {
  border-top: 1px solid var(--border);
}

.accordion details:last-child {
  border-bottom: 1px solid var(--border);
}

.accordion summary {
  position: relative;
  list-style: none;
  padding: 14px 42px 14px 0;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  position: absolute;
  right: 0;
  top: 12px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  content: "⌄";
  font-size: 14px;
  line-height: 1;
}

.accordion details[open] summary::after {
  content: "⌃";
}

.accordion-body {
  padding: 4px 0 18px;
}

.link-list {
  display: grid;
  gap: 8px;
}

.news-section {
  padding: 66px 0 90px;
  background: #fff;
}

.section-inner {
  width: calc(100% - 48px);
  max-width: 980px;
  margin: 0 auto;
}

.section-inner > h2 {
  margin: 0 0 28px;
  font-size: 34px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  min-height: 250px;
  padding: 26px;
  background: var(--soft-bg);
}

.news-card span,
.news-list span {
  display: block;
  margin-bottom: 18px;
  color: #525f6b;
  font-weight: 700;
}

.news-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 46px;
  padding: 18px 28px;
  background: var(--blue);
  color: #fff;
  font-size: 25px;
  text-decoration: none;
}

.primary-link span {
  font-size: 34px;
  line-height: 1;
}

.page-heading {
  padding: 58px 60px 42px;
  background: var(--soft-bg);
}

.page-heading h1 {
  width: calc(100% - 48px);
  max-width: 720px;
  margin: 0 auto;
  font-size: 42px;
}

.text-page {
  padding: 54px 0 88px;
}

.text-page h2 {
  margin: 0 0 18px;
  font-size: 27px;
}

.text-page ul {
  padding-left: 22px;
}

.map-image {
  display: block;
  width: min(100%, 520px);
  margin-top: 22px;
}

.news-list {
  display: grid;
  gap: 30px;
}

.news-list article {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.download-list {
  display: grid;
  gap: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--soft-bg);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.search-box input {
  width: 100%;
  border: 2px solid var(--border);
  padding: 12px 14px;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--text) !important;
  font-weight: 400 !important;
}

.checkbox input {
  width: auto;
  margin-top: 7px;
}

.submit-button,
.search-box button[type="submit"] {
  justify-self: start;
  border: 0;
  padding: 13px 22px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sitemap-list {
  display: grid;
  gap: 12px;
}

.site-footer {
  background: var(--soft-bg);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 52px 80px;
  align-items: end;
  padding: 78px 120px 70px;
}

.footer-brand {
  grid-column: 1 / 2;
  align-items: flex-start;
  flex-direction: column;
  gap: 28px;
}

.footer-brand strong {
  font-size: 36px;
}

.footer-brand small {
  font-size: 28px;
}

.follow {
  grid-column: 1 / 2;
  color: var(--blue);
  font-size: 26px;
  font-weight: 800;
}

.follow > div {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

.footer-tools {
  grid-column: 2 / 3;
  display: flex;
  gap: 30px;
  align-items: center;
}

.footer-tools button,
.footer-tools a {
  flex-direction: row;
  gap: 14px;
  font-size: 23px;
  text-transform: none;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 22px;
  background: var(--blue);
}

.footer-bottom a {
  color: #fff;
  font-weight: 400;
}

.menu-panel,
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.menu-panel.is-open,
.search-panel.is-open {
  display: block;
}

.menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.menu-card {
  position: relative;
  width: min(430px, 100%);
  min-height: 100%;
  padding: 78px 76px;
  background: #fff;
}

.close-button {
  position: fixed;
  right: 28px;
  top: 28px;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border: 0;
  padding: 12px 18px;
  background: #fff;
  color: #000;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.search-pill .search-icon {
  width: 20px;
  height: 20px;
  border-width: 4px;
  border-color: #000;
}

.search-pill .search-icon::after {
  background: #000;
}

.main-menu {
  display: grid;
  gap: 20px;
  margin-top: 64px;
}

.main-menu a {
  display: flex;
  justify-content: space-between;
  color: #111;
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
}

.search-box {
  position: relative;
  width: min(720px, calc(100% - 48px));
  margin: 140px auto;
  padding: 38px;
  background: #fff;
}

.search-box label {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
}

.search-box > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

body.overlay-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 110px;
    padding: 22px 24px;
  }

  .brand small {
    max-width: 200px;
  }

  .header-actions {
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 24px;
  }

  .hero-image {
    height: 300px;
  }

  .slider-controls {
    padding: 0 24px;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    padding: 58px 42px;
  }

  .footer-brand,
  .follow,
  .footer-tools {
    grid-column: auto;
  }

  .footer-brand strong {
    font-size: 30px;
  }

  .footer-brand small {
    font-size: 22px;
  }

  .footer-tools {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: 100%;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .brand {
    gap: 12px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 13px;
  }

  .spd-logo {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }

  .header-actions {
    align-self: flex-end;
    flex-direction: row;
  }

  .icon-action {
    font-size: 11px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-image figcaption {
    left: 8px;
    right: 8px;
    overflow: hidden;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
  }

  .welcome h2,
  .section-inner > h2,
  .page-heading h1 {
    font-size: 30px;
  }

  .primary-link {
    width: 100%;
    font-size: 20px;
  }

  .page-heading {
    padding: 40px 24px 30px;
  }

  .menu-card {
    padding: 72px 44px;
  }

  .main-menu a {
    font-size: 24px;
  }

  .close-button {
    width: 48px;
    height: 48px;
    font-size: 34px;
  }

  .search-box > div {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}
