/* Общая шапка на всех страницах, включая вход, регистрацию и профиль. */
header.site-header { width: 100%; min-height: 72px; padding: 6px 20px; margin: 0; border: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; background: #1d1b19; color: #e8ddca; }
.site-brand img { display: block; width: 210px; height: 58px; object-fit: contain; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.site-header .site-nav a { color: #e8ddca; font-size: 14px; font-weight: 400; text-decoration: none; text-underline-offset: 5px; }
.site-header .site-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.site-account { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-account form { margin: 0; }
.site-reader { font-size: 13px; max-width: 150px; overflow-wrap: anywhere; }
.site-register, .site-login { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 18px; color: #e8ddca; border: 0; background: url('design/OknoKataloga_knopkaRegistratsia.svg') center / 100% 100% no-repeat; font-size: 13px; line-height: 1.4; text-decoration: none; cursor: pointer; }
.site-login { background-image: url('design/OknoKataloga_knopkaVkhod.svg'); }
.site-profile img { display: block; width: 36px; height: 36px; }
.auth-main { min-height: calc(100svh - 72px); }
/* Симметричные закругления вместо асимметричного фона исходного поля. */
.auth-content input:not([type="hidden"]) { background: #dfd1c5; border-radius: 8px; }
.catalog-toolbar { color: #e8ddca; }
/* Общая правая ось и одинаковый размер иконок профиля и фильтров. */
:root { --site-icon-size: 36px; --site-edge: 20px; }
.site-profile { display: flex; align-items: center; justify-content: center; width: var(--site-icon-size); height: var(--site-icon-size); flex: 0 0 var(--site-icon-size); }
.site-profile img, .catalog-filter-panel > summary img { width: var(--site-icon-size); height: var(--site-icon-size); object-fit: contain; }
.catalog-filter-panel > summary { display: flex; align-items: center; justify-content: center; width: var(--site-icon-size); height: var(--site-icon-size); }
.catalog-toolbar { padding-inline: var(--site-edge); }
.catalog-toolbar-title { flex: 0 0 210px; text-align: center; text-transform: uppercase; font-size: 20px; }
.site-register, .site-login { text-align: center; white-space: nowrap; }
.catalog-book-open > span { font-size: clamp(14px, 1.4vw, 18px); }
.catalog-design .book-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
@media (max-width: 700px) {
    header.site-header { padding: 8px 12px; gap: 10px 16px; }
    .site-brand img { width: 155px; height: 48px; }
    .site-nav { order: 3; width: 100%; justify-content: center; }
    .site-account { gap: 6px; }
    .site-register, .site-login { font-size: 12px; padding: 7px 10px; }
    .site-reader { display: none; }
    :root { --site-edge: 12px; }
    .catalog-toolbar-title { flex-basis: 155px; font-size: 16px; }
    .catalog-design .book-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
}
