/* ============================================================
   DDCom Engineering — Проектирование и строительство · dd.com.kz
   Вариант 2: «Тёмный премиум» — графит + фирменный красный
   ============================================================ */

/* ---------- 1. Custom properties ---------- */
:root {
  --c-bg:        #0F1215;
  --c-bg-alt:    #14181D;
  --c-surface:   #1A1F26;
  --c-surface-2: #20262E;
  --c-text:      #EDEAE3;
  --c-muted:     #A9A398;
  --c-brand:       #D7261E; /* фирменный красный: заливка кнопок */
  --c-accent:      #E2362B; /* приподнятый красный: линии, контуры, цифры */
  --c-accent-soft: #F0655B; /* светлый красный: мелкий акцентный текст (AA) */
  --c-line:        rgba(226, 54, 43, 0.22);
  --c-line-dim:  rgba(237, 234, 227, 0.10);
  --c-error:     #E2917C;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-h1: clamp(2.5rem, 1.1rem + 5vw, 4.4rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.4vw, 2.85rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --header-h: 78px;
  --section-pad: clamp(4.5rem, 4rem + 4vw, 8rem);
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;

  --shadow-card: 0 18px 50px -18px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

body.menu-open { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

ul, ol { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(226, 54, 43, 0.40); color: #FFF; }

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

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--c-brand);
  color: #FAF8F4;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section--alt { background-color: var(--c-bg-alt); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 2rem + 3vw, 4.5rem);
  text-align: center;
}
.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
}
.eyebrow::before,
.section-head:not(.section-head--left) .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--c-line);
  flex: none;
}

.section-title { font-size: var(--fs-h2); }

.section-lead {
  margin-top: 1.1rem;
  color: var(--c-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}
.section-head:not(.section-head--left) .section-lead { margin-inline: auto; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  border-color: var(--c-brand);
  color: #FAF8F4;
  background: var(--c-brand);
}
.btn--primary:hover {
  background: #C01F18;
  border-color: #C01F18;
  box-shadow: 0 12px 32px -12px rgba(226, 54, 43, 0.55);
}

.btn--ghost {
  border-color: rgba(237, 234, 227, 0.28);
  color: var(--c-text);
}
.btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent-soft);
}

.btn--lg { padding: 1.05rem 2.5rem; font-size: 1rem; }
.btn--sm { padding: 0.65rem 1.4rem; font-size: 0.875rem; }

/* ---------- 5. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 18, 21, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header--scrolled {
  border-bottom-color: var(--c-line);
  background: rgba(15, 18, 21, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  /* currentColor в SVG-логотипе (стойка «D» и строка ENGINEERING)
     на тёмном фоне — светлый: */
  color: var(--c-text);
  flex: none;
}
.logo-mark {
  height: 48px;
  width: auto;
}
.footer .logo-mark { height: 40px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}

.nav__link {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--c-accent-soft); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__extra { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.header__phone {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.header__phone:hover { color: var(--c-accent-soft); }

/* Переключатель языка / Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lang-switch__current {
  color: var(--c-text);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--c-accent);
}
.lang-switch__sep {
  color: rgba(237, 234, 227, 0.30);
}
.lang-switch__link {
  color: var(--c-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.lang-switch__link:hover {
  color: var(--c-accent-soft);
  border-bottom-color: var(--c-line);
}

/* Burger */
.burger {
  display: none;
  padding: 0.55rem;
  margin-right: -0.55rem;
  border-radius: var(--radius);
}
.burger__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 26px;
  height: 20px;
}
.burger__line {
  height: 2px;
  width: 100%;
  background: var(--c-accent);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  scroll-margin-top: var(--header-h);
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(4rem, 10vh, 7rem);
  overflow: hidden;
  background:
    radial-gradient(110% 75% at 70% 15%, rgba(226, 54, 43, 0.07), transparent 60%),
    var(--c-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
}
.hero__eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--c-accent);
  opacity: 0.6;
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  max-width: 16ch;
}

