/* Сайт Александра Лыткина. Палитра и шрифты из концепции «Каталог мастерской». */
:root {
  --paper: #F6F5F1; --paper-2: #EDEBE5; --ink: #1E1C19; --muted: #6E6960; --rule: #D9D5CC; --accent: #2C4A6E; --field: #FBFAF8; --field-b: #C9C4B9;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "PT Sans", Arial, sans-serif;
  --wrap: 1440px; --pad: 20px;
}
@media (min-width: 640px) { :root { --pad: 32px; } }
@media (min-width: 1000px) { :root { --pad: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
@media (min-width: 640px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lg { font-size: 1.1em; line-height: 1.55; }
.small { font-size: 0.88em; }
.muted { color: var(--muted); }
.u { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.u:hover { color: var(--ink); }
.eyebrow { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Шапка */
.hdr { border-bottom: 1px solid var(--rule); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.hdr__name { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; white-space: nowrap; }
.hdr__menu { font: inherit; font-weight: 500; font-size: 15px; background: none; border: 0; color: var(--ink); padding: 10px 0; cursor: pointer; }
.nav__top { display: none; }
.nav__close { font: inherit; font-weight: 500; font-size: 15px; background: none; border: 0; color: var(--ink); padding: 10px 0; cursor: pointer; }
.nav__links a { display: block; }
.nav__lang { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.nav__lang .is-current { color: var(--ink); }
@media (max-width: 999px) {
  .nav { position: fixed; inset: 0; background: var(--paper); z-index: 90; padding: 18px var(--pad) 32px; overflow: auto; display: none; }
  .nav.is-open { display: block; }
  .nav__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
  .nav__links { display: flex; flex-direction: column; margin-top: 6px; }
  .nav__links a { font-family: var(--serif); font-weight: 600; font-size: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .nav__links a[aria-current] { color: var(--accent); }
  .nav__lang { margin-top: 24px; font-size: 15px; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 1000px) {
  .hdr__in { padding-top: 24px; padding-bottom: 24px; }
  .hdr__name { font-size: 22px; }
  .hdr__menu { display: none; }
  .nav { display: flex; align-items: center; gap: 40px; flex: 1; justify-content: flex-end; }
  .nav__links { display: flex; gap: 28px; font-size: 16px; font-weight: 500; white-space: nowrap; }
  .nav__links a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
  .nav__links a[aria-current] { border-bottom-color: var(--ink); }
  .nav__links a:hover { color: var(--accent); }
}
@media (min-width: 1200px) { .nav__links { gap: 32px; font-size: 17px; } }

/* Подвал */
.ftr { border-top: 1px solid var(--rule); margin-top: 72px; }
.ftr__in { display: flex; flex-direction: column; gap: 8px; padding-top: 28px; padding-bottom: 36px; font-size: 15px; }
@media (min-width: 640px) { .ftr__in { flex-direction: row; justify-content: space-between; align-items: flex-start; font-size: 16px; padding-top: 40px; padding-bottom: 48px; } .ftr { margin-top: 80px; } }

/* Главная */
.hero { display: grid; gap: 24px; padding-top: 28px; }
.hero__img img { width: 100%; }
.hero__text { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.hero__top { display: flex; flex-direction: column; gap: 16px; }
.hero__name { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.05; }
.hero__tag { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + 0.9vw, 1.65rem); line-height: 1.35; max-width: 22em; margin: 0; }
.hero__lead { max-width: 32em; margin: 0; }
.hero__label { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 32em; }
.hero__label-t { font-family: var(--serif); font-weight: 600; font-size: 1.1em; }
.hero__label .u { margin-top: 8px; align-self: flex-start; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; padding-top: 72px; align-items: stretch; }
  .hero__text { padding-top: 8px; }
}
.block { padding-top: 48px; }
.block--rule { border-top: 1px solid var(--rule); margin-top: 56px; padding-top: 56px; }
@media (min-width: 900px) { .block { padding-top: 72px; } .block--rule { margin-top: 72px; padding-top: 64px; } }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
.tile__img { aspect-ratio: 3 / 4; background: var(--paper-2); overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__t { font-family: var(--serif); font-weight: 600; font-size: 1.1em; margin-top: 12px; line-height: 1.2; }
.tile__s { margin-top: 4px; }
.about-teaser { display: grid; gap: 24px; }
.about-teaser__img { width: 40%; max-width: 320px; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.about-teaser__img img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser__text { display: flex; flex-direction: column; gap: 18px; max-width: 40em; }
.about-teaser__text .u { align-self: flex-start; }
@media (min-width: 900px) { .about-teaser { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; align-items: start; } .about-teaser__img { width: 320px; } }

/* Разделы */
.sec-head { padding-top: 36px; display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.sec-head .lg { max-width: 40em; }
@media (min-width: 900px) { .sec-head { padding-top: 64px; gap: 18px; } }
.empty { padding: 48px 0; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 32px; border-bottom: 1px solid var(--rule); font-weight: 500; font-size: 16px; }
.tabs a { padding: 8px 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a:hover { color: var(--ink); }
.group { padding-top: 36px; }
.book { display: grid; gap: 20px; margin-bottom: 32px; }
.book__t { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.15; margin-bottom: 8px; }
.book__text p { max-width: 40em; }
@media (min-width: 900px) { .book { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; } .group { padding-top: 44px; } }
.kv { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--rule); }
.kv div { display: flex; justify-content: space-between; gap: 16px; }
.kv dt { font-weight: 400; }
.kv dd { margin: 0; color: var(--ink); text-align: right; }
.toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.sort { display: flex; gap: 20px; font-weight: 500; }
.sort button { font: inherit; background: none; border: 0; padding: 0 0 4px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.sort button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 32px 20px; padding-top: 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { gap: 44px 32px; padding-top: 40px; } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 12px; }
.card__img { background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__t { font-family: var(--serif); font-weight: 600; font-size: 1em; line-height: 1.3; }

/* Работа */
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 500; }
.viewer-bar__back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
.viewer { display: grid; gap: 24px; padding-top: 20px; }
.viewer__img a { display: block; cursor: zoom-in; }
.viewer__img img { width: 100%; }
.viewer__label { display: flex; flex-direction: column; gap: 16px; }
.viewer__t { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; }
.viewer__sub { font-family: var(--serif); font-size: 1.15em; line-height: 1.4; margin: 0; }
.kv--rows { font-size: 15px; padding-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 1px solid var(--accent); color: var(--accent); font-weight: 500; font-size: 16px; align-self: flex-start; }
.btn:hover { background: var(--accent); color: var(--paper); }
.btn--solid { background: var(--accent); color: var(--paper); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.viewer__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 500; }
.viewer__nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
@media (max-width: 899px) { .btn { width: 100%; } }
@media (min-width: 900px) {
  .viewer { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 64px; padding-top: 32px; align-items: start; }
  .viewer__img { position: sticky; top: 24px; }
  .viewer__img img { width: 100%; height: auto; max-height: calc(100vh - 48px); object-fit: contain; object-position: left top; }
  .viewer__label { padding-top: 16px; }
  .viewer__nav { margin-top: 24px; }
}
.lightbox { position: fixed; inset: 0; background: var(--paper); z-index: 95; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox__close { position: absolute; top: 14px; right: var(--pad); font: inherit; font-weight: 500; font-size: 15px; background: var(--paper); border: 1px solid var(--rule); padding: 8px 14px; cursor: pointer; z-index: 2; }
.lightbox__stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__stage.is-zoomed { display: block; cursor: zoom-out; }
.lightbox__stage.is-zoomed img { max-width: none; max-height: none; width: 200%; margin: 0; }

/* О художнике, публикации */
.about-top { display: grid; gap: 24px; padding-top: 36px; }
.about-top__img { aspect-ratio: 4 / 5; max-width: 460px; background: var(--paper-2); overflow: hidden; }
.about-top__img img { width: 100%; height: 100%; object-fit: cover; }
.about-top__text { display: flex; flex-direction: column; gap: 16px; }
.about-top__text .lg { max-width: 30em; }
@media (min-width: 900px) { .about-top { grid-template-columns: 460px minmax(0, 1fr); gap: 72px; align-items: end; padding-top: 72px; } .about-top__text { padding-bottom: 8px; gap: 24px; } }
.facts { display: grid; gap: 22px; padding-top: 40px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; padding-top: 56px; } }
.fact { padding-top: 14px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.5; }
.fact__k { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.two { display: grid; gap: 20px; }
.two__side { display: flex; flex-direction: column; gap: 8px; }
.two__main { max-width: 46em; }
@media (min-width: 900px) { .two { grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: start; } }
.prose { font-family: var(--serif); font-size: 1.15em; line-height: 1.55; }
.prose p { margin-bottom: 1em; }
.pending { color: var(--muted); border: 1px dashed var(--rule); padding: 20px 24px; font-size: 0.95em; font-family: var(--sans); }
.quote { margin: 28px 0 0; padding-left: 24px; border-left: 2px solid var(--accent); display: flex; flex-direction: column; gap: 10px; }
.quote p { margin: 0; }
.years { margin: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 20px; font-size: 16px; line-height: 1.5; }
.years div { display: contents; }
.years dt { color: var(--muted); font-variant-numeric: tabular-nums; }
.years dd { margin: 0; }
.years--tight { gap: 8px 20px; grid-template-columns: 56px minmax(0, 1fr); }
.cols2 { display: grid; gap: 40px; }
.cols2 h2 { margin-bottom: 18px; }
@media (min-width: 900px) { .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; } }
.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }
.videos { display: grid; gap: 28px; }
@media (min-width: 640px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.video { display: flex; flex-direction: column; gap: 10px; }
.video__box { aspect-ratio: 16 / 9; background: var(--paper-2); display: flex; align-items: center; justify-content: center; position: relative; }
.video__play { width: 56px; height: 56px; border: 1px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.video__box--off .video__play { opacity: 0.45; }
.video__t { font-family: var(--serif); font-weight: 600; font-size: 1.1em; line-height: 1.25; }
.list { display: flex; flex-direction: column; }
.list__i { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.list__y { font-variant-numeric: tabular-nums; padding-top: 3px; font-size: 16px; }
.list__t { font-family: var(--serif); font-weight: 600; font-size: 1.1em; line-height: 1.3; }
.list__t a:hover { color: var(--accent); }

/* Контакты */
.contacts { display: grid; gap: 40px; }
.contacts__info { display: flex; flex-direction: column; gap: 28px; max-width: 32em; }
.contacts__big { font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.3; margin-top: 6px; word-break: break-word; display: inline-block; }
.contacts__hint { padding-top: 22px; border-top: 1px solid var(--rule); margin: 0; }
@media (min-width: 900px) { .contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 96px; } }
.form { display: flex; flex-direction: column; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.form input, .form textarea { font: inherit; font-weight: 400; font-size: 17px; color: var(--ink); background: var(--field); border: 1px solid var(--field-b); padding: 13px 16px; border-radius: 0; width: 100%; }
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form__row { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form__row .btn { align-self: stretch; }
@media (min-width: 640px) { .form__row { flex-direction: row; align-items: center; gap: 24px; } .form__row .btn { align-self: auto; } }
.form button { font: inherit; cursor: pointer; }
.form .cf-turnstile { min-height: 65px; }
.form button:disabled { opacity: 0.6; cursor: default; }

/* Уведомление */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 15px; z-index: 100; opacity: 0; transition: opacity 0.2s; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.is-on { opacity: 0.96; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print { .hdr__menu, .toast, .lightbox, .viewer__nav, .btn { display: none !important; } .nav { display: none; } }
