/* Кирилл Шварценберг — единая система оформления */
:root {
  --bg: #f7f3eb;
  --paper: #f7f3eb;
  --panel: #eee7dd;
  --ink: #30221d;
  --muted: #6f6159;
  --accent: #9c4f32;
  --line: #d4c8bc;
  --display: Georgia, 'Times New Roman', serif;
  --text: Arial, Helvetica, sans-serif;
  color-scheme: light;
  font-family: var(--text);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3, h4, dl, dd { margin: 0; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 40; min-height: 44px; padding: 12px 18px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
::selection { background: var(--accent); color: var(--paper); }

/* Шапка и первый экран */
.header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; min-height: 44px; }
.brand-mark { width: 38px; height: 38px; color: var(--accent); }
.brand-name { max-width: 150px; font-size: 10px; line-height: 1.45; letter-spacing: .12em; text-transform: uppercase; }
.header nav { display: flex; gap: 30px; }
.header nav a { position: relative; }
.header nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 7px; height: 1px; background: currentColor; transition: right .2s ease; }
.header nav a:hover::after, .header nav a:focus-visible::after { right: 0; }
.header nav a, .header-contact { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .03em; }
.header-contact { justify-self: end; gap: 12px; }
.header-contact .icon { width: 21px; height: 21px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: 'intro photo' 'details photo'; grid-template-rows: max-content 1fr; align-items: start; gap: 42px 68px; padding-block: 48px 100px; }
.hero-intro { grid-area: intro; min-width: 0; padding-top: 24px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; font-size: 11px; font-weight: 400; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1, h2, .material strong, .credit h4, .stage-credit h4, .contact-name { font-family: var(--display); font-weight: 400; }
h1 { line-height: 1; letter-spacing: -.06em; }
.name-first, .name-last { display: block; }
.name-first { font-size: clamp(92px, 9vw, 142px); }
.name-last { margin-top: 7px; font-size: clamp(44px, 4.7vw, 68px); letter-spacing: -.05em; white-space: nowrap; }
.hero-note { margin-top: 32px; font-size: 19px; line-height: 1.65; color: var(--muted); }
.hero-photo { grid-area: photo; display: block; width: 100%; aspect-ratio: 2 / 3; background: #211d19; }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; }
.hero-details { grid-area: details; min-width: 0; align-self: end; padding-bottom: 2px; }
.parameters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; padding-block: 24px; border-block: 1px solid var(--line); }
.parameters div { min-width: 0; }
.parameters dt { margin-bottom: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.parameters dd { font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; font-size: 13px; line-height: 1.4; }
.button { min-height: 54px; padding: 13px 20px; border: 1px solid currentColor; transition: color .2s, background .2s, border-color .2s; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.primary:hover { background: #7e3e29; border-color: #7e3e29; color: var(--paper); }
.text-link { padding-block: 10px; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.text-link:hover { border-color: currentColor; }
.text-link .icon, .button .icon { width: 23px; height: 23px; }

/* Общий ритм разделов */
.section { padding-block: 112px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-index { display: inline-block; font-family: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .05em; padding-right: 14px; border-right: 1px solid var(--line); }
h2 { font-size: clamp(42px, 4.7vw, 68px); line-height: 1.13; letter-spacing: -.045em; }
h2 .title-accent { color: var(--accent); }

/* Видео: большой экран, спокойная типографика */
.video-section { --accent: #e3b699; --muted: #bcaea2; --line: #50463e; background: #211d19; color: var(--paper); border: 0; }
.video-shell { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #16120f; }
.video-cover { display: grid; grid-template-columns: 48% 52%; width: 100%; height: 100%; padding: 0; border: 0; background: #16120f; color: var(--paper); text-align: left; }
.video-cover-photo { display: block; min-width: 0; height: 100%; overflow: hidden; }
.video-cover-photo img { width: 100%; height: 100%; object-fit: contain; }
.video-cover-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-width: 0; padding: clamp(26px, 4.2vw, 66px); }
.video-camera { width: 70px; height: 70px; margin-bottom: auto; color: var(--accent); }
.video-cover-label { font-family: var(--display); font-size: clamp(28px, 3.5vw, 52px); line-height: 1.2; letter-spacing: -.045em; }
.video-cover-duration { display: block; width: 100%; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.video-cover:hover { background: #221b16; }
.video-shell iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.video-fallback { margin-top: 14px; color: var(--muted); }
.video-fallback a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; }
.video-fallback .icon { width: 20px; height: 20px; }
.video-materials { margin-top: 54px; }
.video-materials .eyebrow { margin-bottom: 18px; }
.materials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.material { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 12px; padding-block: 23px; min-height: 144px; border-block: 1px solid var(--line); }
.material-index { grid-column: 1 / -1; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.material-copy { min-width: 0; }
.material strong { display: block; font-size: clamp(22px, 2.15vw, 29px); line-height: 1.25; letter-spacing: -.025em; }
.material small { display: block; margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.material > .icon { width: 22px; height: 22px; margin-top: 3px; }

/* Фотографии в естественных пропорциях */
.gallery-section { background: var(--panel); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 56px 22px; }
.gallery figure { min-width: 0; }
.gallery-lead { grid-column: 1 / span 5; grid-row: 1; }
.gallery-full { grid-column: 7 / span 3; grid-row: 1; align-self: end; }
.gallery-smile { grid-column: 10 / span 3; grid-row: 1; margin-top: 18%; }
.gallery-denim { grid-column: 1 / span 4; grid-row: 2; }
.gallery-casual { grid-column: 5 / span 4; grid-row: 2; }
.gallery-mono { grid-column: 9 / span 4; grid-row: 2; }
.photo-open, .photo-open picture { display: block; width: 100%; }
.photo-open { position: relative; background: #d8cfc6; outline-offset: 5px; }
.photo-open img { width: 100%; height: auto; }
.enlarge { position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--paper); background: #211d19dc; transition: color .2s, background .2s; }
.enlarge .icon { width: 24px; height: 24px; }
.photo-open:hover .enlarge { color: var(--ink); background: var(--paper); }

/* Работы: кино и сцена */
.screen-work { margin-bottom: 86px; }
.screen-work h3, .stage-heading h3 { margin-bottom: 24px; font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.credit { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, 1fr); align-items: baseline; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line); }
.credit:last-child { border-bottom: 1px solid var(--line); }
.credit h4 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.03em; }
.credit p { font-size: 16px; }
.credit > span { font-size: 13px; line-height: 1.65; color: var(--muted); }
.stage-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.stage-layout figure picture { display: block; }
.stage-layout figure img { width: 100%; height: auto; }
.stage-layout figcaption { padding-top: 14px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.stage-credit { padding: 21px 0; border-top: 1px solid var(--line); }
.stage-credit h4 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.stage-credit p { margin-top: 8px; font-size: 15px; }
.stage-credit p span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.stage-list .repertoire { margin-top: 20px; font-size: 12px; }

/* Биография и навыки */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.bio { max-width: 660px; font-family: var(--display); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.5; letter-spacing: -.015em; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.skills p { min-width: 0; font-size: 15px; line-height: 1.75; }
.skills b { display: block; margin-bottom: 14px; font-family: var(--display); font-size: 27px; line-height: 1.25; font-weight: 400; }
.print-link { margin-top: 36px; }

/* Контакты и завершающая навигация */
.contact-section { background: var(--accent); color: var(--paper); border: 0; }
.contact-section .eyebrow, .contact-note { color: var(--paper); }
.contact-section .section-index { border-color: #f7f3eb60; }
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 80px; align-items: end; }
.contact-note { margin-top: 30px; font-size: 17px; line-height: 1.7; }
.contact-route { min-width: 0; }
.contact-role { margin-bottom: 12px; font-size: 11px; line-height: 1.5; letter-spacing: .1em; }
.contact-name { margin-bottom: 24px; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.15; }
.contact-actions { display: grid; gap: 8px; justify-items: start; }
.contact-email:hover { color: var(--paper); border-bottom-color: var(--paper); }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; border-bottom: 1px solid #f7f3eb70; }
.contact-button { width: 100%; max-width: 430px; border-color: var(--paper); }
.contact-button:hover { color: var(--ink); background: var(--paper); }
.contact-section a:focus-visible { outline-color: var(--paper); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 26px; }
footer a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; color: var(--muted); }
footer .icon { width: 21px; height: 21px; }
footer .social-links { display: flex; flex: 1 1 450px; flex-wrap: wrap; align-items: center; gap: 0 24px; min-width: 0; }
footer .back-to-top { margin-left: auto; white-space: nowrap; }

/* Просмотр оригинального фото */
dialog { max-width: 95vw; max-height: 95dvh; padding: 20px; border: 1px solid #50463e; background: #211d19; color: var(--paper); }
dialog::backdrop { background: #000d; }
dialog a:focus-visible, dialog button:focus-visible { outline-color: var(--paper); }
dialog #full-photo { width: auto; height: auto; max-width: 85vw; max-height: 74dvh; margin: auto; object-fit: contain; }
.dialog-top { display: flex; align-items: center; justify-content: flex-end; gap: 25px; margin-bottom: 16px; }
#photo-caption:empty { display: none; }
.dialog-top button, #download-photo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 12px; }
.dialog-top button { padding: 8px 14px; border: 1px solid #50463e; background: none; color: inherit; }
#download-photo:hover { color: var(--paper); border-bottom-color: var(--paper); }
#download-photo { margin-top: 10px; padding-block: 8px; border-bottom: 1px solid #50463e; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .header-inner { gap: 24px; }
  .brand-name { display: none; }
  .header nav { gap: 24px; }
  .hero { gap: 32px 36px; }
  .hero-intro { padding-top: 8px; }
  .name-first { font-size: 9vw; }
  .name-last { font-size: 4.7vw; }
  .hero-note { font-size: 17px; }
  .parameters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .parameters dd { font-size: 16px; }
  .section { padding-block: 88px; }
  .materials-grid { gap: 24px; }
  .gallery { gap: 44px 16px; }
  .stage-layout { gap: 36px; }
  .about-intro, .contact { gap: 48px; }
  .skills { gap: 28px; }
}
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; gap: 0; padding-block: 38px 72px; }
  .hero-intro { width: 100%; padding-top: 0; }
  .name-first { font-size: clamp(78px, 13vw, 112px); }
  .name-last { font-size: clamp(39px, 7vw, 60px); }
  .hero-note { margin-top: 25px; }
  .hero-photo { width: min(100%, 520px); align-self: center; margin-top: 32px; }
  .hero-details { width: 100%; margin-top: 30px; }
  .parameters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .gallery figure { grid-column: auto; grid-row: auto; align-self: start; margin: 0; }
  .stage-layout { grid-template-columns: 1fr; gap: 38px; }
  .stage-credit { display: grid; grid-template-columns: 1fr 1fr; align-items: baseline; gap: 22px; }
  .stage-credit p { margin-top: 0; }
  .about-intro, .contact { grid-template-columns: 1fr; gap: 36px; }
  .bio { max-width: none; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 130px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 104px; grid-template-columns: 1fr auto; gap: 0 12px; padding-block: 8px; }
  .brand-name { display: block; max-width: 112px; font-size: 8px; letter-spacing: .1em; }
  .brand-mark { width: 34px; height: 34px; }
  .header nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 10px; }
  .header nav a, .header-contact { font-size: 11px; }
  .header-contact { gap: 8px; }
  .header-contact .icon { width: 20px; height: 20px; }
  .hero { padding-top: 30px; }
  .hero .eyebrow { font-size: 9px; margin-bottom: 22px; letter-spacing: .12em; }
  .name-first { font-size: clamp(65px, 15vw, 100px); }
  .name-last { font-size: clamp(32px, 7.8vw, 51px); }
  .hero-note { font-size: 16px; line-height: 1.7; }
  .parameters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .parameters dt { font-size: 11px; }
  .parameters dd { font-size: 16px; }
  .actions { gap: 16px 22px; }
  .button, .text-link { font-size: 12px; }
  .section { padding-block: 70px; }
  .section-head { flex-direction: column; align-items: start; gap: 22px; margin-bottom: 32px; }
  .eyebrow { font-size: 10px; margin-bottom: 18px; }
  h2 { font-size: clamp(38px, 9.4vw, 54px); }
  .video-shell { aspect-ratio: auto; }
  .video-cover { height: auto; grid-template-columns: 1fr; }
  .video-cover-photo { height: auto; aspect-ratio: 4 / 5; }
  .video-cover-copy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 20px; }
  .video-camera { width: 30px; height: 30px; margin: 0; }
  .video-cover-label { font-size: clamp(17px, 4.4vw, 27px); letter-spacing: -.035em; }
  .video-cover-duration { width: auto; margin: 0; padding: 0; border: 0; font-size: 11px; letter-spacing: .04em; }
  .video-materials { margin-top: 38px; }
  .materials-grid { grid-template-columns: 1fr; gap: 0; }
  .material { grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; min-height: 0; padding-block: 22px; border-bottom: 0; }
  .material:last-child { border-bottom: 1px solid var(--line); }
  .material-index { grid-column: auto; margin-top: 6px; }
  .material strong { font-size: 24px; }
  .gallery { gap: 18px 14px; }
  .enlarge { right: 8px; bottom: 8px; }
  .screen-work { margin-bottom: 60px; }
  .credit { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }
  .credit h4 { font-size: 29px; }
  .credit p { font-size: 15px; }
  .credit > span { font-size: 12px; }
  .stage-credit { display: block; }
  .stage-credit p { margin-top: 8px; }
  .stage-credit h4 { font-size: 28px; }
  .skills { grid-template-columns: 1fr; margin-top: 38px; padding-top: 0; border: 0; gap: 0; }
  .skills p { border-top: 1px solid var(--line); padding-block: 24px; }
  .skills b { font-size: 25px; margin-bottom: 10px; }
  .bio { font-size: 25px; }
  .contact-note { font-size: 16px; margin-top: 25px; }
  .contact-name { font-size: 34px; }
  footer { gap: 18px; }
  dialog { padding: 12px; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 32px); }
  .name-first { font-size: 64px; }
  .name-last { font-size: clamp(29px, 8vw, 32px); }
  .header nav a, .header-contact { font-size: 10px; }
  .brand-name { max-width: 105px; }
  .gallery { gap: 14px 10px; }
  .video-cover-copy { padding: 16px 12px; gap: 10px; }
  .video-camera { width: 26px; height: 26px; }
  .video-cover-label { font-size: 17px; }
  .video-cover-duration { font-size: 10px; }
  .contact-name { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { color: #000; background: #fff; }
  body { color: #000; background: #fff; }
  .header, .video-section, .gallery-section, .contact-section, footer, dialog, .skip, .actions, .section-head > .text-link { display: none !important; }
  .wrap { width: 100%; }
  .section { padding-block: 24px; break-inside: avoid; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 180px; grid-template-areas: 'intro photo' 'details photo'; gap: 14px; padding-block: 0 26px; }
  .hero-intro { padding: 0; }
  .hero-photo { width: 180px; margin: 0; max-height: 270px; }
  .hero-details { margin: 0; }
  .name-first { font-size: 54px; }
  .name-last { font-size: 32px; }
  .hero-note { margin-top: 16px; font-size: 12px; }
  .parameters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-block: 14px; }
  .parameters dd { font-size: 12px; }
  .stage-layout { grid-template-columns: 1fr; }
  .stage-credit { padding-block: 10px; }
  .stage-credit h4 { font-size: 22px; }
  .about-intro { grid-template-columns: 1fr; gap: 18px; }
  .skills { margin-top: 24px; }
  a { color: inherit; }
}
