@font-face {
  font-family: "Paneuropa highway";
  font-weight: 400;
  src: url("/runew/assets/fonts/paneuropa-highway.woff2") format("woff2"),
    url("/runew/assets/fonts/paneuropa-highway.woff") format("woff"),
    url("/runew/assets/fonts/paneuropa-highway.ttf") format("truetype");
}
@font-face {
  font-family: "Paneuropa highway";
  font-weight: 600;
  src: url("/runew/assets/fonts/paneuropa highway.woff2") format("woff2"),
    url("/runew/assets/fonts/paneuropa highway.woff") format("woff"),
    url("/runew/assets/fonts/paneuropa-highway.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto-Regular";
  font-weight: 400;
  src: url("/runew/assets/fonts/Roboto-Regular.woff2") format("woff2"),
    url("/runew/assets/fonts/Roboto-Regular.woff") format("woff"),
    url("/runew/assets/fonts/Roboto-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto-Regular";
  font-weight: 600;
  src: url("/runew/assets/fonts/Roboto-SemiBold.woff2") format("woff2"),
    url("/runew/assets/fonts/Roboto-SemiBold.woff") format("woff"),
    url("/runew/assets/fonts/Roboto-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto-Regular";
  font-weight: 700;
  src: url("/runew/assets/fonts/Roboto-Bold.woff2") format("woff2"),
    url("/runew/assets/fonts/Roboto-Bold.woff") format("woff"),
    url("/runew/assets/fonts/Roboto-Bold.ttf") format("truetype");
}

/* ----- Variables ----- */
:root {
  --mobile-breakpoint: 710;

  --color-main-body: #dadde1;
  --color-website-body: #ffffff;
  --color-text-body: #121212;
  --color-text-link: #3f75b1;
  --color-text-hover: #fd0f16;
  --color-logo: #d4dee7;
  --color-logo-dot: #8fd1f3;

  --color-article: #049cce;
  --color-article-title: #153f72;
  --color-article-mid-title: #0675b4;
  --color-article-caption: #575757;

  --color-sidebar-accent: #dd0303;

  --color-nav-background: #cbe1f2;
  --color-nav-hover: #aecfea;
  --color-nav-links: #0d366f;
  --color-sidebar-line: #f0f0f0;
  --color-footer-background: #dce8f7;

  /* --font-family: Helvetica, Verdana, Arial, sans-serif; */
  --font-family: "Roboto-Regular", Helvetica, Verdana, Arial, sans-serif;
  --font-family-paneuropa: "Paneuropa highway", Verdana, Helvetica, Arial,
    sans-serif;
  --font-family-oswald: "Oswald", "Roboto-Regular", Helvetica, Verdana, Arial,
    sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-bold: 600;

  /* --- Фонты для декстопа --- */

  --font-size-text: 1.063rem; /*17px*/
  --font-size-nav: 1.063rem; /*11px*/
  --font-size-medium: 1.75rem; /*28px*/
  --font-size-big: 2.2rem; /*40px*/

  --line-height-text: 1.47; /*p*/
  --line-height-medium: 1.125; /*H2*/
  --line-height-big: 1.1; /*H1*/

  --letter-space-text: -0.022em; /*p*/
  --letter-spacing-medium: 0.004em; /*H2*/
  --letter-spacing-big: -0.022em; /*H1*/

  --website-max-width: 90rem; /*1440px*/
  --sidebar-max-width: 22rem; /*352px*/
  --website-padding-inline: 1.5rem;
  /* --website-mobile-padding-inline: 0.75rem; */

  /* --- Text and gap size --- */
  --size-100: 0.25rem; /*4px*/
  --size-200: 0.5rem; /*8px*/
  --size-300: 0.75rem; /*12px*/
  --size-350: 0.875rem; /* 14px */
  --size-400: 1rem; /*16px*/
  --size-420: 1.125rem; /*18px*/
  --size-450: 1.3rem; /*20.8px*/
  --size-500: 1.5rem; /*24px*/
  --size-550: 1.75rem; /*28px*/
  --size-600: 2rem; /*32px*/
  --size-700: 3rem; /*48px*/
  --size-800: 4rem; /*64px*/
  --size-900: 5rem; /*80px*/

  --color-main-accent: #f5c029;
  --logo-color: #f5c029;

  --color-nav: hsl(210, 5%, 15%);

  --color-text-white: #f5f5f7;
  --color-outline-on-dark: #4e5257;
}

/* ----- Фонты для мобилы ----- */

@media (width <= 710px) {
  :root {
    --font-size-text: 1.063rem; /*18px*/
    --font-size-nav: 1rem; /*16px*/
    --font-size-medium: 1.75rem; /*28px*/
    --font-size-big: 2rem; /*32px*/

    --line-height-text: 1.47; /*p*/
    --line-height-medium: 1.125; /*H2*/
    --line-height-big: 1.125; /*H1*/

    --letter-space-text: -0.022em; /*p*/
    --letter-spacing-medium: 0.004em; /*H2*/
    --letter-spacing-big: -0.022em; /*H1*/

    --website-padding-inline: 1rem;
  }
}

/* -----Reset -----*/
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----- Utility classes ----- */

/*H1*/
.fs-big-header {
  font-size: var(--font-size-big);
  line-height: var(--line-height-big);
  letter-spacing: var(--letter-spacing-big);
  margin-top: var(--size-300);
}

/*H2*/
.fs-medium-header {
  font-size: var(--font-size-medium);
  line-height: var(--line-height-medium);
  letter-spacing: var(--letter-spacing-medium);
  color: var(--color-article-mid-title);
}

/* NAV */
.fs-nav {
  font-size: var(--font-size-nav);
}

.fs-footer {
  font-size: var(--size-300);
}

.fs-small {
  font-size: var(--size-400);
  line-height: 1.47;
}

.font-family-oswald {
  font-family: var(--font-family-oswald);
}

.fw-regular {
  font-weight: var(--font-weight-regular);
}

.fw-bold {
  font-weight: var(--font-weight-bold);
}

.fw-light {
  font-weight: var(--font-weight-light);
}

.txt-lrg{
  font-size: calc(var(--font-size-medium)*0.9);
  line-height: var(--size-400);
  letter-spacing: var(--letter-spacing-medium);
}

.italic {
  font-style: italic;
}
.margin-bottom-100 {
  margin-bottom: var(--size-100);
}
.margin-bottom-400 {
  margin-bottom: var(--size-400);
}
.margin-bottom-300 {
  margin-bottom: var(--size-300);
}

.margin-bottom-420 {
  margin-bottom: var(--size-420);
}
.margin-bottom-500 {
  margin-bottom: var(--size-500);
}
.padding-bottom-400 {
  padding-bottom: var(--size-400);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.wrap {
  flex-wrap: wrap;
}

.text-center {
  text-align: center;
}

.text-body {
  color: var(--color-text-body);
}

/* General styling */
body {
  background-color: var(--color-main-body);
  color: var(--color-text-body);
  font-family: var(--font-family);

  font-size: var(--font-size-text);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-text);
  letter-spacing: var(--letter-space-text);
}
a {
  color: var(--color-text-link);
}
a:hover {
  color: var(--color-text-hover);
}

.container {
  --max-width: var(--website-max-width);
  --padding: var(--website-padding-inline);

  width: min(var(--max-width), 100% - (var(--padding) * 2));
  padding: var(--padding);
  margin-inline: auto;
  background-color: var(--color-website-body);
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
}

.primary-header .container:first-child {
  background: linear-gradient(#011e3c, #2f5c86);
}

.header-content {
  display: flex;

  justify-content: space-between;
  flex-direction: row;
  gap: var(--size-400);
}

.header-content > * {
  align-content: center;
}

.header-left-side {
  display: grid;
  gap: var(--size-600);
  padding-top: var(--size-400);
}

.header-left-side[data-header-left-side="invisible"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logotip {
  display: inline-flex;
  position: relative;
  font-family: var(--font-family-paneuropa);
  font-size: clamp(2.5rem, 2.324rem + 0.751vw, 3rem);
  line-height: 1;
  color: var(--color-logo);
}
/* .cls-1 {
  fill: #fff;
}
.cls-2 {
  fill: #65d4f2;
} */

.logo-description {
  display: flex;
  align-items: flex-end;
  gap: var(--size-300);
}
.logo-description a svg {
  width: 110px;
  height: 40px;
}
.logotip-mobile {
  position: relative;
  margin-bottom: var(--size-400);
  font-family: var(--font-family-paneuropa);
  font-size: var(--size-700);
  line-height: 1;
  color: var(--color-nav-links);
  color: var(--color-logo);
}

.logotip::after {
  position: absolute;
  transform: none;
  content: "";
  right: calc(-1 * var(--size-300));
  bottom: 0;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--color-logo-dot);
}
.logotip-mobile::after {
  position: absolute;
  transform: none;
  content: "";
  right: 1rem;
  bottom: 0;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--color-nav-links);
  background-color: var(--color-logo-dot);
  opacity: 0.8;
}

.logo-description > span {
  /* margin-left: var(--size-500); */
  color: var(--color-logo);
  font-size: clamp(0.75rem, 0.617rem + 0.426vw, 1rem);
}
.header-actions {
  display: flex;
  flex-direction: column;
  gap: var(--size-300);
}

.banners {
  display: grid;
  gap: var(--size-200);
}

.header-social-block {
  display: flex;
  gap: var(--size-500);
}

.search-form {
  display: flex;
  align-items: center;
  gap: var(--size-300);
}

.mobile-search-form[data-mobile-search-form="invisible"] {
  display: none;
}

.header-actions button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.header-actions button svg {
  width: 25px;
  height: 25px;
  fill: none;
  color: var(--color-logo);
}

.search-field {
  height: var(--size-500);
  width: 295px;
  background-color: var(--color-main-body);
  border: none;
  border-radius: 10px;
}

.header-actions-icons {
  width: 25px;
  height: 25px;
  fill: none;
  color: var(--color-logo);
}
.header-social-block a > svg.header-actions-icons {
  fill: var(--color-logo);
}

/* ----- Стили иконки "лупа" и "X" в мобильной версии ----- */
.mobile-search-form .mobile-search-icon {
  fill: none;
  color: var(--color-logo);
  width: 30px;
  height: 30px;
}
.mobile-search-form .mobile-close-icon {
  fill: none;
  color: var(--color-logo);
  width: 23.1px;
  height: 23.1px;
}
.logo-and-mobile-menu .mobile-close-icon {
  fill: none;
  color: var(--color-logo);
  width: 25px;
  height: 25px;
}
div[data-close-navbar-icon] {
  z-index: 1;
  cursor: pointer;
}

.mobile-search-form button,
.mobile-search-form div,
.search-form button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* ----- Hamburger menu ----- */
.icon-hamburger {
  width: 25px;
  height: 18px;
}
.logo-and-mobile-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Не показываем в декстопе иконку гамбургер */
.mobile-nav-toggle {
  display: none;
}

.primary-header .container {
  position: relative;
}

/* Не показываем в декстопе мобильный navbar */
.mobile-navigation {
  --top-padding: 88px;
  position: fixed;
  top: var(--top-padding);
  left: 0;
  bottom: 0;
  height: 100%;
  padding: var(--size-500) var(--size-900) var(--size-500) var(--size-500);
  /* background: linear-gradient(#011e3c, #2f5c86); */
  background-color: #0f3658;
  /* opacity: 1; */
  transform: translateX(-100%);
  transition: 350ms;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.mobile-nav-list {
  display: grid;
  gap: var(--size-300);
  font-size: var(--size-420);
}
.mobile-nav-list a {
  display: block;
  position: relative;
  padding: 0.5rem 0;
  color: var(--color-nav-links);
  color: var(--color-logo);
  text-decoration: none;
  z-index: 1;
}

.mobile-nav-list :is(a:hover, a:focus-visible) {
  color: var(--color-nav-links);
}

.mobile-nav-list a:hover::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * var(--size-500));
  width: 244px;
  height: 2em;
  z-index: -1;
  transform: translateY(-50%);
  background-color: var(--color-nav-hover);
}
/* Не показываем в декстопе mobile search */
.mobile-search-form {
  width: 100%;
  display: none;
  padding-top: 22px;
  margin-bottom: 9px;
  height: 51px;
}
.mobile-search-field {
  height: var(--size-600);
  width: 100%;
  background-color: var(--color-website-body);
  border: 1px solid var(--color-text-body);
  border-radius: 10px;
}
/* ----- Убираем лишнюю иконку поиска над строкой в десктопной версии ----- */
.search-icon {
  display: none;
}
/* ----- mobile input ----- */
input:focus {
  padding-inline: 1rem;
  background-color: var(--color-website-body);
  outline: none;
  border: 1px solid var(--color-nav-links);
}

input::placeholder {
  padding-left: 1em;
}

.icon-close {
  width: 25px;
  height: 22px;
}

.primary-header[data-overlay]::before {
  content: "";
  position: fixed;
  inset: 0;
  /* background: rgb(0, 0, 0, 0.1); */
  z-index: 1;
}

/* ----- Медиа-запросы ----- */

@media (width <= 1240px) {
  .header-content {
    flex-direction: column;
  }
  .header-left-side {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .main-with-sidebar,
  .main-with-sidebar-index {
    flex-direction: column;
    align-items: stretch;
  }

  .main-with-sidebar > :last-child,
  .main-with-sidebar-index > :last-child {
    flex-basis: auto;
    width: 100%;
    min-width: 0;
  }
  .news-review {
    display: none;
  }
  .banners {
    margin-inline: auto;
  }
  .header-actions {
    justify-self: end;
  }
}

@media (width <= 710px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }

  /* Добавляем внутренний контейнер для контента */
  .container > * {
    padding: 0 0.6rem;
  }

  .logo-description > span {
    display: none;
  }
  .fs-big-header {
    /* line-height: var(--size-600); */
  }
  .author-name-info {
    line-height: var(--size-600);
    margin-bottom: var(--size-400);
  }
  .primary-navigation {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
    cursor: pointer;
    background: transparent;
    border: 0;
    margin-top: 8px;
  }
  .header-actions {
    flex-direction: row;
  }
  .search-form {
    display: none;
  }
  .mobile-navigation {
    display: flex;
    flex-direction: column;
    /* background-color: #d4dee7; */
  }
  .mobile-navigation[data-visible] {
    position: fixed;
    top: var(--top-padding);
    left: 0;
    bottom: 0;
    height: 100%;
    padding: var(--size-500) var(--size-900) var(--size-500) var(--size-500);
    background-color: #0f3658;
    /* background: linear-gradient(#011e3c, #2f5c86); */
    transform: translateX(0);
    /* opacity: 1; */
  }
  .mobile-navigation.scrolled {
    background-color: #29567d;
  }

  .mobile-search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .search-icon {
    display: block;
    cursor: pointer;
  }
  .author-job-title {
    margin-top: -8px;
  }
}

/* ----- NAV --------  */
@media (width <= 710px) {
  .primary-header {
    position: fixed;
    z-index: 100;
    width: 100%;
    background: linear-gradient(#011e3c, #2f5c86);
  }
  /* .primary-header .container:first-child {
    background: linear-gradient(#011e3c 70px, red 70px);
  } */
  .header-left-side {
    width: 100%;
    /* grid-template-columns: 1fr auto; */
    /* row-gap: 0; */
    /* justify-content: space-between; */
  }
  .header-actions {
    /* 5. Прижимаем второй элемент к правому краю */
    justify-self: end;
  }
  main {
    padding-top: 225px;
  }
}

.primary-header .container:last-child {
  background-color: var(--color-nav-background);
  padding-block: var(--size-100);
  padding-left: 0;
}
.primary-navigation ul {
  display: flex;
  flex-wrap: wrap;
}
.primary-navigation li a {
  color: var(--color-nav-links);
  padding-inline: clamp(0.25rem, -0.315rem + 2.016vw, 1.5rem);
  padding-block: var(--size-100);
  text-decoration: none;
  cursor: pointer;
}
.primary-navigation li a:hover {
  padding-inline: clamp(0.25rem, -0.315rem + 2.016vw, 1.5rem);
  padding-block: var(--size-100);

  background-color: var(--color-nav-hover);
}
.primary-navigation li:last-child a {
  padding-inline: 0;
}
.primary-navigation li:last-child {
  margin-left: auto;
  text-decoration: underline;
}
.primary-navigation li:last-child a:hover {
  margin-left: auto;
  text-decoration: underline;
  background-color: transparent;
}

/* ----- Main with sidebar --- */
.main-with-sidebar {
  display: flex;
  /* flex-wrap: wrap; */
  align-items: flex-start;
  gap: var(--size-500);
}
.main-with-sidebar > :first-child {
  flex-basis: 790px;
  flex-grow: 9999;
}
.main-with-sidebar > :last-child {
  flex-basis: var(--sidebar-max-width);
  flex-grow: 1;
}

/* --- Index styles --- */
.main-with-sidebar-index {
  display: flex;
  /* flex-wrap: wrap; */
  align-items: flex-start;
  gap: var(--size-500);
}
.main-with-sidebar-index > * {
  flex: 1;
}

.more-article {
  display: grid;
  place-items: center;
  height: var(--size-700);
  background-color: var(--color-nav-background);
}

/* Новости компаний заголовок */
article .bblack {
  font-size: var(--size-500);
  line-height: var(--line-height-text);
  letter-spacing: var(--letter-space-text);
  font-weight: var(--font-weight-bold);
}
.company1 {
  margin-top: var(--size-500);
  width: 100%;
  padding: var(--size-400);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}
.company1-logo {
  display: flex;
  gap: var(--size-400);
  align-items: center;
  /* margin-bottom: var(--size-400); */
}
.company2-logo {
  display: flex;
  gap: var(--size-400);
  align-items: center;
}
.company2-logo > *:last-child {
  flex: 1;
  line-height: var(--size-500);
}
@media (width <=710px) {
  .company2-logo {
    flex-direction: column;
    gap: 0;
  }
}

.company1-logo > *:first-child,
.company1-logo > *:last-child {
  width: 25%;
}
.company1-logo > span {
  /* align-self: center; */
  text-align: center;
  text-wrap: balance;
  font-size: var(--size-350) !important;
  line-height: var(--size-600);
}
.company1 .companies-icons {
  gap: var(--size-400);
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: var(--size-700);
  padding-bottom: var(--size-450);
  width: 100%;
  border-bottom: 2px solid #e2e2e2;
}
.company1 .companies-icons.company2 {
  padding-top: var(--size-450);
  padding-bottom: 0;
  border-top: 2px solid #e2e2e2;
  border-bottom: none;
}

.company1 .companies-icons .companies-logo {
  display: flex;
  align-items: center;
  gap: var(--size-300);
}
.company1 .companies-icons .companies-logo img {
  padding: 0;
  height: 25px;
}
.company1 .company-underline {
  gap: var(--size-600);
  padding-top: var(--size-400);
}

.c3dlabs {
  justify-content: space-between;
}

.askon {
  gap: var(--size-400);
  justify-content: flex-start;
}

.askon li {
  list-style: none;
}

.askon li:before {
  content: "> ";
  color: #ed403f;
  font-weight: 900;
}

@media (width <= 710px) {
  .company1-logo {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
  }

  .company1-logo > *:first-child {
    order: 1; /* Элемент 1 - в начало */
    width: 45%; /* Ширина элемента 1 */
  }

  .company1-logo > *:nth-child(2) {
    order: 3; /* Элемент 2 - в конец (переносится на новую строку) */
    width: 100%; /* Занимает всю ширину строки */
    text-align: center; /* Центрируем текст */
    margin-top: 10px; /* Отступ сверху для разделения строк */
  }

  .company1-logo > *:last-child {
    order: 2; /* Элемент 3 - после элемента 1 */
    width: 45%; /* Ширина элемента 3 */
  }
}
.company1-logo > span {
  /* align-self: center; */
  text-align: center;
  text-wrap: balance;
  font-size: var(--size-300);
  line-height: var(--size-400);
}

.company1 img {
  padding-block: var(--size-400);
  margin-inline: auto;
}

.company1 ol,
.company1 ul {
  padding-left: var(--size-400);
  margin-block: var(--size-300);
  line-height: var(--size-600);
}

h5.nopad {
  margin: var(--size-600) 0 var(--size-200);
  font-size: var(--size-450);
  line-height: var(--line-height-text);
  letter-spacing: var(--letter-space-text);
  font-weight: var(--font-weight-bold);
}

/* Стили для табличной верстки внутри .company1 */
article.company1 > table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

/* Скрываем декоративные строки */
article.company1 > table tr:first-child,
article.company1 > table tr:last-child {
  display: none;
}

/* Стили для основной ячейки контента */
article.company1 > table tr:nth-child(2) > td[rowspan="2"] {
  display: block;
  width: 100%;
  padding: 1rem;
  background: none !important;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}

/* Контейнер логотипов */
article.company1 > table td[rowspan="2"] > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Блоки логотипов */
article.company1 > table td[rowspan="2"] > div:first-child > div:first-child,
article.company1 > table td[rowspan="2"] > div:first-child > div:last-child {
  flex: 1.3;
  padding: 0 10px;
}

article.company1 > table td[rowspan="2"] > div:first-child > div:nth-child(2) {
  flex: 2.3;
  padding: 0 10px;
  margin-bottom: 0.3rem;
  font-size: 0.9em;
  color: #555;
  line-height: 1.5;
}

/* Изображение */
article.company1 > table td[rowspan="2"] > div:nth-child(2) {
  margin: 1rem 0;
  text-align: center;
}

article.company1 > table td[rowspan="2"] > div:nth-child(2) img {
  max-width: 100%;
}

/* Контентный блок */
article.company1 > table td[rowspan="2"] > div:nth-child(3) {
  margin-top: 1.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  article.company1 > table td[rowspan="2"] > div:first-child {
    flex-direction: column;
    align-items: center;
  }

  article.company1 > table td[rowspan="2"] > div:first-child > div {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  article.company1
    > table
    td[rowspan="2"]
    > div:first-child
    > div:nth-child(2) {
    order: 3;
  }
}

/* --- Article styles ----- */
.article-aria {
  margin-bottom: var(--size-400);
}

.article-date {
  position: relative;
  padding-inline: 0.5rem;
  z-index: 1;
  white-space: nowrap;
}
.article-date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 300%;
  height: 1.8rem;
  background: linear-gradient(
    90deg,
    var(--color-nav-background) 50%,
    var(--color-website-body)
  );
  z-index: -1;
}

.article-aria a {
  color: var(--color-article);
  font-size: var(--size-550);
  text-decoration: none;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--size-400);
}
.article-meta {
  font-size: var(--size-400);
}
.article-header {
  margin-bottom: var(--size-400);
  color: var(--color-article-title);
}
.article-content {
  font-size: var(--font-size-md);
  line-height: 1.8;
}

.article-content b {
  font-weight: 700;
}
.author-info {
  display: flex;
  gap: var(--size-400);
  margin-bottom: var(--size-600);
}
.author-info img {
  align-self: flex-start;
  min-width: 150px;
  height: auto;
  object-fit: cover;
}

.author-info-container.empty-container {
  min-height: var(--size-400);
}

.author-name-info {
  font-size: var(--size-500);
}
.author-job-title {
  font-size: var(--size-350);
  line-height: 1.35;
}
.author-job-info {
  font-size: var(--size-350);
  line-height: 1.5;
}
.clear {
  clear: both;
}
.interv {
  margin: var(--size-600) 0 var(--size-200);
  font-size: var(--size-450);
  line-height: var(--line-height-text);
  letter-spacing: var(--letter-space-text);
}

/* аналог interv */
.article-content h3 {
  margin: var(--size-600) 0 var(--size-200);
  font-size: var(--size-500);
  line-height: var(--line-height-text);
  letter-spacing: var(--letter-space-text);
  font-weight: var(--font-weight-bold);
  color: var(--color-article-mid-title);
}

.interv-answer {
  margin-bottom: var(--size-600);
  line-height: var(--line-height-text);
  letter-spacing: var(--letter-space-text);
}

/* аналог .interv-answer */
.article-content p {
  margin-bottom: var(--size-400);
  line-height: var(--line-height-text);
  letter-spacing: var(--letter-space-text);
}

.article-content .center-img {
  margin-inline: auto;
}

.article-content .increase {
  cursor: pointer;
}

@media (width <= 710px) {
  .article-content .increase {
    cursor: auto;
  }
}

.article-content .center {
  text-align: center;
}

/* Видео */
.article-content iframe {
  width: 60% !important;
  height: auto !important;
  aspect-ratio: 16/9; /* Задаём соотношение сторон */
  /* margin-inline: auto;
  right: auto !important;
  left: auto !important; */
}

.article-content .center {
  margin-inline: auto;
  /* display: none; */
}

/* аналог .article-content .center-img  */
.article-content .up-dn img {
  min-width: 300px !important;
  width: 60% !important;
  margin-inline: auto;
}
.up-dn {
  margin-block: var(--size-400);
}

@media (width <= 710px) {
  .article-content .up-dn img {
    width: 100% !important;
  }
  .article-content iframe {
    width: 100% !important;
  }
}

/* анагог. размер картинок в статье */
/* .article-content .up-dn img {
  width: 100% !important;
} */

.margin-block-500 {
  margin: var(--size-500) 0;
}
.pic-sign {
  margin-top: var(--size-200);
  color: var(--color-article-caption);
  text-align: center;
  font-style: italic;
}
.txt-sml {
  font-size: var(--size-350);
}

.article-links {
  padding-left: var(--size-400);
  margin-block: var(--size-300);
}

/* аналог .article-links  */
.article-content ol,
.article-content ul,
article {
  padding-left: var(--size-400);
  margin-block: var(--size-300);
  line-height: var(--size-600);
}

/* ----- Archive ----- */
.archive-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.date-archive {
  font-size: var(--size-500);
}
.article-date.date-archive::before {
  height: 2rem;
}

.arhive-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--size-400);
  align-items: start;
}

