/* prdk24 — базовая тема. Палитра: токены ниже (сменяются одной правкой). */
:root {
  --c-navy: #14284b;        /* основной фирменный (шапка, футер, заголовки) */
  --c-navy-2: #1d3a66;      /* светлее — градиенты, hover */
  --c-accent: #c8102e;      /* акцент/CTA (фирменный красный «Порядка») */
  --c-accent-2: #a50d26;    /* акцент hover */
  --c-accent-deep: #8c0d20; /* тёмно-красный: полоса под шапкой */
  --c-bg: #f5f7fa;          /* светлые секции */
  --c-text: #24303e;
  --c-muted: #5c6b7c;
  --c-line: #dfe6ee;
  --c-white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 40, 75, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
}
img { max-width: 100%; height: auto; }
a { color: var(--c-navy); }
a:hover { color: var(--c-accent); }

h1, h2, h3 { color: var(--c-navy); line-height: 1.25; overflow-wrap: break-word; }
p, li, a { overflow-wrap: break-word; }
h1 { font-size: 2rem; margin: 0 0 .6em; }
h2 { font-size: 1.45rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.1rem; margin: 0 0 .4em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 0; }
.section-muted { background: var(--c-bg); }
.section-title { text-align: center; margin: 0 0 26px; font-size: 1.5rem; }
.lead { color: var(--c-muted); max-width: 760px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 100; }

/* ---------- Шапка: белый фон, тёмно-красная полоса снизу ---------- */
.top {
  background: #fff;
  border-bottom: 4px solid var(--c-accent-deep);
  position: sticky; top: 0; z-index: 50;
}
.top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand img, .brand-name { display: block; }
.brand img {               /* белые элементы эмблемы — на тёмно-синей плашке */
  height: 54px; width: auto;
  background: var(--c-navy); border-radius: 8px; padding: 4px 6px;
}
.brand-name { color: var(--c-navy); font-weight: 800; font-size: 1.5rem; letter-spacing: .06em; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  color: var(--c-navy); text-decoration: none; padding: 10px 14px; border-radius: 8px;
  font-weight: 600;
}
.nav a:hover { background: #eef2f8; color: var(--c-accent); }
.nav a[aria-current] { background: #eef2f8; color: var(--c-accent); }
.top-contacts { display: flex; align-items: center; gap: 16px; }
.header-phone-wrap { display: flex; flex-direction: column; align-items: center; line-height: 1.3; gap: 3px; }
.header-phone-note { font-size: .8rem; font-weight: 500; color: var(--c-muted); }
.header-phone { color: var(--c-navy); text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 16px; }
.header-phone:hover { color: var(--c-accent); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; width: 24px; height: 3px; margin: 4px 0;
  background: var(--c-navy); border-radius: 2px; transition: .2s;
}

/* ---------- Кнопки (без стрелок) ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit;
}
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-2); color: #fff; }
.btn-outline { border-color: var(--c-navy); color: var(--c-navy); background: transparent; }
.btn-outline:hover { background: var(--c-navy); color: #fff; }
.btn-light { background: #fff; color: var(--c-navy); }
.btn-light:hover { background: var(--c-bg); color: var(--c-navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--c-navy), var(--c-navy-2));
  color: #fff; padding: 64px 0;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero-sub {
  display: block; margin-top: 10px;
  font-size: .62em; font-weight: 500; letter-spacing: .04em; color: #ffd7dd;
}
.hero-lead { font-size: 1.15rem; max-width: 720px; color: #dbe4f0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Карточки ---------- */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  margin-bottom: 30px;
}
.card, .feature {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px; position: relative; box-shadow: var(--shadow);
}
.card::after {                 /* вся карточка кликабельна */
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
}
.card > .btn { position: relative; z-index: 1; }

/* фото услуги в карточке: во всю ширину сверху, иконка-бейдж у нижней кромки */
.card-photo { position: relative; margin: -22px -22px 40px; }
.card-photo img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  background: var(--c-bg); border-radius: var(--radius) var(--radius) 0 0;
}
.card-photo .ico {
  position: absolute; left: 14px; bottom: -26px; margin: 0; z-index: 2;
  background: #edf0f5; border: 1px solid #cfd8e4; box-shadow: var(--shadow);
}

/* преимущество: фото + подпись; сетка ровная по числу блоков (6 = 3+3) */
.cards-plain {
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
}
.cards-plain .feature { text-align: left; }
.feat-photo {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 8px; margin-bottom: 12px; background: var(--c-bg);
}
.feature p { margin: 0; font-weight: 600; color: var(--c-navy); }
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: #edf0f5; border: 1px solid #d7dee8;
  color: var(--c-navy); font-size: 1.35rem; margin-bottom: 14px;
}
.ico-big { width: 84px; height: 84px; font-size: 2.4rem; background: rgba(200, 16, 46, .1); color: var(--c-accent); }
.card h3 { min-height: 2.6em; margin: 0 0 12px; }
.card-desc { color: var(--c-muted); font-size: .95rem; min-height: 3.4em; }

