/* ==========================================================================
   Экосистема ГЗТ.РФ — хаб проектов
   Дизайн-код: Figma MEDO-Clinic (qrJhGzrHpqouL1coL4l5Ny) — страницы Академии,
   «Карьера в сети», «Курсы», «Специалистам» и экран «Home / Portal» (490:23605).
   Токены совпадают с src/app/globals.css проекта gzt-academy.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink:        #020d20;
  --ink-2:      #0f192b;
  --white:      #ffffff;
  --red:        #ed3237;
  --red-soft:   #fce6e7;
  --coral:      #ff777b;
  --lime:       #a4c100;
  --blue:       #5c83c3;
  --blue-light: #9aafe7;
  --periwinkle: #99aeff;
  --lavender:   #bfcafc;
  --sky:        #d3e4ff;
  --mist:       #ebf1ff;
  --cloud:      #f2f5fa;
  --fog:        #f7f7f8;
  --muted:      #a4a8af;
  --haze:       #ebf0f7;
  --line:       #e8ebf0;
  --line-strong:#d0d5dd;

  --font-display: "Arimo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text:    "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-site: 28px;
  --radius-card: 20px;
  --radius-ctl:  8px;

  --container: 1440px;
  --pad:       20px;

}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 32;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
address { font-style: normal; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container--narrow { max-width: 1400px; }

.section { padding: 60px 0; }

.section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section__note {
  max-width: 260px;
  padding-top: 12px;
  font-size: 16px;
  line-height: 1.35;
  text-align: right;
}

.accent { color: var(--red); }
.muted  { color: var(--muted); }

/* --- Typography --------------------------------------------------------- */
.title {
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.title--light  { color: var(--white); }
.title--center { text-align: center; }

.subtitle {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.3;
}

.subtitle--center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

/* --- Shared components -------------------------------------------------- */

/* Тег-надзаголовок: пилюля с красным квадратом */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 8px 21px;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.tag--dark { background: var(--ink-2); color: var(--white); }

.tag__dot { width: 7px; height: 7px; flex: none; background: var(--red); }

/* Бейдж hero (по макету «Home / Portal») */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  height: 45px;
  padding: 0 21px 0 19px;
  border-radius: 30px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.badge__dot { width: 7px; height: 7px; flex: none; }

/* Цветной чип с эмодзи (карточки маршрутов) */
.chip {
  display: inline-block;
  padding: 9px 12px;
  white-space: nowrap;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.chip--lime     { background: color-mix(in srgb, var(--lime) 42%, white); }
.chip--lavender { background: var(--lavender); }
.chip--rose     { background: var(--red-soft); }

/* Кнопки-таблетки 54px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 32px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}

.btn:active { transform: translateY(1px); }

.btn--ink   { background: var(--ink);   color: var(--white); }
.btn--ink:hover { background: var(--ink-2); }
.btn--red   { background: var(--red);   color: var(--white); }
.btn--red:hover { filter: brightness(.95); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--cloud); }
.btn--glass { background: rgba(255,255,255,.18); color: var(--white); }
.btn--glass:hover { background: rgba(255,255,255,.28); }

.btn--outline {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-ctl);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}

.btn--outline:hover { background: var(--cloud); }

.btn--wide { display: flex; width: 100%; }
.btn--sm   { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* Кнопка hero по макету «Home / Portal» */
.btn--light {
  width: 282px;
  height: 54px;
  padding: 16px 37px 16px 38px;
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.btn--light:hover { background: var(--cloud); }

/* Квадратные маркеры списка */
.bullet {
  display: inline-block;
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 2px;
}

.bullet--ink  { background: var(--ink); }
.bullet--red  { background: var(--red); }
.bullet--blue { background: var(--blue); }

.bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 34px;
}

.bullets li {
  display: flex;
  gap: 14px;
  font-size: 18px;
  line-height: 1.35;
}

/* Панели со скруглением 28 */
.panel { border-radius: var(--radius-site); }

.panel--ink {
  padding: 46px 46px 26px;
  background: var(--ink);
  color: var(--white);
}

.panel--haze {
  padding: 64px var(--pad) 20px;
  background: var(--cloud);
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.panel__note {
  font-size: 16px;
  line-height: 1.35;
  text-align: right;
  color: rgba(255,255,255,.72);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--white);
}

.header__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 68px;
}

/* Логотип: плашка «ЭКОСИСТЕМА» + ГЗТ.РФ, как словесный знак Академии */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  margin-top: 24px;
}

