/* ===== SITEMAP / Knowledge Base ===== */
.sitemap {
  padding: 0;
  min-height: auto;
  background-image:
    linear-gradient(to bottom, var(--bg-main) 0%, transparent 20%, transparent 80%, var(--bg-main) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cline x1='0' y1='0' x2='60' y2='60' stroke='%23C8A96E' stroke-width='0.5' opacity='0.12'/%3E%3Cline x1='60' y1='0' x2='0' y2='60' stroke='%23C8A96E' stroke-width='0.5' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 100% 100%, 60px 60px;
  background-repeat: no-repeat, repeat;
}
.sitemap-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.sitemap-block {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: border-color 0.3s, transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}
.sitemap-block:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.sitemap-block h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 0 0 12px 16px;
  border-left: 3px solid;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}
.sitemap-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sitemap-block a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  color: rgba(245,241,232,0.75);
  transition: all 0.2s;
}
.sitemap-block a:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(4px);
}

/* Theme colors — left accent + text */
.sitemap-block.theme-root h2 { color: #c9a962; border-left-color: #c9a962; border-bottom-color: rgba(201,169,98,0.06); }
.sitemap-block.theme-root a:hover { color: #c9a962; }
.sitemap-block.theme-services h2 { color: #4ade80; border-left-color: #4ade80; border-bottom-color: rgba(74,222,128,0.06); }
.sitemap-block.theme-services a:hover { color: #4ade80; }
.sitemap-block.theme-remont h2 { color: #60a5fa; border-left-color: #60a5fa; border-bottom-color: rgba(96,165,250,0.06); }
.sitemap-block.theme-remont a:hover { color: #60a5fa; }
.sitemap-block.theme-otdelka h2 { color: #a78bfa; border-left-color: #a78bfa; border-bottom-color: rgba(167,139,250,0.06); }
.sitemap-block.theme-otdelka a:hover { color: #a78bfa; }
.sitemap-block.theme-dop h2 { color: #fb923c; border-left-color: #fb923c; border-bottom-color: rgba(251,146,60,0.06); }
.sitemap-block.theme-dop a:hover { color: #fb923c; }
.sitemap-block.theme-company h2 { color: #fb7185; border-left-color: #fb7185; border-bottom-color: rgba(251,113,133,0.06); }
.sitemap-block.theme-company a:hover { color: #fb7185; }
.sitemap-block.theme-jobs h2 { color: #2dd4bf; border-left-color: #2dd4bf; border-bottom-color: rgba(45,212,191,0.06); }
.sitemap-block.theme-jobs a:hover { color: #2dd4bf; }

/* === Hero compact === */
.hero--kb {
  min-height: 100vh;
}
.hero--kb .hero-subtitle {
  margin-bottom: 28px;
}

/* === Toolbar / Search === */
.sitemap-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.sitemap-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 420px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 0.3s;
}
.sitemap-search:focus-within {
  border-color: rgba(200,169,110,0.3);
}
.sitemap-search-icon {
  flex-shrink: 0;
  color: rgba(245,241,232,0.2);
  margin-right: 8px;
}
.sitemap-search-input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  box-shadow: none;
  caret-color: var(--accent-gold);
}
.sitemap-search-input:focus,
.sitemap-search-input:focus-visible {
  outline: none;
  box-shadow: none;
}
.sitemap-search-input::placeholder {
  color: rgba(245,241,232,0.2);
}
.sitemap-count {
  font-size: 13px;
  color: rgba(245,241,232,0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* === Scroll reveal === */
.sitemap-block {
  will-change: opacity, transform;
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

/* === Hero (image override) === */
.sitemap .hero-image {
  background:url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=75') center/cover no-repeat;
}
.h1-accent {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-gold);
  letter-spacing: -0.01em;
}
.hero-content h1 {
  margin-bottom: 24px;
}
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-breadcrumb a {
  font-size: 13px;
  color: rgba(245,241,232,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-breadcrumb a:hover {
  color: var(--accent-gold);
}
.hero-breadcrumb-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245,241,232,0.25);
  flex-shrink: 0;
}
.hero-breadcrumb-current {
  font-size: 13px;
  color: rgba(245,241,232,0.3);
}
.hero-content--wide {
  max-width: 700px;
}
.hero-subscribe {
  display: flex;
  max-width: 460px;
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}
.hero-subscribe-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  box-shadow: none;
  caret-color: var(--accent-gold);
}
.hero-subscribe-input:focus,
.hero-subscribe-input:focus-visible {
  outline: none;
  box-shadow: none;
}
.hero-subscribe-input::placeholder {
  color: rgba(245,241,232,0.2);
}
.hero-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px 14px 4px;
  border: none;
  background: transparent;
  color: rgba(200,169,110,0.4);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s;
  flex-shrink: 0;
  outline: none;
  box-shadow: none;
}
.hero-subscribe-btn:focus,
.hero-subscribe-btn:focus-visible {
  outline: none;
  box-shadow: none;
}
.hero-subscribe-btn svg {
  flex-shrink: 0;
}
.hero-subscribe:focus-within .hero-subscribe-btn {
  color: var(--accent-gold);
}
.hero-subscribe-note {
  font-size: 13px;
  color: rgba(245,241,232,0.25);
  margin-top: 14px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.hero-msg {
  font-size: 16px;
  margin-top: 24px;
}
.hero-msg--ok { color: rgba(74,222,128,0.7); }
.hero-msg--err { color: rgba(251,113,133,0.7); }

/* === Responsive === */
@media(min-width:1400px) {
  .sitemap-inner { padding: 100px 64px 100px; }
  .sitemap-grid { gap: 40px; }
  .sitemap-block { padding: 32px 36px; }
  .sitemap-block h2 { font-size: 22px; }
}
@media(max-width:768px) {
  .hero--kb { padding: 80px 0 40px; }
  .hero-content h1 { margin-bottom: 18px; }
  .sitemap-inner { padding: 60px 16px 60px; }
  .sitemap-toolbar { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 24px; }
  .sitemap-search { max-width: 100%; }
  .sitemap-grid { grid-template-columns: 1fr; gap: 20px; }
  .sitemap-block { padding: 20px 20px; }
  .sitemap-block a { font-size: 14px; padding: 6px 10px; }
}
@media(max-width:480px) {
  .hero--kb { padding: 60px 0 30px; }
  .sitemap-inner { padding: 40px 12px 40px; }
  .sitemap-toolbar { margin-bottom: 20px; }
  .sitemap-grid { gap: 16px; }
  .sitemap-block { padding: 16px; }
  .sitemap-block h2 { font-size: 18px; margin-bottom: 14px; padding-bottom: 8px; }
  .sitemap-block a { font-size: 13px; padding: 8px 8px; }
  .hero-subscribe { max-width: 100%; }
  .hero-subscribe-input { font-size: 15px; }
  .hero-subscribe-input::placeholder { font-size: 15px; }
}
