:root {
  --space-0: 0;
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --space-negative-0-5: -2px;
  --space-negative-1: -4px;
  --space-negative-1-5: -6px;
  --space-negative-2: -8px;
  --space-negative-3: -12px;
  --space-negative-4: -16px;
  --space-negative-5: -20px;
  --space-negative-6: -24px;
  --space-negative-7: -28px;
  --space-negative-8: -32px;
  --space-negative-10: -40px;
  --space-negative-12: -48px;
  --space-negative-16: -64px;
  --space-negative-20: -80px;

  --radius-100: 4px;
  --radius-200: 8px;
  --radius-300: 12px;
  --radius-400: 16px;
  --radius-500: 32px;
  --radius-600: 64px;
  --radius-circle: 100%;

  --typography-size-250: 18px;
  --typography-size-900: 48px;
  --typography-lineHeight-800: 60px;

  --typography-family-text: Roboto, 'Roboto Rouble', sans-serif;
  --typography-family-heading: 'Golos Text', sans-serif;
}

/* Общие стили */
.news-page {
  font-size: var(--typography-size-300);
  line-height: var(--typography-lineHeight-300);
  font-family: var(--typography-family-text);
  font-weight: var(--typography-weight-regular);
  color: var(--dark-1);
}

@media (min-width: 768px) {
  .news-page {
    font-size: var(--typography-size-250);
    line-height: var(--typography-lineHeight-400);
  }
}