.wordmark__plate {
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

.wordmark__gzt { width: 74px; height: 25px; }
.wordmark__gzt--dark { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-top: 22px;
}

/* «Меню»: бургер из двух линий, в раскрытом состоянии — крестик */
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: inherit;
}

.menu-btn__burger {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 20px;
}

.menu-btn__burger i { display: block; height: 1.5px; background: currentColor; }

.menu-btn__close {
  display: none;
  position: relative;
  width: 20px;
  height: 20px;
}

.menu-btn__close::before,
.menu-btn__close::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.menu-btn__close::after { transform: rotate(-45deg); }

/* Раскрытое меню */
.menu {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  min-height: 585px;
  padding-top: 68px;
  border-radius: 0 0 20px 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 9px rgba(2, 13, 32, .1);
}

.menu__nav {
  display: grid;
  grid-template-columns: 673fr 702fr;
  gap: 0 25px;
  padding: 67px 0 34px;
}

.menu__col li { border-bottom: 1px solid var(--line); }
.menu__col li:last-child { border-bottom: 0; }

.menu__col a {
  display: block;
  padding: 23px 0 8px;
  font-size: 22px;
  line-height: 1.1;
  color: var(--muted);
  transition: color .2s ease;
}

.menu__col li:first-child a { padding-top: 8px; }
.menu__col a:hover,
.menu__col a.is-active { color: var(--ink); }

/* Тёмный вариант контролов — на светлых страницах и когда меню раскрыто над белой панелью */
.header--dark,
.header.is-open { color: var(--ink); }
.header--dark .wordmark__plate,
.header.is-open .wordmark__plate { background: var(--ink); color: var(--white); }
.header--dark .wordmark__gzt--light,
.header.is-open .wordmark__gzt--light { display: none; }
.header--dark .wordmark__gzt--dark,
.header.is-open .wordmark__gzt--dark  { display: block; }
.header.is-open .menu-btn__burger { display: none; }
.header.is-open .menu-btn__close  { display: block; }

/* ==========================================================================
   Hero (Figma 490:23605)
   ========================================================================== */
.hero {
  position: relative;
  height: 774px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Контент hero идёт по той же полосе, что и шапка: 1440 с полями по 20 */
.hero__inner {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 77px;
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--pad);
  transform: translateX(-50%);
}

.hero__main { flex: 0 1 820px; max-width: 820px; }
.hero__main .badge { margin-bottom: 32px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero__aside { flex: 0 0 429px; width: 429px; }

.hero__lead {
  margin-bottom: 25px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Зачем нужна экосистема — тёмная панель с плитками
   ========================================================================== */
#why { padding-top: 60px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 310px;
  padding: 30px 28px 32px;
  border-radius: var(--radius-card);
  color: var(--ink);
  overflow: hidden;
}

.tile--sky   { background: var(--sky); }
.tile--cloud { background: var(--cloud); }
.tile--photo { padding: 0; background: var(--cloud); }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; }

.tile__title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}

.tile__text { font-size: 16px; line-height: 1.35; }

.panel + .btn--wide { margin-top: 20px; }

/* ==========================================================================
   Как устроена экосистема — светлая панель с тремя маршрутами
   ========================================================================== */
.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.route {
  padding: 40px 44px 46px;
  border-radius: var(--radius-card);
  background: var(--white);
}

.route__title {
  margin-top: 40px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.route__list { margin-top: 30px; }

.route__list dt {
  font-size: 16px;
  line-height: 1.3;
  color: var(--muted);
}

.route__list dd {
  margin: 8px 0 22px;
  font-size: 18px;
  line-height: 1.35;
}

.route__list dd:last-child { margin-bottom: 0; }

/* ==========================================================================
   Проекты и сайты — плитки с логотипами
   ========================================================================== */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 30px 32px 32px;
  border-radius: var(--radius-card);
  background: var(--cloud);
}

.project__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.project__title {
  margin-top: 44px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.project__text {
  flex: 1;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.4;
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 500;
  transition: color .2s ease;
}

.project__link:hover { color: var(--blue); }

/* Знаки проектов: ГЗТ.РФ с красной точкой и цветная плашка, как на сайтах сети */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  color: var(--ink);
}

.mark__gzt { width: auto; height: 34px; }

.mark__plate {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
}

.mark__plate--ink { background: var(--ink); }
.mark__plate--red { background: var(--red); }