.hero__lead {
  margin-top: 1.6rem;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--c-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(3rem, 7vh, 4.5rem);
  border-top: 1px solid var(--c-line-dim);
  padding-top: 1.8rem;
}
.hero__trust li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 2.4rem;
  margin-right: 2.4rem;
  border-right: 1px solid var(--c-line-dim);
}
.hero__trust li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__trust strong {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--c-accent);
  line-height: 1.1;
}
.hero__trust span {
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* ---------- 7. Услуги ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2.2rem 1.9rem 2.4rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line-dim);
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.service-card:hover {
  border-color: var(--c-line);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.service-card__icon {
  color: var(--c-accent);
  margin-bottom: 1.6rem;
}

.service-card__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.85rem;
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ---------- 8. О компании ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

.about__copy p {
  color: var(--c-muted);
  margin-bottom: 1.2rem;
}
.about__copy p:first-child {
  color: var(--c-text);
  font-size: 1.1rem;
}
.about__copy p:last-child { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 2.5vw, 2.2rem);
  background: var(--c-bg-alt);
}
.stat:nth-child(1) { border-right: 1px solid var(--c-line-dim); border-bottom: 1px solid var(--c-line-dim); }
.stat:nth-child(2) { border-bottom: 1px solid var(--c-line-dim); }
.stat:nth-child(3) { border-right: 1px solid var(--c-line-dim); }

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 600;
  color: var(--c-accent);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* ---------- 9. Проекты ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line-dim);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.project:hover {
  border-color: var(--c-line);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.project__media {
  position: relative;
  aspect-ratio: 400 / 250;
  color: var(--c-accent);
  border-bottom: 1px solid var(--c-line-dim);
  overflow: hidden;
}

.project__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6% 4% 0;
  transition: transform 0.6s var(--ease);
}
.project:hover .project__svg { transform: translateY(-4px) scale(1.025); }

.pm-1 { background: linear-gradient(160deg, #1B222C 0%, #11151A 65%, #0E1116 100%); }
.pm-2 { background: linear-gradient(160deg, #232026 0%, #15131A 60%, #0F0E13 100%); }
.pm-3 { background: linear-gradient(160deg, #20241F 0%, #14170F 60%, #0F120C 100%); }
.pm-4 { background: linear-gradient(160deg, #262019 0%, #171310 60%, #100E0B 100%); }
.pm-5 { background: linear-gradient(160deg, #1C2528 0%, #121719 60%, #0D1213 100%); }
.pm-6 { background: linear-gradient(160deg, #25222C 0%, #16141C 60%, #100F15 100%); }

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1.5rem 1.6rem 1.7rem;
}

.project__tag {
  align-self: flex-start;
  padding: 0.28rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
}

.project__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.project__meta {
  display: flex;
  gap: 1.4rem;
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-dim);
}
.project__meta span { font-variant-numeric: tabular-nums; }

/* ---------- 10. Этапы ---------- */
.stages__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem 1.6rem;
  counter-reset: stage;
}

.stage {
  position: relative;
  padding-top: 1.6rem;
}
.stage::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--c-line-dim);
}
.stage::after {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}

.stage__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.stage__title {
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
}

.stage__text {
  font-size: 0.92rem;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ---------- 11. Преимущества ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  row-gap: 0.6rem;
  padding: 2rem 2rem 2.2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line-dim);
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease);
}
.benefit:hover { border-color: var(--c-line); }

.benefit__icon {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: none;
  color: var(--c-accent);
  border: 1px solid var(--c-line);
  border-radius: 50%;
}

.benefit__title { font-size: var(--fs-h3); align-self: end; }

.benefit__text {
  font-size: 0.95rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ---------- 12. Контакты ---------- */
.contacts .section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.contacts__list {
  display: flex;
  flex-direction: column;
}

.contacts__list li {
  display: flex;
  gap: 1.2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--c-line-dim);
}
.contacts__list li:first-child { padding-top: 0.4rem; }

.contacts__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--c-accent);
  border: 1px solid var(--c-line);
  border-radius: 50%;
}

.contacts__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.25rem;
}

.contacts__value {
  font-size: 1.02rem;
  line-height: 1.55;
}
.contacts__value a:hover { color: var(--c-accent-soft); }

/* Форма */
.form {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line-dim);
  border-radius: var(--radius);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form__field { margin-bottom: 1.2rem; }

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
.form__label span { color: var(--c-accent-soft); }

.form__input {
  width: 100%;
  padding: 0.85rem 1.05rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-line-dim);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form__input::placeholder { color: rgba(169, 163, 152, 0.55); }
.form__input:hover { border-color: rgba(226, 54, 43, 0.35); }
.form__input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(226, 54, 43, 0.18);
}
.form__input[aria-invalid="true"] { border-color: var(--c-error); }

.form__input--area { resize: vertical; min-height: 110px; }

.form__error {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--c-error);
}

