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

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

a {
  color: inherit;
  text-decoration: none;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-VariableFont_wdth\,wght.woff2") format("woff2");
  /* font-weight: 300; */
  font-style: normal;
  font-display: swap;
}

:root {
  --font-open-sans: "Open Sans", sans-serif;
  --color-white: #ffffff;
  --color-black: #191d2a;
  --color-blue: #1a48b9;
  --color-blue-light: #a2beff;
  --color-black-60: rgba(0, 25, 46, 0.6);
  --color-white-30: rgba(255, 255, 255, 0.3);
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-white-85: rgba(255, 255, 255, 0.85);
  --color-black-60: rgba(0, 0, 0, 0.6);
  --color-black-70: rgba(0, 0, 0, 0.7);
  --color-black-30: rgba(25, 29, 42, 0.3);
  --color-black-45: rgba(25, 29, 42, 0.45);
  --color-blue-80: rgba(0, 25, 50, 0.8);
  --gradient-overlay: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

body {
  font-family: var(--font-open-sans), sans-serif;
}

.main {
  margin-top: -57px;
}

.container,
.wrapper {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Хлебные крошки белые */

.wrapper {
  position: relative;
  top: 200px;
  z-index: 1;
}

.breadcrumbs ul {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 0;
  padding: 0 0 40px;

  list-style: none;

  color: var(--color-white-70);

  font-size: 14px;
  font-weight: 200;
}

/* пункты */

.breadcrumbs li {
  display: flex;
  align-items: center;
}

/* текущая страница */

.breadcrumbs ._active {
  cursor: default;
}

/* стрелка между пунктами */

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
}

/* ссылки */

.breadcrumbs a {
  color: inherit;
  text-decoration: none;

  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--color-white);
}

/* Хлебные крошки темные*/

body.bread_fix .wrapper {
  top: 135px;
}

body.bread_fix .breadcrumbs a {
  color: var(--color-black-60);
}

body.bread_fix .breadcrumbs ul {
  padding: 0;
}

body.bread_fix .breadcrumbs li:not(:last-child)::after {
  color: var(--color-black-60);
}

body.bread_fix .breadcrumbs ._active {
  color: var(--color-black-60);
}

body.bread_fix .breadcrumbsa:hover {
  color: var(--color-black);
}

/* Header*/

.header {
  background-color: var(--color-black-45);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.header-wrapper {
  height: 100px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 100px;
  justify-content: space-between;
  font-family: var(--font-open-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white-70);
}

.header-logo {
  display: block;
  width: 164px;
  height: 64px;
  background-image: url(../images/logo-header.png);
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.header-nav-burger {
  display: flex;
  gap: 50px;
}

.header-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
}

.link-home-page:first-child {
  font-weight: bold;
  color: var(--color-white);
}

.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link-dropdown::after {
  content: "";
  width: 6px;
  height: 6px;

  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;

  transform: rotate(45deg);
  margin-top: -3px;
}

.header-nav :hover {
  color: var(--color-white);
  transition: color 0.3s ease;
}

.burger {
  display: block;
  background-image: url(../images/burger.svg);
  width: 25px;
  height: 26px;
}

.header-dropdown {
  position: relative;
}

/* =========================
   Меню первого уровня
========================= */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -100px;

  width: 280px;
  padding: 20px 24px;

  display: flex;
  flex-direction: column;
  gap: 16px;

  background-color: var(--color-black);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(30px);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s;

  z-index: 20;
}

.header-dropdown:hover .dropdown-menu,
.header-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}

.dropdown-menu a {
  color: var(--color-white-70);

  transition: color 0.3s ease;
}

.dropdown-menu a:hover {
  color: var(--color-white);
}

/* =========================
   Меню второго уровня
========================= */

.dropdown-submenu-item {
  position: relative;
}

.dropdown-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dropdown-submenu-link::after {
  content: "";

  width: 7px;
  height: 7px;

  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;

  transform: rotate(45deg);

  flex-shrink: 0;
}

.dropdown-submenu {
  position: absolute;
  top: -20px;
  left: 100%;

  width: 380px;
  padding: 28px 40px;

  display: flex;
  flex-direction: column;
  gap: 26px;

  background-color: var(--color-black);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(30px);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s;

  z-index: 30;
}

.dropdown-submenu a {
  color: var(--color-white-70);
  font-size: 16px;
  line-height: 1.3;

  transition: color 0.3s ease;
}

.dropdown-submenu a:hover {
  color: var(--color-white);
}

