@import url("../../styles/design-tokens.css");
@import url("../../styles/global.css");
@import url("../../styles/layout.css");
@import url("../../styles/components.css");
@import url("../../styles/themes.css");
@import url("../../styles/responsive.css");

:root {
  --zikes-shell-bg: #050d1d;
  --zikes-shell-bg-soft: rgba(5, 13, 29, 0.92);
  --zikes-shell-text: #f4f8fc;
  --zikes-shell-muted: #a7b7cc;
  --zikes-shell-accent: #00d9c0;
  --zikes-shell-blue: #0b5cff;
  --zikes-shell-border: rgba(255, 255, 255, 0.1);
  --zikes-shell-header-h: 92px;
  --zikes-shell-max: 1440px;
  --zikes-shell-pad: clamp(20px, 4vw, 56px);
  --zikes-shell-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.zikes-header,
.zikes-header *,
.zikes-footer,
.zikes-footer * {
  box-sizing: border-box;
}

.zikes-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--zikes-shell-header-h);
  color: var(--zikes-shell-text);
  background: var(--zikes-shell-bg-soft);
  border-bottom: 1px solid var(--zikes-shell-border);
  box-shadow: 0 16px 44px rgba(2, 8, 20, 0.24);
  backdrop-filter: blur(18px);
}

.zikes-shell-container {
  width: 100%;
  max-width: var(--zikes-shell-max);
  margin-inline: auto;
  padding-inline: var(--zikes-shell-pad);
}

.zikes-header-row {
  min-height: var(--zikes-shell-header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.zikes-brand {
  width: 156px;
  flex: 0 0 156px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.zikes-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 217, 192, 0.2));
}

.zikes-brand strong {
  display: block;
  overflow: hidden;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
}

.zikes-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.zikes-nav-compact {
  display: none;
}

.zikes-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.45vw, 28px);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zikes-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  border-bottom: 2px solid transparent;
  color: var(--zikes-shell-muted);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--zikes-shell-ease), transform 180ms var(--zikes-shell-ease), border-color 180ms var(--zikes-shell-ease);
}

.zikes-nav-link:hover,
.zikes-nav-link.is-active {
  color: #fff;
}

.zikes-nav-link:hover {
  transform: translateY(-1px);
}

.zikes-nav-link:hover,
.zikes-nav-link.is-active {
  border-bottom-color: var(--zikes-shell-accent);
}

.zikes-more {
  position: relative;
}

.zikes-more-button {
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.zikes-more-button svg {
  width: 15px;
  height: 15px;
  transition: transform 180ms var(--zikes-shell-ease);
}

.zikes-more.is-open .zikes-more-button svg {
  transform: rotate(180deg);
}

.zikes-more-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1001;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--zikes-shell-border);
  border-radius: 20px;
  background: rgba(5, 13, 29, 0.98);
  box-shadow: 0 24px 70px rgba(3, 10, 25, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms var(--zikes-shell-ease), transform 180ms var(--zikes-shell-ease);
}

.zikes-more.is-open .zikes-more-menu,
.zikes-more:focus-within .zikes-more-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.zikes-more-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--zikes-shell-muted);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--zikes-shell-ease), background 180ms var(--zikes-shell-ease);
}

.zikes-more-link:hover,
.zikes-more-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.zikes-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  white-space: nowrap;
}

.zikes-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 200ms var(--zikes-shell-ease),
    box-shadow 200ms var(--zikes-shell-ease),
    border-color 200ms var(--zikes-shell-ease),
    background 200ms var(--zikes-shell-ease),
    filter 200ms var(--zikes-shell-ease);
}

.zikes-header-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.zikes-header-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--zikes-shell-border);
}

.zikes-header-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.zikes-header-btn-primary {
  color: #04101f;
  background: linear-gradient(135deg, var(--zikes-shell-accent), var(--zikes-shell-blue));
  box-shadow: 0 12px 28px rgba(0, 217, 192, 0.18);
}

.zikes-header-btn-primary:hover {
  box-shadow: 0 16px 34px rgba(0, 217, 192, 0.26);
}

.zikes-menu-button,
.zikes-mobile-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--zikes-shell-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.zikes-menu-button svg,
.zikes-mobile-close svg {
  width: 22px;
  height: 22px;
}

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

.zikes-footer {
  color: #fff;
  background: var(--zikes-shell-bg);
  padding: 64px 0 28px;
}

