/* Стиль «Акварельный размыв»: светлая бумага, мягкие пятна цвета из палитры работ, рукописные заголовки */
:root {
  --paper: #fbf8f4;
  --ink: #2a2340;
  --ink-soft: #5b536f;
  --violet: #4a3a8c;
  --violet-deep: #3b2f78;
  --wash-violet: rgba(126, 104, 214, .32);
  --wash-amber: rgba(245, 178, 96, .38);
  --wash-teal: rgba(84, 170, 196, .28);
  --card: rgba(255, 255, 255, .72);
  --line: rgba(59, 47, 120, .14);
  --hand: "Marck Script", "Segoe Script", cursive;
  --text: "PT Serif", Georgia, serif;
  --ui: "Manrope", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.65;
  background:
    radial-gradient(55% 45% at 10% 0%, var(--wash-violet), transparent 70%),
    radial-gradient(45% 40% at 95% 10%, var(--wash-amber), transparent 70%),
    radial-gradient(70% 50% at 50% 105%, var(--wash-teal), transparent 70%),
    var(--paper);
  background-attachment: fixed;
}
img { max-width: 100%; display: block }
a { color: var(--violet) }
a:focus-visible, button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px }
.container { max-width: 1160px; margin: 0 auto; padding-inline: max(20px, 4vw) }

/* Шапка */
.site-header { padding-block: 22px }
.site-header .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px }
.logo { font-family: var(--hand); font-size: 36px; line-height: 1; color: var(--violet); text-decoration: none }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; font-family: var(--ui); font-size: 15px }
.nav a { color: var(--ink-soft); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent }
.nav a:hover { color: var(--ink) }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink) }

/* Заголовки */
h1, h2, h3 { font-family: var(--hand); font-weight: 400; color: var(--violet-deep); line-height: 1.05; text-wrap: balance; margin: 0 }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem) }
h2 { font-size: clamp(2rem, 4.5vw, 2.8rem) }
h3 { font-size: 1.8rem }
.lead { color: var(--ink-soft); max-width: 46ch; margin: 16px 0 0; font-size: 1.1rem }
.button {
  display: inline-block; margin-top: 26px; padding: 11px 22px; border-radius: 999px; background: var(--violet-deep); color: #fff;
  font-family: var(--ui); font-size: 15px; text-decoration: none; transition: background .2s;
}
.button:hover { background: var(--violet) }

/* Главная */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-block: 40px 72px }
.sheet { background: #fff; padding: 10px; border-radius: 3px; box-shadow: 0 18px 40px -18px rgba(59, 47, 120, .5) }
.hero .sheet { transform: rotate(1.6deg) }
.series-title { margin-bottom: 26px }
.series-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 80px }
.series-card { display: grid; gap: 12px; background: var(--card); border-radius: 8px; padding: 12px 12px 18px; text-decoration: none; color: inherit; transition: transform .25s }
.series-card:hover { transform: translateY(-4px) }
.series-card .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.series-card .pair img { aspect-ratio: 3/4; width: 100%; object-fit: cover; border-radius: 3px }
.series-card p { margin: 0; font-family: var(--ui); font-size: 14px; color: var(--ink-soft) }
.series-card .count { font-variant-numeric: tabular-nums }