.news-page {

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--typography-family-heading);
    font-weight: var(--typography-weight-bold);
  }

  h1 {
    font-size: var(--typography-size-700);
    line-height: var(--typography-lineHeight-600);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
  }

  @media (min-width: 768px) {
    h1 {
      font-size: var(--typography-size-900);
      line-height: var(--typography-lineHeight-800);
      margin-top: var(--space-12);
      margin-bottom: var(--space-5);
    }
  }

  h2 {
    font-size: var(--typography-size-600);
    line-height: var(--typography-lineHeight-500);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
  }

  @media (min-width: 768px) {
    h2 {
      font-size: var(--typography-size-800);
      line-height: var(--typography-lineHeight-700);
      margin-top: var(--space-16);
      margin-bottom: var(--space-5);
    }
  }

  h3 {
    font-size: var(--typography-size-500);
    line-height: var(--typography-lineHeight-500);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
  }

  @media (min-width: 768px) {
    h3 {
      font-size: var(--typography-size-700);
      line-height: var(--typography-lineHeight-600);
      margin-top: var(--space-12);
      margin-bottom: var(--space-5);
    }
  }

  h4 {
    font-size: var(--typography-size-400);
    line-height: var(--typography-lineHeight-400);
    margin-top: var(--space-8);
    margin-bottom: var(--space-2);
  }

  @media (min-width: 768px) {
    h4 {
      font-size: var(--typography-size-500);
      line-height: var(--typography-lineHeight-500);
      margin-top: var(--space-10);
    }
  }

  p {
    margin: var(--space-4) 0;
  }

  @media (min-width: 768px) {
    p {
      margin: var(--space-5) 0;
    }
  }

  /* Встроенные текстовые элементы */
  mark {
    background: var(--orange-3);
    padding: var(--space-0-5) var(--space-1-5);
    border-radius: var(--radius-100);
  }

  strong {
    font-weight: var(--typography-weight-semibold);
  }

  em {
    font-style: italic;
  }

  /* Списки */
  ol > li,
  ul > li {
    position: relative;
    display: block;
  }

  ol > li:before,
  ul > li:before {
    position: absolute;
  }

  ol > li:not(:first-child),
  ul > li:not(:first-child) {
    margin-top: var(--space-3);
  }

  ol,
  ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
    display: block;
    position: relative;
  }

  ol li > ol,
  ol li > ul,
  ul li > ol,
  ul li > ul {
    margin: var(--space-2) 0;
  }

  ul > li:before {
    content: "";
    top: 10px;
    left: var(--space-negative-6);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dark-1);
  }

  ul > li > ul > li:before {
    top: 11px;
    left: var(--space-negative-6);
    height: 1px;
    width: 10px;
    border-radius: 0;
  }

  ol {
    counter-reset: list 0;
  }

  ol > li:before {
    counter-increment: list;
    content: counter(list) '.';
    left: var(--space-negative-6);
  }

  ol > li ol > li:nth-child(1):before {
    content: 'а.';
  }
  ol > li ol > li:nth-child(2):before {
    content: 'б.';
  }
  ol > li ol > li:nth-child(3):before {
    content: 'в.';
  }
  ol > li ol > li:nth-child(4):before {
    content: 'г.';
  }
  ol > li ol > li:nth-child(5):before {
    content: 'д.';
  }
  ol > li ol > li:nth-child(6):before {
    content: 'е.';
  }
  ol > li ol > li:nth-child(7):before {
    content: 'ж.';
  }
  ol > li ol > li:nth-child(8):before {
    content: 'з.';
  }
  ol > li ol > li:nth-child(9):before {
    content: 'и.';
  }
  ol > li ol > li:nth-child(10):before {
    content: 'к.';
  }
  ol > li ol > li:nth-child(11):before {
    content: 'л.';
  }
  ol > li ol > li:nth-child(12):before {
    content: 'м.';
  }
  ol > li ol > li:nth-child(13):before {
    content: 'н.';
  }
  ol > li ol > li:nth-child(14):before {
    content: 'о.';
  }
  ol > li ol > li:nth-child(15):before {
    content: 'п.';
  }
  ol > li ol > li:nth-child(16):before {
    content: 'р.';
  }
  ol > li ol > li:nth-child(17):before {
    content: 'с.';
  }
  ol > li ol > li:nth-child(18):before {
    content: 'т.';
  }
  ol > li ol > li:nth-child(19):before {
    content: 'у.';
  }
  ol > li ol > li:nth-child(20):before {
    content: 'ф.';
  }
  ol > li ol > li:nth-child(21):before {
    content: 'х.';
  }
  ol > li ol > li:nth-child(22):before {
    content: 'ц.';
  }
  ol > li ol > li:nth-child(23):before {
    content: 'ч.';
  }
  ol > li ol > li:nth-child(24):before {
    content: 'ш.';
  }
  ol > li ol > li:nth-child(25):before {
    content: 'щ.';
  }
  ol > li ol > li:nth-child(26):before {
    content: 'ъ.';
  }
  ol > li ol > li:nth-child(27):before {
    content: 'ы.';
  }
  ol > li ol > li:nth-child(28):before {
    content: 'ь.';
  }
  ol > li ol > li:nth-child(29):before {
    content: 'э.';
  }
  ol > li ol > li:nth-child(30):before {
    content: 'ю.';
  }
  ol > li ol > li:nth-child(31):before {
    content: 'я.';
  }

  @media (min-width: 768px) {
    ol,
    ul {
      margin: 16px 0;
      padding-left: 24px;
    }

    ol li > ol,
    ol li > ul,
    ul li > ol,
    ul li > ul {
      margin: 8px 0;
    }

    ul > li:before {
      top: calc(24px / 2);
      left: -24px;
      width: 6px;
      height: 6px;
    }

    ul > li ul > li:before {
      top: calc(24px / 2);
      left: -24px;
      width: 12px;
    }

    ol > li:before {
      left: -24px;
    }
  }

  a {
    color: #0066ff;
    text-decoration: none;
  }

  a:hover {
    color: #0052cc;
  }

  .list-links {
    list-style: none;
    padding-left: 0;
  }

  .list-links li:before {
    content: none;
  }

  .list-links > li:not(:last-child) {
    margin-bottom: 4px;
  }

  img {
    display: block;
    border-radius: 8px;
    max-width: 100%;
    border-style: none;
    margin: 16px 0;
  }

  figure img {
    margin: 16px 0 4px 0;
  }

  img + figcaption {
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
    font-style: normal;
    color: #66788a;
    margin-bottom: 16px;
  }

  blockquote {
    padding-left: 28px;
    border-left: 4px solid #e5e9f0;
    padding-bottom: 16px;
  }

  blockquote p:last-child {
    margin-bottom: 0;
  }

  figure blockquote + figcaption {
    padding-left: 24px;
    border-left: 4px solid #e5e9f0;
    margin-bottom: 16px;
    font-weight: 600;
  }

  dl dt {
    display: inline;
    font-weight: 600;
  }

  dl dt::after {
    content: ' — ';
  }

  dl dd {
    display: inline;
    margin-bottom: 16px;
  }

  dl span {
    display: block;
    margin: 16px 0;
  }

  @media (max-width: 768px) {
    dl dt {
      display: block;
      margin-bottom: 2px;
    }

    dl dt::after {
      content: none;
    }
  }
}
