/* ============================================================
   ПНР АСКУЭ — pnr-askue.ru
   Инженерный строгий: светлый фон, плотная типографика,
   синий акцент, минимум скруглений.
   ============================================================ */

:root {
  --blue:          #14568F;
  --blue-dark:     #0E4271;
  --blue-soft:     #EAF2FA;

  --amber:         #A56A0B;
  --amber-soft:    #FDF5E6;

  --ink:           #14181D;
  --gray:          #4A5560;
  --gray-light:    #6E7A87;

  --bg:            #FFFFFF;
  --bg-soft:       #F4F6F8;
  --line:          #DFE4EA;
  --line-strong:   #C3CBD4;

  --radius:        6px;
  --radius-lg:     10px;
  --wrap:          1160px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(23px, 3vw, 30px); margin-top: 44px; }
h3 { font-size: 20px; margin-top: 32px; }
h4 { font-size: 17px; }

p, ul, ol, table { margin: 0 0 18px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }

.muted { color: var(--gray-light); font-size: 15px; }
.mono { font-family: var(--mono); font-size: 0.94em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 0; }

/* ---------- Шапка ---------- */

.header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 40;
}
.header .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}

.logo {
  font-size: 20px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.logo b { color: var(--blue); margin-left: 5px; }

.nav {
  display: flex; gap: 20px; margin-right: auto;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--gray); text-decoration: none; font-size: 15.5px;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--blue); font-weight: 600; }

.header__tel {
  text-align: right; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 17px; line-height: 1.2; flex-shrink: 0;
}
.header__tel small {
  display: block; font-weight: 400; font-size: 12.5px; color: var(--gray-light);
  margin-top: 2px;
}

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

.crumbs { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 10px 0; font-size: 14px;
}
.crumbs li { margin: 0; color: var(--gray-light); }
.crumbs li + li::before { content: "→"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--gray); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* ---------- Секции ---------- */

.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section > .wrap > h2:first-child,
.section > .wrap > h1:first-child { margin-top: 0; }

.lead { font-size: 19px; color: var(--gray); margin-bottom: 28px; }

/* ---------- Первый экран ---------- */

.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 20ch; }
.hero__lead { font-size: 19.5px; color: var(--gray); max-width: 60ch; margin-bottom: 28px; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-family: inherit; line-height: 1.3;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn--sm { padding: 9px 18px; font-size: 14.5px; }

/* ---------- Сетки и карточки ---------- */

.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.tile {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--bg);
}
.tile h3 { margin: 0 0 10px; font-size: 18px; }
.tile p:last-child { margin-bottom: 0; }

.cards { list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.cards li { margin: 0; }
.card a {
  display: block; height: 100%; padding: 22px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.card a:hover { border-color: var(--blue); box-shadow: 0 2px 10px rgba(20,86,143,.08); }
.card h2 { margin: 0 0 6px; font-size: 19px; }
.card__type { margin: 0 0 8px; color: var(--gray); font-size: 15px; }
.card__counts { margin: 0 0 4px; font-weight: 600; font-size: 15px; color: var(--blue); }

/* ---------- Этапы работ ---------- */

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 28px 60px; margin: 0;
  border-left: 2px solid var(--line); margin-left: 18px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: -19px; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.steps h3 { margin: 4px 0 10px; font-size: 19px; }
.steps ul { margin-bottom: 0; }

/* ---------- Счётчики ---------- */

.stats {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stats li { margin: 0; padding: 22px; background: var(--bg); }
.stats b {
  display: block; font-size: 32px; line-height: 1.1;
  color: var(--blue); font-variant-numeric: tabular-nums;
}
.stats span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--gray); }

/* ---------- Таблицы ---------- */

table { border-collapse: collapse; width: 100%; font-size: 16px; }
caption {
  text-align: left; font-weight: 700; padding-bottom: 10px; color: var(--ink);
}
th, td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 600; }

.spec th { width: 38%; background: var(--bg-soft); font-weight: 600; }

.table-scroll { overflow-x: auto; margin-bottom: 18px; }
.table-scroll table { margin-bottom: 0; min-width: 520px; }

/* ---------- Выноски ---------- */

.note {
  border-left: 3px solid var(--blue); background: var(--blue-soft);
  padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 22px;
}
.note--warn { border-left-color: var(--amber); background: var(--amber-soft); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; }

/* ---------- Вопрос-ответ ---------- */

.faq { border-top: 1px solid var(--line); margin-bottom: 22px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { margin-bottom: 16px; }

/* ---------- Фото объектов ---------- */

.shots { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }

/* ---------- Блок призыва ---------- */

.cta {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-soft); padding: 32px; margin: 40px 0 0;
}
.cta h2 { margin-top: 0; }
.cta__acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.cta__phone { font-size: 20px; font-weight: 700; text-decoration: none; color: var(--ink); }
.cta__phone:hover { color: var(--blue); }

/* ---------- Форма ---------- */

.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg);
  color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form textarea { min-height: 120px; resize: vertical; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gray); }
.form__consent input { width: auto; margin-top: 3px; flex-shrink: 0; }
.form__hp { position: absolute; left: -9999px; }
.form__msg { padding: 12px 14px; border-radius: var(--radius); font-size: 15px; display: none; }
.form__msg[data-state="ok"] { display: block; background: var(--blue-soft); color: var(--blue-dark); }
.form__msg[data-state="err"] { display: block; background: var(--amber-soft); color: var(--amber); }

/* ---------- Подвал ---------- */

.footer {
  background: var(--ink); color: #C8D0D8; margin-top: 64px;
  padding: 48px 0 32px; font-size: 15px;
}
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { color: #fff; display: block; margin-bottom: 12px; }
.footer__logo b { color: #6FA8DC; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #C8D0D8; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer p { margin: 0 0 10px; }

.footer__req {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid #2C333B;
  font-size: 13.5px; color: #8B95A0;
}
.footer__req p { margin: 0 0 4px; }

/* ---------- Cookie ---------- */

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 620px; margin: 0 auto; display: none;
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: 0 8px 32px rgba(20,24,29,.18);
}
.cookie[data-open] { display: block; }
.cookie p { font-size: 14.5px; margin: 0 0 14px; color: var(--gray); }
.cookie__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .grid--3, .grid--4, .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .header .wrap { flex-wrap: wrap; gap: 14px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .nav { order: 3; width: 100%; margin-right: 0; gap: 18px; }
  .header__tel { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 40px 0 36px; }
  .grid--2, .grid--3, .grid--4, .cards, .shots { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .cta { padding: 24px 20px; }
  .steps > li { padding-left: 48px; }
  .spec th { width: 42%; }
  .btn { display: block; text-align: center; }
  .hero__acts .btn, .cta__acts .btn { width: 100%; }
}

@media print {
  .header, .footer, .cookie, .cta, .crumbs, .skip { display: none; }
  body { font-size: 12pt; }
}
