.smp-skip {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.16s ease;
}

.smp-skip:focus, .smp-skip:focus-visible {
  top: 14px;
  color: var(--accent-fg);
}

.smp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.smp-header {
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.smp-header-inner {
  min-height: 72px;
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-width: 0;
}

.smp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.smp-brand:hover { color: var(--fg); }

.smp-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.smp-brand-text {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.smp-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.smp-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.16s ease, color 0.16s ease;
}

.smp-nav-link:hover, .smp-nav-link[aria-current="page"], .smp-nav-link.is-active {
  color: var(--fg);
  background: var(--surface-alt);
}

.smp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.smp-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.smp-lang-link:hover { background: var(--surface-alt); color: var(--fg); }

.smp-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}

.smp-mobile-drawer {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-md);
}

.smp-mobile-drawer a { width: 100%; }

.smp-hero { padding: 56px 0 48px; }

.smp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.smp-page-hero {
  padding: 44px 0 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.smp-section { padding: 64px 0; }

.smp-section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.smp-section--dark { background: var(--surface-dark); color: var(--fg-on-dark); }
.smp-section--dark a:not(.smp-btn) { color: var(--accent-border); }

.smp-section-head { max-width: 740px; margin-bottom: 36px; }

.smp-grid-2, .smp-grid-3, .smp-grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.smp-footer {
  background: var(--surface-dark);
  color: var(--fg-on-dark);
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
}

.smp-footer a:not(.smp-btn) { color: var(--fg-muted-dark); text-decoration: none; }
.smp-footer a:not(.smp-btn):hover { color: var(--fg-on-dark); }

.smp-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.smp-footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg-muted-dark);
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .smp-header-actions .smp-btn { display: none; }
}

@media (min-width: 720px) {
  .smp-grid-2, .smp-grid-3, .smp-grid-4, .smp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (min-width: 960px) {
  .smp-nav { display: flex; }
  .smp-burger, .smp-mobile-drawer { display: none !important; }
}

@media (min-width: 980px) {
  .smp-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 36px; }
}

@media (min-width: 1024px) {
  .smp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .smp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .smp-footer-grid { grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); }
}
