@charset "utf-8";
/* =====================================================================
   precision-mirrors.com — единый файл стилей сайта.
   Дизайн перенесён со старого сайта (upm-site/mirror-raw/css:
   inuit.css + fluid-grid16-1100px.css + eve-styles.css).
   Значения цветов, размеров и отступов — оттуда же.
   ===================================================================== */

/* ---------- Шрифт заголовков и меню: Oswald (локальный файл) ---------- */
@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/Oswald.woff") format("woff"),
       url("/assets/fonts/Oswald.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- Основа ---------- */
html {
  font-family: Arial, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  color: #888;
  background: #fff url("/assets/bg.jpg") repeat;
  overflow-y: scroll;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}
/* overflow-x: clip — страховка: ничто не выходит за правый край окна
   и не даёт прокрутки вбок (иначе справа пропадает отступ,
   а внизу появляется полоса горизонтальной прокрутки). */
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, table, hr {
  margin: 0 0 24px;
}
ul, ol {
  margin-left: 3em;
  padding: 0;
  text-align: left;   /* (промпт 19-1) пункты — слева, как в Word-копии; li.center / li.right — по центру / справа */
}
a {
  color: #336FC8;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  vertical-align: middle;
}
strong { font-weight: bold; }
em { font-style: italic; }
sub, sup { font-size: 0.75em; line-height: 0; }

/* Контейнер страницы (старый .wrapper) */
.wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5em 1em;
}

/* ---------- Заголовки ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Oswald", Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  color: #016ab3;
  text-shadow: 1px 1px 0 #6D8901;
}
h1 { font-size: 2.5em; margin-bottom: 0.75em; line-height: 1.5; }
h2 { font-size: 2.3em; margin-bottom: 1em; line-height: 1.4; }
h3 { font-size: 2em; margin-bottom: 1em; line-height: 1.3; }
h4 { font-size: 1.5em; margin-bottom: 0.8em; text-shadow: none; font-weight: bold; }
h5 { font-size: 1.3em; margin-bottom: 0.6em; text-shadow: none; }
h6 { font-size: 1.2em; margin-bottom: 0.6em; text-shadow: none; }

/* На старом сайте H1 не было: главный заголовок страницы был H2, H3 или H4.
   Эти классы дают H1 размер того заголовка. */
h1.as-h2 { font-size: 2.3em; margin-bottom: 1em; line-height: 1.4; }
h1.as-h3 { font-size: 2em; margin-bottom: 1em; line-height: 1.3; }
h1.as-h4 { font-size: 1.5em; margin-bottom: 0.8em; line-height: 1.5; text-shadow: none; font-weight: bold; }

/* CERTIFICATION: на старом сайте у этой страницы свой CSS —
   заголовки шрифтом Arial, H4 не жирный. */
body.menu-certification h1, body.menu-certification h2, body.menu-certification h3,
body.menu-certification h4, body.menu-certification h5, body.menu-certification h6 {
  font-family: Arial, sans-serif;
}
body.menu-certification h4 { font-weight: normal; }

/* ---------- Текст страницы ---------- */
.content {
  text-align: center;
  overflow-wrap: break-word;   /* длинное «слово» (строка точек в оглавлении CERTIFICATION) переносится, а не вылезает за край */
}
.content p {
  font-size: 1.125em;   /* <font size="4"> старого сайта */
}
.content ul, .content ol {
  font-size: 1.125em;   /* (промпт 19-1) пункты списка — как абзац */
}
.content li ul, .content li ol {
  font-size: 1em;
}
.content td p {
  font-size: 1em;
}
/* Крупный текст: <font size="5"> старого сайта (HOME) */
.content p.lead { font-size: 1.5em; line-height: 1.6; }
.left { text-align: left; }
.center { text-align: center; }
.justify { text-align: justify; }

