/* Shared shell: header, footer, and search overlay */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(13, 13, 15, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(212, 160, 74, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(13, 13, 15, 0.92);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 138px;
  height: 50px;
  display: block;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink) !important;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  padding: 10px 24px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--amber-glow);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.nav-lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  min-width: 112px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 74, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(212, 160, 74, 0.13), rgba(212, 160, 74, 0.05)),
    rgba(9, 10, 13, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.nav-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 50px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  color: rgba(236, 231, 221, 0.74);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.nav-lang-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav-lang-link.active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(236, 193, 110, 1), rgba(212, 160, 74, 1));
  box-shadow:
    0 12px 26px rgba(212, 160, 74, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--mist);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 160, 74, 0.38);
  background: rgba(212, 160, 74, 0.08);
  border-radius: 100px;
  color: var(--amber);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(212, 160, 74, 0.08);
}

.nav-search-btn:hover {
  color: var(--white);
  border-color: rgba(212, 160, 74, 0.35);
  background: rgba(212, 160, 74, 0.1);
}

.nav-search-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 32px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease-out-expo);
}

.search-overlay.active .search-overlay-inner {
  transform: translateY(0) scale(1);
}

.search-overlay-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-mid);
  border-radius: 14px;
  background: var(--ink-light);
  color: var(--silver);
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
}

.search-overlay-close:hover {
  border-color: var(--amber);
  color: var(--white);
  background: rgba(212, 160, 74, 0.1);
}

.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ink-light);
  border: 1px solid var(--ink-mid);
  border-radius: 20px;
  padding: 12px 16px 12px 28px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-overlay-form:focus-within {
  border-color: rgba(212, 160, 74, 0.45);
  box-shadow: 0 0 0 4px rgba(212, 160, 74, 0.06), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-overlay-form .search-icon {
  flex-shrink: 0;
  color: var(--amber);
  opacity: 0.7;
}

.search-overlay-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: 20px;
  color: var(--white);
  font-family: var(--font-body);
  padding: 8px 0;
}

.search-overlay-input::placeholder {
  color: var(--slate);
}

.search-overlay-submit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  border: none;
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.search-overlay-submit:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px var(--amber-glow);
}

.search-overlay-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--slate);
}

.search-overlay-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--silver);
  background: var(--ink);
  border: 1px solid var(--ink-mid);
  border-radius: 6px;
}

.search-overlay-tags {
  margin-top: 32px;
}

.search-overlay-tags-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-bottom: 14px;
}

.search-overlay-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--silver);
  padding: 8px 18px;
  border: 1px solid var(--ink-mid);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.search-tag:hover {
  border-color: rgba(212, 160, 74, 0.4);
  color: var(--amber);
  background: rgba(212, 160, 74, 0.06);
}

.footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-mid);
  padding: 88px 0 64px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ink-mid);
}

.footer-brand p {
  font-size: 14px;
  color: var(--silver);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: var(--silver);
  padding: 5px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-col a:hover {
  color: var(--amber);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: var(--slate);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--slate);
}

.footer-bottom-links a:hover {
  color: var(--amber);
}

@media (max-width: 1024px) {
  .nav-inner {
    position: relative;
    gap: 12px;
    padding: 0 20px;
    min-width: 0;
  }

  .nav-logo {
    min-width: 0;
    flex-shrink: 1;
  }

  .logo-text {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    z-index: 20;
    flex-direction: column;
    gap: 0;
    padding: 14px 18px;
    border: 1px solid rgba(212, 160, 74, 0.18);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(212, 160, 74, 0.08), rgba(212, 160, 74, 0.03)),
      rgba(13, 13, 15, 0.96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 2px;
  }

  .nav-links a::after {
    bottom: 6px;
  }

  .nav-actions {
    min-width: 0;
    margin-left: auto;
    gap: 10px;
    flex-shrink: 0;
  }

  .nav-cta {
    padding: 10px 16px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 100px;
    border: 1px solid rgba(212, 160, 74, 0.32);
    background: rgba(212, 160, 74, 0.08);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(212, 160, 74, 0.08);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 16px;
  }

  .nav-actions {
    margin-left: auto;
    gap: 8px;
  }

  .nav-links {
    left: 16px;
    right: 16px;
    top: var(--nav-height);
    border-bottom: 1px solid var(--ink-mid);
    border-radius: 0;
    background: rgba(13, 13, 15, 0.98);
    padding: 24px 40px;
    gap: 16px;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav-lang-switch {
    min-width: 94px;
    padding: 3px;
    gap: 2px;
    border-radius: 12px;
  }

  .nav-lang-link {
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 11px;
  }

  .nav-cta {
    display: none;
  }

  .nav-search-btn,
  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-search-btn svg {
    width: 18px;
    height: 18px;
  }

  .search-overlay {
    padding-top: 12vh;
  }

  .search-overlay-inner {
    padding: 0 20px;
  }

  .search-overlay-form {
    width: 100%;
    gap: 10px;
    padding: 10px 12px 10px 14px;
    overflow: hidden;
  }

  .search-overlay-input {
    font-size: 16px;
    min-width: 0;
  }

  .search-overlay-submit {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
  }

  .search-overlay-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .search-overlay-hint {
    display: none;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer {
    padding: 72px 0 56px;
  }

  .footer-top {
    padding-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    text-align: center;
  }

  .footer-inner {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 10px;
    padding: 0 14px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-links {
    left: 14px;
    right: 14px;
  }

  .nav-logo {
    gap: 10px;
    min-width: 0;
  }

  .logo-mark {
    width: 127px;
    height: 46px;
  }

  .nav-search-btn {
    width: 32px;
    height: 32px;
  }

  .nav-search-btn svg {
    width: 16px;
    height: 16px;
  }

  .nav-toggle {
    gap: 4px;
    padding: 1px;
  }

  .nav-toggle span {
    width: 22px;
  }

  .search-overlay-inner {
    padding: 0 14px;
  }

  .search-overlay-form {
    gap: 8px;
    padding: 10px 10px 10px 12px;
  }

  .search-overlay-submit {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
  }

  .footer {
    padding: 64px 0 48px;
  }

  .footer-top {
    padding-bottom: 32px;
  }

  .footer-bottom {
    padding-top: 20px;
  }
}
