body {
  padding-top: 0;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

#page {
  padding-top: var(--site-header-height, 0px);
}

.site-header {
  --topbar-visible-height: 56px;
  width: 100%;
  max-width: 100%;
  background: #fff;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
  transform: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 1px));
}

.site-header.is-sticky {
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

.site-header__topbar,
.site-header__menu-row {
  width: 100%;
  max-width: 100%;
}

.site-header__topbar {
  height: var(--topbar-visible-height);
  margin-top: 0;
  transform: translateY(0);
  transform-origin: top;
  transition: none;
}

.site-header.is-ready .site-header__topbar {
  transition: margin-top .28s ease, transform .28s ease;
}

.site-header:not(.is-at-top) .site-header__topbar {
  margin-top: calc(var(--topbar-visible-height) * -1);
  transform: translateY(-8px);
  pointer-events: none;
}

.site-header__inner {
  max-width: 100%;
  margin: 0;
  padding-left: 8rem;
  padding-right: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__topbar .site-header__inner {
  min-height: 46px;
  padding-top: .35rem;
  padding-bottom: .35rem;
  font-weight: 700;
}

.site-header__menu-row .site-header__inner {
  min-height: 68px;
  padding-bottom: .35rem;
}

.site-header:not(.is-at-top) .site-header__menu-row .site-header__inner {
  padding-top: .35rem;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .95rem;
  color: #141414;
  text-decoration: none;
  transition: color .2s ease;
}

.site-header__phone img {
  width: 16px;
  height: 16px;
  display: block;
}

.site-header__phone:hover {
  color: var(--primary);
}

.site-header__socials {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.site-header__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  cursor: pointer;
}

.site-header__socials img {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  height: 68px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .04em;
}

.site-header__logo img {
  width: auto;
  height: 100%;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.site-header__brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
  letter-spacing: 0;
}

.site-header__brand-text strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.site-header__brand-text small {
  margin-top: .15rem;
  font-size: .82rem;
  font-weight: 600;
  color: #334155;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-header__nav a {
  color: #141414;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  transition: color .2s ease, opacity .2s ease;
}

.site-header__nav a:hover {
  color: var(--primary);
  opacity: 1;
}

.site-header__nav .site-header__cta {
  background: var(--primary);
  color: #fff;
  padding: .65rem 1rem;
  border-radius: .35rem;
  opacity: 1;
}

.site-header__nav .site-header__cta:hover {
  color: #fff;
  opacity: 1;
  filter: brightness(1.08);
}

.site-header__search-toggle {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: .35rem;
  color: #111;
  transition: color .2s ease;
}

.site-header__search-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.site-header__search-toggle:hover {
  color: var(--primary);
}

.site-header__hamburger {
  border: 0;
  background: transparent;
  padding: 0;
  width: 34px;
  height: 34px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: .35rem;
  transition: background-color .2s ease;
}

.site-header__hamburger:hover {
  background-color: var(--primary);
}

.site-header__hamburger:hover img {
  filter: brightness(0) invert(1);
}

.site-header__hamburger img {
  width: 24px;
  height: 24px;
  display: block;
  transition: filter .2s ease;
}

.site-header__drawer {
  --drawer-gutter: .75rem;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  background: #fff;
  z-index: 20000;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
  transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
  display: flex;
  flex-direction: column;
}

.site-header__drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.site-header__drawer-head {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--drawer-gutter);
  padding-right: var(--drawer-gutter);
}

.site-header__drawer-back>span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.site-header__drawer-back,
.site-header__drawer-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  min-height: 44px;
  padding: 0;
  border-radius: .35rem;
  transition: background-color .2s ease, color .2s ease;
}

.site-header__drawer-back:hover,
.site-header__drawer-close:hover {
  background-color: var(--primary);
  color: #fff;
}

.site-header__drawer-back img,
.site-header__drawer-close img {
  width: 20px;
  height: 20px;
  display: block;
  transition: filter .2s ease;
}

.site-header__drawer-back:hover img,
.site-header__drawer-close:hover img {
  filter: brightness(0) invert(1);
}

.site-header__drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem var(--drawer-gutter);
  gap: .7rem;
}

.site-header__drawer-nav a {
  text-decoration: none;
  color: #111;
  font-size: 1.2rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color .2s ease;
}

.site-header__drawer-nav a:hover {
  color: var(--primary);
}

.site-header__drawer-nav .site-header__cta {
  background: var(--primary);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: .35rem;
}

.site-header__drawer-nav .site-header__cta:hover {
  color: #fff;
  filter: brightness(1.08);
}

