/* ============================================================
   Mil.Consulting — статический сайт
   Палитра, шрифты и отступы — в блоке :root ниже.
   ============================================================ */

:root {
  --paper:        #f6f2ea;
  --paper-card:   #fffdf8;
  --paper-alt:    #efe9dd;
  --ink:          #1a1a18;
  --ink-body:     #3c3a33;
  --ink-soft:     #4c4a43;
  --ink-muted:    #6b6659;
  --red:          #c02b20;
  --red-dark:     #a12218;
  --rule:         #cfc8b8;
  --rule-soft:    #ddd6c6;
  --serif:        'Old Standard TT', Georgia, serif;
  --serif-text:   'PT Serif', Georgia, serif;
  --sans:         'Oswald', 'Arial Narrow', sans-serif;
  --wrap:         1200px;
  --gutter:       clamp(18px, 4vw, 40px);
  --section-pad:  clamp(50px, 6.5vw, 88px);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- верхняя полоса ---------- */
.strip {
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.strip .wrap {
  padding-top: 9px; padding-bottom: 9px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
}
.strip a { color: var(--ink-muted); }

/* ---------- шапка ---------- */
.hero { position: relative; background: #161b22; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
@media (max-width: 900px) { .hero__bg { object-position: 30% 32%; } }
@media (max-width: 560px) { .hero__bg { object-position: 27% 28%; } }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,16,26,.60) 0%, rgba(10,16,26,.44) 45%, rgba(10,16,26,.76) 100%);
}
.hero__inner {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(70px, 13vw, 150px) var(--gutter) clamp(56px, 10vw, 120px);
  min-height: min(84vh, 760px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: clamp(24px, 3.6vw, 42px);
}
.hero__logo { width: 100%; max-width: min(640px, 84%); height: auto; }
.hero__slogan {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(16px, 4.4vw, 44px); line-height: 1.18;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); text-wrap: balance;
}
.hero__cue {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(4px, 1.4vw, 16px);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 6px;
}
.hero__cue:hover { color: #ff8d82; border-color: #ff8d82; }

/* ---------- навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,234,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
}
.nav__bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__links {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 2.8vw, 40px);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.nav__burger {
  display: none; align-items: center; gap: 9px;
  margin: 8px 0; padding: 9px 14px;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.nav__burger span { display: flex; flex-direction: column; gap: 3.5px; width: 15px; }
.nav__burger span i { display: block; height: 1.5px; background: var(--ink); }
.nav__drawer { display: none; border-top: 1px solid var(--rule); padding: 10px var(--gutter) 20px; }
.nav__drawer.is-open { display: flex; flex-direction: column; }
.nav__drawer a {
  padding: 13px 0; border-bottom: 1px solid var(--rule-soft);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.nav__drawer .nav__cta {
  margin-top: 16px; text-align: center; padding: 13px;
  background: var(--red); color: #fff; border: 0;
}

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; flex: 1; justify-content: center; }
}

/* ---------- секции ---------- */
.section { border-bottom: 1px solid var(--rule); scroll-margin-top: 60px; }
.section--alt { background: var(--paper-alt); }
.section--last { border-bottom: 0; }
.section > .wrap { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.section__head h2 {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(27px, 3.8vw, 42px); line-height: 1.1;
}
.section__num {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted);
}

/* ---------- первая полоса ---------- */
.statement > .wrap { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.statement__panel {
  max-width: 940px; margin: 0 auto;
  padding: clamp(30px, 4.4vw, 56px) clamp(24px, 4vw, 64px);
  background: var(--paper-card);
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
}
.statement__panel p {
  margin: 0; text-align: center; text-wrap: pretty;
  font-family: var(--serif);
  font-size: clamp(17px, 2.1vw, 23px); line-height: 1.52; color: #24231f;
}

/* ---------- компетенции ---------- */
.competence {
  margin-top: clamp(26px, 3.6vw, 44px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px;
}
.competence__card {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3.2vw, 34px);
  background: var(--paper-card); border: 1px solid var(--rule);
}
.competence__n {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1; color: var(--red);
}
.competence__card p {
  margin: clamp(16px, 2vw, 22px) 0 0;
  font-size: 16px; line-height: 1.68; color: var(--ink-body); text-wrap: pretty;
}

/* ---------- публикации ---------- */
.press { margin-top: clamp(26px, 3.6vw, 44px); max-width: 1000px; display: flex; flex-direction: column; }
.press__row {
  display: grid;
  grid-template-columns: minmax(0, clamp(96px, 15vw, 190px)) minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 30px);
  padding: clamp(15px, 2vw, 22px) 0;
  border-top: 1px solid var(--rule-soft);
}
.press__row:last-child { border-bottom: 1px solid var(--rule-soft); }
.press__src {
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); line-height: 1.5;
}
.press__title { font-size: 16px; line-height: 1.55; color: inherit; text-wrap: pretty; }

/* ---------- Mil.Press ---------- */
.milpress { max-width: 940px; margin: 0 auto; text-align: center; }
.milpress__kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
}
.milpress__logo { margin: clamp(22px, 3vw, 32px) auto 0; width: 100%; max-width: min(360px, 72%); height: auto; }
.milpress p {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 21px); line-height: 1.6; color: #24231f; text-wrap: pretty;
}
.btn-outline {
  display: inline-flex; align-items: center;
  margin-top: 26px; padding: 13px 24px;
  border: 1px solid var(--ink);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ---------- контакты ---------- */
.contacts {
  margin-top: clamp(26px, 3.6vw, 44px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px;
}
.contact { padding: clamp(22px, 3vw, 30px); background: var(--paper-card); border: 1px solid var(--rule); }
.contact__label {
  font-family: var(--sans); font-size: clamp(9.5px, 1.05vw, 11px); font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-muted);
}
.contact__list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.contact__value {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px); word-break: break-word;
}

/* ---------- подвал ---------- */
.footer { border-top: 3px double var(--ink); }
.footer .wrap {
  padding-top: 26px; padding-bottom: 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.footer__mark {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  letter-spacing: 0.06em; color: var(--red);
}
.footer__mark i { font-style: normal; font-size: 11px; }
.footer__note { font-style: italic; font-size: 13.5px; color: var(--ink-muted); }

@media (max-width: 980px) {
  .hero__inner { min-height: 100svh; }
  .nav { transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
  body.is-scrolled .nav { transform: none; opacity: 1; pointer-events: auto; }
}