.dropdown-submenu-item:hover .dropdown-submenu,
.dropdown-submenu-item:focus-within .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateX(0);
}

/*  Выезжающее меню */

.menu-overlay {
  position: fixed;
  inset: 0;

  background-color: var(--color-black-70);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 100;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 360px;
  height: 100vh;

  padding: 40px;

  background-color: var(--color-black);

  transform: translateX(100%);
  transition: transform 0.4s ease;

  z-index: 101;
}

.side-menu.is-open {
  transform: translateX(0);
}

.side-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;

  color: white;
  font-size: 36px;
}

.side-menu-search {
  width: 100%;
  margin-top: 70px;
  padding: 16px;
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;

  margin-top: 30px;

  color: white;
  font-size: 18px;
}

body.menu-open {
  overflow: hidden;
}

.side-menu-dropdown-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--color-white-70);
  cursor: pointer;
}

.side-menu-dropdown-title {
  list-style: none;
}

.side-menu-dropdown-title::-webkit-details-marker {
  display: none;
}

.side-menu-dropdown-title::after {
  content: "";

  width: 7px;
  height: 7px;

  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;

  transform: rotate(45deg);

  transition: transform 0.3s ease;
}

.side-menu-dropdown[open] .side-menu-dropdown-title::after {
  transform: rotate(225deg);
}

.side-menu-submenu {
  display: flex;
  flex-direction: column;
  gap: 14px;

  padding-top: 18px;
  padding-left: 16px;
}

.side-menu-submenu a {
  color: var(--color-white-70);
  font-size: 16px;

  transition: color 0.3s ease;
}

.side-menu-submenu a:hover {
  color: var(--color-white);
}

/* =========================
   Второй уровень бокового меню
========================= */

.side-menu-subdropdown {
  width: 100%;
}

/* убираем стандартный маркер details */

.side-menu-subdropdown-title {
  list-style: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: var(--color-white-70);
  font-size: 16px;

  cursor: pointer;
}

.side-menu-subdropdown-title::-webkit-details-marker {
  display: none;
}

/* стрелка справа */

.side-menu-subdropdown-title::after {
  content: "";

  width: 7px;
  height: 7px;

  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;

  transform: rotate(45deg);

  flex-shrink: 0;

  transition: transform 0.3s ease;
}

/* поворот стрелки при открытии */

.side-menu-subdropdown[open] .side-menu-subdropdown-title::after {
  transform: rotate(225deg);
}

/* ссылки третьего уровня */

.side-menu-subdropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;

  padding-top: 16px;
  padding-left: 20px;
}

/* сами ссылки */

.side-menu-subdropdown-menu a {
  color: var(--color-white-70);
  font-size: 15px;
  line-height: 1.4;

  transition: color 0.3s ease;
}

.side-menu-subdropdown-menu a:hover {
  color: var(--color-white);
}

/* Фоновая картинка и цвет фона */

.inner-page--top-image {
  position: relative;
  min-height: 100vh;

  background-color: var(--page-bg);

  overflow: hidden;
}

.inner-page--top-image::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 350px;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)),
    url("../images/1a63e60f-f60a-41a8-9159-985ed6b7514f.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;
}

.inner-page--top-image .container {
  position: relative;
  z-index: 1;
}

/* Стил для одинаковых ссылок*/

.action-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;

  padding-top: 40px;
  padding-bottom: 77px;
}

.action-card {
  background-color: var(--color-blue-80);
  padding: 30px 24px;
  border: 2px solid var(--color-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.action-card-text {
  max-width: 458px;
}

.action-card::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
}

.action-card:hover {
  background-color: var(--color-black-60);
  transition: color 0.3s ease;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-personal {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-black-70);
  z-index: 1;
}

.hero-personal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  min-height: 100vh;

  padding-top: 203px;
  padding-bottom: 0;

  gap: 100px;

  color: var(--color-white);
}

.hero-upper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.hero-logos {
  display: flex;
  flex-direction: row;
  gap: 79px;
  height: 97px;
}

.attestation {
  display: flex;
  gap: 0px;
}

.attestation-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  width: 33%;
  color: var(--color-white-85);
}

.header-attestation {
  font-family: var(--font-open-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
}

.description-attestation {
  font-family: var(--font-open-sans);
  font-size: 16px;
  font-weight: 200;
  line-height: 1.5;
}

.attestation-card-title {
  display: flex;
  gap: 12px;
  align-items: start;
}

.attestation-icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  vertical-align: middle;
}

