/* Qaz.pet public shell layer.
   This file owns the final public app shell above the legacy style bridge:
   container, header, navigation and footer. Keep content components elsewhere. */

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 92%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--border-light) 78%, var(--accent-light));
  box-shadow: 0 1px 0 hsl(34 20% 86% / 0.55);
  backdrop-filter: blur(18px) saturate(1.25);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 30px;
}

.logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0;
}

.logo-kz {
  color: var(--accent);
}

.logo svg,
.footer-logo svg {
  filter: drop-shadow(0 2px 3px hsl(34 83% 30% / 0.14));
}

.main-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 8px;
  color: hsl(214 9% 35%);
  font-size: 0.84rem;
  font-weight: 620;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  background: hsl(var(--muted));
}

.nav-link.active,
.nav-more.open .nav-more-btn {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-link--urgent {
  color: var(--danger);
  font-weight: 600;
}

.nav-link--urgent:hover,
.nav-link--urgent.active {
  background: var(--danger-light);
  color: var(--danger);
}

.nav-link--fav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fav-count-badge {
  display: inline-block;
  margin-left: 3px;
  padding: 1px 5px;
  vertical-align: middle;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.nav-more {
  position: relative;
}

.nav-more-btn {
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-more-btn:hover {
  border-color: var(--border-light);
}

.nav-more-btn svg {
  transition: transform var(--transition);
}

.nav-more.open .nav-more-btn svg {
  transform: rotate(180deg);
}

.nav-more-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--z-navigation);
  display: none;
  min-width: 220px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--border-light) 70%, var(--accent-light));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.nav-more.open .nav-more-dropdown {
  display: block;
}

.nav-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.nav-more-item:hover,
.nav-more-item.active {
  background: var(--accent-light);
  color: var(--text);
}

.nav-more-icon {
  width: 20px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.95rem;
  text-align: center;
}

.nav-more-divider {
  height: 1px;
  margin: 4px 8px;
  background: var(--border-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-utility-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 3px 0 3px 6px;
  border-left: 1px solid color-mix(in srgb, var(--border-light) 76%, transparent);
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, var(--accent-light));
}

.lang-btn {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--accent);
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 12px hsl(34 83% 30% / 0.18);
}

.lang-btn:hover:not(.active) {
  background: var(--border-light);
}

.theme-toggle,
.nav-login-btn {
  border: 1px solid transparent;
}

.theme-toggle {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.theme-toggle:hover {
  background: var(--border-light);
  color: var(--text);
  border-color: var(--border-light);
}

[data-theme="light"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

.nav-login-btn {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.site-footer {
  margin-top: 72px;
  padding: 38px 0 30px;
  border-top: 0;
  background: hsl(218 17% 16%);
  color: hsl(40 24% 95%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-meta {
  display: grid;
  gap: 6px;
  max-width: 720px;
}

.site-footer .footer-links a,
.site-footer .footer-desc,
.site-footer .footer-copy {
  color: hsl(36 12% 72%);
}

.site-footer .footer-links a:hover,
.site-footer .footer-copy a {
  color: hsl(36 82% 68%);
}

.site-footer .avds-coverage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-inline-start: 8px;
  padding: 3px 8px;
  border: 1px solid hsl(36 82% 68% / 0.42);
  border-radius: 999px;
  background: hsl(36 82% 68% / 0.1);
  color: hsl(36 82% 78%);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer .avds-coverage-badge:hover {
  border-color: hsl(36 82% 68% / 0.72);
  background: hsl(36 82% 68% / 0.17);
}

.site-footer .avds-coverage-badge:focus-visible {
  outline: 3px solid hsl(36 82% 68% / 0.42);
  outline-offset: 3px;
}

.site-footer .footer-copy .avds-adoption-badge {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  margin-inline-start: 8px;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.58;
}

.site-footer .footer-copy .avds-adoption-badge:hover,
.site-footer .footer-copy .avds-adoption-badge:focus-visible {
  color: var(--accent);
  opacity: 0.78;
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

@media (max-width: 1100px) {
  .container {
    padding-inline: 22px;
  }
}

@media (max-width: 760px) {
  body {
    background: hsl(var(--background));
  }

  .container {
    padding-inline: 16px;
  }

  .nav-more {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-meta {
    gap: 4px;
  }

  .header-utility-cluster {
    gap: 4px;
    padding-left: 4px;
  }
}
