:root {
  --paper: #f7f4ee;
  --surface: #fffdf9;
  --ink: #191713;
  --muted: #6d675d;
  --line: #e2dbcd;
  --accent: #8a4b2f;
  --accent-dark: #6f3a22;
  --radius: 14px;
  --shell: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(28px, 6vw, 52px); }
h2 { font-size: clamp(22px, 4vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(44px, 8vw, 88px) 0; }
.section--tight { padding: clamp(30px, 5vw, 56px) 0; }
.eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 8px; }
.lede { font-size: clamp(16px, 2.4vw, 19px); color: #3c382f; }
.hint { font-size: 14px; color: var(--muted); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { font-family: var(--serif); font-size: 21px; letter-spacing: .06em; text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: #3c382f; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px;
}
.nav-cta:hover { background: var(--ink); color: #fff !important; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: 8px 12px; font-size: 14px; font-family: inherit; cursor: pointer;
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 13px 24px; font-size: 16px; font-family: inherit; cursor: pointer;
}
.button:hover { background: #000; }
.button--accent { background: var(--accent); border-color: var(--accent); }
.button--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: rgba(25, 23, 19, .06); }
.button[disabled] { opacity: .6; cursor: default; }
.text-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(138, 75, 47, .4); }
.text-link:hover { border-bottom-color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 5vw, 48px); }
.hero-inner { display: grid; gap: clamp(24px, 4vw, 46px); align-items: center; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.trust { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: #3c382f; }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust li::before { content: "—"; color: var(--accent); }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- author cards ---------- */
.author-grid { display: grid; gap: 22px; }
.author-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.author-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #ece6da; }
.author-card-media img { width: 100%; height: 100%; object-fit: cover; }
.author-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.author-card-name { font-family: var(--serif); font-size: 22px; text-decoration: none; }
.author-card-name:hover { color: var(--accent); }
.author-card-meta { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.author-card-body p { font-size: 15px; color: #3c382f; }
.author-card-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }

/* ---------- artwork cards ---------- */
.art-grid { display: grid; gap: 20px 18px; }
.art-card { display: flex; flex-direction: column; }
.art-card a { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.art-media {
  border-radius: 10px; overflow: hidden; background: #ece6da;
  aspect-ratio: 4 / 3; margin-bottom: 12px;
}
.art-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.art-card a:hover .art-media img { transform: scale(1.03); }
.art-title { font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.art-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.art-price { margin-top: 8px; font-size: 15px; font-weight: 600; }
.art-price span { font-weight: 400; color: var(--muted); }
.art-author { margin-top: 2px; font-size: 13px; color: var(--muted); letter-spacing: .03em; }

.catalog-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: inherit; font-size: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
}
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search {
  font: inherit; font-size: 15px; flex: 1 1 240px; min-width: 200px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.count { font-size: 14px; color: var(--muted); }
.empty { margin-top: 22px; color: var(--muted); }

/* ---------- artist page ---------- */
.artist-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.artist-hero-inner { display: grid; gap: clamp(22px, 4vw, 44px); align-items: center; }
.artist-hero h1 { margin-bottom: 12px; }
.artist-hero .native { font-size: 17px; color: var(--muted); margin-bottom: 14px; }
.artist-hero img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.artist-hero figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.artist-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: 15px; }
.artist-nav a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--surface); }
.artist-nav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.bio-grid { display: grid; gap: clamp(22px, 4vw, 44px); }
.bio-text { max-width: 68ch; }
.bio-media img { border-radius: var(--radius); }
.facts { display: grid; gap: 14px; margin: 26px 0; }
.fact { border-top: 1px solid var(--line); padding-top: 12px; }
.fact strong { display: block; font-family: var(--serif); font-size: 20px; }
.fact span { font-size: 14px; color: var(--muted); }

/* ---------- auctions ---------- */
.band { background: #1d1a16; color: #f4efe6; }
.band .eyebrow { color: #b9ad99; }
.band .eyebrow::before { background: #b9ad99; }
.band-grid { display: grid; gap: clamp(20px, 4vw, 40px); align-items: start; }
.auction-links { display: grid; gap: 10px; }
.auction-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  text-decoration: none; border: 1px solid rgba(244, 239, 230, .22);
  border-radius: 12px; padding: 14px 18px; font-size: 15px;
}
.auction-link:hover { background: rgba(244, 239, 230, .1); }
.auction-link b { font-weight: 600; }
.auction-link span { color: #b9ad99; font-size: 13px; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 16px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: block; font-family: var(--serif); font-size: 26px; color: var(--accent); margin-bottom: 6px;
}
.step p { font-size: 15px; color: #3c382f; }

/* ---------- form ---------- */
.form-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); }
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: #3c382f; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid rgba(138, 75, 47, .35); outline-offset: 1px; }
.field-error { font-size: 13px; color: #a3372a; min-height: 0; }
.field-error:empty { display: none; }
.field--consent { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; color: #3c382f; }
.field--consent input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status.is-ok { color: #2f6b3f; }
.form-status.is-error { color: #a3372a; }
.form-note { font-size: 13px; color: var(--muted); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: #fff; cursor: pointer;
}
.radio-row input { accent-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; }

/* ---------- work page ---------- */
.breadcrumbs { font-size: 14px; color: var(--muted); padding: 20px 0 0; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.work-layout { display: grid; gap: clamp(22px, 4vw, 44px); padding: clamp(20px, 4vw, 40px) 0 clamp(40px, 7vw, 76px); align-items: start; }
.work-gallery { display: grid; gap: 14px; }
.work-frame { border-radius: var(--radius); overflow: hidden; background: #ece6da; }
.work-frame img { width: 100%; }
.work-info { position: sticky; top: 84px; }
.work-info h1 { font-size: clamp(24px, 4.4vw, 36px); margin-bottom: 8px; }
.work-meta { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.work-data { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.work-data li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.work-data span { color: var(--muted); }
.price { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); margin: 0 0 16px; }
.status { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.work-info .button { width: 100%; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; color: var(--muted); }
.footer-inner { display: grid; gap: 18px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-cols { display: grid; gap: 16px; }
.footer-cols h3 { font-size: 15px; font-family: var(--sans); margin-bottom: 8px; color: var(--ink); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ---------- адаптив ---------- */
@media (min-width: 700px) {
  .author-grid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field--wide { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .author-grid { grid-template-columns: repeat(3, 1fr); }
  .art-grid { grid-template-columns: repeat(3, 1fr); }
  .art-grid--four { grid-template-columns: repeat(4, 1fr); }
  .artist-hero-inner { grid-template-columns: 1.1fr .9fr; }
  .bio-grid { grid-template-columns: 1.15fr .85fr; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .work-layout { grid-template-columns: 1.35fr .65fr; }
  .form-block { padding: 40px; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 20px 18px;
  }
  .topbar.is-open .nav { display: flex; }
  .nav a { padding: 8px 0; width: 100%; }
  .nav-cta { border-radius: 10px; text-align: center; justify-content: center; display: flex; }
  .nav-toggle { display: inline-block; }
  .work-info { position: static; }
}
