/* -------------------------------------------------------------------------
   Container
   ------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Section
   ------------------------------------------------------------------------- */

.section {
  padding: 35px 16px;
}

@media (min-width: 768px) {
  .section {
    padding: 42px 22px;
  }
}

@media (min-width: 992px) {
  .section {
    padding: 48px 28px;
  }
}

@media (min-width: 1200px) {
  .section {
    padding: 54px 34px;
  }
}

@media (min-width: 1440px) {
  .section {
    padding: 60px 40px;
  }
}

/* -------------------------------------------------------------------------
   Site header
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-inline: 16px;
  background-color: #ffffff99;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-open {
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'logo actions'
    'panel panel';
  align-items: center;
  column-gap: 16px;
  padding-block: 16px;
}

.site-header__logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.site-header__logo-img {
  display: block;
  width: 135px;
  height: auto;
  aspect-ratio: 226 / 61;
}

.site-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.site-header.is-open .site-header__logo,
.site-header.is-open .site-header__actions {
  position: relative;
  z-index: 2;
}

.site-header__panel {
  grid-area: panel;
  display: none;
}

.site-header.is-open .site-header__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: calc(var(--site-header-offset, 77px) + 69px) 16px calc(60px + env(safe-area-inset-bottom, 0px));
  background-color: var(--color-white);
  background-image: url('../images/bg-mobile-menu.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Logo sizes */

@media (min-width: 768px) {
  .site-header {
    padding-inline: 22px;
  }

  .site-header.is-open .site-header__panel {
    padding-inline: 22px;
  }

  .site-header__logo-img {
    width: 158px;
  }
}

@media (min-width: 992px) {
  .site-header {
    padding-inline: 28px;
  }

  .site-header.is-open .site-header__panel {
    padding-inline: 28px;
  }

  .site-header__logo-img {
    width: 181px;
  }
}

@media (min-width: 1200px) {
  .site-header {
    padding-inline: 34px;
  }

  .site-header__logo-img {
    width: 204px;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'logo panel actions';
    column-gap: 24px;
  }

  .site-header__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    inset: auto;
    padding: 0;
    background: none;
  }

  .site-header.is-open .site-header__panel {
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    justify-content: center;
    padding: 0;
    background: none;
  }

  .site-header__actions {
    gap: 10px;
  }
}

@media (min-width: 1440px) {
  .site-header {
    padding-inline: 40px;
  }

  .site-header__logo-img {
    width: 226px;
  }
}

/* Calendar button */

.site-header__calendar {
  width: 45px;
  height: 45px;
  border-radius: 100px;
  flex-shrink: 0;
}

.site-header__calendar-icon {
  display: block;
  width: 14.25px;
  height: 15.83px;
}

/* CTA */

.site-header__cta {
  width: 177px;
  height: 45px;
  border-radius: 100px;
  flex-shrink: 0;
}

.site-header__cta--desktop {
  display: none;
}

.site-header__cta--mobile {
  width: 100%;
  align-self: stretch;
  margin-top: auto;
}

@media (min-width: 768px) {
  .site-header__cta--mobile {
    width: 177px;
    align-self: center;
  }
}

@media (min-width: 1200px) {
  .site-header__cta--desktop {
    display: inline-flex;
  }

  .site-header__cta--mobile {
    display: none;
  }
}

/* Menu toggle */

.site-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 100px;
  background-color: var(--color-ink);
  flex-shrink: 0;
}

.site-header__toggle-icon {
  display: block;
}

.site-header__toggle-icon--burger {
  width: 17px;
  height: 11.27px;
}

.site-header__toggle-icon--close {
  width: 13px;
  height: 13px;
}

.site-header.is-open .site-header__toggle-icon--burger {
  display: none;
}

.site-header.is-open .site-header__toggle-icon--close {
  display: block;
}

.site-header:not(.is-open) .site-header__toggle-icon--close {
  display: none;
}

