@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/golos-text-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --night: #100d0e;
  --paper: #f5f1eb;
  --ink: #252024;
  --muted: #5a5055;
  --wine: #871d2e;
  --gold: #ecc589;
  --white: #fffdfa;
  --line: #d9cec8;
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.58; }
a { color: inherit; text-underline-offset: 0.22em; }
button, input, textarea { font: inherit; }
:where(a, button, input, textarea) { touch-action: manipulation; }
:where(a, button, input, textarea):focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
.opening { background: var(--night); color: #fbf4e9; }
.opening :where(.header, .hero, .footer) :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1160px, calc(100% - 2 * max(20px, 5vw))); margin-inline: auto; }
.skip { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2; background: var(--gold); color: var(--night); padding: 0.7rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header { min-height: 78px; border-bottom: 1px solid #403238; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 1.16rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.brand .brand-logo { width: 190px; height: auto; display: block; }
nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 34px); }
nav a, .footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.88rem; }
nav a { text-decoration: none; }
nav a:hover, .footer a:hover { color: var(--gold); text-decoration: underline; }
.nav-apply { color: var(--gold); font-weight: 650; }
.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: clamp(18px, 4vw, 60px); min-height: min(640px, 66vw); padding-block: clamp(42px, 7vw, 100px); }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 4.3vw, 3.55rem); font-weight: 760; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 760; }
h3 { font-size: 1.32rem; font-weight: 730; }
.lead { color: #e1d5d4; font-size: clamp(1rem, 1.8vw, 1.21rem); max-width: 36ch; margin: 22px 0 29px; }
.hero-picture { position: relative; min-width: 0; isolation: isolate; }
.hero-picture img { display: block; width: 100%; height: auto; }
.hero-picture::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, var(--night), transparent 24%), linear-gradient(to right, var(--night), transparent 12%, transparent 88%, var(--night)); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 12px 24px; border: 0; border-radius: 5px; background: var(--wine); color: var(--white); font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #651424; }
.hero .button { background: var(--gold); color: #261a14; }
.hero .button:hover { background: #f6d8a9; }
.button:disabled { background: #d9cec8; color: #5a5055; cursor: default; }
.paper { background: var(--paper); color: var(--ink); }
.team, .apply { padding-block: clamp(48px, 8vw, 100px); scroll-margin-top: 18px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.section-heading p, .apply-copy p { margin: 0; max-width: 48ch; color: var(--muted); }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 34px; }
.benefits article { padding-top: 18px; border-top: 2px solid var(--wine); }
.benefits p { max-width: 34ch; margin: 10px 0 0; color: var(--muted); }
.apply { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: clamp(24px, 5vw, 76px); border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 75px); }
.apply-copy p { margin-top: 18px; }
.entry-title { margin-top: 26px; font-size: 1.05rem; line-height: 1.32; }
.entry-requirements { display: grid; gap: 8px; padding-inline-start: 20px; margin: 12px 0 0; max-width: 42ch; color: var(--muted); }
.entry-requirements li::marker { color: var(--wine); }
.apply-copy .entry-note { margin-top: 12px; font-size: 0.88rem; }
.form-card { min-width: 0; padding: clamp(18px, 4vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.form-card fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .consent { font-size: 0.94rem; }
.field label { font-weight: 650; }
.field label span { color: var(--wine); }
.field :where(input, textarea) { width: 100%; min-width: 0; min-height: 48px; padding: 10px 11px; border: 1px solid #9e8e90; border-radius: 5px; background: #fff; color: var(--ink); font-size: 1rem; }
.field :where(input, textarea)::placeholder { color: #655960; opacity: 1; }
.field textarea { resize: vertical; }
.field :where(input, textarea):disabled { opacity: 1; background: #f6f2ef; color: var(--muted); }
.full { grid-column: 1 / -1; }
.required-note, .preview-note { color: var(--muted); font-size: 0.88rem; margin: 0 0 18px; }
.preview-note { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.consent { color: var(--muted); margin: 18px 0; }
.consent label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.consent input { width: 19px; height: 19px; flex: 0 0 19px; margin: 0; accent-color: var(--wine); }
.consent a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 29px; color: var(--wine); }
.contacts { display: grid; grid-template-columns: minmax(0, .75fr) repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(12px, 2.5vw, 28px); padding-block: clamp(32px, 6vw, 66px); scroll-margin-top: 18px; }
.contacts h2 { font-size: clamp(1.65rem, 3.4vw, 2.6rem); }
.contact-card { display: flex; flex-direction: column; gap: 5px; min-height: 44px; padding: 16px; border: 1px solid #59454b; border-radius: 6px; text-decoration: none; }
.contact-card strong { font-size: 1.08rem; }
.contact-card span { color: #e1d5d4; font-size: .9rem; }
.contact-card .contact-handle { color: var(--gold); }
.contact-card:hover, .contact-card:focus-visible { border-color: var(--gold); outline-color: var(--gold); }
.footer { min-height: 82px; color: #e1d5d4; padding-block: 12px; border-top: 1px solid #403238; }
.reading { max-width: 720px; padding-block: 42px; }
.reading h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: 20px; }
.reading p { max-width: 62ch; color: var(--muted); }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 16px; padding-block: 34px 24px; }
  .hero-picture { width: min(100%, 560px); margin-inline: auto; }
  .hero-picture img { max-height: 340px; object-fit: cover; }
  .section-heading, .apply { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .benefits { gap: 16px; }
}
@media (max-width: 500px) {
  .header { min-height: 68px; }
  .brand { font-size: 1.05rem; gap: 5px; }
  .brand .brand-logo { width: 140px; }
  .nav-about { display: none; }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  nav a { font-size: 0.79rem; }
  h1 { font-size: clamp(1.95rem, 8.5vw, 2.65rem); }
  .lead { margin-block: 15px 20px; }
  .benefits, .fields { grid-template-columns: minmax(0, 1fr); }
  .benefits { margin-top: 26px; }
  .apply .button { width: 100%; }
}

/* Full-bleed opening image with readable copy over the artwork. */
.hero.wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: clamp(620px, calc(100svh - 78px), 920px);
  padding: 64px 0;
  overflow: hidden;
}
.hero-copy {
  width: min(1160px, calc(100% - 2 * max(20px, 5vw)));
  margin-inline: auto;
  z-index: 1;
}
.hero-copy h1 { max-width: 610px; }
.hero-copy .lead { max-width: 36ch; }
.hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: -1;
}
.hero-picture img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
.hero-picture::after {
  background: linear-gradient(90deg, rgba(16,13,14,.96) 0%, rgba(16,13,14,.88) 29%, rgba(16,13,14,.45) 53%, rgba(16,13,14,.05) 80%),
              linear-gradient(0deg, rgba(16,13,14,.55), transparent 24%);
}
@media (max-width: 760px) {
  .hero.wrap {
    align-items: flex-end;
    min-height: clamp(660px, calc(100svh - 68px), 900px);
    padding: 280px 0 36px;
  }
  .hero-copy h1 { max-width: 560px; }
  .hero-picture img { object-position: 58% center; }
  .hero-picture::after {
    background: linear-gradient(180deg, rgba(16,13,14,.05) 0%, rgba(16,13,14,.18) 26%, rgba(16,13,14,.86) 53%, rgba(16,13,14,.98) 100%);
  }
}

/* Keep the cat's face beyond the copy column. */
@media (min-width: 761px) {
  .hero-copy h1 { max-width: 49%; }
  .hero-copy .lead { max-width: min(36ch, 47%); }
  .hero-picture { left: 41%; width: 59%; }
  .hero-picture img { object-position: 55% center; }
  .hero-picture::after {
    background: linear-gradient(90deg, var(--night), rgba(16,13,14,.55) 15%, transparent 32%),
                linear-gradient(0deg, rgba(16,13,14,.3), transparent 20%);
  }
}
@media (max-width: 760px) {
  .hero-picture { bottom: auto; height: 52%; }
  .hero-picture img { object-position: 58% 42%; }
  .hero-picture::after { background: linear-gradient(0deg, var(--night), transparent 35%); }
  .hero.wrap { padding-top: 370px; }
}

.policy h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.16; }
.policy h2 { font-size: 1.3rem; line-height: 1.35; letter-spacing: -.015em; margin: 32px 0 14px; }
.policy p, .policy li { overflow-wrap: anywhere; }
.policy li { margin-block: 8px; }

/* Temporary homepage and the shared application form. */
.hero.wrap { min-height: clamp(570px, 72svh, 750px); }
.hero-copy h1 { max-width: 100%; }
.hero-copy .lead { max-width: min(49ch, 47%); margin: 18px 0 0; font-size: 1.06rem; }
.hero-copy .lead + .lead { margin-top: 10px; }
.page-status {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 17px;
  padding: .28em .7em;
  border: 1px solid #866d55;
  border-radius: 5px;
  background: #21191a;
  color: #ffe0ae;
  font-size: .88rem;
  font-weight: 630;
}
.page-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-actions .button { padding-inline: 18px; }
.hero .button-secondary { color: #fff1da; border: 1px solid #c79d69; background: #23191a; }
.hero .button-secondary:hover { color: var(--night); background: #f6d8a9; }
.hero-contacts { max-width: 43ch; margin: 19px 0 0; color: #e1d5d4; font-size: .94rem; }
.hero-contacts a { color: #ffe0ae; font-weight: 600; }
.signoff { margin: 10px 0 0; color: #e1d5d4; font-size: .88rem; }
fieldset.application-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5efea;
}
.application-switch label { position: relative; flex: 1 1 100px; text-align: center; cursor: pointer; }
.application-switch input { position: absolute; opacity: 0; }
.application-switch span { display: block; min-height: 44px; padding: 9px 10px; border-radius: 4px; font-weight: 650; }
.application-switch input:checked + span { background: var(--wine); color: var(--white); }
.application-switch input:focus-visible + span { outline: 3px solid var(--wine); outline-offset: 3px; }
.draft-copy { display: none; }
.apply:has(input[value="draft"]:checked) :is(.team-copy, .team-field) { display: none; }
.apply:has(input[value="draft"]:checked) .draft-copy { display: revert; }
.field label span:not([aria-hidden]) { color: inherit; }
@media (min-width: 761px) and (max-width: 980px) {
  .hero-actions { max-width: 49%; }
}
@media (max-width: 760px) {
  .hero.wrap { min-height: 0; padding: clamp(156px, 37vw, 235px) 0 30px; }
  .hero-copy .lead { max-width: 49ch; margin-top: 14px; font-size: 1rem; }
  .hero-picture { height: clamp(195px, 47vw, 275px); }
  .hero-picture img { object-position: center 38%; }
  .hero-picture::after { background: linear-gradient(0deg, var(--night), transparent 48%); }
}
@media (max-width: 500px) {
  .hero-actions .button { width: 100%; }
}
