/* Codemania — общие стили лендингов направлений.
   Палитра — стили КМ/ из Figma «КМ». Оранжевый --accent — бренд, одинаковый на всех страницах.
   Цвет направления --dir (задаётся на <body>) — только вторичная метка: бейджи, иконки, тонкие линии.
   Лайм — только заливка CTA-кнопок. */

@font-face { font-family: "Gilroy"; src: url("fonts/gilroy-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/gilroy-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/gilroy-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/gilroy-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/gilroy-extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #0c0e22;          /* КМ/Черно-синий */
  --panel: #1d2031;       /* панели и карточки */
  --panel-2: #222342;
  --violet: #48487c;      /* КМ/Основа */
  --accent: #ff8562;      /* бренд-акцент */
  --accent-2: #ffa98c;
  --lime: #dfdf41;        /* только CTA */
  --soft: #e9e8ed;        /* КМ/Серо-белый */
  --grey: #cfcfcf;        /* неактивное и декор */
  --line: rgba(233, 232, 237, .10);
  --text: #ffffff;
  --text-2: #d9d9e3;
  --muted: #9a9bb0;
  --muted-light: #6b6c85; /* вторичный текст на светлом */
  --ink: #0c0e22;
  --dir: #9a9bb0;
  --radius: 28px;
  --radius-sm: 20px;
  --wrap: 1180px;
  --font: "Gilroy", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--light { background: var(--soft); color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 12px; }

/* Декор: мягкие кляксы и тёплое свечение */
.blob { position: absolute; z-index: 0; pointer-events: none; border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; filter: blur(2px); }
.blob--orange { background: var(--accent); opacity: .16; }
.blob--violet { background: var(--violet); opacity: .45; }
.blob--panel { background: var(--panel); }
.glow { overflow: hidden; overflow: clip; }
.glow::after {
  content: ""; position: absolute; left: 50%; bottom: -260px; width: min(1100px, 140%); height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 133, 98, .28), transparent 75%);
  pointer-events: none; z-index: 0;
}
.section > .wrap, .hero > .wrap { z-index: 1; }

/* ---------- Типографика ---------- */
.h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.h2 .fade { color: transparent; background: linear-gradient(90deg, var(--muted), var(--text) 70%); -webkit-background-clip: text; background-clip: text; }
.section--light .h2 .fade { background: linear-gradient(90deg, var(--violet), var(--ink) 70%); -webkit-background-clip: text; background-clip: text; }
.accent { color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; text-wrap: pretty; }
.section--light .lead { color: var(--muted-light); }
.head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { text-align: center; justify-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--dir); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 40px -14px rgba(223, 223, 65, .5); }
.btn--lime:hover { background: #e9e95a; }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn .rating {
  display: inline-flex; gap: 6px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 6px 12px; font-weight: 500; font-size: 15px; margin-right: -14px;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 34, .8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: block; flex: none; }
