:root {
  --White: #ffffff;
  --Black: #000000;
  --darkBlue: #0a2740;
  --lightBlue: #758da3;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  transition: all 0.3s ease;
  background: transparent;
  height: 130px;
}

.header--white {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header--transparent {
  background: transparent;
}

/* Header Top */
.headerTop {
  background: var(--darkBlue);
  color: #fff;
}
.headerTop__container {
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.headerTop__dropdowns {
  display: inline-flex;
  gap: 16px;
}
.headerTop__dropdown {
  position: relative;
}
.htDrop__toggle {
  background: transparent;
  border: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.htDrop__icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.htDrop__caret svg {
  display: block;
}
.htDrop__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #fff;
  color: var(--darkBlue);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 1003;
}
@media (max-width: 900px) {
  .htDrop__menu {
    left: 0;
  }
}
.htDrop__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--darkBlue);
  text-decoration: none;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
}
.htDrop__item:hover {
  background: #f2f5f8;
}
.htDrop__item-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.htDrop__toggle[aria-expanded="true"] + .htDrop__menu {
  display: block;
}

@media (max-width: 900px) {
  .headerTop__container {
    width: 92%;
    padding: 6px 12px;
    justify-content: space-between;
  }
}

.header__container {
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
  padding: 0 15px;
  height: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 40px;
}

/* Logo Column */
.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-link {
  text-decoration: none;
  color: #000;
}

.header__logo-text {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.header__logo img {
  max-height: 70px;
  width: auto;
}

.header__logo-default {
  display: inline-block;
}
.header__logo-alt-link {
  display: none;
}
.header__logo-alt {
  max-height: 90px;
  width: auto;
  display: block;
}
.header--white .header__logo-default {
  display: none;
}
.header--white .header__logo-alt-link {
  display: inline-block;
}

/* Navigation Column */
.header__nav {
  display: flex;
  justify-content: center;
}

.header__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
  align-items: center;
}

.header__menu li {
  margin: 0;
}

.header__menu a {
  color: #000;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header__menu a:hover {
  text-decoration: underline;
}

.header__menu a:active {
  font-weight: 700;
}

.header__menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.header__menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d05d38;
  transition: width 0.3s ease;
}

.header__menu a:hover::after {
  width: 100%;
}

/* Hamburger and Drawer */
.header__hamburger {
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.header__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #0a2740;
}
.header--transparent .header__hamburger-line {
  background: #fff;
}

.sideMenu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  background: #fff;
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.sideMenu[aria-hidden="false"] {
  transform: translateX(0);
}
.sideMenu__close {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.sideMenu__menu {
  list-style: none;
  margin: 20px 0 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.sideMenu__menu a {
  text-decoration: none;
  color: #0a2740;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
}
.sideMenu__menu a:hover {
  text-decoration: underline;
}
.sideMenu__top {
  margin-top: 12px;
  display: grid;
  gap: 16px;
}
.sideMenu__label {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--darkBlue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.sideMenu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.sideMenu__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--darkBlue);
  font-family: "Roboto", sans-serif;
  font-size: 15px;
}
.sideMenu__link.is-active {
  font-weight: 700;
}
.sideMenu__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.sideMenu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1099;
  display: none;
}

/* Header buttons */
.header__buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.header__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
}
.header__button--primary {
  background: transparent;
  color: #0a2740;
  border: 1px solid #0a2740;
}
.header__button--primary:hover {
  background: #fff;
  color: #0a2740;
  border: 1px solid #0a2740;
}
.header__button--secondary {
  background: #0a2740;
  color: #fff;
  border: 1px solid #0a2740;
}
.header__button--secondary:hover {
  background: #fff;
  color: #0a2740;
  border: 1px solid #0a2740;
}
.sideMenu__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.sideMenu__actions a > span {
  margin: 0 auto;
}

/* Footer */
.footer {
  background: #0a2740;
  color: #fff;
}

/* 404 Page */
.error-404 {
  width: 100%;
}
.error-404__container {
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  padding: 175px 0 175px 0;
  text-align: center;
}
.error-404__title {
  color: #000;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 168px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: -1.68px;
  display: block;
}
.error-404__subtitle {
  color: #0a2740;
  font-family: "Roboto", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 120%;
  margin: 50px 0 24px 0;
}
.error-404__text {
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  margin: 0 0 50px 0;
}
.error-404__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  background: #0a2740;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
}

@media (max-width: 600px) {
  .error-404__title {
    font-size: 48px;
  }
  .error-404__subtitle {
    font-size: 28px;
  }
  .error-404__text {
    font-size: 16px;
  }
}
.footer__container {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
  padding: 80px 0 80px 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 60% 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 80px;
}
.footer__logo img {
  max-height: 60px;
  width: auto;
  display: block;
}
ul.footer__menu {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.footer__menu a {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  text-decoration: none;
}
.footer__menu a:hover {
  text-decoration: underline;
}
.footer__socials {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.footer__social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 0 32px 0;
}
.footer__bottom {
  display: inline-flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}
.footer__policies {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__copyright {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}
.footer__policy {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-decoration: underline;
}

.error-404__actions {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.error-404__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  background: #0a2740;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  border: 1px solid #0a2740;
}
.error-404__button:hover {
  border: 1px solid #0a2740;
  background: #fff;
  color: #000;
}
.error-404__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a2740;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
}
.error-404__link:hover {
  text-decoration: underline;
}
.error-404__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .error-404__title {
    font-size: 48px;
  }
  .error-404__subtitle {
    font-size: 28px;
  }
  .error-404__text {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .header__buttons {
    display: none;
  }
  .footer__top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer__socials {
    justify-content: center;
  }
  .footer__container {
    padding: 60px 0 60px 0;
  }
  .footer__top {
    gap: 16px;
    margin-bottom: 48px;
  }
  .footer__logo img {
    max-height: 52px;
  }
  ul.footer__menu {
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .footer__container {
    width: 92%;
    padding: 48px 0 48px 0;
  }
  ul.footer__menu {
    gap: 14px;
  }
  .footer__menu a {
    font-size: 13px;
  }
  .footer__policies {
    gap: 14px;
  }
  .footer__policy {
    font-size: 13px;
  }
  .footer__logo img {
    max-height: 44px;
  }
}

@media (max-width: 400px) {
  ul.footer__menu {
    gap: 10px;
  }
  .footer__socials {
    gap: 10px;
  }
  .footer__policy {
    font-size: 12px;
  }
}