.gray { color: #666666; }
.dark { color: #333333; }
.text-black { color: #000000; }   /* <font color="#000000"> старого сайта (CERTIFICATION) */
mark { background-color: #FFFF00; color: inherit; }
mark.cyan { background-color: #00FFFF; }
mark.green { background-color: #00FF00; }

/* Картинки подряд в одном абзаце — с промежутком */
.content p img + img { margin-left: 10px; max-width: calc(100% - 10px); }

/* (промпт 16А) Классы конвертера Word → сайт: размер, отступ, выравнивание, картинки.
   Размер — от размера блока (Word: «Text Small» −2 pt, «Text Large» +3 pt, «Text XL» +6 pt). */
.right { text-align: right; }
/* (промпт 16А-dev-2) пункт списка по центру / справа: маркер рядом с текстом, как в Word */
li.center, li.right { list-style-position: inside; }
.text-small { font-size: 0.85em; }
.text-large { font-size: 1.25em; }
.text-xl { font-size: 1.5em; }
.content .text-small, .content .text-large, .content .text-xl { line-height: 1.4; }
.content p.text-small { font-size: 0.95em; }    /* = 0.85 × 1.125em абзаца */
.content p.text-large { font-size: 1.4em; }     /* = 1.25 × 1.125em */
.content p.text-xl { font-size: 1.7em; }        /* = 1.5 × 1.125em */
.indent-1 { margin-left: 2em; }
.indent-2 { margin-left: 4em; }
img.img-center { display: block; margin-left: auto; margin-right: auto; }
img.img-right { display: block; margin-left: auto; margin-right: 0; }
.content p img.img-center + img, .content p img.img-right + img { margin-left: auto; }

/* ---------- Разделитель (картинка-«волна» старого сайта) ---------- */
hr {
  clear: both;
  width: 100%;
  height: 29px;
  margin: 30px 0 1em;
  padding: 0;
  border: 0;
  background: url("/assets/hr.png") no-repeat center top;
  background-size: contain;
}

/* ---------- Колонки (старая сетка из 16 колонок) ---------- */
.cols {
  display: flex;
  gap: 0 2.679%;
  margin-bottom: 24px;
}
.cols > div { flex: 1 1 0; min-width: 0; }
.cols > .col-3 { flex-grow: 3; }
.cols > .col-4 { flex-grow: 4; }
.cols > .col-6 { flex-grow: 6; }
.cols > .col-7 { flex-grow: 7; }
.cols > .col-8 { flex-grow: 8; }
.cols > .col-9 { flex-grow: 9; }
.cols > .col-10 { flex-grow: 10; }
.cols > .col-12 { flex-grow: 12; }
.cols > .col-13 { flex-grow: 13; }
.cols-2 { flex-wrap: wrap; }
.cols-2 > div { flex: 0 0 48.66%; margin-bottom: 30px; }
/* Ряд внутри колонки (три картинки плитки SITALL на WE OFFER, промпт 15.6) */
.cols .cols { margin-bottom: 0; }
/* (промпт 23F) Пара «картинка + текст» (блоки WE OFFER, как на старом сайте): картинка слева от текста, шириной
   с колонку (около 256 px при 1280, как на старом сайте); на телефоне — картинка над текстом (@media до 720 px) */
.cols.media { align-items: flex-start; }

/* HOME: место под картинку справа от «Action this months!»
   Рамка — как у слайдера старого сайта (.flexslider в flexslider.css):
   5px #ccc, скругление 5px, белый фон, без тени. */
.image-slot:empty {
  aspect-ratio: 670 / 430;
}
.image-slot img {
  display: block;
  box-sizing: border-box;   /* рамка входит в max-width: 100%, картинка не шире колонки */
  margin: 0 auto;
  border: 5px solid #ccc;
  border-radius: 5px;
  background: #fff;
}

/* ---------- Цветной блок (IMPORTANT на HOME, старый .grey) ---------- */
.box {
  border-radius: 15px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: 15px;
  background-color: #99CCFF;
  background-image: linear-gradient(to bottom, #D9ECFF, #99CCFF);
  box-shadow: 0 3px 0 0 #C0C0C0 inset;
}
.box h2, .box h3, .box h4 {
  border-bottom: 5px solid #fff;
  margin-bottom: 0;
}
.box h2, .box h3, .box h4, .box h5, .box h6 {
  padding: 0 30px;
  line-height: 1.7;
}
.box p {
  padding: 10px 30px 0;
  font-family: Arial, sans-serif;
  font-size: 1.4em;
  font-style: italic;
  letter-spacing: -1px;
  line-height: 2;
}

/* ---------- Кнопка (JUST COMPARE OUR PRICES AND RESULT!) ---------- */
a.button {
  display: inline-block;
  position: relative;
  margin: 15px 0;
  padding: 0.3em 0.7em;
  font-family: Arial, sans-serif;
  font-size: 0.89em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #336FC8;
  text-shadow: 0 1px 0 #424F1C;
  background-color: #99CCFF;
  background-image: linear-gradient(to bottom, #D9ECFF, #99CCFF);
  border: 1px solid #28A0DF;
  border-radius: 5px;
  box-shadow: 0 1px 0 0 #C0C0C0 inset;
}
a.button:hover {
  color: #fff;
  background-color: #336FC8;
  background-image: linear-gradient(to bottom, #28A0DF, #336FC8);
}

/* ---------- Таблицы ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}
/* Таблица из одной строки (PRICES): на телефоне складывается в столбик (см. ниже) */
.table-stack {
  margin-bottom: 24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 0;
}
th, td {
  vertical-align: top;
  padding: 0.75em;
  border: 1px solid #ccc;
}
th { font-weight: bold; text-align: center; }
tr:nth-of-type(odd) { background: rgba(0, 0, 0, 0.05); }
td h5 { margin-bottom: 0.6em; }
td p { margin-bottom: 1em; }

/* ---------- Формулы MathML (на будущее) ---------- */
math[display="block"] {
  display: block;
  text-align: center;
  margin: 1em auto 1.5em;
  font-size: 1.15em;
}
math {
  font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", serif;
}

/* ---------- Шапка: логотип и меню ---------- */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0;
}
.logo,
.logo img {
  display: block;
  width: 200px;
  height: 122px;
  margin: 0;
  flex-shrink: 0;
}
.menu {
  margin: 2em 0 0;
  padding: 0.4em 0;
  text-align: center;
  font-family: "Oswald", Arial, sans-serif;
}
.menu a {
  display: inline-block;
  margin: 0 0 0.6em;
  padding: 0.6em 1.2em;
  font-size: 1.1em;
  color: #666;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px #fff;
  background-color: #EFEFEF;
  border-radius: 10px;
  border-right: 1px solid #bbb;
  border-bottom: 2px solid #bbb;
}
.menu a:hover {
  color: #666;
  text-shadow: 1px 1px 0 #fff;
  background-color: #EAFFC4;
}
/* Пункт меню текущей страницы: класс у body (menu-home, menu-we-offer, …) */
body.menu-home .menu a.m-home,
body.menu-we-offer .menu a.m-we-offer,
body.menu-prices .menu a.m-prices,
body.menu-certification .menu a.m-certification,
body.menu-about .menu a.m-about,
body.menu-contacts .menu a.m-contacts,
body.menu-cases .menu a.m-cases,
body.menu-faq .menu a.m-faq {
  color: #fff;
  text-shadow: 1px 1px 1px #333;
  font-weight: bold;
  background-color: #99CCFF;
  letter-spacing: 1px;
}
.menu-line {
  padding-top: 0;
  padding-bottom: 0;
}
.menu-line img {
  display: block;
  margin: -20px 0 0 auto;
}

/* (промпт 22) Переключатель языка «EN | 中文» над логотипом и меню (только у страниц, у которых есть пара) */
.lang-switch {
  padding-top: 0.5em;
  padding-bottom: 0;
  text-align: right;
  font-size: 1em;
  color: #666;
}
.lang-switch span { font-weight: bold; }
.lang-switch a { color: #336FC8; }
.lang-switch a:hover { text-decoration: underline; }

/* (промпт 22) Китайская версия: системные шрифты с китайскими глифами, никаких внешних.
   Латиница в заголовках и меню — по-прежнему Oswald, иероглифы — из списка ниже. */
:lang(zh) {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4, :lang(zh) h5, :lang(zh) h6,
:lang(zh) .menu, :lang(zh) .menu-button {
  font-family: "Oswald", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:lang(zh) body.menu-certification h1, :lang(zh) body.menu-certification h2, :lang(zh) body.menu-certification h3,
:lang(zh) body.menu-certification h4, :lang(zh) body.menu-certification h5, :lang(zh) body.menu-certification h6,
:lang(zh) .box p, :lang(zh) a.button {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:lang(zh) .box p { font-style: normal; letter-spacing: 0; }
:lang(zh) .lang-switch a[lang="en"] { font-family: Arial, sans-serif; }

/* Кнопка-бургер: видна только на узком экране, работает без JS */
.menu-switch {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.menu-button {
  display: none;
  margin-top: 40px;
  padding: 0.5em 1em;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.1em;
  color: #666;
  background-color: #EFEFEF;
  border-radius: 10px;
  border-right: 1px solid #bbb;
  border-bottom: 2px solid #bbb;
  cursor: pointer;
  user-select: none;
}

/* ---------- Подвал ---------- */
.site-footer {
  margin-top: 30px;
}
.footer-bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 10px 0;
  color: #fff;
  background-color: #28A0DF;
  border-radius: 10px;
  text-align: center;
}
.footer-bar p {
  margin: 0;
  padding: 10px;
}
/* Ссылки в подвале — белые (синяя ссылка на синем не видна), при наведении — подчёркивание */
.footer-bar a { color: #fff; }
.footer-bar a:hover { text-decoration: underline; }

/* ---------- Планшет (как на старом сайте: 721–960 px) ---------- */
@media (min-width: 721px) and (max-width: 960px) {
  .header-row {
    flex-direction: column;
    align-items: center;
  }
  .menu { margin: 0 auto; padding-top: 0.4em; }
  .menu-line img { margin: 0 auto; }
  .wrapper { padding: 15px; }
}

/* Меню в один ряд на 721–1119 px: пункт REQUEST A QUOTE длиннее прежнего PRICES (промпт 15.5);
   (промпт 23A) с пунктами CASES и FAQ — и шире 1119 px (иначе 8 пунктов переносятся во второй ряд) */
@media (min-width: 721px) {
  .menu a { padding: 0.6em 0.7em; font-size: 1em; }
}
/* (промпт 23F, 23G) Широкий экран (шапка в ряд: логотип слева, меню справа): логотип в шапке меньше
   (было 200 × 122), пункты меню плотнее (шрифт 15 px, отступы меньше), чтобы 8 пунктов меню /en/ стояли в один ряд
   с ширины окна 1024 px — и с Oswald, и без него (запасной шрифт Arial). Логотип в подвале — 200 × 122, как раньше.
   Планшет (721–960, логотип над меню) и телефон — как раньше. */
@media (min-width: 961px) {
  .site-header .logo,
  .site-header .logo img { width: 128px; height: 78px; }
  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 4px;
  }
  .menu a { padding: 0.55em 0.5em; font-size: 15px; }
}

/* ---------- Телефон (до 720 px) ---------- */
@media (max-width: 720px) {
  .wrapper {
    padding: 10px;
    line-height: 1.5;
  }
  .content p { font-size: 1em; }
  .content p.lead { font-size: 1.25em; }
  h1 { font-size: 1.9em; line-height: 1.4; }
  h2, h1.as-h2 { font-size: 1.7em; line-height: 1.4; }
  h3, h1.as-h3 { font-size: 1.5em; line-height: 1.3; }
  h4, h1.as-h4 { font-size: 1.1em; }
  h5, h6 { font-size: 1em; }

  /* шапка: логотип слева, бургер справа, меню раскрывается вниз */
  .header-row { flex-wrap: wrap; align-items: flex-start; }
  .menu-button { display: inline-block; }
  .site-header .menu {
    display: none;
    width: 100%;
    margin: 10px 0 0;
  }
  .menu-switch:checked ~ .menu { display: block; }
  .site-header .menu a {
    display: block;
    margin: 0 0 6px;
    padding: 0.8em 1.2em;
    font-size: 0.95em;
    letter-spacing: 2px;
  }
  /* нижнее меню (в подвале) — без бургера, кнопки переносятся */
  .footer-menu { flex-direction: column; align-items: center; }
  .menu-bottom { margin: 0 auto; }
  .menu-bottom a { padding: 0.6em 0.9em; font-size: 0.9em; }
  .menu-line img { margin: 10px auto 0; }

  /* колонки складываются в одну */
  .cols { display: block; }
  .cols > div { margin-bottom: 10px; }
  /* ряд внутри колонки остаётся рядом (три картинки SITALL на WE OFFER) */
  .cols .cols { display: flex; }
  .cols .cols > div { margin-bottom: 0; }
  /* (промпт 23F) пара «картинка + текст» — картинка над текстом, не шире экрана */
  .cols .cols.media { display: block; }
  .cols .cols.media > div { margin-bottom: 10px; }
  .image-slot:empty { display: none; }
  .box p { padding: 10px 20px 0; font-size: 1.2em; line-height: 1.7; }
  .box h2 { padding: 0 20px; }

  /* по ширине на узкой колонке — дыры между словами, поэтому по левому краю */
  .justify { text-align: left; }

  /* таблица не сжимается, а прокручивается вбок */
  .table-scroll table { min-width: 640px; }

  /* таблица из одной строки (PRICES): ячейки встают друг под другом, как колонки */
  .table-stack table,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td { display: block; width: auto; }
  .table-stack tr { background: none; }
  .table-stack td {
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.05);
  }

  .content p img + img { margin-left: 0; }
  /* (промпт 16А) отступы и крупный текст на узком экране — меньше */
  .indent-1 { margin-left: 1em; }
  .indent-2 { margin-left: 2em; }
  .content p.text-large { font-size: 1.15em; }
  .content p.text-xl { font-size: 1.3em; }
  .footer-bar { flex-direction: column; }
  .footer-bar p { padding: 4px 10px; }
}