@media (min-width: 1200px) {
  .site-header__toggle {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   Header navigation
   ------------------------------------------------------------------------- */

.site-header__menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.site-header__menu > .menu-item {
  width: 100%;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #07293e1a;
}

.site-header__menu > .menu-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.site-header__menu > .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #07293ecc;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.site-header__menu > .menu-item > a:hover {
  color: #07293e;
  font-weight: 500;
}

.site-header__menu > .menu-item.current-menu-item > a,
.site-header__menu > .menu-item.current-menu-ancestor > a,
.site-header__menu > .menu-item.current_page_item > a,
.site-header__menu > .menu-item-has-children.is-open > a,
.site-header__menu > .menu-item-has-children[aria-expanded='true'] > a {
  color: #07293e;
  font-weight: 700;
}

.site-header__menu > .menu-item.current-menu-item > a:hover,
.site-header__menu > .menu-item.current-menu-ancestor > a:hover,
.site-header__menu > .menu-item.current_page_item > a:hover,
.site-header__menu > .menu-item-has-children.is-open > a:hover,
.site-header__menu > .menu-item-has-children[aria-expanded='true'] > a:hover {
  color: #07293e;
  font-weight: 700;
}

.site-header__menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.site-header__menu-icon-img {
  display: block;
  width: 12px;
  height: 6px;
}

.site-header__menu .menu-item-has-children.is-open > a .site-header__menu-icon,
.site-header__menu .menu-item-has-children[aria-expanded='true'] > a .site-header__menu-icon {
  transform: rotate(180deg);
}

.site-header__menu .sub-menu {
  display: none;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  padding-left: 12px;
}

.site-header__menu .menu-item-has-children.is-open > .sub-menu {
  display: flex;
}

.site-header__menu .sub-menu a {
  display: inline-block;
  color: #07293ecc;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}

.site-header__menu .sub-menu a:hover {
  color: #07293e;
  font-weight: 500;
}

.site-header__menu .sub-menu .current-menu-item > a,
.site-header__menu .sub-menu .current_page_item > a {
  color: #07293e;
  font-weight: 700;
}

.site-header__menu .sub-menu .current-menu-item > a:hover,
.site-header__menu .sub-menu .current_page_item > a:hover {
  color: #07293e;
  font-weight: 700;
}

@media (min-width: 1200px) {
  .site-header__menu {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 24px;
  }

  .site-header__menu > .menu-item,
  .site-header__menu > .menu-item:last-child {
    position: relative;
    width: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }

  .site-header__menu > .menu-item > a {
    display: inline-flex;
    justify-content: flex-start;
    width: auto;
    color: #07293ecc;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .site-header__menu > .menu-item-has-children:hover > a,
  .site-header__menu > .menu-item-has-children:focus-within > a {
    color: #07293e;
    font-weight: 700;
  }

  .site-header__menu-icon {
    width: 24px;
    height: 24px;
  }

  .site-header__menu-icon-img {
    width: 8px;
    height: 4px;
  }

  .site-header__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;
    display: block;
    min-width: 260px;
    padding: 12px 0;
    margin-top: 8px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(7, 41, 62, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .site-header__menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 0;
    left: 0;
    height: 8px;
  }

  .site-header__menu .sub-menu a {
    display: block;
    padding: 8px 16px;
    color: #07293ecc;
    font-weight: 400;
    white-space: nowrap;
  }

  .site-header__menu .menu-item-has-children:hover > .sub-menu,
  .site-header__menu .menu-item-has-children:focus-within > .sub-menu,
  .site-header__menu .menu-item-has-children.is-open > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__menu .menu-item-has-children.is-open > a .site-header__menu-icon,
  .site-header__menu .menu-item-has-children:hover > a .site-header__menu-icon,
  .site-header__menu .menu-item-has-children:focus-within > a .site-header__menu-icon {
    transform: rotate(180deg);
  }
}

/* -------------------------------------------------------------------------
   Site footer
   ------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--color-ink);
  color: var(--color-white);
  padding: 40px 16px 18px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'logo social'
    'company company'
    'what what'
    'how how'
    'subscribe subscribe';
  align-items: start;
  row-gap: 30px;
  column-gap: 16px;
  margin-bottom: 30px;
}

.site-footer__logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.site-footer__logo-img {
  display: block;
  width: 83px;
  height: 92px;
  max-width: none;
}

.site-footer__social {
  grid-area: social;
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-self: end;
}

.site-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 100px;
  background-color: #ffffff33;
}

.site-footer__social-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.site-footer__col--company {
  grid-area: company;
}

.site-footer__col--what {
  grid-area: what;
}

.site-footer__col--how {
  grid-area: how;
}

.site-footer__heading {
  margin: 0 0 16px;
  color: #ffffff99;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
}

.site-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__menu a {
  color: #ffffffe6;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
}

.site-footer__menu a:hover {
  color: var(--color-white);
  font-weight: 500;
}

.site-footer__menu .current-menu-item > a,
.site-footer__menu .current_page_item > a {
  color: var(--color-white);
  font-weight: 700;
}

.site-footer__menu .current-menu-item > a:hover,
.site-footer__menu .current_page_item > a:hover {
  color: var(--color-white);
  font-weight: 700;
}

.site-footer__subscribe {
  grid-area: subscribe;
}

.site-footer__subscribe-title {
  margin: 0 0 12px;
  color: #ffffff99;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
}

.site-footer__subscribe-form {
  margin: 0;
}

.site-footer__subscribe-field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 49px;
  min-height: 49px;
  padding: 5px 5px 5px 16px;
  border-radius: 100px;
  background-color: var(--color-white);
}

.site-footer__subscribe-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 2px 0 0;
  background: transparent;
  color: var(--color-ink);
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

.site-footer__subscribe-input::placeholder {
  color: var(--color-ink);
  opacity: 1;
}

.site-footer__subscribe-input:focus {
  outline: none;
}

.site-footer__subscribe-button {
  display: inline-flex;
  flex: 0 0 111px;
  align-items: center;
  justify-content: center;
  width: 111px;
  height: 100%;
  padding: 12px 0 10px;
  border-radius: 100px;
  background-color: #73d630;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__copy {
  margin: 0;
  order: 2;
  color: #ffffff66;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  order: 1;
}

.site-footer__legal li {
  flex: 0 0 auto;
  min-width: 0;
}

.site-footer__legal li:first-child {
  width: 82px;
}

.site-footer__legal li:nth-child(2) {
  width: 98px;
  text-align: center;
}

.site-footer__legal li:last-child {
  width: 79px;
  text-align: left;
}

.site-footer__legal a {
  display: inline-block;
  color: #ffffff66;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .site-footer {
    padding-inline: 22px;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'logo social'
      'company what'
      'how .'
      'subscribe .';
    column-gap: 30px;
  }

  .site-footer__subscribe-field {
    width: 337px;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .site-footer {
    padding-inline: 28px;
  }

  .site-footer__top {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      'logo company what'
      '. how subscribe'
      '. how social';
    column-gap: 24px;
    row-gap: 30px;
  }

  .site-footer__logo {
    margin-inline-end: 125px;
    align-self: start;
  }

  .site-footer__col--company,
  .site-footer__col--what,
  .site-footer__col--how {
    width: 100%;
    max-width: none;
    align-self: start;
  }

  .site-footer__subscribe {
    align-self: start;
    justify-self: stretch;
  }

  .site-footer__subscribe-field {
    width: 100%;
    max-width: 337px;
  }

  .site-footer__social {
    justify-self: end;
    align-self: end;
  }
}

@media (min-width: 1200px) {
  .site-footer {
    padding: 40px 34px 20px;
  }

  .site-footer__top {
    grid-template-columns: auto 1fr 1fr 1fr 337px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'logo company what how subscribe'
      'logo company what how social';
    column-gap: 40px;
    row-gap: 0;
    margin-bottom: 36px;
  }

  .site-footer__logo {
    margin-inline-end: 24px;
    align-self: start;
  }

  .site-footer__col--company,
  .site-footer__col--what,
  .site-footer__col--how {
    align-self: start;
  }

  .site-footer__subscribe {
    align-self: start;
    justify-self: stretch;
  }

  .site-footer__subscribe-field {
    width: 337px;
  }

  .site-footer__social {
    justify-self: end;
    align-self: end;
    padding-top: 16px;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }

  .site-footer__copy {
    order: 0;
  }

  .site-footer__legal {
    display: flex;
    flex: 0 0 auto;
    gap: 30px;
    order: 0;
  }

  .site-footer__legal li:first-child,
  .site-footer__legal li:nth-child(2),
  .site-footer__legal li:last-child {
    width: auto;
    text-align: left;
  }
}

@media (min-width: 1440px) {
  .site-footer {
    padding: 40px 40px 24px;
  }

  .site-footer__top {
    column-gap: 60px;
    margin-bottom: 40px;
  }

  .site-footer__logo {
    margin-inline-end: 68px;
  }
}
