/* ==========================================================================
   Промсофт — тема сайта-визитки (одностраничник)
   Спокойный инженерный стиль: белый фон, терракотовый акцент, Manrope.
   Адаптив mobile-first. Без тяжёлых фреймворков.
   ========================================================================== */

/* ---------- Шрифты (self-hosted woff2; latin + cyrillic) ----------------- */
/* JetBrains Mono — cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-800.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg:        #ffffff;
  --ink:       #161310;  /* заголовки */
  --body:      #45413a;  /* основной текст */
  --muted:     #9b9180;  /* подписи, второстепенное */
  --accent:    #a8542e;  /* терракота — единственный акцент */
  --accent-dk: #8f4525;
  --card:      #faf8f4;  /* фон карточек (чуть тёплый) */
  --card-bd:   #ebe7df;
  --line:      #ececec;  /* разделители секций */
  --info-bg:   #f7f5f0;  /* фон блока «Сведения» */
  --todo-bd:   #d8cfbb;

  --maxw: 1120px;
  --pad: 80px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

a { color: var(--accent); }

/* ---------- Шапка / навигация ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
}
.brand .name {
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a {
  color: #5c574c;
  text-decoration: none;
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-info { color: var(--accent); font-weight: 600; }
.nav a.is-info:hover { color: var(--accent-dk); }

/* мобильное меню — чистый CSS, без JS */
.nav-toggle { display: none; }
.burger { display: none; }

/* ---------- Общие секции --------------------------------------------------- */

section { border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.wrap.section { padding-top: 72px; padding-bottom: 72px; }

/* отступ для якорей под липкой шапкой */
section[id] { scroll-margin-top: 84px; }

h1, h2 { color: var(--ink); margin: 0; }
h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}

.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--body); }
.measure { max-width: 66ch; }
.muted { color: var(--muted); }
.closing { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 74ch; }

/* ---------- Hero ----------------------------------------------------------- */

.hero { padding-top: 84px; padding-bottom: 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero p.lead { margin: 30px 0 0; max-width: 52ch; }
.hero .byline { margin: 32px 0 0; font-size: 16px; line-height: 1.6; color: #5c574c; }
.hero .down { margin: 52px 0 0; font-size: 15px; color: var(--muted); }

.portrait {
  position: relative;
  height: 460px;
  border-radius: 8px;
  border: 1px solid #e6e0d3;
  overflow: hidden;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.portrait span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 12px;
  font: 400 12px/1.4 'JetBrains Mono', ui-monospace, monospace;
  color: #fff;
  text-align: center;
  background: linear-gradient(to top, rgba(20, 18, 14, .62), rgba(20, 18, 14, 0));
}

/* ---------- Карточки ------------------------------------------------------- */

.cards {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: 8px;
  padding: 30px;
}
.card .tick { width: 34px; height: 3px; background: var(--accent); margin-bottom: 20px; }
.card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--ink); }
.card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #5c574c; }

.after-cards { margin: 30px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--body); }

/* ---------- Площадки (Кто отвечает) --------------------------------------- */

.venues {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 780px;
}
.venue {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: 8px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.venue .desc { font-size: 15px; color: #5c574c; }

.call-primary { margin: 32px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 68ch; }
.call-secondary { margin: 18px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 68ch; }

/* ---------- Кейсы (заглушка) ----------------------------------------------- */

.cases {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case {
  background: #fcfbf9;
  border: 1px dashed #e0dacb;
  border-radius: 8px;
  padding: 26px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.case .t { font-size: 17px; font-weight: 700; color: #bdb4a0; }
.case .d { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: #bdb4a0; flex: 1; }

/* ---------- Сведения об ИТ-деятельности ------------------------------------ */

.info { background: var(--info-bg); }
.info .wrap.section { padding-bottom: 28px; }
.info-note { margin: 16px 0 0; font-size: 15px; color: var(--muted); max-width: 68ch; }
.info-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.reqs {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px 20px;
  font-size: 15px;
  line-height: 1.5;
}
.reqs dt { color: var(--muted); }
.reqs dd { margin: 0; }

/* Тултипы-расшифровки кодов ОКВЭД / видов IT-деятельности (Минцифры № 449) */
.reqs .code {
  position: relative;
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  cursor: help;
  white-space: nowrap;
}
.reqs .code:focus { outline: none; }
.reqs .code:focus .tip,
.reqs .code:hover .tip {
  visibility: visible;
  opacity: 1;
  transform: translate(0, 0);
}
.reqs .tip {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  width: max-content;
  max-width: 300px;
  padding: 10px 12px;
  background: var(--ink);
  color: #f5f1e8;
  font: 400 12.5px/1.5 'Manrope', system-ui, sans-serif;
  text-align: left;
  white-space: normal;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(20, 18, 14, .18);
  visibility: hidden;
  opacity: 0;
  transform: translate(0, 4px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
  z-index: 20;
}
.field-label { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.info p { margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: var(--body); }
.info p:last-child { margin-bottom: 0; }

.colophon {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid #e6e2d9;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Плейсхолдеры данных {{ TODO }} --------------------------------- */

.todo {
  font: 400 12.5px/1.6 'JetBrains Mono', ui-monospace, monospace;
  color: #8f8a7f;
  border: 1px dashed var(--todo-bd);
  border-radius: 3px;
  padding: 1px 7px;
  white-space: nowrap;
}
.contacts { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.byline-contacts { margin: 8px 0 0; padding-left: 1.2em; list-style: disc; }
.byline-contacts li { margin: 2px 0; }
.sep { color: var(--todo-bd); }

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

@media (max-width: 1000px) {
  /* бургер-меню (CSS-only) — включаем до того, как ссылки начнут переноситься */
  .burger { display: flex; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
  .burger span { width: 24px; height: 2px; border-radius: 2px; background: var(--body); transition: transform .2s ease, opacity .2s ease; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--line); font-size: 16px; }
  .nav-toggle:checked ~ .nav { max-height: 380px; }
  .nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .cards, .cases { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 32px; }
  .venues { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --pad: 24px; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; padding-bottom: 44px; }
  .portrait { height: 320px; order: 2; }
  .hero p.lead { max-width: none; }

  .wrap.section { padding-top: 48px; padding-bottom: 48px; }

  .colophon { flex-direction: column; }
}
