/* ====== Прогресс — статичная страница ====== */

:root {
  --background: #f3f4f6;
  --surface: #ffffff;
  --foreground: #393e4b;
  --steel: #393e4b;
  --line: #393e4b;
  --muted: #9aa0ac;
  --muted-light: #b9bec9;
  --primary: #c0492b;
  --font-display: "Sora", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.12; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--muted-light); }

.tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-light);
}
.tag-dark { color: var(--muted); }

.hazard {
  background-image: repeating-linear-gradient(-45deg,
    var(--primary) 0, var(--primary) 10px,
    var(--steel) 10px, var(--steel) 20px);
}

/* ====== Header ====== */
.site-header { position: relative; z-index: 20; background: var(--background); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  color: var(--background);
}
.logo-name { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.logo-sub { display: block; margin-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 12px 0; }
.nav-link { padding: 8px 12px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .15s ease; }
.nav-link:hover { background: rgba(57, 62, 75, .06); }
.nav-link.is-active { background: var(--steel); color: var(--background); font-weight: 600; }
.nav-drop { position: relative; display: flex; align-items: stretch; }
.nav-drop > .nav-link { padding-right: 2px; }
.nav-drop > .nav-link:hover,
.nav-drop > .nav-link.is-active { background: transparent; }
.nav-drop:hover > .nav-link,
.nav-drop:hover > .nav-caret { background: rgba(57, 62, 75, .06); }
.nav-drop.is-current > .nav-link,
.nav-drop.is-current > .nav-caret,
.nav-drop.is-current:hover > .nav-link,
.nav-drop.is-current:hover > .nav-caret {
  background: var(--steel);
  color: var(--background);
}
.nav-drop.is-current > .nav-link { font-weight: 600; }
.nav-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; margin-right: 4px; padding: 0 6px 0 0;
  border: 0; background: transparent; color: inherit; cursor: pointer;
}
.nav-caret::before {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 320px;
  max-height: min(70vh, 440px);
  overflow: auto;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(20, 24, 33, .14);
}
.nav-sub-right { left: auto; right: 0; }
.nav-sub a { display: block; padding: 10px 16px; color: var(--foreground); font-size: 14px; line-height: 1.35; white-space: normal; }
.nav-sub a:hover, .nav-sub a.is-active { background: rgba(192, 73, 43, .08); color: var(--primary); }
@media (hover: hover) and (pointer: fine) {
  .nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { display: block; }
}
.nav-drop.is-open .nav-sub { display: block; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--line);
  cursor: pointer;
  padding: 10px 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--steel); margin: 3px 0; }