.zikes-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(140px, 1fr));
  gap: 32px;
}

.zikes-footer-brand p {
  max-width: 380px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.zikes-footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.zikes-footer a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.zikes-footer a:hover {
  color: #fff;
}

.zikes-footer-bottom {
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  text-align: center;
}

.zikes-menu-lock {
  overflow: hidden;
}

.legal-note-warning,
.legal-note-info {
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.legal-note-warning {
  background: #fff8e1;
  border-left: 4px solid var(--z-color-warning);
}

.legal-note-info {
  background: var(--bg-light, #f6f8fc);
  border-left: 4px solid var(--z-color-primary);
}

@media (min-width: 1401px) {
  .zikes-nav-list {
    gap: 28px;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {
  :root {
    --zikes-shell-pad: clamp(24px, 3vw, 40px);
  }

  .zikes-header-row {
    gap: 18px;
  }

  .zikes-brand {
    width: 146px;
    flex-basis: 146px;
  }

  .zikes-nav-full {
    display: none;
  }

  .zikes-nav-compact {
    display: flex;
  }

  .zikes-nav-list {
    gap: clamp(16px, 1.6vw, 24px);
  }

  .zikes-header-actions {
    gap: 14px;
  }

  .zikes-header-btn {
    padding-inline: 15px;
  }
}

@media (min-width: 993px) and (max-width: 1199px) {
  :root {
    --zikes-shell-header-h: 86px;
    --zikes-shell-pad: 24px;
  }

  .zikes-header-row {
    gap: 14px;
  }

  .zikes-brand {
    width: 132px;
    flex-basis: 132px;
  }

  .zikes-brand img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .zikes-brand strong {
    font-size: 1.02rem;
  }

  .zikes-nav-full {
    display: none;
  }

  .zikes-nav-compact {
    display: flex;
  }

  .zikes-nav-list {
    gap: clamp(12px, 1.4vw, 18px);
  }

  .zikes-nav-link {
    font-size: 0.86rem;
    min-height: 40px;
  }

  .zikes-header-actions {
    gap: 10px;
  }

  .zikes-header-btn {
    min-height: 40px;
    padding: 10px 13px;
    font-size: 0.82rem;
  }

  .zikes-header-btn-ghost {
    display: none;
  }
}

@media (max-width: 992px) {
  :root {
    --zikes-shell-header-h: 80px;
    --zikes-shell-pad: clamp(18px, 4vw, 32px);
  }

  .zikes-header-row {
    gap: 16px;
  }

  .zikes-brand {
    width: auto;
    flex: 0 0 auto;
  }

  .zikes-nav {
    display: none;
  }

  .zikes-header-actions {
    margin-left: auto;
    gap: 12px;
  }

  .zikes-header-btn-ghost {
    display: none;
  }

  .zikes-menu-button {
    display: inline-flex;
  }

  .zikes-mobile-menu.is-open {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: block;
    overflow: auto;
    background: rgba(5, 13, 29, 0.98);
    color: #fff;
    padding: 18px;
  }

  .zikes-mobile-panel {
    width: min(100%, 680px);
    margin-inline: auto;
    padding: 8px 0 28px;
  }

  .zikes-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
  }

  .zikes-mobile-close {
    display: inline-flex;
  }

  .zikes-mobile-links {
    display: grid;
    gap: 4px;
    margin: 34px 0 28px;
    padding: 0;
    list-style: none;
  }

  .zikes-mobile-links .zikes-nav-link {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    padding: 12px 14px;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 780;
  }

  .zikes-mobile-links .zikes-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .zikes-mobile-links .zikes-nav-link {
    border-bottom-color: transparent;
  }

  .zikes-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

@media (max-width: 767px) {
  :root {
    --zikes-shell-header-h: 74px;
    --zikes-shell-pad: 18px;
  }

  .zikes-header-row {
    gap: 10px;
  }

  .zikes-brand img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .zikes-brand strong {
    font-size: 1rem;
  }

  .zikes-header-actions {
    gap: 10px;
  }

  .zikes-header-btn-primary {
    min-height: 40px;
    padding: 10px 13px;
    font-size: 0.78rem;
  }

  .zikes-menu-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .zikes-mobile-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  :root {
    --zikes-shell-pad: 14px;
  }

  .zikes-brand {
    gap: 9px;
  }

  .zikes-brand img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .zikes-header-btn-primary {
    padding-inline: 11px;
    font-size: 0.74rem;
  }

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