.site-header {
  border-top: 3px solid #153e5c;
  border-bottom-color: #d8e0e5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 64px;
}

.brand {
  color: #182b39;
  font-weight: 600;
}

.brand-mark {
  border-color: #b8cbd8;
  border-radius: 4px;
  color: #153e5c;
  box-shadow: none;
}

.nav a,
.header-action {
  color: #465964;
  font-weight: 400;
}

.header-action {
  border-color: #b9cbd7;
  border-radius: 4px;
  background: #fff;
  color: #175f91;
}

.button {
  min-height: 48px;
  border-color: #155f96;
  border-radius: 4px;
  background: #155f96;
  font-weight: 500;
}

.button:hover {
  border-color: #153e5c;
  background: #153e5c;
}

.button.secondary {
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17639a;
}

.button.secondary:hover {
  background: transparent;
  color: #153e5c;
}

.hero {
  padding: 38px 0 28px;
  background: #edf4f8;
  border-bottom: 1px solid #d6e1e8;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0 auto;
  max-width: 100%;
  font-size: clamp(1.9rem, 2.45vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 600;
  color: #153e5c;
}

.hero-note {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.62;
}

.search-form {
  width: min(720px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  position: relative;
}

.search-wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid #b9cbd7;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.search-mark {
  width: 44px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
}

.search-form input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.9rem;
}

.quick-examples {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-examples button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(21, 95, 155, 0.18);
  border-radius: 4px;
  background: #fff;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.08rem, 1.32vw, 1.32rem);
  line-height: 1.22;
  font-weight: 500;
  color: #153e5c;
}

.section-subtitle {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.text-action {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
}

.text-action:hover {
  background: transparent;
  color: #153e5c;
}

.summary-grid,
.facet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.facet-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #d9e2e7;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

main > .section:nth-of-type(3) {
  background: #fbfcfd;
  border-bottom: 1px solid #dce4e8;
}

main > .section:nth-of-type(4) {
  background: #fff;
  border-bottom: 1px solid #dce4e8;
}

main > .section:nth-of-type(5) {
  background: #f7f9fa;
}

.summary-grid {
  gap: 0;
  border: 0;
  border-bottom: 1px solid #d5dee4;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

main > .section {
  padding: 24px 0;
}

.hero + .section {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #d5dee4;
}

.summary-card,
.facet-card,
.latest-panel {
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.summary-card {
  padding: 16px 24px;
  border: 0;
  border-right: 1px solid rgba(23, 33, 43, 0.07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.summary-card:last-child {
  border-right: 0;
}

.summary-label {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 400;
}

.summary-value {
  margin-top: 5px;
  font-size: 1.42rem;
  font-weight: 600;
  color: #153e5c;
}

.facet-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid #dfe6ea;
  border-bottom: 1px solid #dfe6ea;
  border-radius: 0;
  box-shadow: none;
}

.facet-card:nth-child(5n) {
  border-right: 0;
}

.facet-card:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.facet-card strong {
  font-size: 0.86rem;
  font-weight: 500;
}

.facet-card span {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.facet-card:hover {
  border-color: #9db8ca;
  background: #f3f7fa;
  color: var(--accent);
}

.category-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #d9e2e7;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.category-cell {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px;
  border-right: 1px solid #dfe6ea;
  border-bottom: 1px solid #dfe6ea;
  color: var(--text);
  background: #fff;
}

.category-cell:nth-child(3n) {
  border-right: 0;
}

.category-cell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.category-cell:hover {
  background: #eef4f8;
  color: var(--accent);
}

.category-cell strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
}

.category-cell span {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 0.7rem;
}

.latest-panel {
  overflow: hidden;
  border-color: #d6e0e6;
  border-radius: 2px;
  box-shadow: none;
}

.standard-section-block {
  margin-top: 22px;
}

.table-head,
.standard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(23, 33, 43, 0.07);
}

.table-head {
  min-height: 38px;
  padding: 0 14px;
  color: #153e5c;
  font-size: 0.875rem;
  font-weight: 500;
  background: #e8f0f5;
  border-bottom-color: #cbdbe5;
}

.standard-row:hover {
  background: #f1f6f9;
}

.standard-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-height: 40px;
  font-size: 0.875rem;
  line-height: 1.35;
}

.standard-line strong {
  flex: 0 0 auto;
  font-weight: 500;
}

.standard-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-more {
  display: none;
}

@media (max-width: 900px) {
  .summary-grid,
  .facet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facet-card:nth-child(5n) {
    border-right: 1px solid #dfe6ea;
  }

  .facet-card:nth-child(2n) {
    border-right: 0;
  }

  .facet-card:nth-last-child(-n + 5) {
    border-bottom: 1px solid #dfe6ea;
  }

  .facet-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .category-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-cell:nth-child(3n) {
    border-right: 1px solid var(--border);
  }

  .category-cell:nth-child(2n) {
    border-right: 0;
  }

  .category-cell:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }

  .category-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

}

