:root {
  --ink: #06194f;
  --muted: #53617f;
  --line: #dce5f3;
  --orange: #ff4f1f;
  --bg: #f8fbff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
}

.spec-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.spec-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  width: min(var(--page-width, 1448px), calc(100% - 64px));
  min-height: 74px;
  margin: 0 auto;
}

.spec-brand {
  color: var(--ink);
  font-size: clamp(1.72rem, 2.5vw, 2.42rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.spec-brand span {
  color: var(--orange);
}

.spec-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
  font-size: 0.94rem;
  font-weight: 900;
}

.spec-nav a,
.spec-nav button {
  text-decoration: none;
}

.spec-menu {
  position: relative;
}

.spec-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.spec-menu-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.spec-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 20;
  display: grid;
  gap: 8px;
  width: 360px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(18, 35, 74, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.spec-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.spec-menu:hover .spec-dropdown,
.spec-menu:focus-within .spec-dropdown,
.spec-menu.is-open .spec-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.spec-dropdown a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
}

.spec-dropdown a:hover,
.spec-dropdown a:focus-visible {
  border-color: #dbe5f5;
  background: #f8fbff;
  outline: none;
}

.spec-dropdown b {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.12;
}

.spec-dropdown span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.32;
}

.spec-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.spec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 1px solid #aebcda;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.spec-btn.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 79, 31, 0.18);
}

.spec-main {
  width: min(var(--page-width, 1448px), 100%);
  margin: 0 auto;
}

.spec-art {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.spec-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.spec-footer-inner {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  gap: 40px;
  align-items: center;
  width: min(var(--page-width, 1448px), calc(100% - 64px));
  min-height: 112px;
  margin: 0 auto;
  padding: 22px 0;
}

.spec-footer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 950;
}

.spec-footer strong span {
  color: var(--orange);
}

.spec-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.spec-footer nav {
  display: flex;
  gap: clamp(28px, 5vw, 82px);
  font-size: 0.86rem;
  font-weight: 850;
}

.spec-footer nav a {
  text-decoration: none;
}

.spec-social {
  display: flex;
  gap: 16px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

@media (max-width: 920px) {
  .spec-header-inner {
    grid-template-columns: 1fr;
    width: min(100% - 28px, var(--page-width, 1448px));
    gap: 12px;
    padding: 16px 0;
  }

  .spec-nav,
  .spec-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .spec-menu {
    position: static;
  }

  .spec-menu-trigger::after {
    display: none;
  }

  .spec-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .spec-footer-inner {
    grid-template-columns: 1fr;
    width: min(100% - 28px, var(--page-width, 1448px));
  }

  .spec-footer nav {
    flex-wrap: wrap;
    gap: 18px;
  }
}
