/* ============================================================
   Директор по строительству — прототип лендинга
   Стиль: строгий, инженерный, деловой
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
  --navy-900: #0d1b2a;
  --navy-800: #122438;
  --navy-700: #1b3350;
  --graphite-700: #2f3a45;
  --graphite-500: #5b6672;
  --graphite-400: #667079;
  --line: #e2e6ea;
  --line-strong: #cdd4da;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --accent: #c0561a;          /* инженерный оранжевый */
  --accent-dark: #a04a15;
  --accent-soft: #fdf1e7;

  --radius: 4px;
  --radius-lg: 6px;

  --container: 1160px;
  --gap: 24px;

  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06);
  --shadow-md: 0 4px 16px rgba(13, 27, 42, .08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--graphite-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

p { margin: 0; }

a { color: var(--navy-700); text-decoration: none; }

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

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

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

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

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { margin-bottom: 40px; max-width: 760px; }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.section__title { font-size: clamp(26px, 4.2vw, 38px); }

.section__lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--graphite-500);
  max-width: 66ch;
}

.ph { /* визуальный маркер плейсхолдера */
  color: var(--accent-dark);
  font-weight: 500;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }

.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy-700); background: #fff; }

.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--onDark:hover { border-color: #fff; background: rgba(255,255,255,.07); }

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

.btn .ico { width: 17px; height: 17px; flex: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  border: 2px solid var(--navy-900);
  border-radius: 3px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: var(--navy-900);
  letter-spacing: .02em;
}
.brand__text { min-width: 0; }
.brand__name { font-size: 15px; font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.brand__role { font-size: 12px; color: var(--graphite-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--graphite-500); }
.nav a:hover { color: var(--navy-900); }

.header__cta { display: flex; align-items: center; gap: 12px; }
.header .btn { padding: 10px 18px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy-900);
  position: relative; transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}
.hero::after { /* тонкая инженерная сетка */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0));
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 76px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #e9a877;
  margin-bottom: 22px;
}
.hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero h1 .ph { color: #f0b98b; font-weight: 800; }

.hero__sub {
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: #c6d0db;
  max-width: 56ch;
}

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

.hero__contacts {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap;
  gap: 10px 28px;
}
.hero__contact {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; color: #aeb9c4;
}
.hero__contact a { color: #e8edf2; font-weight: 500; }
.hero__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero__contact .ico { width: 16px; height: 16px; color: #7d8b99; flex: none; }

/* Ключевые цифры */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: rgba(255,255,255,.03);
  padding: 22px 18px;
}
.stat__num {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat__num .ph { color: #f0b98b; font-weight: 800; }
.stat__label {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #97a4b1;
}

/* ---------- О себе ---------- */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.about__text p + p { margin-top: 16px; }
.about__text { font-size: 17.5px; }

.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 8px 22px;
}
.facts li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts li:last-child { border-bottom: 0; }
.facts__k { color: var(--graphite-500); }
.facts__v { color: var(--navy-900); font-weight: 600; text-align: right; }

/* ---------- Компетенции ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.card__ico {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card__ico svg { width: 20px; height: 20px; }

.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--graphite-500); line-height: 1.55; }

/* ---------- Проекты ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.project {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.project:hover { box-shadow: var(--shadow-md); border-left-color: var(--accent); }

.project__tag {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--graphite-500);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.project__tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.project h3 {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 18px;
}

.project__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  margin-bottom: 18px;
}
.meta__k {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--graphite-400); margin-bottom: 3px;
}
.meta__v { font-size: 15px; font-weight: 600; color: var(--navy-900); }

.project__desc {
  font-size: 15px;
  color: var(--graphite-500);
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  margin-top: auto;
}

/* ---------- Образование ---------- */
.edu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.edu__item {
  border-top: 2px solid var(--navy-900);
  padding-top: 18px;
}
.edu__num {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--graphite-400); margin-bottom: 10px;
}
.edu__item h3 { font-size: 17px; margin-bottom: 6px; }
.edu__item p { font-size: 15px; color: var(--graphite-500); }
.edu__year { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent-dark); }

.edu__extra {
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 15px;
  color: var(--graphite-500);
}
.edu__extra strong { color: var(--navy-900); }

/* ---------- Почему со мной ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.trust__item {
  background: #fff;
  padding: 26px 26px;
  display: flex;
  gap: 16px;
}
.trust__num {
  flex: none;
  width: 34px; height: 34px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: #fff;
  font-size: 15px; font-weight: 700;
  display: grid; place-items: center;
}
.trust__item h3 { font-size: 17px; margin-bottom: 6px; }
.trust__item p { font-size: 15px; color: var(--graphite-500); }

/* ---------- Контакты ---------- */
.contact {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.contact__list { margin-top: 28px; display: grid; gap: 2px; }
.contact__row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.contact__row .ico { width: 19px; height: 19px; color: var(--accent-dark); flex: none; }
.contact__row .k { font-size: 13px; color: var(--graphite-400); letter-spacing: .04em; text-transform: uppercase; }
.contact__row .v { font-size: 16px; font-weight: 600; color: var(--navy-900); }
.contact__row a.v:hover { color: var(--accent-dark); }
.contact__row .txt { min-width: 0; }

.contact__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.form__title { font-size: 20px; margin-bottom: 6px; }
.form__hint { font-size: 14.5px; color: var(--graphite-500); margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--graphite-700);
  margin-bottom: 7px;
}
.field label .req { color: var(--accent-dark); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(27, 51, 80, .1);
}
.field textarea { resize: vertical; min-height: 104px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form__footer { margin-top: 22px; }
.form__note { margin-top: 14px; font-size: 12.5px; color: var(--graphite-400); line-height: 1.5; }
.form__note a { text-decoration: underline; text-underline-offset: 2px; }

.form__status {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius);
  font-size: 14.5px;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status--ok { background: #eaf6ee; border: 1px solid #bfe3ca; color: #1e6b38; }
.form__status--err { background: #fdeceb; border: 1px solid #f3c3bf; color: #9d2b21; }

/* ---------- Футер ---------- */
.footer {
  background: var(--navy-900);
  color: #93a0ad;
  padding: 40px 0;
  font-size: 14px;
}
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer strong { color: #e8edf2; font-weight: 600; }
.footer a { color: #93a0ad; }
.footer a:hover { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- Fade-in (лёгкий) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .project { transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 60px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .edu { grid-template-columns: 1fr; gap: 28px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .nav, .header__cta .btn--ghost { display: none; }
}

@media (max-width: 780px) {
  :root { --gap: 18px; }
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .projects { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 20px 16px;
  }
  .nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--navy-900); }
  .header__cta { display: none; }
}

@media (max-width: 560px) {
  .hero__stats { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .project__meta { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Печать ---------- */
@media print {
  .header, .hero__actions, .form, .nav-toggle, .contact__actions { display: none !important; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero__sub, .stat__num, .stat__label { color: #000; }
  .reveal { opacity: 1; transform: none; }
}
