/* =========================================================
   Ляля Артрад — прототип главной
   Концепция «Тихая галерея»
   ========================================================= */

:root {
  --paper: #faf7f2;
  --paper-deep: #f2eadf;
  --surface: #ffffff;
  --ink: #1f1c18;
  --ink-soft: #46413a;
  --muted: #6f675c;
  --line: #e4dacd;
  --line-soft: #efe8dd;
  --accent: #b4552f;
  --accent-dark: #943f1f;
  --sand: #d9a98c;
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Старый фон сайта — картина «Древо семьи».
   Показан как бледный водяной знак: не растянут, не мешает чтению. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/bg-tree.jpg") center 34% / cover no-repeat;
  opacity: 0.15;
  filter: saturate(0.5);
  pointer-events: none;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}

.hero-grid > *,
.about-grid > *,
.about-page-grid > *,
.order-page-grid > *,
.expo > *,
.expo-layout > *,
.order-grid > *,
.footer-grid > * {
  min-width: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Типографика ---------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.kicker--light {
  color: var(--sand);
}

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--small {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.7rem;
}

.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
  border-color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(180, 85, 47, 0.45);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.link-arrow span {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  width: auto;
  height: 40px;
  mix-blend-mode: multiply;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-role {
  margin-top: 3px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a:not(.btn) {
  padding: 4px 4px;
  margin-inline: -4px;
  border-bottom: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nav-color);
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

/* Радуга: каждый пункт окрашен в свой цвет постоянно */

.nav a {
  --nav-color: var(--accent);
}

.nav .nav-red { --nav-color: #c0392b; }
.nav .nav-orange { --nav-color: #b9540c; }
.nav .nav-yellow { --nav-color: #b07d00; }
.nav .nav-green { --nav-color: #3d7a35; }
.nav .nav-sky { --nav-color: #2679a5; }
.nav .nav-blue { --nav-color: #2f4f9f; }
.nav .nav-violet { --nav-color: #7a3fa0; }

/* «Выставки» — тёплый золотой и в спокойном состоянии */
.nav a.nav-yellow:not(.btn) {
  color: #9c7400;
}

/* Наведение и текущий блок при скролле подсвечиваются одинаково */
.nav a:not(.btn):hover,
.nav a:not(.btn).is-active,
.nav a[aria-current="page"] {
  color: var(--nav-color);
  border-bottom-color: var(--nav-color);
  background-color: rgba(0, 0, 0, 0.035);
  background-color: color-mix(in srgb, var(--nav-color) 9%, transparent);
}

.nav a:focus-visible {
  outline-color: var(--nav-color);
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 5vw, 68px) 0 clamp(22px, 2.6vw, 32px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-text {
  max-width: 560px;
}

.hero h1 {
  width: fit-content;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
  font-size: clamp(1.5rem, 2.45vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-greeting {
  max-width: 50ch;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.72;
}

.hero-greeting p {
  text-indent: 1.6em;
}

.hero-greeting p + p {
  margin-top: 14px;
}

.hero-greeting p.hero-signoff {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}

.hero-signoff span {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
}

.facts dd {
  margin-top: 8px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
}

.hero-art {
  justify-self: end;
  width: 100%;
  max-width: 580px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: 0 44px 80px -52px rgba(47, 29, 12, 0.5);
}

.hero-art img {
  display: block;
  width: 100%;
}

.hero-art figcaption {
  padding: 14px 0 2px;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

/* ---------- Секции ---------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

/* «Избранные работы» ближе к первому экрану */
.works {
  padding-top: clamp(22px, 2.8vw, 34px);
}

.section,
.order,
.quote,
.project-teaser,
.site-footer {
  scroll-margin-top: 92px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-link {
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* ---------- Внутренняя страница ---------- */

.page-section {
  min-height: 58vh;
  padding-top: clamp(48px, 7vw, 88px);
}

.page-title {
  margin-top: 4px;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.92;
}

.placeholder {
  max-width: 720px;
  margin-top: clamp(36px, 6vw, 64px);
  padding: clamp(32px, 5vw, 56px);
}

.placeholder h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.placeholder p {
  max-width: 48ch;
  margin-bottom: 26px;
  color: var(--ink-soft);
}

/* ---------- Галерея ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 28px;
}

.work {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.work-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.work-open:hover {
  border-color: var(--line);
  box-shadow: 0 24px 44px -36px rgba(47, 29, 12, 0.5);
}

.work-open img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.work figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.work-title {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.2;
}

.work-meta {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
}

/* ---------- Страница галереи ---------- */

.gallery-page {
  padding-top: clamp(40px, 5vw, 72px);
}

.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  padding-bottom: clamp(18px, 2.5vw, 28px);
  border-bottom: 1px solid var(--line);
}

.gallery-head .kicker {
  margin-bottom: 2px;
}

.gallery-quote {
  margin: 0;
  padding-bottom: 2px;
}

.gallery-quote p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--ink-soft);
}

.gallery-quote cite {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
  margin-top: clamp(36px, 5vw, 60px);
}

/* Боковое меню альбомов */

.album-panel {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 124px);
  padding-right: 12px;
  padding-bottom: 16px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.album-panel::-webkit-scrollbar {
  width: 4px;
}

.album-panel::-webkit-scrollbar-thumb {
  background: var(--line);
}

.album-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.album-panel-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
}

.album-panel-count {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.album-panel-hint {
  display: none;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.album-group {
  margin-top: 24px;
}

.album-group + .album-group {
  margin-top: 30px;
}

.album-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.album-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.album-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 10px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.22s var(--ease);
}

.album-link:hover {
  transform: translateX(3px);
}

.album-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.album-thumb {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: cover;
  background: var(--paper-deep);
  filter: saturate(0.92);
  transition: filter 0.25s var(--ease);
}

.album-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.album-title {
  font-size: 0.83rem;
  line-height: 1.25;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.album-count {
  margin-top: 2px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.album-arrow {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}

.album-link:hover .album-title,
.album-link:hover .album-arrow {
  color: var(--accent);
}

.album-link:hover .album-thumb {
  filter: saturate(1.05);
}

.album-link:hover .album-arrow {
  opacity: 1;
  transform: none;
}

/* Содержимое галереи */

.gallery-content {
  min-width: 0;
}

.gallery-section + .gallery-section {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.gallery-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.gallery-section-head h2 {
  margin-top: 2px;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.05;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 36px);
}

.gallery-item figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.gallery-item .work-meta {
  text-align: left;
}

/* ---------- Страница альбома ---------- */

.album-page .gallery-layout {
  margin-top: 0;
}

.album-head {
  padding-bottom: clamp(18px, 2.4vw, 26px);
  margin-bottom: clamp(24px, 3.4vw, 38px);
  border-bottom: 1px solid var(--line);
}

.album-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(14px, 2vw, 20px);
}

.album-head-row .kicker {
  margin-bottom: 0;
}

.album-page-title {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.02;
}

.album-meta {
  margin-top: 10px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.album-back {
  font-size: 0.76rem;
}

.album-grid {
  align-items: start;
}

.album-grid .work-title {
  font-size: 1.02rem;
}

.work-title.is-untitled {
  color: var(--muted);
  font-style: italic;
}

.album-foot {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.album-foot .link-arrow:hover span {
  transform: translateX(-4px);
}

/* Активный альбом в меню */

.album-link.is-current .album-title,
.album-link.is-current .album-arrow {
  color: var(--accent);
}

.album-link.is-current .album-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--accent);
}

.album-link.is-current .album-arrow {
  opacity: 1;
  transform: none;
}

.album-link.is-current .album-thumb {
  filter: saturate(1.05);
  box-shadow: inset 0 0 0 1px rgba(180, 85, 47, 0.35);
}

/* ---------- Цитата ---------- */

.quote {
  padding-block: clamp(64px, 9vw, 50px);
  background: var(--paper-deep);
}

.quote blockquote {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.quote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 300;
  line-height: 1.45;
}

.quote cite {
  display: block;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote .wrap {
  display: flex;
  flex-direction: column;
}

.quote-more {
  align-self: flex-end;
  margin-top: clamp(22px, 3vw, 34px);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.quote-more:hover {
  color: var(--accent);
  border-color: currentColor;
}

@media (max-width: 640px) {
  .quote p {
    font-size: clamp(1.15rem, 5.4vw, 1.6rem);
    line-height: 1.5;
  }

  .quote cite {
    margin-top: 24px;
  }
}

/* ---------- Проект ---------- */

.project-teaser {
  padding-block: clamp(64px, 9vw, 118px);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
  text-align: center;
}

.project-title a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.12em;
  color: var(--ink);
  font-style: italic;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0 1px;
  transition: color 0.25s var(--ease), background-size 0.35s var(--ease);
}

.project-title a:hover,
.project-title a:focus-visible {
  color: var(--accent);
  background-size: 74% 1px;
}

.project-title a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
}

.project-title em {
  font-style: italic;
  color: var(--accent);
}

/* Когда на странице нет вводного hero, контент дышит от шапки */
main > .page-body:first-child > .wrap {
  padding-top: clamp(44px, 6vw, 84px);
}

/* На «Стихах» hero ближе к шапке */
.writing-main > .page-hero {
  padding-top: clamp(14px, 2vw, 24px);
}

.project-more {
  margin-top: 20px;
  text-align: center;
}

/* ---------- О художнике ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.about-photo {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 60px -46px rgba(47, 29, 12, 0.5);
}

.about-photo img {
  display: block;
  width: 100%;
}

.about-photo figcaption {
  padding: 12px 0 2px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.about-text h2 {
  margin-bottom: 26px;
}

.about-text p {
  max-width: 62ch;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.about-text .link-arrow {
  margin-top: 10px;
}

/* ---------- Выставки ---------- */

.expo-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.expo {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
}

.expo-media {
  background: var(--paper-deep);
}

.expo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.expo-body {
  padding: clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  background: var(--paper-deep);
  color: #8a3f22;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.expo-body h3 {
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  margin-bottom: 10px;
}

.expo-meta {
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.expo-body p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.expo-address {
  color: var(--muted) !important;
  font-size: 0.84rem !important;
}

.expo-body .link-arrow {
  margin-top: 10px;
  padding-top: 0;
}

.expo-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 36px 32px;
  background: var(--paper-deep);
}

.expo-stats > div {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 0.9;
  color: var(--accent);
}

.stat-label {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.expo-note {
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Заказ ---------- */

.order {
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(44px, 5vw, 60px);
  background: #221e1a;
  color: #f5eee4;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.order h2 {
  color: #f8f2e9;
  margin-bottom: 24px;
}

.order-intro p {
  max-width: 46ch;
  margin-bottom: 32px;
  color: rgba(245, 238, 228, 0.72);
}

.steps {
  display: grid;
  gap: 26px;
}

.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 238, 228, 0.16);
}

.step-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--sand);
}

.steps h3 {
  margin-bottom: 6px;
  font-size: 1.32rem;
  color: #f8f2e9;
}

.steps p {
  font-size: 0.9rem;
  color: rgba(245, 238, 228, 0.66);
}

/* Примеры выполненных работ */

.order-examples {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 300px) minmax(220px, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
  margin-top: clamp(36px, 4.5vw, 56px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid rgba(245, 238, 228, 0.16);
}

.order-example-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: var(--paper);
}

.order-example-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.order-example figcaption {
  margin-top: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 238, 228, 0.62);
}

.order-more {
  align-self: center;
  padding-top: 0;
}

.order-more p {
  max-width: 30ch;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: rgba(245, 238, 228, 0.66);
}

.link-arrow--light {
  color: var(--sand);
  border-color: rgba(217, 169, 140, 0.45);
}

.link-arrow--light:hover {
  color: #fff;
  border-color: #fff;
}

/* ---------- Подвал ---------- */

.site-footer {
  padding: clamp(40px, 5vw, 56px) 0 24px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 40px;
}

.footer-brand .footer-name {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-col h3 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
}

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(14px, 2.4vw, 30px);
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  overflow: clip;
  overflow-anchor: none;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(15, 12, 9, 0.92);
  backdrop-filter: blur(8px);
  animation: lightbox-backdrop 0.42s var(--ease) both;
}

@keyframes lightbox-backdrop {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.lightbox-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vw, 11px);
  width: min(1320px, 100%);
  min-width: 0;
  max-height: 100%;
  transition: opacity 0.2s var(--ease);
}

.lightbox.is-preparing .lightbox-shell {
  opacity: 0;
}

.lightbox.is-closing .lightbox-close,
.lightbox.is-closing .lightbox-bar,
.lightbox.is-closing .lightbox-thumbs,
.lightbox.is-closing .lightbox-arrow {
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}

.lightbox.is-fading .lightbox-figure {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.2s var(--ease), transform 0.24s var(--ease);
}

.lightbox-close {
  position: absolute;
  top: clamp(10px, 1.6vw, 18px);
  right: clamp(10px, 1.6vw, 18px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(15, 12, 9, 0.35);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox-close svg,
.lightbox-arrow svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-arrow svg {
  width: 20px;
  height: 20px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
}

.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 12px);
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.lightbox-figure {
  margin: 0;
  flex: 0 1 auto;
  line-height: 0;
  overflow: hidden;
  transform-origin: top left;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1240px);
  max-height: calc(100vh - 168px);
  max-height: calc(100dvh - 168px);
  object-fit: contain;
  background: #0d0b09;
  transform-origin: center center;
  transition: transform 0.28s var(--ease);
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.lightbox-figure img.is-zoomed {
  cursor: grab;
}

.lightbox.is-dragging .lightbox-figure img {
  cursor: grabbing;
}

.lightbox-figure img.no-transition,
.lightbox.is-dragging .lightbox-figure img {
  transition: none;
}

.lightbox-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
}

.lightbox-arrow:active {
  transform: scale(0.94);
}

.lightbox.is-single .lightbox-arrow,
.lightbox.is-single .lightbox-thumbs,
.lightbox.is-single .lightbox-counter {
  display: none;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  transition: opacity 0.18s var(--ease);
}

.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.66);
}

#lightbox-title {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #fff;
}

#lightbox-meta:empty {
  display: none;
}

.lightbox-counter {
  flex: none;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.lightbox-tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lightbox-zoom-cycle {
  min-width: 62px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.lightbox-zoom-cycle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.lightbox-zoom-cycle:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

.lightbox-zoom-cycle[data-zoom="250"] {
  border-color: var(--sand);
  color: #fff;
  background: rgba(217, 169, 140, 0.16);
}

.lightbox-thumbs {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 1px 1px 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  transition: opacity 0.18s var(--ease);
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 4px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 2px;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: #1a1611;
  opacity: 0.55;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb:hover {
  opacity: 0.85;
}

.lightbox-thumb.is-active {
  opacity: 1;
  border-color: var(--sand);
  box-shadow: 0 0 0 1px rgba(217, 169, 140, 0.55);
}

.lightbox-thumb:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .lightbox {
    padding: 10px;
  }

  .lightbox-stage {
    position: relative;
    gap: 0;
  }

  .lightbox-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    background: rgba(15, 12, 9, 0.55);
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }

  .lightbox-figure img {
    max-height: calc(100vh - 196px);
    max-height: calc(100dvh - 196px);
  }

  .lightbox-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .lightbox-tools {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .lightbox-zoom-cycle {
    height: 30px;
  }

  .lightbox-caption {
    flex-direction: column;
    gap: 2px;
  }

  .lightbox-thumb {
    width: 38px;
    height: 38px;
  }

  .lightbox-thumbs {
    gap: 5px;
  }
}

/* ---------- Анимация появления ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптивность ---------- */

@media (max-width: 1200px) {
  .nav {
    gap: 18px;
  }

  .expo-layout {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text {
    max-width: 640px;
  }

  .hero-art {
    justify-self: center;
    max-width: 540px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .about-grid {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }

  .expo-layout {
    grid-template-columns: 1fr;
  }

  .expo-stats {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .expo-note {
    flex-basis: 100%;
    margin-top: 0;
  }

  .order-grid {
    grid-template-columns: 1fr;
  }

  .order-examples {
    grid-template-columns: repeat(2, minmax(0, 300px));
  }

  .order-more {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

@media (max-width: 1160px) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a:not(.btn) {
    padding: 15px 8px;
    margin-inline: 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
  }

  .expo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 70px;
    gap: 16px;
  }

  .brand-mark {
    height: 34px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-role {
    font-size: 0.55rem;
  }

  .nav {
    top: 70px;
    max-height: calc(100vh - 70px);
  }

  .hero h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .facts > div {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }

  .facts dt {
    font-size: 1.5rem;
    min-width: 84px;
  }

  .facts dd {
    margin-top: 0;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .work {
    margin-bottom: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 280px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .section-link {
    margin-bottom: 0;
  }

  .expo-stats {
    padding: 28px 24px;
  }

  .expo-stats > div {
    min-width: 88px;
  }

  .work figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .work-meta {
    text-align: left;
  }

  .order-examples {
    gap: 18px;
  }

  .order-example-frame {
    padding: 9px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .lightbox-caption {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---------- Галерея: адаптивность ---------- */

@media (max-width: 1160px) {
  .gallery-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .album-panel {
    position: static;
    min-width: 0;
    max-height: none;
    padding-right: 0;
    padding-bottom: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .album-panel-head {
    align-items: baseline;
  }

  .album-panel-count {
    margin-left: auto;
  }

  .album-panel-hint {
    display: inline;
  }

  .album-groups {
    display: flex;
    gap: 28px;
    max-width: 100%;
    padding: 4px 0 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }

  .album-group,
  .album-group + .album-group {
    flex: 0 0 auto;
    margin-top: 18px;
  }

  .album-list {
    display: flex;
    gap: 14px;
  }

  .album-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 150px;
    padding: 0;
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .album-link:hover {
    transform: translateY(-2px);
  }

  .album-thumb {
    width: 150px;
    height: 100px;
  }

  .album-arrow {
    display: none;
  }

  .album-title {
    font-size: 0.82rem;
  }

  .album-count {
    font-size: 0.58rem;
  }
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-head {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .gallery-quote {
    max-width: 46ch;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .album-link {
    width: 132px;
  }

  .album-thumb {
    width: 132px;
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Кнопка «Наверх» ---------- */

.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 45;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.95);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(31, 28, 24, 0.16);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0.24s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Внутренние страницы: общий шаблон ---------- */

.page-hero {
  padding: clamp(40px, 5.5vw, 76px) 0 clamp(22px, 2.8vw, 34px);
}

.page-hero .kicker {
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
}

.page-hero .page-lead {
  max-width: 62ch;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.1vw, 1.06rem);
  line-height: 1.72;
}

.page-body {
  padding-bottom: clamp(48px, 7vw, 88px);
}

.page-body > .wrap {
  padding-top: clamp(16px, 2.4vw, 28px);
}

.prose {
  max-width: 70ch;
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.prose h2 {
  margin-top: 2.1em;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.15;
}

.prose h3 {
  margin-top: 1.7em;
  font-size: 1.3rem;
  line-height: 1.3;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose blockquote {
  margin-top: 2em;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--sand);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--ink);
}

.prose .signature {
  margin-top: 1.6em;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent);
}

/* Обо мне */

.about-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}

.about-page-grid .prose {
  max-width: none;
}

.about-photo {
  position: sticky;
  top: 104px;
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 282 / 413;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.about-photo figcaption {
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Выставки */

.timeline {
  max-width: 920px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--accent);
}

.timeline-body h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.timeline-body p {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.timeline-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.timeline-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.expo-footnote {
  max-width: 70ch;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Актуальная выставка над архивом */

.expo-current {
  max-width: 920px;
  margin-bottom: clamp(38px, 5vw, 58px);
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.expo-current-label {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.expo-current h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.08;
}

.expo-current p {
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.timeline-quote {
  margin-top: 16px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--sand);
}

.timeline-quote p {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.62;
}

/* Заказать портрет */

.order-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.order-steps {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.order-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.order-step b {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent);
}

.order-step p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.order-example-grid {
  display: grid;
  gap: 22px;
}

.order-example {
  margin: 0;
}

.order-example img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.order-example figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.example-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.example-strip h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.example-strip p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Контакты */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: clamp(24px, 4vw, 40px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

a.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-card .contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card .contact-value {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-note {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* Сочинения */

.poem-list {
  display: grid;
  gap: clamp(30px, 4vw, 48px);
  max-width: 760px;
}

.poem h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  text-align: center;
}

.poem p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  line-height: 1.52;
  text-align: center;
}

.poem p + p {
  margin-top: 1.2em;
}

.poem + .poem {
  padding-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

/* Проекты */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  margin-top: clamp(28px, 4vw, 44px);
}

.project-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.project-gallery--fit {
  align-items: start;
}

.project-gallery--fit img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.project-note {
  max-width: 70ch;
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 2px solid var(--sand);
  background: rgba(217, 169, 140, 0.1);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .about-page-grid,
  .order-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-photo {
    position: static;
    max-width: 340px;
  }

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

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-year {
    font-size: 1.35rem;
  }

  .example-strip,
  .project-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .to-top {
    width: 42px;
    height: 42px;
  }
}

/* Дополнения для содержательных страниц */

.bio-facts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.bio-facts li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.bio-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.press-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-left: 24px;
  list-style: decimal;
}

.press-list li {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  padding-left: 4px;
}

.press-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.press-links a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.press-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.poem-mark {
  margin-bottom: 14px;
  color: var(--sand);
  letter-spacing: 0.3em;
}

.order-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.order-gallery .order-example img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: var(--paper-deep);
}

.source-note {
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--muted);
}

.project-body {
  max-width: none;
}

.project-body .prose {
  max-width: none;
}

.project-body .prose > p {
  max-width: 70ch;
}

.project-body .project-gallery {
  max-width: 1100px;
}

@media (max-width: 900px) {
  .order-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .order-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Порядок применения: мобильная раскладка новых страниц должна идти после базовых правил */
@media (max-width: 900px) {
  .about-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* На текстовых страницах фон заметно бледнее, чтобы не мешать чтению */
body:has(.page-body)::before {
  opacity: 0.08;
}

/* ---------- Идентификаторы страниц, подпись в hero ---------- */

.page-hero .kicker,
.hero .kicker,
.gallery-head .kicker,
.album-head .kicker {
  display: none;
}

.album-head-row {
  justify-content: flex-end;
}

.hero-signature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-signature img {
  display: block;
  width: min(320px, 84%);
  height: auto;
  margin-left: -4px;
  mix-blend-mode: multiply;
}

.hero-signature em {
  font-size: clamp(1.5rem, 2.45vw, 2.2rem);
  line-height: 1.06;
}

/* ---------- Проекты: меню и статьи ---------- */

.project-layout,
.writing-layout {
  margin-top: clamp(28px, 4vw, 44px);
}

.project-content,
.writing-content {
  min-width: 0;
}

.project-article,
.poem {
  scroll-margin-top: 110px;
}

.project-article + .project-article {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.project-article-head {
  margin-bottom: clamp(22px, 3vw, 32px);
  padding-bottom: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.project-article-meta {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-article-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.project-figure {
  margin: clamp(26px, 4vw, 42px) 0;
}

.project-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.project-figure figcaption {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.project-list {
  padding-left: 22px;
  list-style: decimal;
}

.project-list li {
  padding-left: 0;
}

.project-list li::before {
  display: none;
}

.album-link.is-active .album-title {
  color: var(--accent);
}

.album-link.is-active .album-thumb {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

/* ---------- Стихи: меню ---------- */

.poem-nav {
  display: grid;
  gap: 0;
}

.poem-link {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: center;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.poem-link:hover,
.poem-link.is-active {
  color: var(--accent);
}

.poem-link.is-active {
  padding-left: 0;
}

.poem-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.writing-intro {
  margin-bottom: clamp(32px, 5vw, 52px);
}

/* ---------- Увеличение содержательных изображений ---------- */

main img[data-zoom] {
  cursor: zoom-in;
}

@media (max-width: 1160px) {
  .writing-layout .album-groups {
    display: block;
    overflow: visible;
  }

  .writing-layout .album-group {
    flex: 0 0 100%;
    width: 100%;
  }

  .poem-nav {
    display: grid;
    gap: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .poem-link {
    flex: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-signature img {
    width: min(250px, 88%);
  }

  .project-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}
