:root {
  color-scheme: light;
  --ink: #172b25;
  --muted: #4d6258;
  --paper: #fafbf7;
  --line: #dbe4d9;
  --accent: #245640;
  --soft: #e5eddf;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.nav, .footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { min-height: 70px; }
.nav nav { display: flex; gap: 24px; }
.brand { font-size: 2rem; font-weight: 850; letter-spacing: -.1em; text-decoration: none; color: var(--ink); }
.brand span { color: #487b53; }
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { display: block; width: clamp(140px, 18vw, 178px); height: auto; }
main { padding: 32px 0 64px; min-height: 65vh; }
.hero { padding: clamp(28px, 6vw, 72px); background: var(--soft); border-radius: 22px; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1 { font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; line-height: 1.08; }
h2 { font-size: 1.45rem; }
.hero p, .small, .category, .catalog-title span, dt, .footer p { color: var(--muted); }
.hero p, .footer p { margin: 0; }
.filters { margin: 24px 0 35px; display: grid; grid-template-columns: 2fr 1fr auto; align-items: end; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 650; min-width: 0; }
input, select, button, .button { font: inherit; padding: 10px 14px; border-radius: 9px; min-height: 46px; }
input, select { width: 100%; border: 1px solid #a2b5a8; background: #fff; color: var(--ink); }
button, .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 650; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
button:hover, .button:hover { background: #163e2d; }
:focus-visible { outline: 3px solid #994a18; outline-offset: 3px; }
.secondary { background: #fff; color: var(--accent); }
.secondary:hover { background: var(--soft); }
.catalog-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.grid, .settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card, .panel { border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.card { overflow: hidden; display: flex; flex-direction: column; }
.art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; text-decoration: none; }
.art img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.placeholder { font: 1.2rem Georgia, serif; text-align: center; padding: 16px; }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: start; padding: 16px; }
.card h3 { overflow-wrap: anywhere; font-size: 1rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.category, .small { font-size: .9rem; }
.card .button { margin-top: auto; }
.panel { padding: clamp(18px, 4vw, 32px); }
.panel form { display: grid; gap: 14px; justify-items: start; }
.panel label { width: 100%; }
.narrow { max-width: 500px; margin: 4vh auto; }
.empty { margin: 12px 0; }
.detail, .settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.detail .art { border-radius: 16px; }
.detail h1 { font-size: clamp(1.8rem, 4vw, 3rem); overflow-wrap: anywhere; }
.description { white-space: pre-line; }
.detail .small { margin-top: 12px; }
.notice { padding: 12px 16px; background: var(--soft); border-radius: 8px; }
dd { margin: 0 0 10px; }
.logout { margin-top: 24px; }
.pagination { display: flex; justify-content: center; gap: 20px; margin-top: 28px; }
.footer { border-top: 1px solid var(--line); padding: 22px 0; }
@media (max-width: 780px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .grid, .settings, .detail, .filters { grid-template-columns: 1fr; }
  .catalog-title, .footer .wrap { align-items: flex-start; flex-direction: column; gap: 5px; }
}
.banner-slider { position: relative; overflow: hidden; border-radius: 22px; background: #172b25; color: #fff; }
.banner-slide { position: relative; min-height: clamp(310px, 36vw, 440px); display: flex; align-items: center; isolation: isolate; }
.banner-slide[hidden], .banner-controls[hidden] { display: none; }
.banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.banner-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10191aeb 0%, #10191a80 47%, transparent 80%); }
.banner-copy { padding: 62px clamp(22px, 6vw, 72px); width: min(100%, 650px); }
.banner-copy h2 { font: 500 clamp(2.35rem, 5vw, 4.3rem)/1.04 Georgia, serif; margin: 0 0 12px; }
.banner-copy p { margin-bottom: 22px; color: #f4f7f3; }
.banner-copy .button { background: #fff; border-color: #fff; color: #172b25; }
.banner-copy .button:hover { background: #e5eddf; }
.banner-controls { position: absolute; z-index: 1; top: 12px; right: 12px; display: flex; gap: 6px; }
.banner-controls .banner-step { display: grid; place-items: center; width: 36px; min-width: 36px; min-height: 36px; padding: 0 0 3px; border: 1px solid #ffffff55; border-radius: 50%; background: #10191abf; color: #fff; font-size: 1.65rem; line-height: 1; }
.banner-controls .banner-step:hover { background: #10191a; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 560px) {
  .banner-slide img { object-position: 72% center; }
  .banner-slide::before { background: linear-gradient(90deg, #10191af7, #10191a70); }
  .banner-copy { width: 100%; }
}
.header-filters { margin: 0; width: min(100%, 660px); }
.banner-slider { margin-bottom: 30px; }
@media (max-width: 700px) {
  .nav { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .header-filters { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) auto; gap: 6px; }
  .header-filters input, .header-filters select, .header-filters button { padding-inline: 7px; }
}
.catalog-title h1 { font: 700 1.5rem/1.3 "Segoe UI", system-ui, sans-serif; }
.catalog-categories { margin: 0 0 16px; }
.catalog-categories summary { color: var(--accent); font-weight: 650; cursor: pointer; }
.catalog-categories nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.breadcrumbs { margin-bottom: 12px; overflow-wrap: anywhere; }
.related { margin-top: 30px; }
.related ul { padding-left: 1.2rem; }
.related li { margin-bottom: 6px; }
