/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: var(--space-4);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo img {
  height: 70px;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: 0.2s ease;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #1f1d1a;
  color: #f5efe6;
  padding-top: var(--space-7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: var(--space-3);
}

.site-footer p,
.site-footer a {
  color: rgba(245, 239, 230, 0.8);
}

.site-footer li + li {
  margin-top: var(--space-2);
}

.footer-bottom {
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  color: rgba(245, 239, 230, 0.65);
  font-size: 0.95rem;
}

/* ========== TABLET ========== */
@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== MOBILE NAV ========== */
@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 500px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
  }

  .site-nav li {
    width: 100%;
    border-top: 1px solid var(--border);
  }

  .site-nav li:first-child {
    border-top: none;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
  }
}

/* ========== MOBILE ========== */
@media (max-width: 640px) {
  .section {
    padding: var(--space-7) 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 72px;
  }
}
