/* =========================
   DOCUMENTATION PAGE CSS
   (адаптив + аккуратные отступы + loader)
   ========================= */

/* -------- fonts -------- */
@font-face {
  font-family: "opensans-r";
  src: local("Open Sans Regular"), local("Open-Sans-Regular"),
    url("https://multisoft.ru/font/OpenSans-Regular/OpenSans-Regular.woff2") format("woff2"),
    url("https://multisoft.ru/font/OpenSans-Regular/OpenSans-Regular.woff") format("woff"),
    url("https://multisoft.ru/font/OpenSans-Regular/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "opensans-b";
  src: local("Open Sans Bold"), local("Open-Sans-Bold"),
    url("https://multisoft.ru/font/OpenSans/OpenSans-Bold.woff2") format("woff2"),
    url("https://multisoft.ru/font/OpenSans/OpenSans-Bold.woff") format("woff"),
    url("https://multisoft.ru/font/OpenSans/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* -------- base -------- */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "opensans-r", Arial, sans-serif;
  text-decoration: none;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  overflow-x: hidden;
  background: #001d35;
  color: #fff;
}

/* -------- layout -------- */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 15px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header {
  position: relative;
  padding-top: 28px;
  padding-bottom: 20px;
  background: #001d35;
}

/* -------- top/menu -------- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-img {
  width: 250px;
  display: flex;
  align-items: center;
}

.logo-img svg {
  display: block;
  width: 100%;
  height: auto;
}

.menu {
  display: flex;
  align-items: center;
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  list-style: none;
}

.menu-item:nth-child(n + 2) {
  margin-left: 0; /* gap вместо margin */
}

.menu-link {
  text-transform: uppercase;
  font-size: 14px;
  color: #fff;
}

.menu-link:hover {
  text-decoration: underline;
}

/* -------- content blocks -------- */
.wrapper_specification {
  background-color: #001d35;
  padding: 40px 0 78px; /* низ с запасом под фиксированный contact */
}

.specification {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* h2 внутри .specification (у тебя так в HTML) */
.specification > .title5 {
  margin: 36px 0 16px;
}

/* заголовки секций */
.title5 {
  font-family: "opensans-b", Arial, sans-serif;
  font-size: 32px;
  line-height: 1.15;
  text-align: left;
  color: #fff;
  margin: 36px 0 16px;
}

.specification__box {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 28px 36px;
  border-radius: 5px;
}

.specification__box:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.head {
  font-family: "opensans-b", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 10px;
}

.text {
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  margin: 0 0 10px;
}

.text:last-child {
  margin-bottom: 0;
}

/* -------- download buttons -------- */
.download {
  display: inline-block;
  font-family: "opensans-b", Arial, sans-serif;
  background-color: #ffffff;
  color: #001d35;
  border-radius: 5px;
  font-size: 14px;
  padding: 10px 22px;
  margin: 8px 10px 0 0;
  transition: all 0.25s ease;
}

.download:hover {
  cursor: pointer;
  background-color: rgba(14, 121, 190, 1);
  color: #ffffff;
}

/* -------- ASC input -------- */
.ascc {
  width: 100%;
  max-width: 700px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-family: "opensans-b", Arial, sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  margin-top: 16px;
}

.ascc:focus {
  outline: 0;
  border-color: #ff0000;
  background-color: #ffecec;
  color: #212529;
  box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.25);
}

.head-hidden,
.text-hidden {
  display: none;
}

/* -------- contact (fixed bottom) -------- */
.contact {
  width: 100%;
  background-color: #001d35;
  padding: 8px 15px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

.text2 {
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: #fff;
}

/* ===== loader ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 29, 53, 0.94);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader__spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__spinner { animation: none; }
}

/* -------- responsive -------- */
@media (max-width: 768px) {
  .logo-img { width: 210px; }

  .wrapper_specification { padding: 28px 0 78px; }

  .title5 {
    font-size: 22px;
    margin: 28px 0 14px;
  }

  .head { font-size: 15px; }
  .text { font-size: 14px; }

  .specification__box { padding: 18px; }
}

@media (max-width: 480px) {
  .logo-img { width: 185px; }
  .menu-link { font-size: 13px; }

  .download {
    display: block;
    width: 100%;
    text-align: center;
    margin-right: 0;
  }
}
