*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --red: #e31b23;
  --ink: #111820;
  --muted: #6f7780;
  --line: #e2e5e8;
  --bg: #f2f4f5;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Georgian", "Sylfaen", system-ui, sans-serif;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

/* Accessibility */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--red);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Document */

.article-shell {
  width: min(960px, calc(100% - 40px));
  margin: 48px auto 80px;
}

.article {
  background: #fff;
  padding: 34px 52px 52px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

/* Document header */

.document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.document-logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.document-logo img {
  display: block;
  width: 140px;
  height: auto;
}

.document-back {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.document-back:hover {
  color: var(--red);
}

/* Breadcrumb */

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red);
}

.document-rule {
  height: 3px;
  margin: 24px 0 42px;
  background: var(--red);
}

/* Article */

.article-category {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.article h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.article-body {
  font-size: 18px;
  line-height: 1.8;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body strong {
  font-weight: 700;
}

/* Medical archive notice */

.article-note {
  margin-top: 38px;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
}

.article-note strong,
.article-note span {
  display: block;
}

.article-note strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.article-note .doctor-note {
  color: var(--muted);
}

/* Mobile */

@media (max-width: 700px) {
  .article-shell {
    width: 100%;
    margin: 0;
  }

  .article {
    padding: 24px 20px 40px;
    box-shadow: none;
  }

  .document-header {
    gap: 16px;
    margin-bottom: 24px;
  }

  .document-logo img {
    width: 120px;
  }

  .document-back {
    font-size: 12px;
    text-align: right;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .document-rule {
    margin: 20px 0 30px;
  }

  .article h1 {
    font-size: 30px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.75;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Print */

@media print {
  body {
    background: #fff;
  }

  .article-shell {
    width: 100%;
    margin: 0;
  }

  .article {
    padding: 0;
    box-shadow: none;
  }

  .document-back {
    display: none;
  }
}

/* Small mobile */

@media (max-width: 360px) {
  .document-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .document-back {
    text-align: left;
  }

  .article {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article h1 {
    font-size: 27px;
  }
}

.article-body .source-break {
  display: block;
  height: 0.85em;
}
