@font-face {
  font-family: "Hermes Manrope";
  src: url("hermes-manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hermes Manrope";
  src: url("hermes-manrope-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
:root {
  color-scheme: light;
  font: 15px/1.55 "Hermes Manrope", "Segoe UI", system-ui, sans-serif;
  color: #102b43;
  background: #edf5fb;
  --hc-blue: #136995;
  --hc-blue-hover: #0d5378;
  --hc-border: #d6e5f0;
  --hc-muted: #50697e;
  --hc-green: #198047;
  --hc-green-ink: #15633b;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #268bb9; outline-offset: 3px; }
.hc-login { min-height: 100svh; display: grid; align-items: center; padding: clamp(18px, 4vw, 64px); }
.hc-login-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); width: min(1220px, 100%); margin: auto; min-height: min(760px, calc(100svh - 70px)); background: #fff; border: 1px solid var(--hc-border); border-radius: 30px; overflow: hidden; box-shadow: 0 24px 70px #173e6316; }
.hc-entry { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; padding: clamp(26px, 5vw, 64px); }
.hc-brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; white-space: nowrap; }
.hc-brand img { width: 42px; height: 42px; object-fit: contain; }
.hc-brand strong, .hc-brand small { display: block; line-height: 1.12; }
.hc-brand strong { color: #104568; font-size: 20px; font-weight: 800; letter-spacing: -.028em; }
.hc-brand small { margin-top: 5px; color: var(--hc-muted); font-size: 10px; font-weight: 700; letter-spacing: .075em; }
.hc-entry-content { align-self: center; width: min(100%, 380px); margin: 42px auto; }
.hc-entry h1, .hc-directory h1 { margin: 0; font-size: clamp(36px, 5vw, 54px); font-weight: 720; letter-spacing: -.052em; line-height: 1.08; }
.hc-description { margin: 15px 0 28px; color: var(--hc-muted); }
.hc-entry footer { color: var(--hc-muted); font-size: 12px; }
.hc-form { display: grid; gap: 17px; }
.hc-form label { display: grid; gap: 7px; align-content: start; font-weight: 650; }
.hc-form input:not([type=checkbox]), .hc-form select { width: 100%; min-width: 0; min-height: 48px; padding: 0 13px; color: #102b43; background: #fcfdff; border: 1px solid var(--hc-border); border-radius: 11px; }
.hc-form input::placeholder { color: var(--hc-muted); font-weight: 450; }
.hc-form .hc-remember { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.hc-submit, .hc-add { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; background: var(--hc-blue); color: #fff; text-decoration: none; font-weight: 720; cursor: pointer; }
.hc-submit:hover, .hc-add:hover { background: var(--hc-blue-hover); }
.hc-entry .hc-submit { position: relative; isolation: isolate; overflow: hidden; border-color: var(--hc-green); background: #fff; color: var(--hc-green-ink); transition: color 240ms ease; }
.hc-entry .hc-submit::before { position: absolute; z-index: -1; inset: 0; background: var(--hc-green); transform: scaleX(0); transform-origin: left center; transition: transform 320ms cubic-bezier(.2,.7,.2,1); content: ""; }
.hc-entry .hc-submit:is(:hover,:focus-visible) { color: #fff; }
.hc-entry .hc-submit:is(:hover,:focus-visible)::before { transform: scaleX(1); }
.hc-error, .hc-success { padding: 12px 14px; border-radius: 10px; background: #f9eae7; color: #7f2c23; }
.hc-success { background: #dff3e7; color: #1f5738; }
.hc-visual { position: relative; min-width: 0; overflow: hidden; margin: 9px; border-radius: 23px; background: #c9ddeb; }
.hc-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.hc-anket .hc-visual img { object-position: 56% 52%; }
.hc-video .hc-visual img { object-position: 55% 49%; }
.hc-directory { width: min(1060px, calc(100% - 32px)); margin: 36px auto; }
.hc-directory-head, .hc-directory-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hc-back { color: var(--hc-blue); font-weight: 700; text-decoration: none; }
.hc-directory-title { margin: 36px 0 22px; }
.hc-directory h1 { font-size: clamp(28px,4vw,45px); }
.hc-directory-grid { display: flex; align-items: flex-start; gap: 20px; }
.hc-roster { display: grid; flex: 0 1 320px; gap: 5px; min-width: 0; padding: 8px; }
.hc-roster a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 9px; overflow-wrap: anywhere; text-decoration: none; }
.hc-roster a[aria-current], .hc-roster a:hover { background: #e6f3fb; }
.hc-roster small { display: block; color: var(--hc-muted); }
.hc-roster, .hc-account-card { border: 1px solid var(--hc-border); background: #fff; border-radius: 17px; }
.hc-account-card { width: min(100%, 680px); min-width: 0; padding: clamp(18px, 4vw, 34px); }
.hc-account-card h2 { margin: 0 0 21px; font-size: 23px; letter-spacing: -.03em; }
.hc-avatar { display: grid; place-items: center; object-fit: cover; border-radius: 50%; width: 44px; height: 44px; flex: 0 0 44px; background: #d4eaf7; color: #155983; font-weight: 750; }
.hc-photo { display: flex; align-items: center; gap: 13px; }
.hc-photo label { min-width: 0; flex: 1; }
.hc-photo input[type=file] { padding-block: 8px; }
.hc-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.hc-form .hc-active { display: flex; align-self: end; min-height: 48px; align-items: center; gap: 6px; }
.hc-remove { margin-top: 24px; color: #862e23; }
.hc-remove summary { cursor: pointer; }
.hc-remove button { margin-top: 8px; padding: 8px 12px; border: 1px solid #c8887f; border-radius: 8px; color: inherit; background: #fff; cursor: pointer; }
@media (max-width: 700px) {
  .hc-login-layout { grid-template-columns: 1fr; min-height: auto; }
  .hc-entry { padding: 26px; }
  .hc-entry-content { margin-block: 35px; }
  .hc-visual { min-height: clamp(154px, 47vw, 236px); margin-top: 0; }
  .hc-directory-grid { display: grid; }
  .hc-roster { max-height: 220px; overflow: auto; }
}
@media (max-width: 365px) { .hc-pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .hc-entry .hc-submit, .hc-entry .hc-submit::before { transition: none; }
}
