.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: var(--container-narrow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 8px 20px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

.brand img {
  width: auto;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 14px;
  color: var(--color-text);
  font-size: 15px;
  position: relative;
}

.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--color-primary); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.has-sub > .nav-link { padding-right: 26px; }

.has-sub > .nav-link::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

.sub-toggle { display: none; }

.sub-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 240px;
  padding: 8px;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.sub-menu-right { left: auto; right: 0; min-width: 180px; }

.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
}

.sub-menu a:hover {
  background: var(--color-primary-muted);
  color: var(--color-primary);
}

.sub-desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -6px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-inner { gap: 16px; }
  .nav-link { padding: 0 10px; font-size: 14px; }
  .has-sub > .nav-link { padding-right: 22px; }
}

@media (max-width: 960px) {
  .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; }
  .nav-toggle { display: block; }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 0 16px;
  }

  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-item { border-bottom: 1px solid var(--color-border); }
  .nav-link { height: 48px; padding: 0 4px; font-size: 16px; }
  .nav-link[aria-current="page"]::after { display: none; }
  .has-sub > .nav-link::before { display: none; }
  .has-sub > .nav-link { padding-right: 48px; }

  .sub-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .sub-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -6px 0 0 -4px;
    border-right: 1.5px solid var(--color-text-muted);
    border-bottom: 1.5px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s var(--ease);
  }

  .has-sub.is-open > .sub-toggle::before { transform: rotate(225deg); margin-top: -2px; }

  .sub-menu,
  .sub-menu-right {
    position: static;
    min-width: 0;
    padding: 0 0 8px 8px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .no-js .sub-menu,
  .has-sub.is-open > .sub-menu { display: block; }

  .header-cta { align-self: flex-start; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  min-height: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--color-border);
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-white { background: var(--color-surface); }
.section-tint { background: var(--color-primary-muted); }

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left { margin-left: 0; text-align: left; }

.section-head p {
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: 56px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { margin-bottom: 12px; }

.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 4px; }
.footer-contact a { color: var(--color-text); }

.footer-col h2 {
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-legal {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-primary); }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Float contact ---------- */
.float-contact {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-item { position: relative; }

.float-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.float-btn:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.float-btn svg { width: 22px; height: 22px; }

.float-top {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
}

.float-top.is-visible { opacity: 1; pointer-events: auto; }
.float-top:hover { background: var(--color-primary-muted); color: var(--color-primary); }

.float-pop {
  position: absolute;
  right: 76px;
  top: 0;
  min-width: 200px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  color: var(--color-text-muted);
}

.float-pop strong { color: var(--color-text); font-size: 14px; }
.float-pop a,
.float-strong { font-size: 18px; font-weight: 700; color: var(--color-primary); }

@media (max-width: 768px) {
  .float-contact { right: 12px; bottom: 16px; }
  .float-btn { width: 48px; height: 48px; }
  .float-btn span { display: none; }
  .float-pop { right: 58px; }
}
