:root {
  --theme-hero-start: #0f172a;
  --theme-hero-end: #1e3a8a;
  --theme-accent: #0f172a;
  --theme-accent-soft: #e2e8f0;
  --theme-accent-text: #0f172a;
  --theme-gold: #c5a044;
  --theme-surface: #141414;
  --theme-surface-soft: #1b1b1b;
  --theme-border-strong: #262626;
}

.theme-header,
.theme-menu,
.theme-hero,
.theme-footer {
  width: 100%;
}

.theme-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(18px);
  color: #fff;
  border-bottom: 1px solid var(--theme-border-strong);
  overflow: visible;
}

.theme-header__inner,
.theme-menu__inner,
.theme-hero__inner,
.theme-footer__inner {
  display: flex;
  align-items: center;
}

.theme-header__inner,
.theme-footer__inner {
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

@media (min-width: 901px) {
  .theme-header .wrap.theme-header__inner {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.theme-header__brand,
.theme-menu__link {
  text-decoration: none;
}

.theme-header__brand {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-header__brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.theme-header__brand-logo-wrap {
  display: inline-flex;
  align-items: center;
}

.theme-header__brand-icon-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.theme-header__brand-icon {
  display: block;
  width: auto;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.theme-header__brand-logo {
  display: block;
  width: auto;
  height: 60px;
  max-width: min(257px, 114vw);
}

.theme-header__brand-icon-street {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  max-width: 78px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-header__brand-main {
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--theme-gold);
  font-size: 20px;
}

.theme-header__brand-sub {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.46);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-page-sign-row {
  position: absolute;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  z-index: 950;
  pointer-events: none;
}

.theme-header__page-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--theme-gold);
  color: #111;
  text-decoration: none;
  border: 3px double #111;
  box-shadow: inset 0 0 0 1px #000, 0 4px 14px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  pointer-events: auto;
}

.theme-header__page-sign:hover {
  filter: brightness(1.02);
  text-decoration: none;
}

.theme-header__page-sign-text {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.btn-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: 0.2s;
}

.btn-search-trigger:hover {
  color: var(--theme-gold);
  border-color: rgba(197, 160, 68, 0.32);
  background: rgba(197, 160, 68, 0.08);
}

.theme-header__link,
.theme-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.theme-header__link {
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.theme-header__cta {
  background: var(--theme-gold);
  color: #111;
}

.theme-menu {
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-menu--inline {
  background: transparent;
  border-bottom: 0;
  flex: 1;
  min-width: 0;
}

.theme-menu__inner {
  gap: 18px;
  flex-wrap: wrap;
  min-height: 56px;
}

.theme-menu--inline .theme-menu__inner {
  min-height: 72px;
  justify-content: center;
}

.theme-menu__link {
  color: #8b8b8b;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.theme-menu__link.is-active {
  color: var(--theme-gold);
  border-bottom-color: var(--theme-gold);
}

.theme-menu__link:hover {
  color: #f5deb0;
}

.theme-hero {
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 25%, rgba(197, 160, 68, 0.18) 0%, transparent 36%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.01) 0%, rgba(10, 10, 10, 0.02) 68%, rgba(10, 10, 10, 0.04) 100%),
    linear-gradient(135deg, var(--theme-hero-start), var(--theme-hero-end));
}

.theme-hero__inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 72px 0 86px;
}

.theme-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
  max-width: 780px;
}

.theme-hero h1 span {
  color: var(--theme-gold);
}

.theme-hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(2px);
}

.theme-hero__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 640px);
  margin-top: 18px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.66);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.theme-hero__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  padding: 0 18px;
  outline: none;
}

.theme-hero__search input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.theme-hero__search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-gold);
  color: #111;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-page--directory-home .theme-hero__inner {
  align-items: center;
  text-align: center;
  padding: 70px 0 90px;
}

.theme-page--directory-home .theme-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -1px;
  max-width: 960px;
}

.theme-page--directory-home .theme-hero p {
  max-width: 600px;
  margin: 0 auto 35px;
  color: #fff;
  background: rgba(10, 10, 10, 0.34);
  border-color: rgba(255, 255, 255, 0.16);
}

.theme-page--directory-home .theme-hero__search {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--theme-border-strong);
}

.theme-page--directory-home .theme-hero__search button {
  background: var(--theme-gold);
  color: #000;
}

.theme-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.theme-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--theme-gold);
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
}

.theme-hero__action.is-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-main {
  min-height: 40vh;
  padding-bottom: 0;
  background: #0a0a0a;
  color: #fff;
  background-image:
    radial-gradient(circle at top center, rgba(197, 160, 68, 0.05), transparent 26%),
    linear-gradient(180deg, #0a0a0a 0%, #090909 100%);
}

.theme-footer {
  margin-top: 48px;
  background: #0b0b0b;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-footer__brand {
  display: grid;
  gap: 4px;
}

.theme-footer__brand strong {
  color: var(--theme-gold);
  font-size: 16px;
}

.theme-footer__brand span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.theme-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.theme-footer__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

/* Mobile tab bar + overlay */
.mobile-tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(197, 160, 68, 0.2);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  z-index: 2000;
}

.mobile-tabbar__item,
.mobile-tabbar__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  border-radius: 18px;
  color: #a0a0a0;
  text-decoration: none;
  border: none;
  background: transparent;
  transition: 0.2s;
  min-width: 0;
}