.form__submit { width: 100%; }

.form__note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--c-muted);
  text-align: center;
}

.form__success {
  margin-top: 1.2rem;
  padding: 1rem 1.3rem;
  font-weight: 500;
  color: var(--c-accent-soft);
  background: rgba(226, 54, 43, 0.10);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-align: center;
}

/* ---------- 13. Footer ---------- */
.footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 3.2rem 2.4rem;
}

.footer__brand { max-width: 360px; }

.footer__line {
  margin-top: 1.1rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
  padding-top: 0.6rem;
}
.footer__nav a {
  font-size: 0.92rem;
  color: var(--c-muted);
  padding-block: 0.3rem;
}
.footer__nav a:hover { color: var(--c-accent-soft); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--c-line-dim);
  font-size: 0.82rem;
  color: var(--c-muted);
}
.footer__bottom a { color: var(--c-accent-soft); }
.footer__bottom a:hover { color: var(--c-text); }

/* ---------- 14. Reveal-анимации ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- 15. Адаптив ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stages__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }

  .header__phone, .header__cta { display: none; }
  /* в шапке остаётся только бургер: язык переключается из меню */
  .lang-switch--header { display: none; }
  .burger { display: inline-flex; }

  /* мобильное меню */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.2rem var(--gutter) 3rem;
    background: rgba(15, 18, 21, 0.98);
    border-top: 1px solid var(--c-line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
                visibility 0s 0.3s;
  }
  .nav.nav--open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list li { border-bottom: 1px solid var(--c-line-dim); }
  .nav__link {
    display: block;
    padding: 1.05rem 0.2rem;
    font-family: var(--font-serif);
    font-size: 1.45rem;
  }
  .nav__link::after { display: none; }

  .nav__extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    margin-top: auto;
  }
  .nav__phone {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--c-accent-soft);
  }
  .nav__extra .lang-switch { font-size: 0.9rem; }
  .nav__extra .btn { align-self: stretch; }

  .about__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .services__grid,
  .projects__grid,
  .benefits__grid { grid-template-columns: 1fr; }

  .stages__list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stage {
    padding: 0 0 2rem 2rem;
    border-left: 1px solid var(--c-line-dim);
  }
  .stage:last-child { padding-bottom: 0; }
  .stage::before { display: none; }
  .stage::after { top: 4px; left: -4px; }
  .stage__num { margin-bottom: 0.6rem; }

  .hero__actions .btn { flex: 1 1 100%; }

  .hero__trust { row-gap: 1.2rem; }
  .hero__trust li {
    padding-right: 1.5rem;
    margin-right: 1.5rem;
  }
  .hero__trust li:nth-child(3) {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .benefit {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .benefit__icon { grid-row: 1; margin-bottom: 0.5rem; }

  .footer__inner { flex-direction: column; }
}

@media (max-width: 400px) {
  .logo-mark { height: 40px; }
  .hero__trust li {
    padding-right: 1.1rem;
    margin-right: 1.1rem;
  }
  .hero__trust strong { font-size: 1.4rem; }
}

/* широкие экраны: чуть больше воздуха */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}
