.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.045em; font-size: 1.02rem; white-space: nowrap;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: white; display: grid; place-items: center; font-size: 0.88rem;
}
.nav-links {
  display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 0.86rem; font-weight: 500;
}
.nav-links a { transition: color var(--transition); position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { position: absolute; content: ""; left: 0; right: 0; bottom: -28px; height: 2px; background: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; }
.mobile-toggle[aria-expanded="true"] { background: var(--text); border-color: var(--text); color: #fff; }

.hero {
  padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
}
.hero-panel {
  border: 1px solid #252525; background: #151515; color: #fff; border-radius: 18px; padding: clamp(36px, 4.4vw, 60px);
  overflow: hidden; box-shadow: 0 22px 60px rgba(17, 17, 17, .12);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.7fr); gap: clamp(32px, 4.5vw, 64px); align-items: center;
}
.hero-copy { max-width: 720px; }
.hero h1 { max-width: 760px; margin: 23px 0 20px; color: #fff; font-size: clamp(3rem, 4.5vw, 4.25rem); letter-spacing: -.065em; }
.hero-copy > p, .hero-grid > div:first-child > p, .hero > .container > p { max-width: 570px; font-size: 1.04rem; color: #bdbdbd; }
.hero .badge { color: #e7e7e7; background: #242424; border-color: #3b3b3b; }
.hero-search { display: flex; align-items: stretch; gap: 6px; margin: 30px 0 18px; padding: 5px; border: 1px solid #fff; border-radius: 11px; background: #fff; }
.hero-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; border-radius: 7px; padding: 0 13px; background: #fff; color: #111; }
.hero-search .btn-primary { background: #111; color: #fff; border-color: #111; }
.hero-visual {
  min-height: 340px; padding: 26px; border: 1px solid #dededb; border-radius: 12px; background: #f3f2ef; color: #171717;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .2); transform: rotate(1.2deg);
}
.hero-visual-label { color: #707070; font-size: 0.72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero-visual-document { border-top: 1px solid #d8d7d2; padding-top: 22px; }
.hero-visual-document h2 { max-width: 340px; font-size: clamp(1.65rem, 2.5vw, 2.3rem); letter-spacing: -.055em; }
.hero-visual-document .badge { background: #fff; color: #333; border-color: #e4e4e1; }
.hero-visual-line { height: 7px; margin: 11px 0; background: #deddd9; border-radius: 99px; }
.hero-visual-line.short { width: 56%; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: #111; border-color: #fff; }
.hero-actions .btn-primary:hover { background: #e8e8e6; border-color: #e8e8e6; }
.hero-actions .btn-secondary { color: #fff; background: transparent; border-color: #5c5c5c; }
.hero-actions .btn-secondary:hover { background: #292929; border-color: #777; }
.hero-stat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px;
}
.hero-stat {
  padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.hero-stat strong { display: block; font-size: 1.5rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px); border-color: #cececa; box-shadow: 0 14px 32px rgba(17, 17, 17, .07);
}
.feature-card img, .feature-card .thumb {
  width: 100%; height: 220px; object-fit: cover; border-radius: 14px; margin-bottom: 18px;
}
.feature-card .material-card-preview { height: 220px; border-radius: 14px; }
.feature-card .thumb {
  display: grid; place-items: center; position: relative; overflow: hidden; background: #f1f1ef;
  color: transparent; font-size: 0; isolation: isolate;
}
.feature-card .thumb::before {
  content: ""; position: absolute; inset: 18px auto; left: 50%; width: min(45%, 150px); transform: translateX(-50%);
  background: #fff; border: 1px solid #e1e1dd; border-radius: 3px; box-shadow: 0 5px 14px rgba(17,17,17,.06);
}
.feature-card .thumb::after {
  content: ""; position: absolute; top: 70px; left: 50%; width: min(29%, 96px); height: 8px; transform: translateX(-50%);
  border-top: 1px solid #deded9; border-bottom: 1px solid #e8e8e4; box-shadow: 0 12px 0 -3px #e4e4df, 0 24px 0 -3px #e4e4df, 0 36px 0 -3px #e4e4df;
}
.feature-card h3 { margin: 14px 0 8px; font-size: 1.12rem; line-height: 1.35; }
.feature-card > p { font-size: .9rem; line-height: 1.65; }
.feature-card .material-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

.footer {
  padding: 56px 0 60px; border-top: 1px solid var(--border); background: #f7f7f5;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr; gap: 30px;
}
.footer-list { display: grid; gap: 8px; color: var(--muted); }
.footer-list a:hover { color: var(--text); }
.footer-grid > div:first-child p { max-width: 270px; margin-top: 16px; font-size: .9rem; }
.footer h3 { margin-bottom: 14px; font-size: .85rem; letter-spacing: 0; }
.footer-list { gap: 10px; font-size: .88rem; }

@media (max-width: 960px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 220px; }
  .mobile-toggle {
    display: inline-flex; min-height: 42px; padding: 8px 12px; border: 1px solid var(--border);
    border-radius: 4px; background: #fff; color: var(--text); cursor: pointer;
  }
  .topbar-inner { position: relative; flex-wrap: wrap; gap: 12px; }
  .nav-links {
    display: none; position: absolute; top: calc(100% - 1px); left: 0; right: 0;
    padding: 14px 20px 18px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow);
    align-items: stretch; gap: 0; z-index: 10;
  }
  .nav-links.is-open { display: grid; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .topbar-actions { margin-left: auto; }
}

@media (max-width: 580px) {
  .topbar-inner { min-height: 64px; gap: 8px; }
  .brand { gap: 7px; font-size: .86rem; }
  .brand-mark { width: 27px; height: 27px; }
  .mobile-toggle { min-height: 36px; padding: 6px 9px; font-size: .78rem; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .btn { min-height: 36px; padding: 7px 8px; font-size: .78rem; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-panel { padding: 24px 18px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 3.8rem); }
  .hero-visual { transform: none; min-height: 250px; padding: 20px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { padding-inline: 10px; font-size: .82rem; }
  .footer { padding: 42px 0; }
}
