/* Цифровой код — стили сайта. Цвета взяты из логотипа. */
:root {
  --navy: #17203A;
  --navy-2: #222C4A;
  --orange: #E0861F;
  --orange-dark: #C4721A;
  --slate: #5B647D;
  --line: #E3E1DA;
  --bg: #FFFFFF;
  --tint: #F6F4EF;
  --text: #17203A;
  --muted: #5B647D;

  --font: "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, monospace;
  --radius: 14px;
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

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

/* ---------- Кнопки и мелочи ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--orange);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--navy); }
.btn--small { padding: 9px 18px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before { content: "> "; color: var(--orange); }
.eyebrow--light { color: #A9B0C4; }

.lead { font-size: 19px; color: var(--muted); max-width: 40em; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo img { width: 190px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--navy); }
.nav a:not(.btn):hover { color: var(--orange-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero {
  overflow: hidden; /* котик у карточки кода не должен вызывать горизонтальную прокрутку */
  padding: 96px 0 104px;
  background:
    radial-gradient(circle at 85% 20%, rgba(224, 134, 31, .10), transparent 45%),
    var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.cursor {
  display: inline-block;
  width: .42em;
  height: .9em;
  margin-left: .12em;
  vertical-align: -0.06em;
  background: var(--orange);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.code-card {
  position: relative;
  background: var(--navy);
  color: #E6E9F2;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(23, 32, 58, .45);
  overflow: visible;
}
.code-card__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--mono); font-size: 13px; color: #7F88A3;
}
.code-card__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A4466; }
.code-card__bar i:first-child { background: var(--orange); }
.code-card__bar span { margin-left: 10px; }
.code-card__body {
  margin: 0;
  padding: 22px 24px 30px;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.7;
  overflow-x: auto;
}
.code-card__body .c { color: #7F88A3; }
.code-card__body .k { color: #F2A541; }
.code-card__cat {
  position: absolute;
  right: -14px;
  bottom: -46px;
  width: 120px;
  filter: drop-shadow(0 10px 18px rgba(23, 32, 58, .25));
}
@media (min-width: 1260px) {
  .code-card__cat { right: -34px; }
}

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; max-width: 22em; margin-bottom: 48px; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #E6E9F2; }

/* Направления */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(23, 32, 58, .35); }
.card__num {
  display: inline-block;
  margin-bottom: 22px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--orange);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
}
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card ul { margin: 0; padding: 0; list-style: none; border-top: 1px dashed var(--line); padding-top: 16px; }
.card li { position: relative; padding-left: 22px; margin: 8px 0; font-size: 15.5px; }
.card li::before { content: "_"; position: absolute; left: 2px; top: -2px; color: var(--orange); font-family: var(--mono); font-weight: 700; }

/* Этапы */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 3px solid var(--navy); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
}
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Принципы */
.section--dark h2 { color: #fff; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principles h3 { font-size: 21px; color: #fff; margin-bottom: 10px; }
.principles h3::before { content: "// "; color: var(--orange); font-family: var(--mono); }
.principles p { margin: 0; color: #A9B0C4; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.contacts h2 { margin-bottom: 20px; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { width: 92px; flex-shrink: 0; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.contact-list a { font-size: 19px; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--orange-dark); }

.requisites { padding: 32px; border-radius: var(--radius); background: var(--tint); }
.requisites h3 { font-size: 20px; margin-bottom: 18px; }
.requisites dl { margin: 0; }
.requisites dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); margin-top: 16px; }
.requisites dt:first-child { margin-top: 0; }
.requisites dd { margin: 4px 0 0; font-size: 15.5px; }

/* ---------- Подвал ---------- */
.footer { background: #0F1628; color: #7F88A3; padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer img { width: 170px; }
.footer p { margin: 0; font-size: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .code-card { max-width: 560px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .contacts { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav--open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 18px; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header__logo img { width: 160px; }
  .hero { padding: 56px 0 72px; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .section h2 { margin-bottom: 32px; }
  .steps { grid-template-columns: 1fr; }
  .code-card__body { font-size: 12.5px; padding: 18px 16px 24px; }
  .code-card__cat { width: 84px; right: -6px; bottom: -36px; }
  .card { padding: 26px 22px; }
  .requisites { padding: 24px 20px; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .card { transition: none; }
}