.arhive-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1/1; /* Сохраняем пропорции */
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.arhive-card-title {
  display: flex;
  flex-direction: column;
  gap: var(--size-400);
  line-height: 1.47rem;
}

.archive-line {
  padding-bottom: var(--size-500);
  border-bottom: 4px solid var(--color-sidebar-line);
}

.data-archive-article {
  font-size: var(--size-350);
  color: var(--color-article-caption);
  text-wrap: nowrap;
}

.archive-title-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--size-400);
}

@media (width <= 710px) {
  .arhive-card {
    grid-template-columns: 60px 1fr;
  }
  .archive-title-date {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: var(--size-200);
  }
}
.archive-title-date span:last-child {
  white-space: nowrap;
  /* color: red; */
}

/* ----- Archive. Select menu  ----- */
.wrapper-select-menu {
  position: relative;
  /* box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5); */
}
/* .select-menu {
  max-width: 330px;
  margin: 50px auto;
} */
.select-menu .select-btn {
  display: flex;
  height: var(--size-700);
  background: #fff;
  padding: 20px;
  font-size: 18px;
  font-weight: 400;
  border-radius: 8px;
  align-items: center;
  cursor: pointer;
  justify-content: space-between;
}
.select-menu .options {
  --padding-select: var(--size-600);
  position: absolute;
  top: 50px;
  right: 0;
  width: fit-content;
  overflow-y: auto;
  max-height: 310px;
  padding-block: var(--size-400);
  padding-inline: var(--padding-select);
  z-index: 99;
  /* margin-top: 10px; */
  border-radius: 8px;
  background: var(--color-website-body);
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
  animation-name: fadeInDown;
  -webkit-animation-name: fadeInDown;
  animation-duration: 0.35s;
  animation-fill-mode: both;
  -webkit-animation-duration: 0.35s;
  -webkit-animation-fill-mode: both;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.select-menu .options .option {
  display: flex;
  height: var(--size-700);
  cursor: pointer;
  /* padding: 0 16px; */
  /* border-radius: 8px; */
  align-items: center;
  background: #fff;
  /* outline: 1px solid red; */
}
.select-menu .options .option:hover {
  background: #f2f2f2;
}
.select-menu .options .option i {
  font-size: 25px;
  margin-right: 12px;
}
.select-menu .options .option .option-text {
  font-size: var(--size-420); /* Размер шрифты выбора года */
  color: var(--color-text-body);
}

.select-menu .options .option:hover {
  position: relative;
  z-index: 0;
}
.select-menu .options .option:hover::after {
  content: "";
  position: absolute;
  background-color: var(--color-nav-hover);
  width: calc(2 * var(--padding-select) + 100%);
  height: 40px;
  transform: translateX(calc(-1 * var(--padding-select)));
  z-index: -1;
}

.select-overlay[data-select-overlay] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.select-btn i {
  font-size: var(--size-450);
  transition: 0.3s;
}

.select-menu.active .select-btn i {
  transform: rotate(-180deg);
}
.select-menu.active .options {
  display: block;
  opacity: 0;
  z-index: 10;
  animation-name: fadeInUp;
  -webkit-animation-name: fadeInUp;
  animation-duration: 0.4s;
  animation-fill-mode: both;
  -webkit-animation-duration: 0.4s;
  -webkit-animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    transform: translate3d(0, 30px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
@keyframes fadeInDown {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  to {
    transform: translate3d(0, 20px, 0);
    opacity: 0;
  }
}

.bx.bx-chevron-down {
  color: var(--color-text-body);
}

.bx {
  color: #049cce;
}

/* W3C standard
   сейчас только для Firefox */
/* * {
  scrollbar-width: thin;
  scrollbar-color: blue orange;
} */

/* для Chrome/Edge/Safari */
*::-webkit-scrollbar {
  /* height: 12px; */
  width: 1.2em;
}
*::-webkit-scrollbar-track {
  background: var(--color-nav-background);
}
*::-webkit-scrollbar-thumb {
  background: var(--color-text-link);
  /* background-color: blue;
  border-radius: 1px;
  border: 3px solid orange; */
}

*::-webkit-scrollbar-thumb:hover {
  background: hsl(212, 48%, 55%);
  opacity: 0.5;
}

/* Мобильная адаптация */
@media (max-width: 710px) {
  /* .arhive-card {
    grid-template-rows: 1fr 1fr;
  } */

  /* .arhive-card > div:first-child {
    max-width: 100%;
  } */

  /* .arhive-card img {
    aspect-ratio: 16/9;
  } */
}

/* ----- Sidebar ----- */
.sidebar-section-title {
  color: var(--color-sidebar-accent);
}
.sidebar-links {
  list-style-type: none;
}

aside a {
  text-decoration: none;
}

.from-editor {
  gap: var(--size-400);
}

.sidebar-line {
  padding-bottom: var(--size-500);
  border-bottom: 4px solid var(--color-sidebar-line);
}

.sidebar-news-month {
  color: var(--color-text-body);
  font-weight: var(--font-weight-bold);
}

.sapr-interview {
  display: flex;
  align-items: center;
  gap: var(--size-400);
  font-size: var(--size-450);
}
.top10-period {
  align-items: center;
  gap: var(--size-300);
}
.top10-period p:nth-of-type(1) {
  color: var(--color-sidebar-accent);
}
.top10 {
  padding-left: var(--size-400);
}
.sidebar-forums,
.sidebar-forums-index {
  flex-wrap: wrap;
  gap: var(--size-400);
}
.sidebar-forums img {
  width: 167px;
}
.sidebar-forums-index img {
  width: 157px;
}
@media (width <= 710px) {
  .sidebar-forums-index {
    justify-content: space-between;
  }
  .sidebar-forums-index img {
    width: 200px;
  }
}
.about-project {
  font-size: var(--size-350);
}

/* Numbers */
.sidebar-section ol {
  list-style: none;
  counter-reset: fuel-awesome-counter;
}

.sidebar-section ol li {
  counter-increment: fuel-awesome-counter;
  position: relative;
}

.sidebar-section ol li::before {
  content: counter(fuel-awesome-counter);
  color: #fff;
  background: #33637f;
  width: 1.2rem;
  height: 1.2rem;
  line-height: 1.6;
  display: inline-block;
  text-align: center;
  font-size: 0.8em;
  border-radius: 1em;
  margin-right: 0.5em;
  position: absolute;
  left: -2rem;
  top: -0.1em;
}

/* ----- Footer ----- */
footer > .container {
  background: var(--color-footer-background);
}

/* ----- Карусель ----- */
.slider {
  --slider-gap: 1rem;
  --slide-size: 5rem;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  /* min-width: 0; */
}

.slider__track {
  display: flex;
  gap: var(--slider-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;

  scroll-behavior: smooth;
  list-style-type: none;
  padding: 0;

  scrollbar-width: none;
}

.slider__track > * {
  flex: 0 0 auto;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slider__track::-webkit-scrollbar {
  display: none; /* hide scrollbar for WebKit browsers */
}

.slide {
  width: var(--slide-size);
  height: var(--slide-size);

  object-fit: cover;
  border-radius: 1rem;

  box-shadow: rgba(0, 0, 0, 0.35) 0px 0px 4px;
}

.slider__buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.slider__buttons [disabled] {
  opacity: 0.5;
}
.slider__button {
  background-color: #fff;
  border: 0 solid #e2e8f0;
  border-radius: 1.5rem;
  color: #0d172a;
  cursor: pointer;
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none #0d172a solid;
  text-decoration-thickness: auto;
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  border: 1px solid var(--color-sidebar-accent);
}

.slider__button:hover {
  background-color: var(--color-sidebar-accent);
  color: #fff;
}

/* ----- Слайдер в сайдбаре для больших экранов */

@media (width > 1240px) {
  .slider {
    --slider-gap: calc((var(--sidebar-max-width) - var(--slide-size) * 4) / 3);
  }
}

aside {
  min-width: 0;
}

.hide {
  display: none;
}

/* Переделываем стили для возможной таблицы в статье */
.article-content div table {
  width: auto !important;
  max-width: 100%;

  border-collapse: collapse;
  /* margin: 1.5rem 0; */
}

.article-content div table tbody tr {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
}

/* Переделываем таблицу во флекс-контейнер на мобильных */
@media (max-width: 768px) {
  /* .article-content div table,
  .article-content div tbody,
  .article-content div tr {
    display: flex;
    flex-direction: column;
  } */
  .article-content div table tbody tr {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  /* .article-content div td {
    display: block;
    width: 100% !important;
    padding: 10px;
  } */

  .article-content div td:first-child {
    text-align: center;
  }
}

/* Улучшаем отображение изображения */
.article-content div table img {
  width: 200px; /* Увеличиваем размер */
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

/* Стили для текста */
.article-content div table p {
  margin: 0;
  padding: 5px 0;
}

.article-content div table .txt-lrg {
  font-size: 1.1rem;
  line-height: 1.5;
}
