﻿/* =========================================================
   РЕМСТРОЙ — строгая синяя система
   ========================================================= */

:root {
  --navy: #0b1f3a;
  --navy-2: #102a4c;
  --blue: #1a56db;
  --blue-dark: #1344b5;
  --blue-soft: #ebf1fc;
  --blue-light: #7fa8f0;
  --paper: #f3f5f8;
  --white: #ffffff;
  --ink: #0b1f3a;
  --muted: #566273;
  --muted-2: #7b8694;
  --line: #dce1e8;
  --ok: #16794c;
  --danger: #b42318;
  --accent: #1a56db;
  --accent-text: #1344b5;
  --accent-soft: #ebf1fc;

  --radius: 4px;
  --radius-lg: 8px;
  --container: 1200px;
  --header-h: 72px;

  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Century Gothic", "Futura", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--navy);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a.visually-hidden:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  z-index: 200;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--blue-dark);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---------- шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--header-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 42px;
  width: auto;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-block;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
  border-bottom-color: var(--blue-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--blue-light);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  place-items: center;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

body.menu-open .burger span {
  background: transparent;
}

body.menu-open .burger span::before {
  top: 0;
  transform: rotate(45deg);
}

body.menu-open .burger span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- секции ---------- */

.section {
  padding: 68px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section--muted {
  background: var(--paper);
}

.section-head {
  margin-bottom: 32px;
  max-width: 780px;
}

.eyebrow {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 64ch;
}

.section--dark {
  background: var(--navy);
  color: #fff;
  border-top-color: rgba(255, 255, 255, 0.12);
}

.section--dark .section-sub {
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- главный экран ---------- */

.hero {
  background: var(--navy);
  color: #fff;
  padding: calc(var(--header-h) + 58px) 0 62px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 64px;
  align-items: start;
}

.hero__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  padding: 22px 24px;
}

.hero__panel-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.hero__facts {
  margin: 0;
}

.hero__fact {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__fact:first-child {
  border-top: 0;
}

.hero__fact dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 4px;
}

.hero__fact dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

/* ---------- заявка и контакты ---------- */

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.lead-contacts__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-list {
  display: grid;
}

.contact {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.contact:last-child {
  border-bottom: 1px solid var(--line);
}

.contact__label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 3px;
}

.contact__value {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}

.contact__value--phone {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact__value a:hover {
  color: var(--blue);
}

.lead-requisites {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted-2);
}

/* ---------- форма ---------- */

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 28px;
}

.form-card__title {
  font-size: 20px;
  margin-bottom: 6px;
}

.form-card__lead {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.field label .req {
  color: var(--blue);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23566273' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: #c3cad4;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.field__error {
  display: none;
  font-size: 12px;
  color: var(--danger);
}

.field.has-error .field__error {
  display: block;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}

.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent a:hover {
  color: var(--blue);
}

.form-status {
  display: none;
  margin-top: 4px;
  padding: 11px 13px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
}

.form-status.is-ok {
  display: block;
  background: #e9f6ef;
  color: #146b45;
  border: 1px solid #bfe6d2;
}

.form-status.is-err {
  display: block;
  background: #fbeeec;
  color: #9c3225;
  border: 1px solid #f0c9c2;
}

.honeypot {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 10px;
}

/* ---------- услуги ---------- */

.services-list {
  border-bottom: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: inherit;
}

.service-row:hover .service-row__title {
  color: var(--blue);
}

.service-row:hover .service-row__more {
  color: var(--blue-dark);
}

.service-row__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  padding-top: 6px;
}

.service-row__title {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  transition: color 0.15s ease;
}

.service-row__text {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 74ch;
}

.service-row__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  padding-top: 7px;
  white-space: nowrap;
}

.service-row__more svg {
  width: 13px;
  height: 13px;
}

/* ---------- о компании ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: start;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.about-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
}

.about-list {
  display: grid;
}

.about-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  background: var(--blue);
}

.about-facts {
  border-top: 1px solid var(--line);
}

.about-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.about-fact dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.about-fact dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

/* ---------- порядок работы ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.step {
  border-top: 2px solid var(--navy);
  padding-top: 16px;
}

.step__num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 20px;
}

.step__title {
  font-size: 16px;
  margin-bottom: 6px;
}

.step__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- объекты ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project figcaption {
  padding: 13px 15px 15px;
  border-top: 1px solid var(--line);
}

.project__title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.project__meta {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- документы ---------- */

.docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.doc:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.doc__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  flex-shrink: 0;
}

.doc__body {
  min-width: 0;
}

