:root {
  --hf-accent: #ff6200;
  --hf-accent-light: #ffc341;
  --hf-text: #000000;
  --hf-soft: #505050;
  --hf-surface: #ffffff;
  --hf-footer-bg: #1c1609;
  --hf-footer-muted: #b6b9bf;
}

.hf-shell {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.hf-header {
  position: relative;
  z-index: 20;
  background: var(--hf-surface);
  box-shadow: 0 4px 50px rgba(0, 0, 0, 0.06);
}

.hf-header.is-menu-open {
  z-index: 120;
}

.hf-header__top {
  min-height: 74px;
}

.hf-header__top-inner {
  display: flex;
  align-items: center;
  min-height: 74px;
}

.hf-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.hf-nav a {
  color: var(--hf-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 33.6px;
  white-space: nowrap;
  text-decoration: none;
}

.hf-nav a.is-active {
  background: linear-gradient(90deg, var(--hf-accent-light) 0%, var(--hf-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hf-lang {
  position: relative;
  margin-left: auto;
}

.hf-lang-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 33.6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hf-text);
  cursor: pointer;
}

.hf-lang-icon {
  width: 17px;
  height: 17px;
}

.hf-lang-current {
  font-size: 16px;
  font-weight: 400;
  line-height: 33.6px;
}

.hf-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 144px;
  padding: 6px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
}

.hf-lang.is-open .hf-lang-menu {
  display: grid;
  gap: 4px;
}

.hf-lang-option {
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #3a3a3a;
  text-align: left;
  cursor: pointer;
}

.hf-lang-option.is-active,
.hf-lang-option:hover {
  background: rgba(255, 157, 33, 0.14);
  color: var(--hf-accent);
}

.hf-menu-toggle,
.hf-menu-overlay {
  display: none;
  padding: 0;
  border: 0;
}

.hf-menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #ffffff;
  color: var(--hf-text);
  cursor: pointer;
}

.hf-menu-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.2s ease, top 0.24s ease;
}

.hf-menu-toggle span:nth-child(1) {
  top: 15px;
}

.hf-menu-toggle span:nth-child(2) {
  top: 21px;
}

.hf-menu-toggle span:nth-child(3) {
  top: 27px;
}

.hf-header.is-menu-open .hf-menu-toggle span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.hf-header.is-menu-open .hf-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.hf-header.is-menu-open .hf-menu-toggle span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.hf-header__divider {
  height: 1px;
  background: #efefef;
}

.hf-header__search-row {
  display: grid;
  grid-template-columns: 402px 589px 253px;
  align-items: center;
  gap: 39px;
  min-height: 125px;
  padding: 0 0 17px;
}

.hf-brand {
  display: inline-flex;
  align-items: center;
  width: 402px;
}

.hf-brand img {
  width: 402px;
  height: 152px;
  object-fit: cover;
}

.hf-search {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 105px;
  align-items: center;
  width: 589px;
  height: 46px;
  padding-left: 15px;
  border: 1px solid var(--hf-accent-light);
  background: rgba(255, 255, 255, 0.43);
}

.hf-search__icon {
  width: 26px;
  height: 26px;
}

.hf-search input {
  min-width: 0;
  height: 100%;
  padding: 0 0 0 6px;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--hf-soft);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
}

.hf-search input::placeholder {
  color: var(--hf-soft);
}

.hf-search button {
  width: 105px;
  height: 46px;
  padding: 0;
  border: 0;
  background: linear-gradient(90deg, var(--hf-accent-light) 0%, var(--hf-accent) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  cursor: pointer;
}

.hf-promo {
  width: 253px;
  height: 76px;
  object-fit: cover;
}

.hf-footer {
  background: var(--hf-footer-bg);
  color: #ffffff;
}

.hf-footer__inner {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 56px;
  padding: 80px 0 64px;
  align-items: start;
}

.hf-footer__brand img {
  width: 176px;
  height: auto;
}

.hf-footer__brand p {
  margin: 14px 0 0;
  color: var(--hf-footer-muted);
  font-size: 18px;
  line-height: 1.6;
}

.hf-footer__nav h3,
.hf-footer__social strong {
  display: block;
  margin: 0 0 21px;
  font-size: 24px;
  line-height: 1.4;
}

.hf-footer__nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 18px 42px;
}

.hf-footer__nav-grid a {
  color: var(--hf-footer-muted);
  font-size: 18px;
  line-height: 1.6;
  text-decoration: none;
}

.hf-social-list {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.hf-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hf-copyright {
  border-top: 1px solid #313b4a;
  padding: 28px 20px;
  text-align: center;
  color: var(--hf-footer-muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .hf-header__top-inner {
    justify-content: space-between;
    gap: 20px;
  }

  .hf-header__search-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 18px 0 24px;
  }

  .hf-brand {
    width: min(402px, 100%);
  }

  .hf-brand img,
  .hf-search,
  .hf-promo {
    width: min(100%, 589px);
  }

  .hf-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .hf-shell {
    width: calc(100% - 24px);
  }

  .hf-header__top {
    padding: 0;
  }

  .hf-header__top-inner {
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .hf-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: min(82vw, 320px);
    padding: 88px 24px 32px;
    background: #ffffff;
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.16);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }

  .hf-header.is-menu-open .hf-nav {
    transform: translateX(0);
  }

  .hf-nav a {
    font-size: 18px;
    line-height: 1.45;
  }

  .hf-lang {
    margin-left: 0;
  }

  .hf-lang-current {
    display: none;
  }

  .hf-lang-button {
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 14px;
    background: #ffffff;
  }

  .hf-lang-menu {
    left: 0;
    right: auto;
    min-width: 160px;
  }

  .hf-menu-toggle,
  .hf-menu-overlay {
    display: block;
  }

  .hf-menu-toggle {
    margin-left: auto;
  }

  .hf-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 15, 15, 0.38);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
  }

  .hf-header.is-menu-open .hf-menu-overlay {
    opacity: 1;
    visibility: visible;
  }

  .hf-search {
    grid-template-columns: 26px minmax(0, 1fr) 96px;
  }

  .hf-search button {
    width: 96px;
  }

  .hf-footer__nav-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

body.has-menu-open {
  overflow: hidden;
}