/* Галерея */
.page-head { padding-block: 24px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px }
.filters { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--ui); font-size: 14px }
.filters button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); padding: 6px 16px; border-radius: 999px }
.filters button[aria-pressed="true"] { background: var(--violet-deep); border-color: var(--violet-deep); color: #fff }
.gallery { columns: 4 230px; column-gap: 22px; padding-bottom: 80px }
.work { break-inside: avoid; margin: 0 0 22px; cursor: zoom-in }
.work button { all: unset; display: block; cursor: zoom-in; width: 100% }
.work img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 10px 24px -16px rgba(59, 47, 120, .6); transition: transform .25s }
.work:hover img { transform: scale(1.015) }
.work figcaption { font-family: var(--ui); font-size: 13px; color: var(--ink-soft); margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px }
.work-title { color: var(--ink); width: 100% }
.work-meta { font-variant-numeric: tabular-nums }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor }
.status-available { color: #2f7d5b }
.status-private { color: #8a8299 }

/* Просмотр картины */
.lightbox { position: fixed; inset: 0; background: rgba(24, 20, 40, .92); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 24px; z-index: 50 }
.lightbox[hidden] { display: none }
.lightbox img { max-height: calc(100vh - 110px); width: auto; max-width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .5) }
.lightbox .caption { color: #ece6f6; font-family: var(--ui); font-size: 15px; padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 16px }
.lightbox .work-title { color: #fff; width: auto }
.lightbox .work-series { width: 100%; text-align: center; font-family: var(--hand); font-size: 24px; color: #d9cff5 }
.lightbox .status-available { color: #8fdcb5 }
.lightbox .status-private { color: #c4bdd3 }
.lightbox .ask { color: #fff; font-size: 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 3px 12px; text-decoration: none }
.lightbox .ask:hover { background: rgba(255,255,255,.12) }
.lightbox .lb-btn { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer }
.lightbox .lb-btn:hover { background: rgba(255, 255, 255, .24) }
.lb-close { top: 16px; right: 16px }
.lb-prev { left: 16px; top: 50% }
.lb-next { right: 16px; top: 50% }

/* Текстовые страницы */
.text-page { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; padding-block: 32px 80px }
.text-page .body { max-width: 62ch }
.text-page .body p { margin: 0 0 1em }
.placeholder { background: rgba(245, 178, 96, .22); border-radius: 4px; padding: 0 4px }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; font-family: var(--ui) }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line) }
.contact-list .label { color: var(--ink-soft); font-size: 14px }

/* Биография */
.bio { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; padding-block: 32px 80px }
.bio-side { display: grid; gap: 22px; position: sticky; top: 24px }
.bio-art { margin: 0; transform: rotate(-1.4deg) }
.bio-side-title { font-size: 2rem }
.milestones { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; font-family: var(--ui); font-size: 15px }
.milestones li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: baseline }
.milestones li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--violet) }
.milestones .year { font-weight: 600; color: var(--violet-deep); font-variant-numeric: tabular-nums }
.bio-text .lead { margin-bottom: 28px }
.bio-card { background: var(--card); border-radius: 10px; padding: clamp(22px, 4vw, 44px); font-size: 18px; line-height: 1.8; max-width: 66ch; box-shadow: 0 20px 50px -30px rgba(59, 47, 120, .35) }
.bio-card p { margin: 0 0 1.1em }
.dropcap::first-letter { font-family: var(--hand); float: left; font-size: 4.4em; line-height: .8; padding: 6px 10px 0 0; color: var(--violet) }
.bio-quote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid rgba(245, 178, 96, .8); font-family: var(--hand); font-size: 1.8rem; line-height: 1.25; color: var(--violet-deep) }
.bio-sign { margin: 1.4em 0 0 !important; text-align: right; font-family: var(--hand); font-size: 1.7rem; color: var(--violet) }
@media (max-width: 800px) {
  .bio { grid-template-columns: 1fr; gap: 32px }
  .bio-side { position: static }
}

/* Подвал */
.site-footer { padding-block: 28px; font-family: var(--ui); font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line) }

@media (max-width: 800px) {
  .hero, .text-page { grid-template-columns: 1fr; gap: 32px }
  .series-cards { grid-template-columns: 1fr }
  .contact-list li { grid-template-columns: 1fr; gap: 2px }
  .lb-prev, .lb-next { top: auto; bottom: 16px }
  .lightbox { padding: 64px 12px 84px }
  .lightbox img { max-height: calc(100vh - 230px) }
  .gallery { columns: 2; column-gap: 12px }
  .work { margin-bottom: 16px }
  .work figcaption { font-size: 12px }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important }
}