/* ====== Hero ====== */
.hero { position: relative; overflow: hidden; background: var(--steel); color: var(--background); border-bottom: 1px solid var(--line); }
.hero-grid {
  position: absolute; inset: 0; opacity: .12;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner { position: relative; display: flex; align-items: stretch; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.hero-text { max-width: 760px; align-self: flex-end; }
.hero h1 { font-size: clamp(28px, 4.4vw, 48px); font-weight: 800; line-height: 1.08; overflow-wrap: break-word; }
.hero-aside { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 24px; flex-shrink: 0; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-phone { text-align: right; }
.hero-phone a { display: block; color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; white-space: nowrap; }
.hero-phone a + a { margin-top: 4px; }
.hero-phone a:hover { color: #f3c7bb; }
.hero-cta { border: 0; background: var(--primary); color: #fff; font: inherit; font-weight: 700; padding: 12px 18px; cursor: pointer; }
.hero-cta:hover { background: #a33d24; }
.hero-flash { margin: 0; max-width: 280px; text-align: right; font-size: 13px; color: #d7f5e4; }
.hero-flash.is-error { color: #ffd0c6; }
.hero-since { flex-shrink: 0; text-align: right; }
.hero-since .eyebrow { margin-bottom: 4px; font-size: 10px; }
.hero-year { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.hazard-bar { height: 6px; }

/* ====== Layout ====== */
.layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; }

/* Sidebar */
.panel { border: 1px solid var(--line); background: var(--surface); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--steel); color: var(--background); padding: 12px 16px; }
.panel-head h2 { font-size: 14px; font-weight: 700; }
.info-list { padding: 16px; }
.info-list a {
  display: block;
  padding: 8px 0 8px 12px;
  border-left: 2px solid transparent;
  font-size: 14px; font-weight: 500; line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease;
}
.info-list a:hover { border-left-color: var(--primary); background: rgba(57, 62, 75, .05); }

/* Content */
.intro { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; gap: 28px; margin-bottom: 32px; }
.intro h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; margin-bottom: 24px; }
.lead { max-width: 68ch; line-height: 1.7; }
.lead.wide { max-width: 82ch; }
.intro-figure { margin: 0; }
.intro-figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.block-top { border-top: 2px solid var(--line); padding-top: 24px; }
.block-thin { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.block-head h3 { font-size: 20px; font-weight: 700; }

.priorities li { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(57, 62, 75, .18); }
.priorities li:first-child { border-top: none; }
.priorities .num { width: 32px; flex-shrink: 0; padding-top: 2px; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--primary); }

.link-accent {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary);
  font-size: 14px; font-weight: 600;
  color: var(--primary);
  transition: color .15s ease;
}
.link-accent:hover { color: var(--foreground); }

/* ====== Footer ====== */
.site-footer { border-top: 2px solid var(--line); background: var(--steel); color: var(--background); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 24px; padding-bottom: 24px; }
.footer-inner p { font-size: 14px; }
.footer-note { max-width: 660px; font-size: 12px; color: var(--muted-light); text-align: right; }

/* ====== Адаптив ====== */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .intro { grid-template-columns: 1fr; }
  .intro-figure img { aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-aside, .hero-actions, .hero-phone { align-items: flex-start; text-align: left; }
  .hero-since { display: none; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    order: 3;
    padding: 0 0 12px;
    overflow: visible;
  }
  .main-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav-link { padding: 12px; border-top: 1px solid rgba(57, 62, 75, .15); }
  .nav-drop { flex-wrap: wrap; }
  .nav-drop > .nav-link { flex: 1; }
  .nav-sub { position: static; min-width: 0; width: 100%; border: 0; box-shadow: none; background: transparent; padding: 0 0 8px; }
  .nav-sub a { padding: 10px 16px 10px 28px; }

  .block-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ====== Страницы движка ====== */
.layout-single { grid-template-columns: 1fr; }
.info-list a.is-active { border-left-color: var(--primary); font-weight: 700; }

.breadcrumbs { margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

.page-body h1,
.content h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 18px;
  text-align: left;
}
.page-body h2,
.content h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; text-align: left; }
.page-body h3,
.content h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; text-align: left; }
.page-body p,
.content p { margin-bottom: 14px; line-height: 1.7; }
.page-body a,
.content a { color: var(--primary); }
.page-body a:hover,
.content a:hover { color: var(--foreground); }
.page-body ul,
.page-body ol,
.content .spisok,
.content ul,
.content ol { margin: 8px 0 18px; }
.content .spisok li,
.content ul li,
.content ol li {
  padding: 10px 0 10px 14px;
  border-top: 1px solid rgba(57, 62, 75, .18);
  line-height: 1.5;
}
.content iframe,
.content img { max-width: 100%; height: auto; }
.content iframe { width: 100%; min-height: 320px; border: 0; background: #e9ebef; }

.flash { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; }
.flash-error { border-color: var(--primary); color: var(--primary); }

.zag_also { margin-top: 28px; font-family: var(--font-display); font-weight: 700; }
.ul_also li { padding: 8px 0; border-top: 1px solid rgba(57, 62, 75, .18); }

.request-form { max-width: 460px; margin-top: 8px; }
.request-form p { margin-bottom: 14px; }
.request-form b { display: block; margin-bottom: 6px; font-size: 13px; }
.request-form input[type="text"],
.request-form input[type="email"],
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: var(--foreground);
}
.request-form input[type="submit"] {
  border: 0;
  background: var(--steel);
  color: var(--background);
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}
.request-form input[type="submit"]:hover { background: var(--primary); }

.contact-card {
  position: relative;
  margin-top: 28px;
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; }
.contact-card label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.contact-card input,
.contact-card textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--foreground);
}
.contact-card button {
  border: 0;
  background: var(--steel);
  color: var(--background);
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}
.contact-card button:hover { background: var(--primary); }

.request-modal[hidden] { display: none; }
.request-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.request-modal-backdrop { position: absolute; inset: 0; background: rgba(57, 62, 75, .72); }
.request-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
}
.request-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
}
.request-modal-bar p { font-family: var(--font-display); font-weight: 700; }
.request-modal-bar button { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.hero-form { position: relative; padding: 18px 16px 20px; }
.hero-form label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.hero-form input,
.hero-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
}
.hero-form button {
  border: 0;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.side-form {
  position: relative;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.side-form h2 {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
}
.side-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}
.side-form input,
.side-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
  color: var(--foreground);
}
.side-form button {
  border: 0;
  background: var(--steel);
  color: var(--background);
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}
.side-form button:hover { background: var(--primary); }
.sidebar .flash { margin-top: 16px; }

body.modal-open { overflow: hidden; }
.price-modal[hidden] { display: none; }
.price-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.price-modal-backdrop { position: absolute; inset: 0; background: rgba(57, 62, 75, .72); }
.price-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height: min(82vh, 860px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
}
.price-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--steel);
  color: var(--background);
}
.price-modal-bar p { font-family: var(--font-display); font-weight: 700; }
.price-modal-bar button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.price-modal-dialog iframe { flex: 1; width: 100%; border: 0; background: #fff; }