.attestation-card--person {
  border: 1px solid var(--color-white-30);
  border-radius: 14px 0 0 14px;
}

.attestation-card--equipment,
.attestation-card--person:nth-child(2) {
  border: 1px solid var(--color-white-30);
  border-radius: 0px 0 0 0px;
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
}

.attestation-card--technology,
.attestation-card--person:nth-child(3) {
  border: 1px solid var(--color-white-30);
  border-radius: 0 14px 14px 0;
}

.attestation-card--person:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Навигация внизу страницы */

#bottom-nav {
  width: 100%;
}

.bottom-nav {
  background-color: transparent;
  color: var(--color-white);
  width: 100%;
}

.bottom-nav-wrapper {
  min-height: 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  font-size: 14px;

  margin-top: auto;
  padding-bottom: 60px;
}

.bottom-nav-wrapper a {
  transition: color 0.3s ease;
}

.bottom-nav-wrapper a:hover {
  color: var(--color-white-70);
}

.page-title {
  font-family: var(--font-open-sans);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  padding-bottom: 32px;
  color: var(--color-white);
}

.footer {
  background-color: var(--color-black);
  height: 76px;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  padding-top: 27px;
  padding-bottom: 27px;
  font-size: 12px;
  color: var(--color-white-30);
}

.policy-footer {
  color: var(--color-white-30);
}

.policy-footer:hover {
  color: var(--color-white);
  transition: color 0.3s ease;
}

/* =========================
 Аттестация персонала
========================= */

.inner-page {
  min-height: 100vh;
  background: var(--gradient-overlay);
  color: var(--color-white);
  padding-top: 274px;
}

.inner-page-white {
  padding-top: 172px;
}

/* =========================
 Аттестация оборудования
========================= */