.mark__academy { width: auto; height: 44px; margin-top: -5px; }

.mark__hl { width: auto; height: 40px; margin-top: -3px; }

.mark--soon {
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mark__wip { width: 20px; height: 20px; }

.chip--soon {
  background: var(--white);
  color: var(--muted);
  font-weight: 400;
}

/* ==========================================================================
   Наука и протоколы — основатель + цифры
   ========================================================================== */
.founder {
  display: grid;
  grid-template-columns: 680px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.founder__panel {
  position: relative;
  min-height: 640px;
  padding: 50px 36px 44px;
  border-radius: var(--radius-site);
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}

.founder__title {
  position: relative;
  z-index: 1;
  max-width: 420px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.founder__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 86%;
  width: auto;
  max-width: none;
  pointer-events: none;
}

.founder__stat {
  position: absolute;
  left: 36px;
  bottom: 44px;
  z-index: 1;
}

.founder__num {
  display: block;
  font-size: 40px;
  line-height: 1.1;
}

.founder__cap {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.3;
}

.founder__body .title { margin-top: 28px; font-size: clamp(30px, 3.6vw, 52px); }

.founder__lead {
  margin-top: 26px;
  font-size: 20px;
  line-height: 1.3;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 210px;
  padding: 30px 28px;
  border-radius: var(--radius-card);
  background: var(--cloud);
}

.stat--lavender { background: var(--lavender); }
.stat--ink { background: var(--ink); color: var(--white); }

.stat__num { font-size: 64px; line-height: 1; }
.stat__cap { font-size: 16px; line-height: 1.35; }

/* ==========================================================================
   Документы
   ========================================================================== */
#docs .section__head { align-items: flex-end; }

.docs__art {
  width: 300px;
  height: auto;
  margin: -24px 40px 0 0;
  pointer-events: none;
}

.docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  background: var(--fog);
  transition: background-color .2s ease;
}

.doc:hover { background: var(--cloud); }

.doc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
}

.doc__body { flex: 1; min-width: 0; }

