/* Страница «Эксперты» (expert-hub) */

.design-root--expert-hub .page-main--expert-hub {
  width: 1440px;
  max-width: 100%;
  margin: 0 auto;
  padding: 32px 20px 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* ---------- Hero (как на press) ---------- */
.expert-hub-hero {
  width: 100%;
}

.expert-hub-hero__surface {
  position: relative;
  width: 100%;
  height: 356px;
  min-height: 356px;
  border-radius: 12px;
  background: linear-gradient(102.67deg, #22344d 0.17%, #294366 97.72%);
  overflow: hidden;
  box-sizing: border-box;
}

.expert-hub-hero__top-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 110px;
  background-color: transparent;
  background-image: url("assets/press-hero-top-bar.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  pointer-events: none;
}

.expert-hub-hero__top-bar-img {
  display: none;
}

.expert-hub-hero__breadcrumbs {
  position: absolute;
  z-index: 2;
  left: 60px;
  top: 26px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.expert-hub-hero__crumb {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  color: #fff;
  text-decoration: none;
}

.expert-hub-hero__crumb--muted {
  opacity: 0.4;
}


.expert-hub-hero__crumb--current {
  opacity: 1;
}

.expert-hub-hero__crumb-sep {
  pointer-events: none;
}

.expert-hub-hero__icon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 54px;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-hub-hero__icon-img {
  display: block;
  width: 32px;
  height: 32px;
}

.expert-hub-hero__title-row {
  position: absolute;
  z-index: 2;
  left: 81px;
  right: 81px;
  top: 142px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  box-sizing: border-box;
  min-height: 80px;
}

.expert-hub-hero__title-line {
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  margin-top: 0;
}

.expert-hub-hero__title-line--left {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.expert-hub-hero__title-line--right {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
}

#design-root .expert-hub-hero__title {
  flex: none;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 80px;
  font-weight: 480;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  color: #fff;
  font-variation-settings: "slnt" 0;
}

#design-root.design-root--expert-hub .expert-hub-hero__lead {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(142px + 80px * 0.9 + 32px);
  transform: translateX(-50%);
  max-width: 624px;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 140%;
  text-align: center;
  color: #fff;
}

.expert-hub-filters {
  display: none !important;
}

.design-root--expert-hub .about-team-card[hidden],
.design-root--expert-hub .about-team__row[hidden] {
  display: none !important;
}

.expert-hub-filters__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 16px 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.expert-hub-filters__btn {
  box-sizing: border-box;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  background: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  color: #44474f;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 0;
  transition:
    transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    border-radius 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    background 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    color 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.expert-hub-filters__btn:hover:not(.expert-hub-filters__btn--active),
.expert-hub-filters__btn:focus-visible:not(.expert-hub-filters__btn--active) {
  z-index: 1;
  transform: scale(1.05);
  border-color: #7c9abf;
  border-radius: 10px;
  background: #fff;
  color: #44474f;
  box-shadow: 0 4px 14px rgba(55, 81, 114, 0.12);
}

.expert-hub-filters__btn--active,
.expert-hub-filters__btn[aria-selected="true"] {
  border-color: #7c9abf;
  background: #7c9abf;
  color: #fff;
}


/* ---------- Блок экспертов (about-team с «О компании») ---------- */
.design-root--expert-hub .about-team--expert-hub {
  width: 100%;
  max-width: 1280px;
  margin: 140px auto 140px;
  box-sizing: border-box;
}

.design-root--expert-hub .about-team__title--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.design-root--expert-hub .about-team-card[hidden] {
  display: none;
}

#design-root.design-root--expert-hub .about-team-card__role {
  margin: 0;
  width: 100%;
  font-family: Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.04em;
  color: #2f323b;
}

#design-root.design-root--expert-hub .about-team-card__practice {
  margin: 0;
  width: 100%;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  color: #44474f;
}

.design-root--expert-hub .about-team-card__head {
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 1200px) {
  .expert-hub-hero__title-row {
    left: 40px;
    right: 40px;
  }

  .expert-hub-hero__breadcrumbs {
    left: 40px;
  }

  #design-root .expert-hub-hero__title {
    font-size: clamp(40px, 8vw, 80px);
  }
}
@media (max-width: 900px) {
  .design-root--expert-hub .page-main--expert-hub {
    width: 100%;
    max-width: 100%;
    padding: 20px 0 60px;
    gap: 60px;
    align-items: stretch;
    box-sizing: border-box;
  }

  .design-root--expert-hub .page-main--expert-hub > .about-team--expert-hub {
    width: 100%;
    max-width: 100%;
    margin: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .expert-hub-hero {
    width: calc(100vw - 10px);
    max-width: none;
    margin-left: calc(5px + 50% - 50vw);
    margin-right: 0;
    box-sizing: border-box;
  }

  /* Hero: min 212px, снизу всегда 20px после текста lead */
  .expert-hub-hero__surface {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 212px;
    max-height: none;
    padding: 0 0 20px;
    border-radius: 10px;
    background: linear-gradient(102.67deg, #22344d 0.17%, #294366 97.72%);
    -webkit-backdrop-filter: blur(85px);
    backdrop-filter: blur(85px);
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Union — top: 0, 76px */
  .expert-hub-hero__top-bar {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 76px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: none;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .expert-hub-hero__top-bar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  /* Breadcrumbs — top: 88px → 14px, left: 25px */
  .expert-hub-hero__breadcrumbs {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 25px;
    right: auto;
    bottom: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 12px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .expert-hub-hero__crumb {
    font-size: 10px;
    line-height: 12px;
  }

  /* Icon — top: 112px → 38px, center (left 148px @ 310) */
  .expert-hub-hero__icon {
    position: absolute;
    z-index: 2;
    top: 38px;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: 0;
    transform: translateX(-50%);
  }

  .expert-hub-hero__icon-img {
    width: 24px;
    height: 24px;
  }

  /* Title — top: 170px → 96px, 270px centered */
  .expert-hub-hero__title-row {
    position: absolute;
    z-index: 2;
    top: 96px;
    left: 50%;
    right: auto;
    width: min(270px, calc(100% - 40px));
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    gap: 12px;
    box-sizing: border-box;
    min-height: 0;
  }

  .expert-hub-hero__title-line {
    flex: 1 1 0;
    min-width: 0;
    height: 1px;
    max-height: 1px;
    margin-top: 6px;
    padding: 0;
    align-self: center;
    box-sizing: content-box;
    background-clip: content-box;
  }

  #design-root .expert-hub-hero__title {
    font-size: 20px;
    line-height: 105%;
    letter-spacing: -0.03em;
    font-variation-settings: "slnt" 0, "wght" 480;
  }

  /* Lead — 32px от заголовка */
  #design-root.design-root--expert-hub .expert-hub-hero__lead {
    position: relative;
    z-index: 2;
    top: auto;
    left: auto;
    width: min(270px, calc(100% - 40px));
    max-width: none;
    height: auto;
    margin: calc(96px + 20px * 1.05 + 32px) auto 0;
    padding: 0;
    transform: none;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    box-sizing: border-box;
  }

  /* Сетка экспертов — на всю ширину, 25px от краёв */
  .design-root--expert-hub .about-team--expert-hub {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 25px;
    box-sizing: border-box;
  }

  .design-root--expert-hub .about-team--expert-hub .about-team__rows {
    align-items: stretch;
    gap: 32px;
  }

  .design-root--expert-hub .about-team--expert-hub .about-team-card {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
  }

  .design-root--expert-hub .about-team--expert-hub .about-team-card__shell {
    gap: 32px;
    min-height: 0;
    height: auto;
    padding: 24px;
    overflow: visible;
  }

  .design-root--expert-hub .about-team--expert-hub .about-team-card__media {
    display: block;
    position: relative;
    width: 100%;
    height: 130px;
    min-height: 130px;
    max-height: 130px;
    overflow: visible;
    border-radius: 0;
    isolation: isolate;
  }

  .design-root--expert-hub .about-team--expert-hub .about-team-card__plate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    grid-area: unset;
    z-index: 0;
  }

  .design-root--expert-hub .about-team--expert-hub .about-team-card__photo,
  .design-root--expert-hub .about-team--expert-hub .about-team-card__photo--wide {
    position: absolute;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    width: auto;
    max-width: min(206px, 100%);
    height: auto;
    max-height: 170px;
    object-fit: contain;
    object-position: center bottom;
    transform: translateX(-50%);
    grid-area: unset;
    align-self: auto;
    justify-self: auto;
    z-index: 2;
    pointer-events: none;
  }

  .design-root--expert-hub .about-team--expert-hub .about-team-card__name-badge {
    position: absolute;
    left: 50%;
    bottom: -16px;
    top: auto;
    transform: translateX(-50%);
    grid-area: unset;
    margin-bottom: 0;
    z-index: 4;
  }

  /* п.21: при тапе не терять translateX(-50%) — иначе плашка уезжает вправо */
  .design-root--expert-hub .about-team--expert-hub a.about-team-card__name-badge:is(:hover, :active, :focus, :focus-visible) {
    transform: translateX(-50%);
    color: #fff;
  }

  .design-root--expert-hub .about-team--expert-hub .about-team-card__intro {
    margin-top: 24px;
  }

  #design-root.design-root--expert-hub .about-team-card__role {
    font-size: 15px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.02em;
  }

  .design-root--expert-hub .about-team-card__head {
    align-items: flex-start;
    text-align: left;
  }
}

@media (min-width: 901px) {
  .design-root--expert-hub .about-team--expert-hub {
    margin-top: 140px;
    margin-bottom: 140px;
  }
}

/* ---------- «Давайте разберём вашу ситуацию…» ---------- */
.design-root--expert-hub .page-main--expert-hub > .about-team--expert-hub + .expert-hub-invite {
  margin-top: 0;
}

.expert-hub-invite {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.expert-hub-invite__surface {
  position: relative;
  width: 100%;
  min-height: 282px;
  border-radius: 12px;
  background: var(--grad-invite-surface);
  overflow: hidden;
}

.expert-hub-invite__deco {
  position: absolute;
  width: 488px;
  height: 316px;
  right: 99px;
  bottom: 0;
  display: block;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.expert-hub-invite__content {
  position: relative;
  z-index: 1;
  width: 1160px;
  max-width: calc(100% - 120px);
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  box-sizing: border-box;
}

.expert-hub-invite__title {
  margin: 0;
  max-width: 720px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 480;
  line-height: 108%;
  letter-spacing: -0.02em;
  color: #2f323b;
  font-variation-settings: "slnt" 0;
}

.expert-hub-invite__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expert-hub-invite__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.expert-hub-invite__fields {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.expert-hub-invite__field {
  flex: 1 1 0;
  min-width: 0;
}

.expert-hub-invite__field input {
  width: 100%;
  height: 64px;
  padding: 22px;
  border: 1px solid #96adcb;
  border-radius: 8px;
  background: #839fc2;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  color: #fff;
}

.expert-hub-invite__field input::placeholder {
  color: #fff;
  opacity: 1;
}

.expert-hub-invite__field input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 0;
}

.expert-hub-invite__submit {
  flex: none;
  width: 260px;
  height: 64px;
  margin: 0;
  padding: 22px 26px;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: linear-gradient(90deg, #e6e9ed 0%, #edeef2 100%);
}

.expert-hub-invite__submit-label {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: #2f323b;
}

.expert-hub-invite__submit-orb {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 5px;
  box-sizing: border-box;
  background: #e1871f;
  border-radius: 83.33px;
}

.expert-hub-invite__submit-orb img {
  display: block;
  width: 5px;
  height: 8px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.expert-hub-invite__consent {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.expert-hub-invite__consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 4px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.expert-hub-invite__consent input:checked {
  border-color: #fff;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5.2L4.4 8.6L11 1.9' stroke='%237C9ABF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 10px;
}

.expert-hub-invite__consent input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.expert-hub-invite__consent span {
  flex: 1 1 auto;
  min-width: 0;
  display: inline;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  color: #fff;
}

.expert-hub-invite__consent span a {
  margin-left: 0.25em;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ---------- SEO-текст: отступы в page.css ---------- */
.expert-hub-intro {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#design-root .expert-hub-intro__text {
  margin: 0 auto;
  max-width: 1062px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  color: #44474f;
}

#design-root .expert-hub-intro__text p {
  margin: 0 0 12px;
}

#design-root .expert-hub-intro__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .design-root--expert-hub .page-main--expert-hub > .about-team--expert-hub + .expert-hub-invite {
    margin-top: 0;
  }

  .design-root--expert-hub .expert-hub-intro {
    margin: 0;
    padding: 0 25px;
    box-sizing: border-box;
  }

  #design-root .expert-hub-intro__text {
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
  }

  .expert-hub-invite {
    width: calc(100vw - 10px);
    max-width: none;
    margin-left: calc(5px + 50% - 50vw);
    margin-right: 0;
  }

  .expert-hub-invite__surface {
    min-height: 0;
    padding: 20px;
  }

  .expert-hub-invite__deco {
    display: none;
  }

  .expert-hub-invite__content {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 16px;
    align-items: stretch;
  }

  .expert-hub-invite__title {
    max-width: none;
    font-size: 18px;
    text-align: center;
  }

  .expert-hub-invite__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .expert-hub-invite__fields {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .expert-hub-invite__field {
    flex: none;
    width: 100%;
  }

  .expert-hub-invite__field input,
  .expert-hub-invite__submit {
    width: 100%;
    height: 52px;
  }

  .expert-hub-invite__field input {
    padding: 22px 20px;
    font-size: 12px;
    line-height: 15px;
  }

  .expert-hub-invite__submit {
    padding: 14px 20px;
  }

  .expert-hub-invite__submit-label {
    font-size: 13px;
    line-height: 18px;
    color: #4a5b73;
  }

  .expert-hub-invite__consent span {
    font-size: 10px;
    line-height: 12px;
  }
}
