@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/playfair-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #26271e;
  --orange: #c53d14;
  --muted: #5e5e51;
  --line: #dcdcd1;
  --display: 'Playfair Display', Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 Inter, Arial, sans-serif; }
.mast, main { width: min(89%, 78rem); margin-inline: auto; }
.mast { min-height: 5.35rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--orange); }
.brand { display: inline-flex; align-items: center; gap: .48rem; font-weight: 700; font-size: 1.62rem; letter-spacing: -.07em; text-decoration: none; }
.brand img { width: 2.2rem; height: 2.2rem; }
.home-link { font-size: .92rem; font-weight: 550; padding: .62rem 1.1rem; border-radius: 3rem; border: 1px solid #b6b5a9; text-decoration: none; }
main { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem,6vw,6rem); align-items: center; padding-block: clamp(2.5rem,5vw,5rem); }
.panel { width: min(100%, 30rem); }
.section-label { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: .82rem; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; font-weight: 680; color: var(--muted); }
.section-label span { font: 1.55rem/1 Arial,sans-serif; color: var(--orange); }
h1 { margin: 1.15rem 0 1.8rem; font-size: clamp(2.6rem,4.1vw,4.4rem); line-height: 1.04; font-weight: 580; letter-spacing: -.065em; }
h1 em, figcaption em { color: var(--orange); font-family: var(--display); font-weight: 500; }
.account-form { display: grid; gap: 1.1rem; }
label { display: grid; gap: .4rem; font-size: .98rem; font-weight: 600; }
input:not([type=hidden]) { width: 100%; min-height: 3.18rem; border: 1px solid #99998e; padding: .7rem .9rem; border-radius: .8rem; background: #fffdf8; color: var(--ink); font: inherit; font-weight: 450; }
small, .lead, .related { color: var(--muted); }
small { font-size: .89rem; font-weight: 450; }
.account-form > small { margin-top: -.7rem; }
button { cursor: pointer; margin-top: .25rem; min-height: 3.28rem; border: 0; border-radius: 3rem; background: var(--orange); color: white; font: 650 1rem/1.4 Inter,Arial,sans-serif; padding: .8rem 1.4rem; }
button:hover { background: #a9300d; }
:focus-visible { outline: 3px solid #1466a1; outline-offset: 3px; }
.related { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem 1.1rem; font-size: .94rem; }
.related p { margin: 0; }
.related a { font-weight: 580; }
.lead { font-size: 1.1rem; }
.error { margin: 0; border-left: 3px solid #ac351a; padding: .65rem .85rem; background: #ffebe4; color: #84230f; }
figure { position: relative; margin: 0; height: clamp(29rem,44vw,38rem); overflow: hidden; border-radius: 1.25rem 4.6rem 1.25rem 1.25rem; background: #d9ac83; }
.portrait { height: 100%; width: 100%; object-fit: cover; object-position: 52% 42%; display: block; }
figure::after { content: ''; position: absolute; inset: 46% 0 0; background: linear-gradient(transparent, #24170af0); }
figcaption { position: absolute; z-index: 1; bottom: 1.8rem; left: 2rem; color: #fffcf4; font-size: clamp(2rem,3.2vw,3.25rem); line-height: 1.06; letter-spacing: -.05em; font-weight: 570; }
figcaption em { color: #ffd4a8; }
@media (prefers-reduced-motion: no-preference) {
  .panel, figure { animation: arrive .35s ease-out; }
  button, a { transition: color .16s, background-color .16s; }
  @keyframes arrive { from { opacity: .5; transform: translateY(5px); } }
}
@media (max-width: 47rem) {
  .mast { min-height: 4.25rem; }
  main { grid-template-columns: 1fr; max-width: 33rem; padding-block: 1.9rem 2.2rem; gap: 2rem; }
  .panel { width: 100%; }
  .brand { font-size: 1.4rem; }
  .home-link { white-space: nowrap; font-size: .87rem; padding: .57rem .78rem; }
  .brand img { width: 2rem; height: 2rem; }
  figure { height: auto; aspect-ratio: 1.9; border-top-right-radius: 3rem; }
  .portrait { object-position: 50% 33%; }
  figcaption { bottom: 1rem; left: 1.1rem; font-size: 1.65rem; }
}