.doc__title {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.doc__meta {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.doc__action {
  flex: none;
  font-size: 16px;
  font-weight: 500;
}

.doc__action::after { content: " ›"; }

/* ==========================================================================
   FAQ — аккордеон
   ========================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 56px;
}

.faq__item {
  padding: 0 40px;
  border-radius: var(--radius-site);
  background: var(--fog);
}

.faq__q {
  position: relative;
  padding: 42px 60px 42px 0;
  font-size: 22px;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::before,
.faq__q::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transform: translateY(-50%);
}

.faq__q::after { transform: translateY(-50%) rotate(90deg); transition: transform .2s ease; }
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(0); }

.faq__a {
  max-width: 1000px;
  padding: 0 0 40px;
  margin-top: -14px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
}

/* ==========================================================================
   Форма и CTA
   ========================================================================== */
.cta {
  display: grid;
  grid-template-columns: 680px minmax(0, 1fr);
  gap: 52px;
  align-items: stretch;
}

.cta__panel {
  position: relative;
  min-height: 640px;
  padding: 44px 36px;
  border-radius: var(--radius-site);
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}

.cta__title {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.05;
}

.cta__photo {
  position: absolute;
  right: -40px;
  bottom: 0;
  height: 70%;
  width: auto;
  max-width: none;
  pointer-events: none;
}

.cta__caption {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(255,255,255,.85);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.form__lead {
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 1.25;
}

.form__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.role input { position: absolute; opacity: 0; pointer-events: none; }

.role span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.role input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.role input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.field {
  width: 100%;
  height: 68px;
  padding: 0 32px;
  border: 0;
  border-radius: 16px;
  background: var(--cloud);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.field::placeholder { color: var(--muted); }
.field:focus { box-shadow: inset 0 0 0 1.5px var(--blue); }
.field.is-invalid { box-shadow: inset 0 0 0 1.5px var(--red); }

.form .btn--wide { margin-top: 4px; }

.form__consent {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.form__consent a { color: var(--red); text-decoration: underline; }

.form__done {
  padding: 18px 24px;
  border-radius: 16px;
  background: var(--mist);
  font-size: 16px;
  line-height: 1.4;
}

/* ==========================================================================
   Юридические документы (политика, соглашение) — макет «Политика обработки»
   ========================================================================== */
.legal {
  padding: 151px 0 125px;
  color: var(--ink);
}

.legal__title {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-align: center;
}

.legal__body {
  max-width: 974px;
  margin: 51px auto 0;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal__body h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
}

.legal__body p { margin: 0; }
.legal__body ul { margin: 0; padding-left: 24px; list-style: disc; }
.legal__gap { height: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: 40px;
  padding: 44px 0 60px;
  border-radius: var(--radius-site) var(--radius-site) 0 0;
  background: var(--ink);
  color: var(--white);
}

.footer__dashes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 47px;
}

.footer__dash { display: inline-flex; align-items: center; gap: 4px; }
.footer__dash i { display: block; width: 41px; height: 7px; border-radius: 999px; background: var(--white); }
.footer__dash i:last-child:not(:first-child) { width: 13px; }
.footer__dash--pair { margin-left: 25%; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 48px;
}

.wordmark--footer { margin-top: 0; }

.footer__legal {
  max-width: 240px;
  margin-top: 24px;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255,255,255,.5);
}

.footer__legal + .footer__legal { margin-top: 12px; }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 6px;
  font-size: 16px;
}

.footer__col a:hover { color: var(--periwinkle); }

.footer__contacts {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 52px;
}

.footer__big { font-size: 20px; line-height: 1.2; }
.footer__address { max-width: 233px; }
.footer__note { margin-top: 8px; font-size: 16px; color: rgba(255,255,255,.5); }
.footer__socials { height: 30px; width: auto; justify-self: end; }

.footer__disclaimer {
  margin-top: 56px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ==========================================================================
   Вакансии — первый экран по макету «Работа в сети»
   ========================================================================== */
.career {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-site) var(--radius-site);
  background: linear-gradient(107deg, var(--blue) 31%, var(--white) 100%);
  color: var(--white);
}

.career__inner {
  position: relative;
  max-width: var(--container);
  min-height: 764px;
  margin: 0 auto;
  padding: 156px var(--pad) 60px;
}

.career__photo {
  position: absolute;
  top: 0;
  left: 711px;
  width: 729px;
  height: 764px;
  max-width: none;
  object-fit: cover;
  border-radius: 0 0 var(--radius-site) 0;
  pointer-events: none;
}

.career__pixels {
  position: absolute;
  top: 68px;
  left: 691px;
  width: 828px;
  max-width: none;
  pointer-events: none;
}

.career__intro {
  position: relative;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.1;
}

.career__title {
  position: relative;
  max-width: 700px;
  margin-top: 40px;
  font-size: clamp(34px, 4.7vw, 67px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.career__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 52px;
}

.btn--career { width: 329px; max-width: 100%; font-size: 20px; }
.btn--career + .btn--career { width: 281px; }

.btn--outline-light {
  border: 1px solid var(--white);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  backdrop-filter: blur(3.5px);
}

.btn--outline-light:hover { background: rgba(255, 255, 255, .16); }

.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
  margin-top: 40px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.perks li { display: flex; align-items: center; gap: 14px; }
.perks img { width: 24px; height: 24px; flex: none; }

.routes--two { grid-template-columns: repeat(2, 1fr); }

/* ==========================================================================
   Вакансии — фильтры и список
   ========================================================================== */
.vac {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px 135px;
  margin-top: 43px;
}

.vac__side { font-size: 16px; line-height: 1.1; }

.vac__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 43px;
  padding: 0 17px;
  border-radius: 10px;
  background: var(--cloud);
  font-weight: 500;
  text-align: left;
  transition: background-color .2s ease;
}

.vac__all:hover { background: var(--mist); }
.vac__all + .vac__all,
.vac__groups + .vac__all { margin-top: 43px; }
.vac__count { font-size: 14px; font-weight: 400; color: var(--muted); }

.vac__groups { display: flex; flex-direction: column; gap: 31px; margin-top: 31px; padding-left: 14px; }
.vac__cities { display: flex; flex-direction: column; gap: 17px; margin-top: 13px; }

.vac__groups button,
.vac__cities button {
  position: relative;
  padding-left: 17px;
  text-align: left;
  transition: color .2s ease;
}

.vac__groups button { padding-left: 0; }
.vac__groups button:hover,
.vac__cities button:hover { color: var(--blue); }
.vac__groups button.is-active,
.vac__cities button.is-active { font-weight: 500; }

.vac__cities button.is-active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 4px;
  height: 4px;
  background: var(--red);
}

.vac__reset[hidden] { display: none; }

.vac__reset {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 48px;
  font-size: 14px;
  color: var(--red);
}

.vac__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vac__search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 326px;
  max-width: 100%;
  height: 42px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--cloud);
}