.site-header__search-toggle--drawer {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  font-size: 1.2rem;
  font-weight: 500;
  gap: .45rem;
}

.site-header__search-toggle--drawer:hover {
  background: transparent;
}

.site-header__search-toggle--drawer span {
  line-height: 1;
}

.site-search-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.site-search-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-search-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .6);
}

.site-search-modal__panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 1.4rem));
  margin: 4.5rem auto 1rem;
  background: #fff;
  border-radius: .55rem;
  max-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-search-modal__close {
  position: fixed;
  top: .8rem;
  right: .8rem;
  border: 0;
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: .35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color .2s ease, filter .2s ease;
}

.site-search-modal__close:hover {
  filter: brightness(0.96);
}

.site-search-modal__close img {
  width: 20px;
  height: 20px;
  display: block;
}

.site-search-modal__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  padding: 1rem 3.7rem 1rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, .12);
}

.site-search-modal__input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: .42rem;
  padding: .7rem .85rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #111827;
  outline: none;
}

.site-search-modal__input:focus {
  border-color: var(--primary);
}

.site-search-modal__submit {
  min-height: 46px;
  border: 0;
  border-radius: .42rem;
  padding: .72rem 1.2rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter .2s ease;
}

.site-search-modal__submit:hover {
  filter: brightness(1.08);
}

.site-search-modal__results {
  overflow-y: auto;
  padding: .9rem 1rem 1rem;
}

.site-search-modal__message {
  margin: 0;
  color: #475569;
  font-size: .96rem;
  line-height: 1.55;
  padding: .3rem 0;
}

.site-search-modal__group {
  margin-top: .8rem;
}

.site-search-modal__group-title {
  margin: 0 0 .45rem;
  color: #0f172a;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-search-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .4rem;
}

.site-search-modal__item {
  display: block;
  text-decoration: none;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: .45rem;
  padding: .6rem .7rem;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease;
}

.site-search-modal__item:hover {
  border-color: rgba(37, 99, 235, .35);
  background: #f8fafc;
}

.site-search-modal__item-title {
  display: block;
  color: inherit;
  font-size: .98rem;
  line-height: 1.35;
  font-weight: 700;
}

.site-search-modal__item-meta {
  display: block;
  margin-top: .22rem;
  font-size: .86rem;
  color: #475569;
  line-height: 1.35;
}

.site-search-modal__post-item {
  display: flex;
  align-items: center;
}

.site-search-modal__post-item--with-thumb {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: .65rem;
  align-items: center;
}

.site-search-modal__post-thumb {
  width: 58px;
  height: 58px;
  border-radius: .32rem;
  overflow: hidden;
  background: #e2e8f0;
}

.site-search-modal__post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.search-modal-open {
  overflow: hidden;
}

html.search-modal-open,
html.search-modal-open body {
  overflow: hidden;
}

body.header-drawer-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .site-header__inner {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (max-width: 992px) {
  .site-header__nav {
    display: none;
  }

  .site-header__hamburger {
    display: inline-flex;
  }

  .site-header__logo img {
    height: 100%;
    max-width: 132px;
  }

  .site-header__brand-text strong {
    font-size: 1.05rem;
  }

  .site-header__brand-text small {
    font-size: .72rem;
  }

  .site-header__hamburger {
    width: 46px;
    height: 46px;
  }

  .site-header__hamburger img {
    width: 32px;
    height: 32px;
  }

  .site-search-modal__panel {
    width: calc(100% - 1rem);
    margin-top: 1rem;
    max-height: calc(100vh - 2rem);
  }

  .site-search-modal__form {
    padding-right: 3.2rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    --topbar-visible-height: 50px;
  }

  .site-header__inner {
    padding-left: .5rem;
    padding-right: .5rem;
  }

  .site-header__topbar .site-header__inner {
    min-height: 40px;
    padding-top: .3rem;
    padding-bottom: .3rem;
  }

  .site-header__menu-row .site-header__inner {
    min-height: 78px;
    padding-bottom: .55rem;
  }

  .site-header:not(.is-at-top) .site-header__menu-row .site-header__inner {
    padding-top: .55rem;
  }

  .site-header__logo {
    height: 78px;
  }

  .site-header__logo img {
    max-width: 110px;
  }

  .site-header__brand-text {
    max-width: 170px;
  }

  .site-header__brand-text strong {
    font-size: .95rem;
  }

  .site-header__brand-text small {
    font-size: .67rem;
    line-height: 1.2;
  }

  .site-header__phone {
    font-size: .875rem;
  }

  .site-header__socials {
    gap: .55rem;
  }

  .site-header__socials img {
    width: 20px;
    height: 20px;
  }
}
