@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  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 {
  color-scheme: light;
  --paper: #f0ede2;
  --ink: #24251e;
  --subtle: #555246;
  --rule: #a39f90;
  --input-border: #6b675b;
  --dark: #22251e;
  --board: #2a2e24;
  --light: #f2ede0;
  --muted-light: #cbc9ba;
  --dark-rule: #929682;
  --accent: #a8321c;
  --accent-hover: #872713;
  --signal: #ff8764;
  --edge: clamp(1rem, 3.15vw, 3rem);
  --meta: .75rem;
  font-family: "Golos Text", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
main:focus { outline: none; }
[id] { scroll-margin-top: 1.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.case-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  padding: .65rem .9rem;
  transform: translateY(-200%);
  background: var(--paper);
}

.skip-link:focus { transform: none; }

.shell {
  inline-size: min(84rem, 100% - 2 * var(--edge));
  margin-inline: auto;
}

.registration {
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: .88rem;
  block-size: .88rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.registration::before, .registration::after {
  content: "";
  grid-area: 1 / 1;
  inline-size: 120%;
  block-size: 1px;
  background: currentColor;
}

.registration::after { rotate: 90deg; }

.masthead-line, .case-register, .footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: var(--meta);
  font-weight: 650;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.masthead-line {
  min-block-size: 3.6rem;
  border-bottom: 1px solid var(--rule);
}

.masthead-subbar {
  display: none;
  padding-block: .45rem;
  border-bottom: 1px solid var(--rule);
  color: var(--subtle);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.masthead-label, .case-register > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.masthead-label .registration { color: var(--accent); }
.masthead-location { color: var(--subtle); }
.masthead-line nav, .footer-line a { flex: none; }

.masthead-line a, .footer-line a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-block-size: 2.75rem;
  text-decoration: none;
}

.masthead-line a:hover, .footer-line a:hover { text-decoration: underline; }

.case-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  justify-self: start;
  min-block-size: 2.85rem;
  margin-top: .25rem;
  padding: .62rem 1rem;
  border: 0;
  color: var(--light);
  background: var(--accent);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}

.case-link:hover { background: var(--accent-hover); }
.case-link span:last-child { font-size: 1.05rem; line-height: 1; }

.case {
  color: var(--light);
  background: var(--dark);
}

.case :focus-visible { outline-color: var(--signal); outline-offset: 3px; }

.case-register {
  min-block-size: 2.85rem;
  padding-block: .5rem;
  border-bottom: 1px solid var(--dark-rule);
}

.footer {
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1.75rem 2.25rem;
  padding-block: 2.25rem 2rem;
}

.footer-heading {
  margin-bottom: .65rem;
  color: var(--subtle);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  font-size: .88rem;
  line-height: 1.45;
  color: var(--subtle);
}

.footer-grid li + li { margin-top: .35rem; }
.footer-grid a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2rem;
  color: var(--ink);
  text-decoration: none;
}
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }

.footer-line {
  flex-wrap: wrap;
  min-block-size: 3.65rem;
  padding-block: .5rem;
  border-top: 1px solid var(--rule);
}
.footer-line p { color: var(--subtle); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
}

@media (max-width: 53.999rem) {
  .masthead-line { gap: .5rem; }
  .masthead-line nav { margin-inline-start: auto; }
  .masthead-line a { font-size: .78rem; padding-inline: .15rem; }
  .masthead-label { font-size: .78rem; gap: .45rem; }
}

@media (max-width: 44rem) {
  .masthead-location, .masthead-specialty { display: none; }
  .masthead-subbar { display: block; }
}

.cookie-notice {
  position: fixed;
  inset-inline: 1rem;
  inset-block-end: 1rem;
  z-index: 40;
  max-inline-size: 42rem;
  margin-inline: auto;
  padding: .85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  border-top: 2px solid var(--signal);
  background: var(--dark);
  color: var(--paper);
  font-size: .84rem;
  line-height: 1.45;
  box-shadow: 0 12px 32px rgb(20 22 25 / .24);
}
.cookie-notice p { margin: 0; max-inline-size: 48ch; color: var(--muted-light); }
.cookie-notice a { color: var(--paper); text-decoration: underline; }
.cookie-accept {
  padding: .5rem 1rem;
  min-block-size: 2.5rem;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cookie-accept:hover { opacity: .92; }