.vac__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  outline: none;
}

.vac__search input::placeholder { color: rgba(2, 13, 32, .24); }
.vac__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.vac__found { font-size: 14px; color: var(--muted); }

.vac__list { margin-top: 36px; border-top: 1px solid rgba(191, 202, 252, .6); }

.vac__row {
  display: grid;
  grid-template-columns: 372px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 10px;
  padding: 37px 0 37px 12px;
  border-bottom: 1px solid rgba(191, 202, 252, .6);
}

.vac__row[hidden] { display: none; }

.vac__title {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.vac__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-size: 16px;
  line-height: 1.1;
}

.vac__tags span { display: inline-flex; align-items: center; gap: 15px; }

.vac__tags span::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--red);
}

.vac__empty { padding: 34px 12px; font-size: 18px; color: var(--muted); }
.vac__empty[hidden] { display: none; }

/* «Откликнуться»: рамка 139×41 и тёмный квадрат со стрелкой */
.apply {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.apply__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 139px;
  height: 41px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  transition: background-color .2s ease;
}

.apply:hover .apply__label { background: var(--cloud); }

.apply__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--white);
}

/* ==========================================================================
   Анкета — по макету «Не нашли вакансию в своём городе?»
   ========================================================================== */
.hire { padding: 130px 0 92px; }

.hire__grid {
  display: grid;
  grid-template-columns: 699px minmax(0, 1fr);
  gap: 40px 0;
  padding-left: 40px;
}