.logo img { width: 168px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.header .btn { margin-left: 8px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .header .btn { display: none; }
  .logo img { width: 140px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header.is-open .nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
.hero .blob--violet { width: 520px; height: 480px; right: -140px; top: -120px; }
.hero .blob--orange { width: 360px; height: 320px; left: -160px; bottom: -120px; }
.hero__mark { position: absolute; right: 2%; bottom: -40px; width: 340px; opacity: .06; pointer-events: none; z-index: 0; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; }
.hero__grid > * { min-width: 0; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 8px 16px; border-radius: 10px;
}
.dir-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.dir-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dir); }
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6.2vw, 76px); line-height: .98; font-weight: 800; letter-spacing: -.03em;
  text-transform: uppercase;
}
.hero h1 .dir { color: var(--accent); }
.hero h1 .fade { color: transparent; background: linear-gradient(90deg, var(--muted) 0%, var(--text) 45%); -webkit-background-clip: text; background-clip: text; }
.mentor-chip {
  display: inline-flex; align-items: center; gap: 12px; vertical-align: middle;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 18px 6px 6px; text-transform: none; letter-spacing: 0;
}
.mentor-chip .ava { width: 44px; height: 44px; border-radius: 50%; background: var(--violet); box-shadow: inset 0 0 0 2px var(--dir); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; }
.mentor-chip b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.mentor-chip small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.2; }
.hero__sub { font-size: clamp(19px, 2.2vw, 28px); line-height: 1.3; color: var(--text-2); max-width: 600px; }
.hero__sub strong { color: var(--accent); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }
.license { display: flex; gap: 12px; align-items: center; margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.license svg { flex: none; }
.footnote { margin-top: 18px; color: var(--muted-light); font-size: 12px; line-height: 1.5; max-width: 520px; }

/* Окно-терминал в hero */
.term {
  position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 40px 120px -50px rgba(255, 133, 98, .45);
  overflow: hidden;
}
.term::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dir); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--violet); }
.term__bar i:nth-child(2) { background: #6b6c85; } .term__bar i:nth-child(3) { background: var(--grey); opacity: .5; }
.term__bar span { margin-left: 10px; color: var(--muted); font: 500 13px var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term pre {
  margin: 0; padding: 22px 22px 26px; overflow-x: auto;
  font: 400 14px/1.7 var(--mono); color: var(--text-2); tab-size: 2;
}
.term .k { color: var(--accent); } .term .s { color: var(--grey); } .term .f { color: #fff; font-weight: 600; }
.term .c { color: #6b6c85; } .term .n { color: var(--accent-2); } .term .t { color: var(--dir); }
.term .p { color: var(--accent); }
.term__foot { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 22px 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--dir); }
@media (max-width: 520px) { .term pre { font-size: 12px; padding: 18px 16px 20px; } .term__foot { padding: 0 16px 18px; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
  .mentor-chip { margin-top: 10px; }
  .hero__mark { display: none; }
}

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--panel); padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { white-space: nowrap; font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-right: 28px; }
.marquee__track span b { color: var(--accent); font-weight: 700; padding: 0 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Цифры ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.fact b { display: block; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.fact:nth-child(2) b { color: var(--accent); }
.fact span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.facts-intro { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 40px; flex-wrap: wrap; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fact { padding: 22px 18px; } }

/* ---------- Как проходит (роадмап) ---------- */
.road { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.road__col { padding: 22px 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.road__col:last-child { border-right: 0; }
.road__col h3 { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 8px; color: var(--text-2); }
.road__col h3 small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.road__item { background: var(--soft); color: var(--ink); border-radius: 10px; padding: 9px 12px; font-size: 14px; line-height: 1.3; }
.road__col--hot { background: rgba(255, 133, 98, .12); }
.road__item--hot { background: var(--accent); color: var(--ink); font-weight: 600; }
@media (max-width: 960px) {
  .road { grid-template-columns: 1fr; }
  .road__col { border-right: 0; border-bottom: 1px solid var(--line); }
  .road__col h3 { text-align: left; }
}

/* ---------- Команда (ты + 4) ---------- */
.squad { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.chat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat__top b { font-size: 16px; font-weight: 600; }
.chat__top small { color: var(--muted); font-size: 13px; }
.msg { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.msg__ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.msg__body { background: var(--panel-2); border-radius: 4px 18px 18px 18px; padding: 12px 16px; }
.msg__body b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.msg__body p { color: var(--text-2); font-size: 15px; line-height: 1.45; }
.msg__body time { display: block; text-align: right; color: var(--muted); font-size: 12px; margin-top: 6px; }
.perks { display: grid; gap: 14px; }
.perk { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.perk h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.perk p { color: var(--muted); font-size: 15px; }
.perk--accent { background: var(--accent); color: var(--ink); border: 0; }
.perk--accent p { color: rgba(12, 14, 34, .78); }
@media (max-width: 900px) { .squad { grid-template-columns: 1fr; } }

/* ---------- Кому подойдёт (светлая вставка) ---------- */
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who__card { background: #fff; border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.who__tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--violet); color: #fff; border-radius: 8px; padding: 5px 10px; }
.who__card h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }
.who__card p { color: var(--muted-light); font-size: 15px; }
.who__card p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) { .who { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } }

/* ---------- Программа (хард-скиллы) ---------- */
.program { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: mod; }
.mod { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 24px 22px; position: relative; counter-increment: mod; }
.mod::before { content: counter(mod, decimal-leading-zero); position: absolute; top: 22px; right: 24px; font: 700 14px var(--mono); color: var(--accent); }
.mod h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; padding-right: 40px; }
.mod ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mod li { font-size: 14px; color: var(--text-2); background: var(--panel-2); border-radius: 8px; padding: 5px 10px; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.formats span { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 133, 98, .5); color: var(--accent-2); font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .program { grid-template-columns: 1fr; } }

/* ---------- Стек ---------- */
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tool { display: flex; align-items: center; gap: 12px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 600; font-size: 15px; line-height: 1.2; }
.tool i { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font: 700 11px var(--mono); letter-spacing: -.02em; color: #fff; font-style: normal; background: var(--violet); box-shadow: inset 0 -2px 0 var(--dir); }
@media (max-width: 480px) { .stack { grid-template-columns: 1fr 1fr; } .tool { padding: 12px; gap: 10px; font-size: 14px; } }

/* ---------- Мок-проект ---------- */
.project { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: stretch; }
.project__text { display: flex; flex-direction: column; gap: 18px; }
.project__text h3 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.project__text p { color: var(--muted); }
.quote { background: var(--panel); border-radius: var(--radius-sm); padding: 20px 22px; border-left: 3px solid var(--accent); color: var(--text-2); font-size: 15px; }
.quote b { display: block; margin-top: 10px; color: var(--text); font-size: 14px; font-weight: 600; }
.arch { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.arch__row { display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.arch__row + .arch__row::before { content: ""; position: absolute; left: 50%; top: -12px; height: 12px; border-left: 2px dashed var(--accent); opacity: .6; }
.node { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; font-size: 14px; font-weight: 600; }
.node small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }
.node--hot { border-color: var(--accent); background: rgba(255, 133, 98, .14); }
.arch__cap { color: var(--muted); font-size: 13px; text-align: center; margin-top: 4px; }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .arch__row { grid-auto-flow: row; } .arch__row + .arch__row::before { display: none; } }

/* ---------- Резюме ---------- */
.cv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cv__card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cv__card h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; color: var(--muted); }
.cv__role { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.cv__card ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.cv__card li { padding-left: 26px; position: relative; font-size: 15px; color: var(--text-2); }
.cv__card li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.cv__card--bad { opacity: .8; }
.cv__card--bad .cv__role { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
.cv__card--bad li { color: var(--muted); }
.cv__card--bad li::before { content: "✕"; color: #6b6c85; }
.cv__card--good { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cv__card--good h3 { color: var(--accent); }
.cv__card--good li::before { content: "✓"; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13px; font-weight: 600; background: var(--panel-2); color: var(--text-2); padding: 5px 10px; border-radius: 8px; }
@media (max-width: 820px) { .cv { grid-template-columns: 1fr; } }

/* ---------- Поддержка (софт + собесы) ---------- */
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.support .perk { padding: 28px 24px; }
.support .perk .ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 133, 98, .16); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
@media (max-width: 900px) { .support { grid-template-columns: 1fr; } }

/* ---------- Сравнение (светлая вставка) ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare-wrap { overflow-x: auto; border-radius: var(--radius); background: #fff; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--soft); vertical-align: top; }
.compare thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-light); font-weight: 600; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare td { color: var(--muted-light); }
.compare .us { background: rgba(255, 133, 98, .1); color: var(--ink); font-weight: 600; }
.compare thead .us { background: var(--accent); color: var(--ink); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { padding: 14px 18px; border-bottom: 1px solid var(--soft); }
  .compare tbody th { padding: 0 0 8px; border: 0; width: auto; }
  .compare td { padding: 6px 0 6px 108px; border: 0; position: relative; }
  .compare td::before { content: attr(data-l); position: absolute; left: 0; top: 6px; width: 100px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-light); font-weight: 600; }
  .compare .us { background: none; color: var(--ink); }
}

/* ---------- Гарантия ---------- */
.guarantee { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 32px; }
.guarantee > :not(.blob) { position: relative; z-index: 1; }
.guarantee .blob { width: 420px; height: 380px; right: -140px; top: -160px; z-index: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: st; }
.step { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; counter-increment: st; }
.step::before { content: counter(st); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.step b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 14px; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pay div { border-top: 2px solid var(--accent); padding-top: 14px; }
.pay b { display: block; margin-bottom: 4px; font-weight: 600; }
.pay span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps, .pay { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps, .pay { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Форма ---------- */
.lead-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 36px; padding: clamp(28px, 5vw, 56px);
}
.lead-box > :not(.blob):not(.mark) { position: relative; z-index: 1; min-width: 0; }
.lead-box .blob { width: 380px; height: 340px; left: -150px; bottom: -170px; z-index: 0; }
.lead-box .mark { position: absolute; left: 4%; bottom: -30px; width: 260px; opacity: .07; z-index: 0; }
.lead-box ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lead-box li { padding-left: 34px; position: relative; font-size: 17px; color: var(--text-2); }
.lead-box li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0e22' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: grid; gap: 14px; align-content: start; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.form > * { min-width: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form input, .form select { width: 100%; min-width: 0; text-overflow: ellipsis; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel); padding: 0 16px; font-size: 16px; color: var(--text); }
.form input::placeholder { color: #6b6c85; }
.form select:invalid { color: #6b6c85; }
.form option { color: var(--ink); }
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form .btn { width: 100%; margin-top: 4px; }
.form small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.form small a { color: inherit; }
.form__alt { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px; }
.form__alt:hover { color: var(--text); }
.form__err { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 133, 98, .12); color: var(--text-2); font-size: 14px; }
.form__err a { color: var(--accent); }
.form__ok { display: none; text-align: center; padding: 30px 10px; }
.form.is-sent > :not(.form__ok) { display: none; }
.form.is-sent .form__ok { display: block; }
.form__ok b { display: block; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
@media (max-width: 860px) { .lead-box { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .lead-box { padding: 24px 16px; border-radius: 28px; } .form { padding: 20px 16px; } }
.squad > *, .project > *, .cv > *, .facts-intro > * { min-width: 0; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-light); line-height: 1.6; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Плавающая кнопка TG ---------- */
.tg-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #2aabee; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(42, 171, 238, .6); transition: transform .15s; }
.tg-fab:hover { transform: scale(1.06); }

/* ---------- Появление при скролле ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Хаб ---------- */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hub a { position: relative; display: grid; gap: 10px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden; transition: transform .15s, border-color .15s; }
.hub a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dir); }
.hub a:hover { transform: translateY(-3px); border-color: var(--accent); }
.hub b { font-size: 26px; font-weight: 700; }
.hub span { color: var(--muted); }