.doc__title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.doc__note {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.doc__arrow {
  margin-left: auto;
  color: var(--muted-2);
  flex-shrink: 0;
}

.doc__arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- вопросы ---------- */

.faq {
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__answer {
  padding: 0 40px 20px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 80ch;
}

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

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  padding: 56px 0 22px;
  font-size: 13.5px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer__text {
  max-width: 36ch;
  line-height: 1.6;
}

.footer__req {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
}

.footer__title {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer__links {
  display: grid;
  gap: 9px;
}

.footer__links a,
.footer__links span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__bottom a:hover {
  color: #fff;
}

/* ---------- cookie ---------- */

.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: 680px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(11, 31, 58, 0.14);
  padding: 16px 18px;
  display: none;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie.is-visible {
  display: flex;
}

.cookie__text {
  flex: 1 1 320px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.cookie__text a {
  color: var(--ink);
  text-decoration: underline;
}

.cookie__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- мобильная панель ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 65;
  gap: 8px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.mobile-bar .btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 13px;
}

/* ---------- страница услуги ---------- */

.service-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + 34px) 0 36px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs span.sep {
  color: var(--muted-2);
}

.service-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
  max-width: 24ch;
}

.service-hero__lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
}

.service-hero__actions {
  margin-top: 22px;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 56px;
  align-items: start;
}

.service-desc {
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 32px;
}

.service-main h2 {
  font-size: 22px;
  margin: 0 0 14px;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.scope-list li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--blue);
}

.steps-list {
  border-bottom: 1px solid var(--line);
}

.steps-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.steps-list .n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  padding-top: 3px;
}

.steps-list .t {
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.steps-list .d {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.service-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fff;
}

.aside-card--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.aside-card__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.aside-card--navy .aside-card__title {
  color: rgba(255, 255, 255, 0.55);
}

.aside-card__phone {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.aside-card__email {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.aside-card--navy .aside-card__email {
  color: rgba(255, 255, 255, 0.7);
}

.aside-card--navy .btn {
  background: #fff;
  color: var(--navy);
}

.aside-card--navy .btn:hover {
  background: var(--blue-soft);
  color: var(--navy);
}

.related {
  display: grid;
}

.related a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}

.related a:last-child {
  border-bottom: 1px solid var(--line);
}

.related a:hover {
  color: var(--blue);
}

.related .muted {
  color: var(--blue);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
}

.related .muted svg {
  width: 14px;
  height: 14px;
}

/* ---------- страницы документов ---------- */

.doc-page {
  background: #fff;
  min-height: 100vh;
}

.doc-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.doc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.doc-header .logo__img {
  height: 36px;
}

.doc-back {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.doc-back:hover {
  color: #fff;
}

.doc-main {
  padding: 52px 0 80px;
}

.legal {
  max-width: 800px;
  margin-inline: auto;
  color: #333a42;
}

.legal__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.legal h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 12px;
  color: var(--ink);
}

.legal__meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.legal h2 {
  font-size: 18px;
  margin: 32px 0 10px;
  color: var(--ink);
}

.legal p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.72;
}

.legal ul,
.legal ol {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.72;
}

.legal ul {
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal li {
  margin-bottom: 6px;
}

.legal li::marker {
  color: var(--blue);
}

.legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__requisites {
  margin-top: 32px;
  padding: 18px 20px;
  background: var(--paper);
  border-left: 3px solid var(--blue);
  font-size: 14px;
  line-height: 1.7;
}

.doc-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.doc-footer a:hover {
  color: var(--blue);
}

.notfound {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 0;
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 112px);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 6px;
}

.notfound__code span {
  color: var(--blue);
}

.notfound h1 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 10px;
}

.notfound p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.notfound__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

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

@media (max-width: 1100px) {
  .nav__list {
    display: none;
  }

  .burger {
    display: grid;
  }

  .header-phone {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--navy);
    padding: 24px;
    overflow-y: auto;
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.menu-open .nav__list {
    display: grid;
    gap: 2px;
  }

  body.menu-open .nav__link {
    display: block;
    font-size: 18px;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__panel {
    max-width: 520px;
  }

  .lead-grid,
  .about-grid,
  .service-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-aside {
    position: static;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container,
  .site-header__inner {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: calc(var(--header-h) + 36px) 0 44px;
  }

  .hero__title {
    font-size: clamp(28px, 7.7vw, 36px);
  }

  .logo__img {
    height: 34px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .btn {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .lead-grid {
    gap: 28px;
  }

  /* на телефоне форма идёт первой */
  .lead-contacts {
    order: 2;
  }

  .lead-form {
    order: 1;
  }

  .service-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .service-row__more {
    grid-column: 2;
    padding-top: 4px;
  }

  .service-row__title {
    font-size: 18px;
  }

  .projects,
  .docs,
  .steps {
    grid-template-columns: 1fr;
  }

  .scope-list {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer {
    padding-bottom: 96px;
  }

  .mobile-bar {
    display: flex;
  }

  .cookie {
    bottom: 84px;
  }

  .service-hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .form-card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .hero__actions .btn {
    width: 100%;
  }

  .contact__value--phone {
    font-size: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .mobile-bar,
  .cookie,
  .doc-back {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section {
    padding: 20px 0;
  }
}