.hire__title {
  max-width: 560px;
  font-size: clamp(34px, 4.1vw, 59px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hire__text {
  max-width: 620px;
  margin-top: 71px;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hire__form-col { padding-top: 48px; }

.hire__lead {
  max-width: 556px;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hire__form { display: flex; flex-direction: column; gap: 16px; margin-top: 23px; }

.field--lg {
  height: 74px;
  padding: 0 33px;
  border-radius: 18px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

select.field--lg {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23020d20' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 28px center;
  cursor: pointer;
}

.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { filter: brightness(.95); }
.btn--lg { min-height: 74px; border-radius: 18px; font-size: 20px; }

.hire .form__consent { margin-top: 13px; font-size: 14px; color: rgba(2, 13, 32, .36); }
.hire .form__consent a { color: var(--periwinkle); }

/* ==========================================================================
   Плавающее уведомление «в разработке»
   ========================================================================== */
.notice {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(720px, calc(100vw - 40px));
  padding: 18px 18px 18px 22px;
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(2, 13, 32, .25);
  transform: translateX(-50%);
  animation: notice-in .35s ease;
}

.notice__dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  background: var(--red);
}

.notice__text {
  flex: 1;
  font-size: 15px;
  line-height: 1.35;
}

.notice__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin: -6px -6px -6px 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, .7);
  transition: background-color .2s ease, color .2s ease;
}

.notice__close:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

@keyframes notice-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .hero__inner { gap: 48px; }
  .hero__title { font-size: 52px; }
  .founder, .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .docs__art { width: 240px; }
}

@media (max-width: 1100px) {
  .hero { height: auto; min-height: 640px; }

  .hero__inner {
    position: relative;
    inset: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    margin: 0 auto;
    padding: 180px var(--pad) 70px;
    transform: none;
  }

  .hero__main { flex: none; }
  .hero__aside { flex: none; width: 100%; max-width: 429px; }

  .tiles, .stats { grid-template-columns: repeat(2, 1fr); }
  .routes, .docs { grid-template-columns: 1fr; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .founder, .cta { grid-template-columns: 1fr; }
  .career__photo, .career__pixels { display: none; }
  .career__inner { min-height: 0; padding-top: 140px; }
  .routes--two { grid-template-columns: 1fr; }
  .vac { grid-template-columns: 1fr; gap: 32px; }
  .vac__side { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
  .vac__all { width: auto; min-width: 200px; }
  .vac__all + .vac__all, .vac__groups + .vac__all { margin-top: 0; }
  .vac__groups, .vac__cities { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; margin-top: 0; padding-left: 0; }
  .vac__reset { margin-top: 0; }
  .vac__row { grid-template-columns: 1fr; padding-left: 0; }
  .hire__grid { grid-template-columns: 1fr; padding-left: 0; }
  .hire__form-col { padding-top: 0; }
  .hire__text { margin-top: 32px; }
  .founder__panel, .cta__panel { min-height: 520px; }
  .cta__photo { height: 60%; }
  .menu__nav { grid-template-columns: 1fr; }
  .menu { min-height: 0; }
  .section__head { flex-direction: column; gap: 20px; }
  .section__note { text-align: left; padding-top: 0; }
  .docs__art { display: none; }
  .footer__grid, .footer__contacts { grid-template-columns: repeat(2, 1fr); }
  .footer__dash--pair { margin-left: 0; }
  .footer__socials { justify-self: start; }
}

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .title { font-size: 34px; }
  .subtitle { font-size: 17px; }

  .header__actions { gap: 16px; }
  .menu-btn__label { display: none; }
  .wordmark__plate { font-size: 15px; height: 30px; padding: 0 8px; }
  .wordmark { height: 30px; }
  .wordmark__gzt { width: 60px; height: 20px; }

  .hero__inner { padding-top: 120px; }
  .hero__title { font-size: 36px; }
  .hero__lead { font-size: 17px; }
  .hero__main .badge { margin-bottom: 24px; }
  .badge { height: 40px; font-size: 14px; padding: 0 16px; gap: 12px; }
  .btn--light { width: 100%; max-width: 282px; height: 50px; font-size: 18px; }

  .panel--ink { padding: 28px 20px 20px; }
  .panel__head { flex-direction: column; gap: 16px; }
  .panel__note { text-align: left; }
  .tiles { grid-template-columns: 1fr; margin-top: 32px; }
  .tile { min-height: 0; gap: 28px; }
  .tile--photo { min-height: 220px; }

  .panel--haze { padding: 40px 16px 16px; }
  .routes { margin-top: 32px; }
  .route { padding: 28px 24px 30px; }
  .route__title { margin-top: 24px; font-size: 24px; }

  .projects { grid-template-columns: 1fr; }
  .project { min-height: 0; padding: 24px 22px 26px; }
  .project__head { flex-wrap: wrap; gap: 12px; }
  .project__title { margin-top: 28px; font-size: 24px; }

  .founder__panel, .cta__panel { min-height: 480px; padding: 28px 22px; }
  .founder__photo { height: 52%; right: -24px; }
  .founder__stat { position: relative; left: auto; bottom: auto; max-width: 60%; margin-top: 22px; }
  .founder__num { font-size: 32px; }
  .cta__photo { height: 50%; right: -20px; }
  .stats { grid-template-columns: 1fr; margin-top: 32px; }
  .stat { min-height: 0; gap: 20px; }
  .stat__num { font-size: 48px; }

  .doc { gap: 16px; padding: 20px; }
  .doc__action { display: none; }
  .doc__title { font-size: 18px; }
  .faq { margin-top: 32px; }
  .faq__item { padding: 0 20px; border-radius: 20px; }
  .faq__q { padding: 26px 40px 26px 0; font-size: 18px; }
  .faq__a { font-size: 16px; padding-bottom: 26px; }

  .form__lead { font-size: 20px; }
  .field { height: 56px; padding: 0 20px; }

  .legal { padding: 110px 0 70px; }
  .legal__body { margin-top: 32px; line-height: 1.3; }
  .career__inner { padding: 110px var(--pad) 40px; }
  .career__title { margin-top: 24px; font-size: 36px; }
  .career__actions { margin-top: 32px; }
  .btn--career, .btn--career + .btn--career { width: 100%; font-size: 18px; }
  .perks { margin-top: 28px; font-size: 17px; }
  .vac__title { font-size: 22px; }
  .hire { padding: 70px 0 60px; }
  .field--lg { height: 60px; padding: 0 20px; font-size: 17px; }
  select.field--lg { background-position: right 20px center; padding-right: 48px; }
  .btn--lg { min-height: 60px; font-size: 18px; }
  .footer { padding: 36px 0 40px; }
  .notice { bottom: 12px; width: calc(100vw - 24px); padding: 14px 14px 14px 18px; gap: 12px; }
  .notice__text { font-size: 14px; }
  .footer__grid, .footer__contacts { grid-template-columns: 1fr; gap: 28px; }
  .footer__dashes { display: none; }
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .project__link, .doc, .role span, .notice__close, .apply__label, .vac__all { transition: none; }
  .notice { animation: none; }
}
