:root {
  --text-main: #0f172a;
  --text-body: #161c2d;
  --bg: #ffffff;
  --shadow-card: 0 0 6px rgba(0, 0, 0, 0.07), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --container: min(1200px, calc(100% - 48px));
  --accent-blue: #033fea;
  --accent-purple-bg: rgba(105, 81, 255, 0.05);
  /* Ритм «конец блока → заголовок следующего» как у «Обсудить проект» → «Менторство» */
  --section-bridge-cta-margin: 60px;
  --section-bridge-pad-bottom: 51px;
  --section-bridge-pad-top: 39px;
}

html {
  scroll-behavior: smooth;
}

/*
  На широких экранах (ноутбук ~16") дважды Cmd− в Safari даёт ~80% — всё визуально «дальше».
  zoom: 0.8 на корне даёт тот же эффект при 100% зуме браузера, без правки сотен px в вёрстке.
  На узких экранах не трогаем — читаемость и тапы остаются нормальными.
*/
@media (min-width: 1200px) {
  html {
    zoom: 0.8;
  }
}

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

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #101218;
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  min-height: auto;
  background: var(--bg);
  padding-bottom: var(--section-bridge-pad-bottom);
}

.hero__container {
  width: var(--container);
  margin: 0 auto;
}

.hero__navbar {
  position: relative;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__menu-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: var(--text-body);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hero__menu-toggle:focus {
  outline: none;
}

.hero__menu-toggle:focus-visible {
  background: #e8eaef;
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
}

.hero__menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.hero__menu-toggle-bars::before,
.hero__menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.hero__menu-toggle-bars::before {
  top: -7px;
}

.hero__menu-toggle-bars::after {
  top: 7px;
}

.hero__nav-backdrop {
  display: none;
}

.hero__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hero__links a:focus-visible {
  background: #e8eaef;
  color: var(--text-main);
  outline: none;
}

.hero__content {
  margin-top: 45px;
  display: grid;
  grid-template-columns: 791px 381px;
  grid-template-rows: auto auto;
  justify-content: space-between;
  align-items: start;
  column-gap: 28px;
  row-gap: 24px;
}

/* На десктопе кикер + фото участвуют в одной сетке с блоком текста (см. grid-row) */
.hero__intro {
  display: contents;
}

.hero__kicker {
  margin: 0;
  grid-column: 1;
  grid-row: 1;
  color: var(--text-body);
  font-size: 14px;
  line-height: 34px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
}

.hero__right {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  min-width: 0;
}

.hero__body {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.hero__title {
  margin: 0;
  max-width: 791px;
  color: var(--text-main);
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.hero__description {
  margin: 0;
  max-width: 795px;
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.5;
}

.hero__description.hero__description--emphasis {
  margin: 0 0 var(--section-bridge-cta-margin);
  font-weight: 600;
}

.hero__socials {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  gap: 17px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.hero__socials li {
  display: flex;
}

.hero__socials a {
  width: 34.88px;
  height: 34.88px;
  border: 1px solid var(--text-body);
  border-radius: 5px;
  background: #fff;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.hero__socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero__right img {
  display: block;
  width: min(381px, 100%);
  height: auto;
  aspect-ratio: 381 / 471;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 61px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 1300px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .hero__title {
    font-size: clamp(44px, 5.5vw, 62px);
  }

  .hero__description {
    font-size: clamp(22px, 2.3vw, 36px);
  }
}

body.hero-menu-open {
  overflow: hidden;
}

/* Бургер и меню — с 700px; герой: flex-строка кикер+аватар, под ним текст на всю ширину */
@media (max-width: 700px) {
  html {
    scroll-padding-top: calc(68px + env(safe-area-inset-top, 0px));
  }

  .hero {
    min-height: auto;
  }

  .hero__container {
    padding-top: calc(68px + env(safe-area-inset-top, 0px));
  }

  .hero__navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: auto;
    min-height: calc(48px + 20px + env(safe-area-inset-top, 0px));
    padding: calc(10px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 10px
      max(24px, env(safe-area-inset-left, 0px));
    justify-content: flex-end;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid rgba(22, 28, 45, 0.1);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  }

  .hero__menu-toggle {
    display: inline-flex;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
  }

  .hero__nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 198;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .hero__nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero__links {
    position: fixed;
    inset: 0;
    z-index: 205;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow-y: auto;
    margin: 0;
    padding: calc(72px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px))
      max(24px, env(safe-area-inset-left, 0px));
    background: #fff;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.85, 0.25, 1);
  }

  .hero__links.is-open {
    transform: translateX(0);
  }

  .hero__links a {
    height: auto;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 17px;
    border-radius: 10px;
    justify-content: flex-start;
  }

  .hero__content {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .hero__intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .hero__intro .hero__kicker {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: clamp(14px, 4.2vw, 17px);
    line-height: 1.3;
    letter-spacing: 0.06em;
  }

  .hero__intro .hero__right {
    flex-shrink: 0;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }

  .hero__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
    grid-column: auto;
    grid-row: auto;
  }

  .hero__right img {
    display: block;
    width: clamp(80px, 24vw, 104px);
    height: clamp(80px, 24vw, 104px);
    max-width: none;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 8px 24px -6px rgba(0, 0, 0, 0.12);
  }

  .hero__title {
    font-size: clamp(28px, 7.5vw, 44px);
  }

  .hero__description {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .hero__content {
    gap: 18px;
  }

  .hero__intro {
    gap: 8px;
  }

  .hero__intro .hero__kicker {
    font-size: clamp(13px, 3.8vw, 15px);
    line-height: 1.3;
    letter-spacing: 0.055em;
  }

  .hero__body {
    gap: 18px;
  }

  .hero__title {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.1;
  }

  .hero__description {
    font-size: 15px;
  }

  .hero__right img {
    width: clamp(72px, 21vw, 92px);
    height: clamp(72px, 21vw, 92px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__links,
  .hero__nav-backdrop {
    transition: none;
  }
}

/* ================================================================
   Roles
   ================================================================ */
.roles {
  position: relative;
  background: #fff;
  min-height: 522px;
  padding: var(--section-bridge-pad-top) 0 76px;
}

.roles::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 125px;
  height: 387px;
  background: var(--accent-purple-bg);
}

.roles__container {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
}

.consulting__title,
.roles__title {
  max-width: 100%;
  margin: 0;
  font-size: 48px;
  line-height: 66px;
  font-weight: 600;
  color: var(--text-main);
}

.roles__cards {
  margin: 40px auto 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
  gap: 28px;
  align-items: stretch;
}

.role-card {
  min-height: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 22px 28px 26px;
  display: flex;
  flex-direction: column;
}

.role-card__role {
  margin: 0;
  color: var(--text-body);
  font-size: 21px;
  line-height: 32px;
  font-weight: 700;
}

.role-card__desc {
  margin: 14px 0 14px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 28px;
  max-width: 100%;
}

.role-card__company {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-body);
  font-size: 19px;
  line-height: 32px;
  font-weight: 500;
}

.role-card__logo {
  width: 35px;
  height: 35px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.role-card__logo--deloitte {
  background: #000;
  color: #fff;
}

.role-card__logo--mts {
  padding: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}

.role-card__logo--mts .role-card__logo-img {
  object-fit: contain;
}

.role-card__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-card__logo--google {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.role-card__logo-google-svg {
  display: block;
  flex-shrink: 0;
}

.role-card__logo--hh {
  background: #d1001f;
  color: #fff;
}

@media (max-width: 1400px) {
  .roles__cards {
    gap: 24px;
  }
}

/* Фиолетовый фон только под карточками: заголовок остаётся на чистом белом (как блок «Кейсы» в консалтинге) */
@media (max-width: 1024px) {
  .roles::before {
    top: clamp(139px, 20vw, 199px);
  }
}

@media (max-width: 760px) {
  :root {
    --section-bridge-cta-margin: 32px;
    --section-bridge-pad-bottom: 32px;
    --section-bridge-pad-top: 28px;
  }

  .hero {
    padding-bottom: 40px;
  }

  .hero__content {
    padding-bottom: 24px;
  }

  .hero__description.hero__description--emphasis {
    margin-bottom: 0;
  }

  .roles {
    min-height: auto;
    padding: var(--section-bridge-pad-top) 0 40px;
  }

  .consulting__title,
  .roles__title {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.2;
  }

  .roles__title {
    padding-bottom: 4px;
  }

  .roles::before {
    top: clamp(148px, 38vw, 232px);
    height: auto;
    bottom: 0;
    background: linear-gradient(
      180deg,
      rgba(105, 81, 255, 0.035) 0%,
      rgba(105, 81, 255, 0.08) 42%,
      rgba(105, 81, 255, 0.045) 100%
    );
  }

  .roles__cards {
    margin-top: 20px;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .role-card {
    padding: 22px 22px 20px;
    border-radius: 16px;
    border: 1px solid rgba(22, 28, 45, 0.07);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -12px rgba(15, 23, 42, 0.12);
  }

  .role-card__role {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
  }

  .role-card__desc {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.55;
    color: #475569;
  }

  .role-card__company {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-main);
    gap: 10px;
  }

  .role-card__logo {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .roles__cards {
    gap: 18px;
  }

  .role-card {
    padding: 20px 18px 18px;
    border-radius: 14px;
  }

  .role-card__role {
    font-size: 18px;
  }

  .role-card__desc {
    font-size: 14px;
    line-height: 1.5;
  }

  .role-card__company {
    padding-top: 14px;
    font-size: 14px;
  }

  .role-card__logo {
    width: 34px;
    height: 34px;
  }
}

/* ================================================================
   Consulting / Mentorship (shared)
   ================================================================ */
.consulting {
  background: #fff;
  padding: var(--section-bridge-pad-top) 0 var(--section-bridge-pad-bottom);
}

.consulting__container {
  width: var(--container);
  margin: 0 auto;
}

.consulting__lead {
  margin: 40px 0 0;
  font-size: 18px;
  line-height: 32px;
  color: var(--text-body);
}

.consulting__intro {
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 32px;
  color: var(--text-body);
}

.consulting__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.consulting__list li {
  position: relative;
  padding-left: 32px;
  font-size: 20px;
  line-height: 32px;
  color: var(--text-body);
}

.consulting__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
}

.consulting__cases-head {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
}

.consulting__cases-head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 36px;
  line-height: 66px;
  color: var(--text-main);
  font-weight: 600;
}

.consulting__cases-arrows {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
}

.consulting__cases-arrows button {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border: 2px solid var(--text-body);
  border-radius: 100px;
  background: #fff;
  color: var(--text-body);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 0.2s ease, background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease;
}

.consulting__arrow-icon {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  pointer-events: none;
}

.consulting__cases-arrows button:focus {
  outline: none;
}

.consulting__cases-arrows button:not(:disabled):focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
  background: #e8eaef;
  color: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.consulting__cases-arrows button:not(:disabled):active {
  background: #dce0e7;
  color: var(--text-main);
  transform: translateY(0);
}

.consulting__cases-arrows button:disabled {
  opacity: 0.35;
  cursor: default;
}

.consulting__cases-wrap {
  margin-top: 25px;
  background: rgba(105, 81, 255, 0.1);
  min-height: 389px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.consulting__cases-shell {
  width: 100%;
}

.consulting__cases {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 24px 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.consulting__cases::-webkit-scrollbar {
  display: none;
}

.consulting__card {
  flex: 0 0 405px;
  min-height: 329px;
  border-radius: 20px;
  background: #fff;
  padding: 32px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consulting__card h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-body);
}

.consulting__card p {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  font-size: 15px;
  line-height: 26px;
  letter-spacing: -0.1px;
  color: var(--text-body);
}

.consulting__card span {
  display: inline-block;
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: #0e49f0;
}

.consulting__cta {
  margin-top: 32px;
  margin-bottom: var(--section-bridge-cta-margin);
  width: 281px;
  height: 56px;
  border: 2px solid var(--text-body);
  border-radius: 8px;
  background: #fff;
  color: var(--text-body);
  font-size: 20px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease,
    border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.consulting__cta:focus {
  outline: none;
}

.consulting__cta:focus-visible {
  background: #dde1e8;
  color: var(--text-main);
  border-color: var(--text-main);
  outline: none;
  transform: translateY(-1px);
}

.consulting__cta:active {
  background: #cfd6e0;
  color: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(0);
}

@media (max-width: 980px) {
  .consulting {
    padding: 32px 0 40px;
  }

  .consulting__intro {
    margin-top: 16px;
    font-size: 17px;
    line-height: 28px;
  }

  .consulting__list {
    gap: 14px;
  }

  .consulting__list li {
    font-size: 17px;
    line-height: 28px;
    padding-left: 28px;
  }

  .consulting__list li::before {
    width: 10px;
    height: 10px;
    top: 9px;
  }

  .consulting__cases-head {
    margin-top: 40px;
  }

  .consulting__cases-head h3 {
    font-size: clamp(24px, 4.5vw, 36px);
    line-height: 1.3;
  }

  .consulting__cases-wrap {
    min-height: auto;
  }

  .consulting__card {
    flex: 0 0 min(405px, 80vw);
    min-height: auto;
    padding: 24px;
  }

  .consulting__card h4 {
    height: auto;
    font-size: 21px;
  }

  .consulting__card p {
    height: auto;
    font-size: 14px;
    line-height: 24px;
  }

  .consulting__cta {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .consulting {
    padding: var(--section-bridge-pad-top) 0 var(--section-bridge-pad-bottom);
  }

  .consulting__intro {
    font-size: 16px;
    line-height: 26px;
  }

  .consulting__list li {
    font-size: 16px;
    line-height: 26px;
  }

  .consulting__cases-head {
    margin-top: 32px;
  }

  .consulting__cases-head h3 {
    font-size: clamp(22px, 5.5vw, 28px);
  }

  .consulting__cases-arrows {
    gap: 10px;
  }

  .consulting__cases-arrows button {
    width: 48px;
    height: 48px;
  }

  .consulting__arrow-icon {
    width: 28px;
    height: 28px;
  }

  .consulting__card {
    flex: 0 0 min(300px, 85vw);
    padding: 20px;
    border-radius: 14px;
  }

  .consulting__card h4 {
    font-size: 19px;
  }

  .consulting__card span {
    font-size: 14px;
    line-height: 22px;
  }

  .consulting__lead {
    margin-top: 24px;
    font-size: 16px;
    line-height: 26px;
  }

  .consulting__cta {
    margin-top: 20px;
    margin-bottom: var(--section-bridge-cta-margin);
    height: 50px;
    font-size: 17px;
  }

  /* Быстрее реакция на стрелки: на мобиле smooth-scroll у браузера часто очень медленный */
  .consulting__cases {
    scroll-behavior: auto;
  }
}

@media (max-width: 480px) {
  .consulting__card {
    flex: 0 0 calc(100vw - 72px);
  }

  .consulting__cases {
    padding: 10px 16px 20px;
    gap: 16px;
    scroll-padding-left: 16px;
  }
}

/* ================================================================
   Publications — marquee (expert topics)
   ================================================================ */
.publications {
  width: 100%;
  padding: 60px 0 72px;
  background: #fff;
  color: var(--text-body);
  color-scheme: light;
}

.publications__container {
  width: var(--container);
  margin: 0 auto;
}

.publications__title {
  margin: 0;
  max-width: 100%;
  font-size: 48px;
  line-height: 66px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .publications__title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

.publications__intro {
  margin: 40px 0 0;
  max-width: 100%;
  font-size: 18px;
  line-height: 32px;
  color: var(--text-body);
}

.publications__marquees {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 24px;
}

.publications-marquee + .publications-marquee {
  margin-top: 24px;
}

.publications-marquee__viewport {
  overflow: hidden;
  width: 100%;
  min-height: 58px;
  padding: 0 0 16px;
}

.publications-marquee__track {
  display: flex;
  will-change: transform;
  align-items: center;
}

.publications-marquee__group {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  align-items: center;
  padding-right: 24px;
}

.publications-marquee__pill {
  flex: 0 0 auto;
  min-height: 58px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 80px;
  background: #fff;
  color: var(--text-body);
  border: 1px solid rgba(22, 28, 45, 0.08);
  box-shadow: var(--shadow-card);
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateZ(0);
}

@keyframes marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.publications-marquee__track--to-left {
  animation: marquee-left 52s linear infinite;
}

.publications-marquee__track--to-right {
  animation: marquee-right 52s linear infinite;
}

@media (max-width: 900px) {
  .publications-marquee__pill {
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .publications {
    padding: 48px 0 56px;
  }

  .publications__title {
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.2;
  }

  .publications__intro {
    margin-top: 24px;
    font-size: 16px;
    line-height: 28px;
  }

  .publications__marquees {
    margin-top: 32px;
  }

  .publications-marquee + .publications-marquee {
    margin-top: 12px;
  }

  .publications-marquee__viewport {
    min-height: 30px;
    padding: 0 0 8px;
  }

  .publications-marquee__group {
    gap: 12px;
    padding-right: 12px;
  }

  .publications-marquee__pill {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 12px;
    line-height: 1.35;
    border-radius: 40px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05), 0 5px 10px -2px rgba(0, 0, 0, 0.08);
  }

  .publications-marquee__track--to-left,
  .publications-marquee__track--to-right {
    animation-duration: 15s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publications-marquee__track--to-left,
  .publications-marquee__track--to-right {
    animation: none;
    transform: none;
  }

  .publications-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .publications-marquee__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

/* ================================================================
   Publications — grid (articles & broadcasts)
   ================================================================ */
.publications-grid {
  background: #fff;
  padding: 40px 0 0;
}

.publications-grid__header {
  width: var(--container);
  margin: 0 auto;
}

.publications-grid__title {
  margin: 0;
  font-size: 36px;
  line-height: 66px;
  color: var(--text-main);
  font-weight: 600;
}

.publications-grid__bg {
  background: var(--accent-purple-bg);
  margin-top: 40px;
  padding: 40px 0;
}

.publications-grid__rows {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 28px;
  align-items: stretch;
}

.pub-row {
  display: contents;
}

.pub-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: 0;
  padding: 22px 28px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  min-height: 148px;
  height: auto;
  box-sizing: border-box;
  width: 100%;
}

.pub-card__icon {
  width: 74px;
  height: 74px;
  border-radius: 15px;
  background: #f4f5f7;
  border: 1px solid rgba(22, 28, 45, 0.08);
  flex: 0 0 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pub-card__icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.pub-card__content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  flex: 1;
  justify-content: space-between;
}

.pub-card__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-body);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.pub-card__link {
  margin: 0;
  min-width: 0;
  color: var(--accent-blue);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.pub-card__link a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .publications-grid__rows {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 760px) {
  .publications-grid {
    padding: 28px 0 0;
  }

  .publications-grid__title {
    font-size: clamp(24px, 5.5vw, 32px);
    line-height: 1.3;
  }

  .publications-grid__bg {
    margin-top: 24px;
    padding: 24px 0;
  }

  .publications-grid__rows {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pub-card {
    padding: 16px 20px;
    gap: 16px;
    min-height: auto;
  }

  .pub-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex: 0 0 56px;
  }

  .pub-card__icon img {
    width: 32px;
    height: 32px;
  }

  .pub-card__title {
    font-size: 16px;
    line-height: 1.5;
  }

  .pub-card__link {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pub-card {
    gap: 12px;
    padding: 14px 16px;
  }

  .pub-card__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 10px;
  }

  .pub-card__icon img {
    width: 28px;
    height: 28px;
  }
}

.publications-grid__footer {
  width: var(--container);
  margin: 0 auto;
  padding: 40px 0 64px;
}

/* FAQ: grid 0fr/1fr avoids max-height jank on long lists */
.faq-accordion {
  width: 100%;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px;
  width: 100%;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-main);
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.faq-toggle:focus {
  outline: none;
}

.faq-toggle:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
}

.faq-toggle__chev {
  margin-left: auto;
  flex-shrink: 0;
  color: #000;
  transition: transform 0.3s ease;
}

.faq-toggle[aria-expanded="true"] .faq-toggle__chev {
  transform: rotate(180deg);
}

.faq-accordion.is-open .faq-toggle {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.faq-accordion.is-open .faq-accordion__body {
  grid-template-rows: 1fr;
}

.faq-accordion__inner {
  min-height: 0;
  overflow: hidden;
}

/* FAQ list */
.faq-list {
  margin: 0;
  padding: 16px 32px 20px;
  list-style: none;
  width: 100%;
  background: #fff;
}

.faq-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-list li:last-child {
  border-bottom: none;
}

.faq-list li a {
  color: var(--accent-blue);
  text-decoration: none;
}

.faq-list .pub-group-label {
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-accordion__body {
    transition: none;
  }
}

@media (max-width: 980px) {
  .faq-toggle {
    padding: 20px;
    font-size: 15px;
  }

  .faq-list {
    padding: 16px 24px 20px;
  }
}

@media (max-width: 760px) {
  .faq-toggle {
    padding: 16px;
    font-size: 14px;
  }

  .faq-list {
    padding: 12px 16px 16px;
    font-size: 14px;
  }

  .faq-list li {
    padding: 8px 0;
  }

  .publications-grid__footer {
    padding: 24px 0 40px;
  }
}

/* ================================================================
   Contact + site footer (ud10.xml)
   ================================================================ */
.contact {
  background: #fff;
  padding: 56px 0 64px;
}

.contact__container {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 40px;
}

.contact__intro {
  max-width: 585px;
  min-width: min(100%, 280px);
}

.contact__title {
  margin: 0;
  font-size: 48px;
  line-height: 66px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.contact__lead {
  margin: 16px 0 0;
  font-size: 19px;
  line-height: 1.35;
  color: var(--text-body);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 29px;
  align-items: center;
}

.contact__cta {
  width: 279px;
  height: 56px;
  border: 2px solid var(--text-body);
  border-radius: 8px;
  background: #fff;
  color: var(--text-body);
  font-size: 20px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease,
    border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contact__cta:focus {
  outline: none;
}

.contact__cta:focus-visible {
  background: #dde1e8;
  color: var(--text-main);
  border-color: var(--text-main);
  outline: none;
  transform: translateY(-1px);
}

.contact__cta:active {
  background: #cfd6e0;
  color: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(0);
}

.site-footer {
  background: var(--text-body);
  padding: 40px 24px;
}

.site-footer__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-footer__copy {
  margin: 0;
  font-size: 15px;
  line-height: 19px;
  color: #e0e5f3;
}

.theme-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(224, 229, 243, 0.3);
  border-radius: 10px;
  background: transparent;
  color: #e0e5f3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;
}

.theme-toggle__icon--moon { display: none; }
.theme-toggle__icon--sun  { display: block; }

html.dark .theme-toggle__icon--moon { display: block; }
html.dark .theme-toggle__icon--sun  { display: none; }

@media (max-width: 980px) {
  .contact {
    padding: 40px 0 48px;
  }

  .contact__title {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.2;
  }

  .contact__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .contact__cta {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .contact {
    padding: 32px 0 40px;
  }

  .contact__lead {
    font-size: 16px;
    line-height: 1.4;
  }

  .contact__actions {
    flex-direction: column;
    gap: 12px;
  }

  .contact__cta {
    height: 50px;
    font-size: 17px;
    max-width: 100%;
  }

  .site-footer {
    padding: 28px 16px;
  }

  .site-footer__copy {
    font-size: 13px;
  }
}

/* ================================================================
   Dark theme
   ================================================================ */
html.dark {
  --dm-bg: #0f111a;
  --dm-surface: #171b26;
  --dm-card: #1e2233;
  --dm-border: rgba(255, 255, 255, 0.08);
  --dm-text: #e2e8f0;
  --dm-text-muted: #94a3b8;
  --dm-accent-purple-bg: rgba(105, 81, 255, 0.12);
  color-scheme: dark;
}

html.dark body {
  background: #07090f;
  color: var(--dm-text);
}

html.dark .hero {
  background: var(--dm-bg);
}

html.dark .hero__title,
html.dark .consulting__title,
html.dark .roles__title,
html.dark .publications__title,
html.dark .publications-grid__title,
html.dark .contact__title,
html.dark .faq-toggle__label {
  color: var(--dm-text);
}

html.dark .hero__kicker {
  color: var(--dm-text-muted);
}

html.dark .hero__description,
html.dark .consulting__intro,
html.dark .consulting__lead,
html.dark .consulting__list li,
html.dark .publications__intro,
html.dark .contact__lead {
  color: var(--dm-text-muted);
}

html.dark .hero__description.hero__description--emphasis {
  color: var(--dm-text);
}

html.dark .hero__right img {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

html.dark .hero__navbar {
  background: var(--dm-bg);
  border-bottom-color: var(--dm-border);
}

html.dark .hero__links {
  background: var(--dm-bg);
}

html.dark .hero__links a {
  color: var(--dm-text-muted);
}

html.dark .hero__menu-toggle {
  background: var(--dm-surface);
  color: var(--dm-text);
  border: 1px solid var(--dm-border);
}

html.dark .hero__menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline-color: var(--dm-text-muted);
}

html.dark .hero__menu-toggle-bars,
html.dark .hero__menu-toggle-bars::before,
html.dark .hero__menu-toggle-bars::after {
  background: var(--dm-text);
}

html.dark .roles {
  background: var(--dm-bg);
}

html.dark .roles::before {
  background: var(--dm-accent-purple-bg);
}

html.dark .role-card {
  background: var(--dm-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  border-color: var(--dm-border);
}

html.dark .role-card__role {
  color: var(--dm-text);
}

html.dark .role-card__desc {
  color: var(--dm-text-muted);
}

html.dark .role-card__company {
  color: var(--dm-text);
  border-top-color: var(--dm-border);
}

html.dark .role-card__logo--google {
  background: var(--dm-card);
  border-color: var(--dm-border);
}

html.dark .consulting {
  background: var(--dm-bg);
}

html.dark .consulting__list li::before {
  background: var(--dm-text-muted);
}

html.dark .consulting__cases-wrap {
  background: var(--dm-accent-purple-bg);
}

html.dark .consulting__card {
  background: var(--dm-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html.dark .consulting__card h4 {
  color: var(--dm-text);
}

html.dark .consulting__card p {
  color: var(--dm-text-muted);
}

html.dark .consulting__card span {
  color: #6d8cfa;
}

html.dark .consulting__cases-head h3 {
  color: var(--dm-text);
}

html.dark .consulting__cases-arrows button {
  border-color: var(--dm-text-muted);
  background: var(--dm-surface);
  color: var(--dm-text-muted);
}

html.dark .consulting__cta {
  border-color: var(--dm-text-muted);
  background: transparent;
  color: var(--dm-text);
}

html.dark .publications {
  background: var(--dm-bg);
}

html.dark .publications-marquee__pill {
  background: var(--dm-card);
  color: var(--dm-text-muted);
  border-color: var(--dm-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html.dark .publications-grid {
  background: var(--dm-bg);
}

html.dark .publications-grid__bg {
  background: var(--dm-accent-purple-bg);
}

html.dark .pub-card {
  background: var(--dm-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html.dark .pub-card__icon {
  background: var(--dm-surface);
  border-color: var(--dm-border);
}

html.dark .pub-card__title {
  color: var(--dm-text);
}

html.dark .pub-card__link {
  color: #6d8cfa;
}

html.dark .publications-grid__footer {
  background: var(--dm-bg);
}

html.dark .faq-accordion {
  background: var(--dm-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

html.dark .faq-toggle {
  background: var(--dm-card);
  color: var(--dm-text);
}

html.dark .faq-accordion.is-open .faq-toggle {
  border-bottom-color: var(--dm-border);
}

html.dark .faq-toggle__chev {
  color: var(--dm-text-muted);
}

html.dark .faq-list {
  background: var(--dm-card);
}

html.dark .faq-list li {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.dark .faq-list li a {
  color: #6d8cfa;
}

html.dark .faq-list .pub-group-label {
  color: var(--dm-text);
}

html.dark .contact {
  background: var(--dm-bg);
}

html.dark .contact__cta {
  border-color: var(--dm-text-muted);
  background: transparent;
  color: var(--dm-text);
}

html.dark .site-footer {
  background: #0b0d14;
}

html.dark .theme-toggle {
  border-color: rgba(224, 229, 243, 0.15);
}

/* smooth colour transition on theme change */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease !important;
}

/* На тач-экранах после тапа браузер держит «ложный» :hover — стили наведения только для мыши */
@media (hover: hover) and (pointer: fine) {
  .hero__menu-toggle:hover {
    background: #e8eaef;
    outline: none;
  }

  .hero__links a:hover {
    background: #e8eaef;
    color: var(--text-main);
    outline: none;
  }

  .hero__socials a:hover {
    background: var(--text-body);
    color: #fff;
    transform: translateY(-1px);
  }

  .consulting__cases-arrows button:not(:disabled):hover {
    background: #e8eaef;
    color: var(--text-main);
    border-color: var(--text-main);
    transform: translateY(-1px);
  }

  .consulting__cta:hover {
    background: #dde1e8;
    color: var(--text-main);
    border-color: var(--text-main);
    outline: none;
    transform: translateY(-1px);
  }

  .contact__cta:hover {
    background: #dde1e8;
    color: var(--text-main);
    border-color: var(--text-main);
    outline: none;
    transform: translateY(-1px);
  }

  .pub-card:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1), 0 12px 20px -3px rgba(0, 0, 0, 0.14);
  }

  .pub-card__link a:hover {
    text-decoration: underline;
  }

  .faq-accordion:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1), 0 12px 20px -3px rgba(0, 0, 0, 0.14);
  }

  .faq-list li a:hover {
    text-decoration: underline;
  }

  .theme-toggle:hover {
    border-color: rgba(224, 229, 243, 0.6);
    background: rgba(255, 255, 255, 0.08);
  }

  html.dark .hero__menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  html.dark .hero__links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dm-text);
  }

  html.dark .consulting__cases-arrows button:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dm-text);
    border-color: var(--dm-text);
  }

  html.dark .consulting__cta:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dm-text);
    border-color: var(--dm-text);
  }

  html.dark .contact__cta:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dm-text);
    border-color: var(--dm-text);
  }

  html.dark .pub-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  html.dark .faq-accordion:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}