.mobile-tabbar__item.is-active,
.mobile-tabbar__item:hover {
  color: var(--theme-gold);
}

.mobile-tabbar__item--soft {
  background: rgba(255, 255, 255, 0.03);
}

.mobile-tabbar__button {
  width: 100%;
  background: linear-gradient(135deg, var(--theme-gold), #e0b855);
  color: #000;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(197, 160, 68, 0.2);
}

.mobile-tabbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-tabbar__button .mobile-tabbar__icon {
  background: rgba(0, 0, 0, 0.1);
}

.mobile-tabbar__item span:last-child,
.mobile-tabbar__button span:last-child {
  font-size: 10px;
  font-weight: 700;
}

.mobile-tabbar svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-menu-overlay {
  display: none;
}

.mobile-menu-overlay.is-open {
  display: block;
}

.mobile-menu-overlay__backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2500;
  cursor: pointer;
}

.mobile-menu-overlay__sheet {
  position: fixed;
  inset: auto 0 0 0;
  max-height: 85vh;
  padding: 24px 20px 40px;
  background: #111111;
  border-top: 1px solid var(--theme-gold);
  border-radius: 30px 30px 0 0;
  color: #fff;
  overflow: auto;
  z-index: 2501;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mobile-menu-overlay__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--theme-gold);
}

.mobile-menu-overlay__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-overlay__list {
  display: grid;
  gap: 10px;
}

.mobile-menu-overlay__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 16px;
  background: #1a1a1a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  transition: 0.2s;
}

.mobile-menu-overlay__list a:hover,
.mobile-menu-overlay__list a.is-active {
  background: rgba(197, 160, 68, 0.1);
  border-color: var(--theme-gold);
  color: var(--theme-gold);
}

.mobile-menu-overlay__list a span {
  color: var(--theme-gold);
  font-size: 20px;
}

.mobile-menu-overlay__auth {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #333;
  display: grid;
  gap: 10px;
}

.mobile-menu-overlay__auth-link {
  background: transparent;
  border: 1px solid var(--theme-gold);
  justify-content: center;
  color: var(--theme-gold);
}

.mobile-menu-overlay__auth-link.is-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.98);
  z-index: 3000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding-top: 10vh;
}

.search-overlay.active {
  display: block;
  opacity: 1;
}

.search-overlay-content {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  transform: translateY(-20px);
  transition: transform 0.4s ease;
}

.search-overlay.active .search-overlay-content {
  transform: translateY(0);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--theme-gold);
  padding: 10px 0;
  gap: 10px;
}

.search-input-wrapper input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  padding-right: 50px;
  outline: none;
}

.search-submit-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-submit-btn:hover {
  transform: scale(1.1);
}

.close-search {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  line-height: 1;
  transition: 0.3s;
}

.close-search:hover {
  color: var(--theme-gold);
}

.search-suggestions {
  margin-top: 30px;
}

.search-suggestions h4 {
  font-size: 14px;
  color: var(--theme-gold);
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suggestion-tags a {
  background: #1a1a1a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #262626;
  transition: 0.3s;
  text-decoration: none;
  max-width: 100%;
}

.suggestion-tags a:hover {
  border-color: var(--theme-gold);
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .theme-menu {
    display: none;
  }

  .theme-header__actions {
    display: flex;
  }

  .theme-header__actions .theme-header__link,
  .theme-header__actions .theme-header__cta {
    display: none;
  }

  .mobile-tabbar {
    display: grid;
  }

  .theme-footer::after {
    content: "";
    display: block;
    height: 100px;
  }
}

@media (max-width: 640px) {
  .theme-page-sign-row {
    top: 60px;
  }

  .theme-header__inner,
  .theme-footer__inner {
    min-height: 56px;
  }

  .theme-header__brand-logo {
    height: 60px;
    max-width: min(155px, 72vw);
  }

  .theme-header__brand-icon {
    width: auto;
    height: 50px;
  }

  .theme-header__brand-icon-street {
    max-width: 52px;
    font-size: 8px;
  }

  .theme-menu__inner {
    gap: 12px;
    min-height: 48px;
  }

  .theme-hero__inner {
    padding: 48px 0 60px;
  }

  .theme-hero__search {
    width: 100%;
  }

  .theme-page--directory-home .theme-hero__inner {
    padding: 50px 0 60px;
  }

  .theme-page--directory-home .theme-hero h1 {
    font-size: 28px;
  }

  .theme-hero__search button {
    min-height: 44px;
    padding: 0 18px;
  }

  .theme-header__actions {
    display: flex;
  }

  .mobile-tabbar {
    left: 8px;
    right: 8px;
    bottom: 10px;
    padding: 8px;
    gap: 6px;
  }

  .mobile-tabbar__item span:last-child,
  .mobile-tabbar__button span:last-child {
    font-size: 9px;
  }

  .mobile-tabbar__icon {
    width: 30px;
    height: 30px;
  }

  .close-search {
    top: 16px;
    right: 18px;
    font-size: 36px;
  }

  .search-overlay {
    padding-top: 12vh;
  }

  .search-input-wrapper input {
    font-size: 20px;
  }

  .theme-footer__inner {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-footer::after {
    height: 100px;
  }
}