.inner-page--equipment {
  background-image:
    var(--gradient-overlay),
    url("../images/attestation-equipment/ffde4fc6-4cb2-41b8-9d5c-07da4f6fe641.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-content {
  font-family: var(--font-open-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  max-width: 1054px;
  padding-bottom: 30px;
}

.page-text-group {
  padding-bottom: 30px;
}

.action-links--three {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================
 Аттестация сварщиков
========================= */

.page-title-group {
  font-family: var(--font-open-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
}

.page-content a {
  color: var(--color-blue-light);
}

.page-content a:hover {
  color: var(--color-white);
  transition: color 0.3s ease;
}

.page-list {
  list-style: disc;
  padding-left: 24px;
}

.procedure-list {
  list-style: decimal;
  padding-left: 24px;
}

.page-list {
  padding-bottom: 30px;
}

/* =========================
Контакты
========================= */

.contacts {
  min-height: 100vh;
  background: var(--color-white);
  color: var(--color-black);
  padding-top: 150px;
  text-align: center;
}

.inner-page--contacts {
  background: var(--color-white);
  color: var(--color-black);
}

/* Таблица нач */

.contacts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 50px;
  margin-bottom: 50px;
  border: 1px solid #d9d9d9;
}

.contacts-table tr {
  border-bottom: 1px solid #d9d9d9;
}

.contacts-table tr:first-child {
  border-top: 1px solid #d9d9d9;
}

.contacts-table td {
  vertical-align: top;
  padding: 30px;
}

/* Первая колонка — ФИО + должность */
.contacts-table-person {
  width: 50%;
  padding: 40px;
  color: var(--color-black);
}

.contacts-table-name {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.contacts-table-position {
  font-size: 15px;
  line-height: 1.5;
}

/* Вторая колонка — телефон + почта */
.contacts-table-contacts {
  width: 50%;
  padding-left: 40px;
  border-left: 1px solid #d9d9d9;
}

.contacts-table-phone {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.4;
}

.contacts-table-phone a,
.contacts-table-email {
  color: var(--color-blue);
  text-decoration: none;
}

.contacts-table-phone a:hover,
.contacts-table-email:hover {
  text-decoration: underline;
}

.contacts-table-email {
  display: inline-block;
  font-size: 16px;
  line-height: 1.4;
}

/* Таблица кон */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-top: 120px;
  padding-bottom: 77px;
}

.contact-card-image {
  width: 100%;
  height: 297px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-card-name {
  font-family: var(--font-open-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: var(--color-black);
}

.contact-card-position {
  font-family: var(--font-open-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: var(--color-black);
}

.contact-card-phone {
  font-family: var(--font-open-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: var(--color-blue);
}

.contact-card-phone span {
  font-family: var(--font-open-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: var(--color-black);
}

.company-details {
  max-width: 610px;
  text-align: left;
  color: var(--color-black-70);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 80px;
}

.company-details a {
  color: var(--color-blue);
}

.company-details a:hover {
  color: var(--color-blue-light);
  transition: color 0.3s ease;
}

/* =========================
Новости
========================= */

.news {
  min-height: 100vh;
  background: var(--color-white);
  color: var(--color-black);
  padding-top: 150px;
  text-align: center;
}

.inner-page--news {
  background: var(--color-white);
  color: var(--color-black);
}

.news-grid {
  padding-top: 120px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 80px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.news-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 8px;
}

.news-card-title-link {
  font-family: var(--font-open-sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-blue);
}

.news-card-meta {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-black-70);
}

.link-news {
  color: var(--color-blue);
}

.news-card-excerpt {
  font-family: var(--font-open-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-black);
}

.news-card-more {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-blue);
}

.news-grid a:hover {
  color: var(--color-blue-light);
  transition: color 0.3s ease;
}

/* =========================
Документы АЦ АО "Гипрониигаз"
========================= */

.inner-page--documents {
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-title--document {
  text-align: center;
}

.documents-grid {
  padding-top: 40px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.document-card {
  position: relative;
  display: block;
  overflow: hidden;
}

.document-image {
  display: block;
  width: 100%;
}

.document-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background-color: rgba(26, 72, 185, 0.45);

  opacity: 0;
  transition: opacity 0.3s ease;

  z-index: 1;
}

.document-card:hover::before {
  opacity: 1;
}

.document-card::after {
  content: "+";

  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background-color: var(--color-black);
  color: var(--color-white);

  font-size: 28px;
  font-weight: 300;

  opacity: 0;
  transition: opacity 0.3s ease;

  z-index: 2;
}

.document-card:hover::after {
  opacity: 1;
}

.document-modal {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background-color: rgba(0, 0, 0, 0.85);

  z-index: 1000;
}

.document-modal.is-open {
  display: flex;
}

.document-modal-image {
  max-width: 90%;
  max-height: 90vh;

  object-fit: contain;
}

.document-modal-close {
  position: absolute;
  top: 30px;
  right: 40px;

  color: var(--color-white);

  font-size: 40px;
  line-height: 1;
}

/* =========================
Страница новости
========================= */

.single-news {
  width: 100%;
  max-width: 898px;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-bottom: 80px;
  color: var(--color-black);
}

.single-news-meta {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  gap: 14px;
  color: var(--color-black-70);
}

.news-link {
  color: var(--color-blue);
}

.news-link:hover {
  color: var(--color-blue-light);
  transition: color 0.3s ease;
}

.attestation-link:hover {
  color: var(--color-black-45);
  transition: color 0.3s ease;
}

.single-news-text {
  padding-top: 20px;
}

.single-news-content h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  padding-bottom: 10px;
  padding-top: 28px;
}

.single-news-content p {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  padding-top: 10px;
}

.single-news-content {
  width: 100%;
}

.single-news-image {
  width: 100%;
  max-width: 898px;

  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

.single-news-image img {
  display: block;
  width: 100%;
  height: auto;
}

.single-news-content figcaption {
  font-weight: 300;
  font-size: 12px;
  line-height: 1.5;
  padding-top: 12px;
  text-align: center;
}

.single-news-page .bottom-nav {
  color: var(--color-black);
}

.single-news-page .bottom-nav-wrapper a:hover {
  color: var(--color-black-70);
}

/* =========================
Результаты поиска
========================= */

.search-results {
  padding-top: 120px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =========================
404
========================= */

.error-page__description {
  padding-top: 100px;
  padding-bottom: 24px;
}

.error-page__link {
  color: var(--color-blue);
}

.error-page__link:hover {
  color: var(--color-blue-light);
  transition: color 0.3s ease;
}

/* =========================
Адаптив
========================= */
@media (max-width: 1200px) {
  .documents-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 970px) {
  .hero {
    height: auto;
  }

  .hero-content {
    top: 0;
    padding-top: 200px;
    padding-bottom: 80px;
    gap: 60px;
  }

  .inner-page--top-image::before {
    height: 358px;
  }

  .news,
  .contacts {
    padding-top: 106px;
  }

  .documents-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .documents-grid::-webkit-scrollbar {
    display: none;
  }

  .document-card {
    flex: 0 0 45%;
    scroll-snap-align: start;
  }

  .news-grid {
    grid-template-columns: repeat(1, 1fr);
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .contacts-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
  }

  .contacts-grid::-webkit-scrollbar {
    display: none;
  }

  .contact-card {
    flex: 0 0 0 45%;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .bottom-nav-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;

    padding-top: 30px;
    padding-bottom: 30px;
  }

  .bottom-nav-wrapper a {
    text-align: center;
  }

  .single-news-image {
    padding-top: 25px;
    padding-bottom: 15px;
  }

  .single-news-content h2 {
    font-size: 16px;
    line-height: 1.5;
    padding-bottom: 4px;
    padding-top: 4px;
  }

  .single-news-meta {
    padding-top: 0px;
    padding-bottom: 0px;
  }
}

@media (max-width: 872px) {
  .header-nav {
    display: none;
  }

  .header-wrapper {
    height: 80px;
  }

  .inner-page-white {
    padding-top: 107px;
  }

  .hero-content {
    gap: 55px;
    padding-bottom: 20px;
  }

  .breadcrumbs ul {
    width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .breadcrumbs li {
    flex-shrink: 0;
  }

  .breadcrumbs li:last-child {
    flex: 1;
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.bread_fix .wrapper {
    top: 100px;
  }
  .inner-page-white {
    padding-top: 130px;
  }

  .header-logo {
    width: 140px;
    height: 55px;
  }

  .attestation {
    flex-direction: column;
    gap: 12px;
  }

  .attestation-card {
    width: 100%;
  }

  .attestation-card--person {
    border-radius: 14px;
    border: 1px solid var(--color-white-30);
  }

  .attestation-card--equipment,
  .attestation-card--person:nth-child(2) {
    border-radius: 14px;
    border: 1px solid var(--color-white-30);
  }

  .attestation-card--technology,
  .attestation-card--person:nth-child(3) {
    border-radius: 14px;
    border: 1px solid var(--color-white-30);
  }

  .action-links {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .footer {
    height: auto;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .company-details {
    padding-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: 24px;
    padding-bottom: 0px;
    text-align: left;
  }

  p,
  li,
  a {
    font-size: 16px;
  }

  .page-title {
    padding-bottom: 20px;
  }

  .inner-page--top-image::before {
    height: 200px;
  }

  .inner-page {
    padding-top: 200px;
  }

  .breadcrumbs ul {
    padding-bottom: 24px;
  }

  body.bread_fix .breadcrumbs ul {
    padding-bottom: 20px;
  }

  .hero-upper {
    gap: 60px;
  }

  .hero-logos {
    flex-direction: column;
    width: 250px;
    gap: 40px;
    height: 250px;
  }

  .side-menu {
    width: 300px;
    height: 100vh;
    padding: 20px;
  }

  .document-card {
    flex-basis: 70%;
  }

  .documents-grid {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .inner-page--top-image::before {
    height: 250px;
  }

  .wrapper {
    top: 114px;
  }

  .news-card-title-link {
    font-size: 18px;
    line-height: 1.3;
  }

  .news-grid {
    padding-top: 20px;
    gap: 40px;
  }
  .news-card-excerpt {
    font-size: 14px;
    line-height: 160%;
  }

  .contact-card {
    flex-basis: 85%;
  }

  .bottom-nav-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;

    padding-top: 24px;
    padding-bottom: 40px;
  }

  .bottom-nav-wrapper a {
    text-align: center;
  }

  .inner-page-white {
    padding-top: 110px;
  }

  .single-news-meta {
    flex-direction: column;
    gap: 6px;
  }

  .single-news {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .contacts-table {
    margin-top: 50px;
  }

  .contacts-table,
  .contacts-table tbody,
  .contacts-table tr,
  .contacts-table td {
    display: block;
    width: 100%;
  }

  .contacts-table td {
    box-sizing: border-box;
    padding: 12px 20px;
  }

  /* ФИО + должность */
  .contacts-table-person {
    padding-top: 20px;
    padding-bottom: 5px;
  }

  .contacts-table-name {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.3;
  }

  .contacts-table-position {
    font-size: 16px;
    line-height: 1.4;
  }

  /* Телефон + e-mail */
  .contacts-table-contacts {
    padding-top: 5px;
    padding-bottom: 20px;
    border-left: none;
  }

  .contacts-table-phone {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
  }

  .contacts-table-email {
    font-size: 16px;
    line-height: 1.4;
  }

  .contacts-table tr {
    border-bottom: 1px solid #d9d9d9;
  }

  .contacts-table tr:last-child {
    border-bottom: none;
  }
}

.single-news-page h1 {
  color: #191d2a !important;
}