/* ---------- Контентные страницы ---------- */
.page-head { background: var(--c-bg); padding: 26px 0 6px; }
.breadcrumbs { font-size: 1.08rem; color: var(--c-muted); margin-bottom: 10px; }
.breadcrumbs a { font-weight: 600; }
.page-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.page-narrow { max-width: 860px; }
.page-text p { margin: 0 0 1em; }
.page-aside img { border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--c-bg); border-radius: var(--radius);
  padding: 18px 22px; margin-top: 28px; flex-wrap: wrap;
}
.cta-inline p { margin: 0; font-weight: 600; }
.back-wrap { margin-top: 26px; }
.back-link {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  border: 2px solid var(--c-line); text-decoration: none; font-weight: 600;
}
.back-link:hover { border-color: var(--c-navy); }

/* Навигация по статьям: предыдущая / следующая */
.article-nav { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.article-nav-link {
  flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 2px solid var(--c-line); border-radius: 10px;
  padding: 14px 18px; text-decoration: none;
}
.article-nav-link:hover { border-color: var(--c-navy); }
.article-nav-link.next { margin-left: auto; text-align: right; }
.article-nav-label {
  font-size: .82rem; color: var(--c-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.article-nav-title { font-weight: 700; color: var(--c-navy); }

/* ---------- Вакансии ---------- */
.vacancy { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; margin-bottom: 26px; }
.vacancy-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.vacancy-head h2 { margin: 0; }
.vacancy-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vacancy-body ul { margin: 0; padding-left: 20px; color: var(--c-muted); }
.chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(20, 40, 75, .08); color: var(--c-navy);
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.chip-accent { background: rgba(200, 16, 46, .1); color: var(--c-accent); }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: grid; grid-template-columns: 52px 1fr; gap: 14px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); }
.contact-card h2 { margin: 0 0 .3em; font-size: 1.1rem; }
.contact-card p { margin: 0; }
.contact-note { margin-top: 6px; font-size: .88rem; color: var(--c-muted); }

.form {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.form h2 { margin-top: 0; }
.form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .95rem; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; margin-top: 6px; padding: 12px; font: inherit;
  border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-bg);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--c-navy); background: #fff; }
.honeypot { position: absolute; left: -9999px; }
.agree { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }

/* Чекбоксы сайта: крупные, со скруглёнными углами (все формы) */
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px; flex: none; margin: 0;
  border: 2px solid var(--c-navy); border-radius: 7px;
  background: #fff; cursor: pointer; position: relative;
  transition: background .12s, border-color .12s;
}
input[type="checkbox"]:hover { border-color: var(--c-accent); }
input[type="checkbox"]:checked { background: var(--c-accent); border-color: var(--c-accent); }
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px;
  width: 6px; height: 12px;
  border: solid #fff; border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
input[type="checkbox"]:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; }

.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px; }
.clients-grid img { background: #fff; border: 1px solid var(--c-line); border-radius: 8px;
  padding: 10px; }

/* ---------- Лицензии ---------- */
.license-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.license-card { margin: 0; text-align: center; }
.license-card img { border-radius: 8px; border: 1px solid var(--c-line);
  box-shadow: var(--shadow); transition: .15s; }
.license-card a:hover img { border-color: var(--c-navy); }
.license-card .chip { margin-top: 8px; }

/* ---------- CTA-полоса, «спасибо», 404 ---------- */
.cta-band { background: var(--c-navy); color: #fff; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #dbe4f0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.thanks { text-align: center; padding: 70px 20px; }
.thanks .lead { margin: 0 auto 10px; }
.thanks .hero-actions { justify-content: center; }

/* ---------- Футер ---------- */
.footer { background: #0e1d38; color: #c8d3e2; padding: 40px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 30px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-text { margin: 0 0 8px; font-size: .95rem; }
.footer-note { color: #94a5bd; }
.footer-text a { color: #c8d3e2; text-decoration: none; }
.footer-text a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding: 16px 20px;
  font-size: .9rem;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 20px 16px;
    border-top: 1px solid var(--c-line);
    box-shadow: 0 12px 18px rgba(20, 40, 75, .12);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; order: 3; }
  .top-in { flex-wrap: wrap; gap: 14px; }
  .top-contacts { order: 2; margin-left: auto; }
  .nav { order: 4; }
  .page-split { grid-template-columns: 1fr; }
  .vacancy-body { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .cards-plain { grid-template-columns: repeat(2, 1fr); }  /* 6 = 2+2+2 */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  .hero { padding: 44px 0; }
  .header-phone-wrap { display: none; }  /* номер и подпись «круглосуточно» прячем вместе */
  .vacancy-body { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cards-plain { grid-template-columns: 1fr; }   /* длинные слова не рвут сетку */
  .footer-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}



/* Постраничная навигация листингов статей (14.11.2026) */
.pagination { margin-top: 30px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; justify-content: center; }
.pagination a, .pagination span { display: inline-block; min-width: 42px; padding: 8px 12px; text-align: center; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-navy); text-decoration: none; }
.pagination a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .current span { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.pagination .dots span { border: none; color: var(--c-muted); }