@media (max-width: 640px) {
  .hero {
    padding: 24px 0 10px;
  }

  .site-header {
    border-top-width: 2px;
  }

  .header-inner {
    min-height: 54px;
  }

  .hero h1 {
    font-size: 1.52rem;
    line-height: 1.18;
    font-weight: 500;
  }

  .hero-note {
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .search-form {
    margin-top: 14px;
    gap: 8px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    min-height: 42px;
    box-shadow: none;
  }

  .search-mark {
    width: 36px;
    font-size: 0.8rem;
  }

  .search-form input {
    height: 40px;
    font-size: 0.84rem;
  }

  .search-form .button {
    min-height: 38px;
    font-size: 0.86rem;
    font-weight: 500;
  }

  .quick-examples {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .quick-examples button {
    flex: 0 0 auto;
    min-height: 26px;
    font-size: 0.72rem;
  }

  main > .section {
    padding: 18px 0;
  }

  .hero + .section {
    padding-top: 10px;
  }

  .section-head {
    margin-bottom: 10px;
  }

  .section-head h2 {
    font-size: 1rem;
    line-height: 1.28;
    font-weight: 500;
  }

  .section-subtitle {
    margin-top: 4px;
    font-size: 0.76rem;
    line-height: 1.48;
  }

  .text-action {
    margin-top: 10px;
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .facet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 0;
    background: transparent;
  }

  .facet-card {
    padding: 9px 10px;
    gap: 3px;
    border: 1px solid #dce4e8;
    border-radius: 2px;
    box-shadow: none;
  }

  .facet-card:nth-child(2n),
  .facet-card:nth-child(5n),
  .facet-card:nth-last-child(-n + 5),
  .facet-card:nth-last-child(-n + 2) {
    border: 1px solid #dce4e8;
  }

  .facet-card strong {
    font-size: 0.8rem;
  }

  .facet-card span {
    font-size: 0.68rem;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    padding: 9px 10px;
  }

  .summary-label {
    font-size: 0.7rem;
  }

  .summary-value {
    margin-top: 3px;
    font-size: 1.05rem;
    font-weight: 500;
  }

  .summary-card:nth-child(2n) {
    border-right: 0;
  }

  .summary-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(23, 33, 43, 0.07);
  }

  .category-table {
    grid-template-columns: 1fr;
  }

  .category-cell {
    min-height: 32px;
    padding: 0 10px;
    gap: 8px;
  }

  .category-cell strong {
    font-size: 0.76rem;
  }

  .category-cell span {
    font-size: 0.66rem;
  }

  .category-cell,
  .category-cell:nth-child(2n),
  .category-cell:nth-child(3n) {
    border-right: 0;
  }

  .category-cell:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .category-cell:last-child {
    border-bottom: 0;
  }

  .table-head {
    display: none;
  }

  .standard-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .standard-row:nth-of-type(n + 9) {
    display: none;
  }

  .table-head {
    display: grid;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .standard-line {
    align-items: flex-start;
    min-height: 42px;
    padding: 7px 10px;
    gap: 6px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .standard-line strong {
    max-width: 43%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
  }

  .standard-line span {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .standard-section-block {
    margin-top: 18px;
  }

  .panel-more {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 500;
    border-top: 1px solid rgba(23, 33, 43, 0.07);
    background: #fff;
  }
}
