/* Shared public header: keep every item inside the white header surface. */
.site-header .header-inner {
  display: grid;
  grid-template-columns: minmax(235px, 270px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  height: auto;
  min-height: 100px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: nowrap;
}
.site-header .brand { min-width: 0; gap: 12px; }
.site-header .brand > span { min-width: 0; }
.site-header .brand small { line-height: 1.45; }
.site-header .brand .brand-address {
  display: block;
  max-width: 222px;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}
.site-header .navlinks {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
}
.site-header .navlinks a {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.site-header .header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}
.site-header .header-phone {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}
.site-header .header-actions .cabinet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #b3d3cc;
  border-radius: 8px;
  background: #edf7f4;
  color: #09645f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.site-header .header-actions .cabinet-link:hover { background: #deeee8; border-color: #7fb4a9; }
.site-header a:focus-visible,
.site-header .menu-btn:focus-visible { outline: 2px solid #09645f; outline-offset: 4px; }
.site-header .menu-btn { display: none; }
@media (max-width: 1100px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 0;
    gap: 12px 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .menu-btn {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 0;
  }
  .site-header .header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e4eeea;
  }
  .site-header .header-phone { font-size: 14px; }
  .site-header .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line, #d5e2e8);
    background: #fff;
    box-shadow: 0 12px 20px rgb(25 55 50 / 8%);
  }
  .site-header .navlinks.mobile-open { display: flex; }
  .site-header .navlinks a { padding: 10px 0; font-size: 15px; }
}
@media (max-width: 560px) {
  .site-header .brand .brand-address { max-width: 222px; font-size: 11px; }
}
@media (max-width: 360px) {
  .site-header .header-actions { gap: 6px; }
  .site-header .header-phone { font-size: 13px; }
  .site-header .header-actions .cabinet-link { padding: 8px 9px; font-size: 11px; }
}

/* The guide entry remains inside the established public-page layout. */
.home-guide-entry{background:#edf4ed;border-block:1px solid #d8e5d8}.home-guide-entry .document-shortlist a{background:#fbfdf9}
