@font-face {
  font-family: "KM Bebas Neue";
  src: url("../fonts/BebasNeue-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Заставка: готовый логотип, пока грузится страница */
body.intro-active {
  overflow: hidden;
}

.site-intro {
  position: fixed;
  z-index: 30000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #9d0a13;
  transition: opacity 480ms ease, visibility 480ms ease;
}

.site-intro__logo {
  position: relative;
  z-index: 2;
  width: min(70vw, 480px);
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 18px 28px rgba(66, 0, 7, 0.28));
}

.site-intro__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .site-intro__logo {
    width: 57vw;
  }
}

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

/* Видео фотоконтроля */
.photo-control-trigger {
  position: relative;
  min-width: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.photo-control-trigger::after {
  content: "СМОТРЕТЬ  →";
  display: block;
  margin-top: 11px;
  color: var(--brand-red);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.photo-control-trigger:hover,
.photo-control-trigger:focus-visible {
  z-index: 1;
  background: #1b1b1b;
  box-shadow: inset 0 -4px 0 var(--brand-red), 0 14px 30px rgba(11, 11, 11, 0.22);
  outline: none;
  transform: translateY(-2px);
}

.photo-control-trigger:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

.collision-control-trigger::after {
  content: "СМОТРЕТЬ ВИДЕО  →";
}

body.photo-control-open {
  overflow: hidden;
}

.photo-control-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.photo-control-modal[hidden] {
  display: none;
}

.photo-control-modal.is-open {
  opacity: 1;
}

.photo-control-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(5, 5, 6, 0.88);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.photo-control-dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--brand-black);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  color: var(--brand-white);
  transform: translateY(22px) scale(0.985);
  transition: transform 220ms ease;
}

.photo-control-modal.is-open .photo-control-dialog {
  transform: translateY(0) scale(1);
}

.photo-control-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.photo-control-dialog__head span {
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.photo-control-dialog__head h2 {
  margin: 2px 0 0;
  color: var(--brand-white);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1;
}

.photo-control-close {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--brand-white);
  font: 300 34px/1 Arial, sans-serif;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.photo-control-close:hover,
.photo-control-close:focus-visible {
  border-color: var(--brand-red);
  background: var(--brand-red);
  outline: none;
  transform: rotate(4deg);
}

.photo-control-video {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  aspect-ratio: 16 / 9;
  background: #080808;
  object-fit: contain;
}

.photo-control-caption {
  margin: 0;
  padding: 16px 20px 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .photo-control-modal {
    padding: 8px;
  }

  .photo-control-dialog {
    max-height: calc(100vh - 16px);
  }

  .photo-control-dialog__head {
    padding: 14px 14px 12px;
  }

  .photo-control-close {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .photo-control-caption {
    padding: 13px 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-control-trigger,
  .photo-control-modal,
  .photo-control-dialog,
  .photo-control-close {
    transition: none;
  }
}

/* Страница команды: общая фотография, ключевая тройка и адресные профили */
.team-hotspot {
  color: inherit;
  text-decoration: none;
}

.team-page-lead {
  max-width: 880px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.76) !important;
}

.team-page-hero {
  display: flex;
  min-height: clamp(700px, calc(100svh - 88px), 940px);
  align-items: flex-start;
  padding-top: calc(47px + clamp(24px, 4vw, 48px));
  padding-bottom: clamp(70px, 8vw, 116px);
  background: var(--brand-black);
}

.team-page-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #0b0b0b 0%, rgba(11, 11, 11, 0.9) 26%, rgba(11, 11, 11, 0.36) 38%, rgba(11, 11, 11, 0.05) 58%), linear-gradient(180deg, rgba(11, 11, 11, 0.25), transparent 60%, rgba(11, 11, 11, 0.2));
  pointer-events: none;
}

.team-page-hero::after {
  z-index: 2;
  opacity: 0.72;
  pointer-events: none;
}

.team-page-hero-content {
  position: relative;
  z-index: 4;
  transform: translateX(14px);
  transition: opacity 180ms ease;
  pointer-events: none;
}

.team-page-hero-content h1,
.team-page-hero-content .lead {
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.46);
}

.team-page-hero-content h1 {
  max-width: 36%;
}

.team-page-hero-content .team-page-lead {
  max-width: 33%;
}

.team-page-intro {
  padding-top: clamp(42px, 6vw, 82px);
  padding-bottom: clamp(42px, 6vw, 82px);
}

.team-page-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--brand-black);
  box-shadow: 0 24px 70px rgba(11, 11, 11, 0.12);
}

.team-page-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center 43%;
  filter: saturate(0.9) contrast(1.04);
}

.team-page-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(11, 11, 11, 0.82));
  pointer-events: none;
}

.team-page-photo figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 38px);
  left: clamp(18px, 3vw, 42px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: var(--brand-white);
}

.team-page-photo figcaption span,
.team-profile-number,
.team-profile-media > span,
.team-profile-placeholder small {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-page-photo figcaption strong {
  font-family: var(--font-title);
  font-size: clamp(25px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 0.9;
  text-align: right;
}

.team-core-section {
  background: var(--brand-black);
  color: var(--brand-white);
}

.team-core-section .kicker,
.team-core-section .team-page-heading > .lead {
  color: rgba(255, 255, 255, 0.62);
}

.team-core-portrait {
  position: relative;
  isolation: isolate;
  width: min(100%, 940px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: #171717;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.team-core-portrait > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.team-core-portrait--hero {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 82%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.team-core-portrait--hero > img {
  height: calc(100% + 329px);
  object-fit: cover;
  object-position: center 22%;
  transform: translate3d(94px, -329px, 0) scale(1.14);
  transform-origin: center center;
}

.team-core-portrait--hero::after {
  content: none;
}

.team-page-hero .team-core-hotspot {
  z-index: 5;
}

.team-page-hero .team-core-hotspot--vasilisa {
  z-index: 6;
}

.team-page-hero .team-core-hotspot:is(:hover, :focus, :target) {
  z-index: 7;
}

.team-page-hero .team-core-hotspot--vasilisa:is(:hover, :focus, :target) {
  z-index: 8;
}

.team-photo-edit-toggle {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: max(18px, calc((100% - var(--max)) / 2));
  padding: 10px 13px;
  border: 1px solid var(--brand-red);
  background: rgba(11, 11, 11, 0.84);
  color: var(--brand-white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.team-photo-edit-toggle:hover,
.team-photo-edit-toggle[aria-pressed="true"] {
  background: var(--brand-red);
}

.team-photo-editor {
  position: absolute;
  z-index: 10;
  top: 64px;
  right: max(18px, calc((100% - var(--max)) / 2));
  display: grid;
  width: min(330px, calc(100% - 36px));
  gap: 10px;
  padding: 15px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 4px solid var(--brand-red);
  background: rgba(11, 11, 11, 0.94);
  color: var(--brand-white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 180ms ease;
}

.team-photo-editor[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.team-photo-editor label,
.team-photo-editor output,
.team-photo-editor button {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.team-photo-editor > div {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  align-items: center;
}

.team-photo-editor input {
  width: 100%;
  accent-color: var(--brand-red);
}

.team-photo-editor output {
  text-align: right;
}

.team-photo-editor p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.team-photo-editor button {
  justify-self: start;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--brand-white);
  cursor: pointer;
}

.team-page-hero.is-photo-editing .team-core-portrait--hero {
  z-index: 8;
  outline: 2px dashed var(--brand-red);
  outline-offset: -10px;
  cursor: grab;
  touch-action: none;
}

.team-page-hero.is-photo-editing .team-core-portrait--hero:active {
  cursor: grabbing;
}

.team-page-hero.is-photo-editing .team-core-portrait--hero::after {
  content: "ТЯНИТЕ ФОТОГРАФИЮ";
  position: absolute;
  z-index: 9;
  right: 18px;
  bottom: 18px;
  left: auto;
  top: auto;
  display: block;
  padding: 8px 10px;
  background: var(--brand-red);
  color: var(--brand-white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.team-page-hero.is-photo-editing .team-core-hotspot {
  pointer-events: none;
}

.team-hover-cards {
  position: absolute;
  z-index: 6;
  top: clamp(145px, 20%, 190px);
  left: max(24px, calc((100% - var(--max)) / 2));
  width: min(360px, 31vw);
  pointer-events: none;
}

.team-hover-card {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  width: 100%;
  gap: 9px;
  padding: 18px 18px 20px;
  border-left: 6px solid var(--brand-red);
  background: rgba(11, 11, 11, 0.94);
  color: var(--brand-white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.team-hover-card small {
  color: var(--brand-red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-hover-card strong {
  font-family: var(--font-title);
  font-size: clamp(27px, 3vw, 40px);
  line-height: 0.94;
  text-transform: uppercase;
}

.team-hover-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.46;
}

.team-page-hero:has(.team-core-hotspot:is(:hover, :focus, :target)) .team-page-hero-content {
  opacity: 0;
}

.team-page-hero:has(.team-core-hotspot--bezrukov:is(:hover, :focus, :target)) .team-hover-card--bezrukov,
.team-page-hero:has(.team-core-hotspot--vasilisa:is(:hover, :focus, :target)) .team-hover-card--vasilisa,
.team-page-hero:has(.team-core-hotspot--rozanov:is(:hover, :focus, :target)) .team-hover-card--rozanov {
  opacity: 1;
  transform: translateX(0);
}

.team-core-portrait::after {
  content: "НАВЕДИТЕ НА ЧЕЛОВЕКА";
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 8px 10px;
  background: rgba(11, 11, 11, 0.78);
  color: var(--brand-white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.team-core-hotspot {
  position: absolute;
  z-index: 3;
  scroll-margin-top: 130px;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.team-core-hotspot--bezrukov {
  top: calc(22% - 141px);
  bottom: 0;
  left: calc(6% + 94px);
  width: 36%;
  clip-path: polygon(0% 18%, 62% 8%, 92% 42%, 100% 100%, 0% 100%);
}

.team-core-hotspot--vasilisa {
  z-index: 4;
  top: max(56px, calc(16% - 141px));
  left: calc(34% + 94px);
  width: 32%;
  height: 44%;
  clip-path: polygon(18% 0%, 82% 0%, 72% 100%, 28% 100%);
}

.team-core-hotspot--rozanov {
  top: calc(22% - 141px);
  bottom: 0;
  right: calc(4% - 94px);
  width: 34%;
  clip-path: polygon(8% 20%, 100% 10%, 100% 100%, 0% 100%);
}

.team-core-popup {
  position: absolute;
  z-index: 7;
  display: grid;
  width: min(390px, 78vw);
  gap: 9px;
  padding: 18px 19px 20px;
  border: 1px solid var(--brand-red);
  border-left-width: 7px;
  background: rgba(11, 11, 11, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.team-core-hotspot--bezrukov .team-core-popup {
  bottom: 18px;
  left: 12px;
}

.team-core-hotspot--rozanov .team-core-popup {
  right: 12px;
  bottom: 18px;
}

.team-core-hotspot--vasilisa .team-core-popup {
  top: 0;
  left: 50%;
  transform: translate(-50%, 12px);
}

.team-core-popup small {
  color: var(--brand-red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.team-core-popup strong {
  font-family: var(--font-title);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 0.94;
  text-transform: uppercase;
}

.team-core-popup em {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: normal;
  line-height: 1.48;
}

.team-core-hotspot:is(:hover, :focus, :target) {
  z-index: 8;
}

.team-core-hotspot:is(:hover, :focus, :target) .team-core-popup {
  opacity: 1;
  transform: translateY(0);
}

.team-core-hotspot--vasilisa:is(:hover, :focus, :target) .team-core-popup {
  transform: translate(-50%, 0);
}

.team-core-hotspot:focus-visible::after {
  content: none;
}

.team-page-heading {
  align-items: end;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.team-page-heading > .lead {
  max-width: 430px;
}

.team-dept-title {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  color: var(--brand-red);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 981px) {
  /* вровень с началом фото: стрелка 48px + gap 10px */
  .team-dept-title {
    margin-left: calc(48px + 10px);
    margin-right: calc(48px + 10px);
  }
}

.team-dept-label {
  grid-column: 1 / -1;
  margin: 28px 0 4px;
  color: var(--brand-red);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-dept-label:first-child {
  margin-top: 0;
}

@media (max-width: 980px) {
  .team-dept-title {
    display: none;
  }
}

.team-core-grid,
.team-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.team-carousel {
  position: relative;
}

.team-carousel__nav {
  display: none;
}

.team-carousel.is-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.team-carousel.is-carousel .team-carousel__viewport {
  overflow: hidden;
  min-width: 0;
}

.team-carousel.is-carousel .team-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  transform: none;
}

.team-carousel.is-carousel.is-dept-pair .team-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-carousel.is-carousel .team-profile {
  min-width: 0;
  width: auto;
  max-width: none;
}

.team-carousel.is-carousel .team-profile[hidden],
.team-carousel.is-carousel .team-dept-label[hidden] {
  display: none !important;
}

.team-carousel.is-carousel .team-carousel__nav {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(11, 11, 11, 0.18);
  background: #fff;
  color: var(--brand-black);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.team-carousel.is-carousel .team-carousel__nav:hover:not(:disabled) {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.team-carousel.is-carousel .team-carousel__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.team-profile {
  scroll-margin-top: 64px;
  overflow: hidden;
}

.team-profile .card-body {
  align-content: start;
  padding: 23px 24px 28px;
  gap: 10px;
}

.team-profile h3 {
  max-width: 12ch;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 0.98;
  color: var(--brand-black);
}

.team-profile .bio {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.55;
}

.team-profile-role {
  min-height: 2.8em;
  color: var(--brand-red) !important;
  font-weight: 700 !important;
  line-height: 1.35;
}

.team-profile-number {
  color: var(--brand-red) !important;
}

.team-profile-media {
  position: relative;
  overflow: hidden;
  background: #d7d7d7;
}

.team-profile-media > img.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
  transition: filter 240ms ease, transform 400ms ease;
}

.team-profile-media--shared > img.portrait {
  object-position: center 24%;
}

.team-profile-media > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 9px;
  background: var(--brand-red);
  color: var(--brand-white);
}

.team-profile-placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 2;
  place-items: center;
  overflow: hidden;
  background: var(--brand-black);
  color: var(--brand-white);
}

.team-profile-placeholder::before {
  content: "";
  position: absolute;
  top: -20%;
  right: 12%;
  width: 28%;
  height: 145%;
  background: var(--brand-red);
  transform: rotate(17deg);
}

.team-profile-placeholder > span {
  position: relative;
  z-index: 1;
  font-family: var(--font-title);
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 800;
  line-height: 1;
}

.team-profile-placeholder small {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 13px;
  padding: 7px 9px;
  background: var(--brand-white);
  color: var(--brand-black);
}

.team-profile:hover .team-profile-media > img.portrait {
  transform: none;
}

.card.team-profile:hover {
  transform: none;
  border-color: var(--brand-red);
  box-shadow: 0 14px 40px rgba(11, 11, 11, 0.055);
}

.team-profile:target {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.22), 0 24px 70px rgba(11, 11, 11, 0.2);
  animation: team-profile-focus 1.15s ease both;
}

@keyframes team-profile-focus {
  0% { transform: translateY(10px); }
  45% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

.team-all-section {
  background: #f2f2f0;
}

@media (max-width: 980px) {
  .team-core-grid,
  .team-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-core-grid .team-profile:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .team-page-photo img {
    aspect-ratio: 4 / 5;
    object-position: center;
  }

  .team-page-photo figcaption {
    display: grid;
  }

  .team-page-photo figcaption strong {
    text-align: left;
  }

  .team-core-grid,
  .team-cards {
    grid-template-columns: 1fr;
  }

  .team-core-grid .team-profile:first-child {
    grid-column: auto;
    display: flex;
  }

  .team-profile-role {
    min-height: 0;
  }

  .team-core-portrait::after {
    content: "НАЖМИТЕ НА ЧЕЛОВЕКА";
  }

  .team-page-hero {
    min-height: 510px;
    padding-top: 62px;
  }

  .team-page-hero::before {
    background: linear-gradient(90deg, #0b0b0b 0%, rgba(11, 11, 11, 0.88) 26%, rgba(11, 11, 11, 0.32) 38%, rgba(11, 11, 11, 0.03) 56%), linear-gradient(180deg, rgba(11, 11, 11, 0.14) 0%, transparent 56%, rgba(11, 11, 11, 0.36) 72%, #0b0b0b 100%);
  }

  .team-core-portrait--hero::after {
    content: none;
  }

  .team-core-portrait--hero > img {
    height: calc(100% + 329px);
    object-position: center 18%;
    transform: translate3d(94px, -329px, 0) scale(1.3);
    transform-origin: center 30%;
  }

  .team-core-portrait--hero {
    width: 82%;
  }

  .team-page-hero-content h1 {
    max-width: 32%;
    font-size: clamp(36px, 9.7vw, 54px);
  }

  .team-page-hero-content {
    transform: translateX(10px);
  }

  .team-page-hero-content .team-page-lead {
    max-width: 30%;
    font-size: 11.5px;
    line-height: 1.38;
  }

  .team-hover-cards {
    top: 74px;
    left: 17px;
    width: 31%;
  }

  .team-hover-card {
    gap: 6px;
    padding: 12px 10px 13px;
    border-left-width: 4px;
  }

  .team-hover-card strong {
    font-size: 23px;
  }

  .team-hover-card p {
    font-size: 10.5px;
    line-height: 1.34;
  }

  .team-core-popup {
    width: min(410px, calc(100vw - 70px));
    padding: 15px 15px 17px;
  }

  .team-core-popup em {
    font-size: 12px;
    line-height: 1.42;
  }
}

@font-face {
  font-family: "KM Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "KM Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "KM Roboto Condensed";
  src: url("../fonts/RobotoCondensed-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand-red: #ed1c24;
  --brand-black: #0b0b0b;
  --brand-dark-gray: #55565a;
  --brand-light-gray: #ececea;
  --brand-white: #ffffff;
  --brand-green: #39a96b;
  --font-title: "KM Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "KM Roboto Condensed", Arial, sans-serif;
  --font-mono: "KM Roboto Condensed", Arial, sans-serif;
  --bg: var(--brand-white);
  --bg-dark: var(--brand-black);
  --bg-muted: var(--brand-light-gray);
  --text: var(--brand-black);
  --text-inv: var(--brand-white);
  --muted: var(--brand-dark-gray);
  --line: #d3d3d0;
  --accent: var(--brand-red);
  --radius: 12px;
  --max: 1440px;
}

.brand-name {
  font-weight: 700;
  text-transform: uppercase;
}

.brand-hero .team-cover {
  overflow: hidden;
  background: var(--brand-black);
}

.brand-hero .team-cover[data-color-brush] {
  cursor: crosshair;
}

.brand-hero .team-cover .team-portrait-base,
.brand-hero .team-cover .team-portrait-brush {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center center;
  transform: none;
  pointer-events: none;
  user-select: none;
}

.brand-hero .team-cover .team-portrait-base {
  z-index: 1;
}

/* fill: буфер canvas уже с object-fit:cover внутри — не искажать аспектом */
.brand-hero .team-cover .team-portrait-brush {
  z-index: 2;
  object-fit: fill;
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero .team-cover .team-portrait-brush {
    display: none;
  }
}

.hero-top--contacts-only {
  grid-template-columns: 1fr;
}

.cover-edit-hint {
  position: absolute;
  z-index: 8;
  top: 58px;
  right: max(18px, calc((100% - var(--max)) / 2));
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border: 1px dashed var(--brand-red);
  background: rgba(11, 11, 11, 0.88);
  color: var(--brand-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) skewX(-7deg);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cover-editor-panel {
  position: absolute;
  z-index: 9;
  top: 58px;
  left: max(18px, calc((100% - var(--max)) / 2));
  width: min(430px, calc(100% - 36px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 5px solid var(--brand-red);
  background: rgba(11, 11, 11, 0.92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  color: var(--brand-white);
  font-family: var(--font-body);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cover-editor-panel[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cover-editor-title {
  margin-bottom: 12px;
  color: var(--brand-red);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cover-zoom-control {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) 52px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cover-zoom-control input {
  width: 100%;
  accent-color: var(--brand-red);
  cursor: ew-resize;
}

.cover-zoom-control output {
  color: var(--brand-white);
  text-align: right;
}

.cover-editor-panel p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.35;
}

.brand-hero.is-cover-editing {
  cursor: grab;
  user-select: none;
}

.brand-hero.is-cover-editing:active {
  cursor: grabbing;
}

.brand-hero.is-cover-editing .cover-edit-hint {
  opacity: 1;
  transform: translateY(0) skewX(-7deg);
}

.brand-hero.is-cover-editing .team-cover {
  opacity: 0.68 !important;
  outline: 2px dashed rgba(237, 28, 36, 0.82);
  outline-offset: -12px;
  touch-action: none;
}

.brand-hero.is-cover-editing .team-cover .team-portrait-base {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.brand-hero.is-cover-editing .team-cover .team-portrait-base:active {
  cursor: grabbing;
}

[data-hero-widget] {
  position: relative;
  translate: 0 0;
  overflow: visible;
}

[data-widget-text] {
  white-space: pre-line;
}

.widget-drag-handle {
  position: absolute;
  z-index: 30;
  top: -10px;
  right: -10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--brand-white);
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
  color: var(--brand-white);
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  cursor: move;
  touch-action: none;
  transform: rotate(7deg);
  transition: opacity 140ms ease, transform 140ms ease;
}

.brand-hero.is-cover-editing [data-hero-widget] {
  outline: 1px dashed rgba(255, 255, 255, 0.68);
  outline-offset: 4px;
}

.brand-hero.is-cover-editing .widget-drag-handle {
  opacity: 1;
  pointer-events: auto;
}

.brand-hero.is-cover-editing .widget-drag-handle:hover {
  transform: rotate(7deg) scale(1.12);
}

.brand-hero.is-widget-dragging,
.brand-hero.is-widget-dragging * {
  cursor: grabbing !important;
}

.brand-hero.is-cover-editing [data-widget-text] {
  outline: 1px dotted rgba(237, 28, 36, 0.9);
  outline-offset: 3px;
  cursor: text;
  user-select: text;
}

.brand-hero.is-cover-editing [data-widget-text]:focus {
  outline: 2px solid var(--brand-red);
  background: rgba(11, 11, 11, 0.72);
}

.cover-reset[hidden] {
  display: none;
}

html {
  background: var(--brand-black);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--brand-black);
  background: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.section[id],
.project-panel[id],
[id="proekti"],
[id="kofe"] {
  scroll-margin-top: 64px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.018;
  background-image:
    linear-gradient(rgba(11, 11, 11, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 11, 0.7) 1px, transparent 1px);
  background-size: 64px 64px;
}

::selection {
  color: var(--brand-white);
  background: var(--brand-red);
}

.container {
  width: min(var(--max), calc(100% - clamp(32px, 8vw, 128px)));
}

h1,
h2,
.display {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  line-height: 0.92;
}

h1 {
  font-size: clamp(58px, 8.5vw, 132px);
}

h2 {
  font-size: clamp(46px, 6.4vw, 92px);
}

h3,
.card h3,
.features h3,
.process-item h3,
.partner b,
.service-panel h3 {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.mono,
.kicker,
.nav,
.header-phone,
.pill,
.more,
.tab,
.tags,
.card p,
.stat span,
.partner span,
.process-item .num,
.footer-bottom {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--brand-dark-gray);
  font-size: 13px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--brand-red);
}

.lead {
  color: var(--brand-dark-gray);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.38;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  box-sizing: border-box;
  height: 47px;
  min-height: 47px;
  max-height: 47px;
  padding: 4px clamp(18px, 4vw, 64px);
  background: rgba(11, 11, 11, 0.34);
  border-bottom: 3px solid var(--brand-red);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.home-header-overlay {
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.38), rgba(11, 11, 11, 0.18));
  backdrop-filter: blur(10px);
}

.logo {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 2px;
  overflow: visible;
}

.logo img {
  display: block;
  width: 140px;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.nav {
  gap: clamp(14px, 2.1vw, 34px);
  font-size: 13px;
}

.nav a,
.header-phone {
  position: relative;
}

.nav a::after,
.header-phone::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: var(--brand-red);
  transform: scaleX(0) skewX(-7deg);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.header-phone:hover::after {
  transform: scaleX(1) skewX(-7deg);
}

.burger span,
.burger span::before,
.burger span::after {
  height: 3px;
}

.hero.brand-hero {
  min-height: 100svh;
  padding-top: 47px;
  background: var(--brand-black);
  isolation: isolate;
}

.brand-hero::after {
  display: none;
}

.brand-hero .hero-media {
  opacity: 1;
  filter: none;
  width: 100%;
  max-width: 100%;
}

.brand-hero.is-blueprint .hero-media {
  opacity: 0.18;
  filter: grayscale(1) contrast(1.55);
}

.brand-hero .hero-inner {
  z-index: 4;
  padding-top: clamp(58px, 7vw, 108px);
}

.brand-hero .hero-top {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.65fr);
}

.brand-hero h1 {
  max-width: 10.5ch;
  color: var(--brand-white);
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.54);
}

.hero-title-accent {
  color: var(--brand-red);
}

.brand-hero .lead {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.84);
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-signal::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--brand-green);
  box-shadow: 0 0 0 5px rgba(57, 169, 107, 0.16);
  animation: signalPulse 1.8s ease-in-out infinite;
}

.hero-ctas {
  width: min(100%, 370px);
}

.hero-cta {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(11, 11, 11, 0.58);
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, transform 180ms ease;
}

.hero-cta:hover {
  border-color: var(--brand-red);
  transform: translateY(-4px);
}

.hero-action-button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  background: rgba(11, 11, 11, 0.72);
  color: var(--brand-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.hero-action-button::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.16);
}

.hero-action-button:hover {
  border-color: var(--brand-red);
  background: rgba(237, 28, 36, 0.9);
  color: var(--brand-white);
  transform: translateY(-3px);
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border-color: var(--brand-white);
}

.pill {
  border-radius: 9px;
  background: var(--brand-red);
  font-size: 13px;
}

.hero-contact-copy {
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  min-height: 76px;
  width: 100%;
  padding: 11px 18px;
  text-align: left;
}

.hero-contact-meta,
.hero-contact-action {
  display: block;
}

.hero-contact-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.15;
}

.hero-contact-action {
  color: var(--brand-white);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.08;
}

.hero-contact-action--long {
  font-size: 14px;
}

.tech-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  color: var(--brand-white);
  background: rgba(11, 11, 11, 0.68);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tech-toggle::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--brand-red);
  box-shadow: 0 0 0 5px rgba(237, 28, 36, 0.17);
}

.tech-toggle::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -35%;
  width: 25%;
  height: 180%;
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(7deg);
  transition: left 420ms ease;
}

.tech-toggle:hover::after,
.tech-toggle[aria-pressed="true"]::after {
  left: 115%;
}

.hero-tech-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(237, 28, 36, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 28, 36, 0.09) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
}

.brand-hero.is-blueprint .hero-tech-overlay {
  opacity: 1;
}

.hero-tech-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--brand-red);
  box-shadow: 0 0 24px var(--brand-red);
  animation: heroScan 3.2s linear infinite;
}

.tech-axis {
  position: absolute;
  border-color: rgba(255, 255, 255, 0.74);
  border-style: solid;
}

.tech-axis--x {
  right: 8%;
  bottom: 16%;
  left: 8%;
  height: 30px;
  border-width: 0 1px 1px;
}

.tech-axis--y {
  top: 12%;
  right: 10%;
  bottom: 12%;
  width: 30px;
  border-width: 1px 1px 1px 0;
}

.tech-node {
  position: absolute;
  padding: 8px 11px;
  border-left: 3px solid var(--brand-red);
  color: var(--brand-white);
  background: rgba(11, 11, 11, 0.78);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tech-node--one { top: 16%; left: 7%; }
.tech-node--two { top: 36%; right: 8%; }
.tech-node--three { right: 20%; bottom: 14%; }

.hero-tech-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.22);
}

.hero-tech-status > div,
.hero-tech-status > button {
  padding: 14px 16px;
  background: rgba(11, 11, 11, 0.74);
}

.hero-tech-status span,
.hero-tech-status b {
  display: block;
}

.hero-tech-status span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-tech-status b {
  margin-top: 3px;
  color: var(--brand-white);
  font-size: 16px;
  text-transform: uppercase;
}

.marquee {
  position: relative;
  z-index: 5;
  margin-top: 16px;
  padding-bottom: 24px;
}

.brand-hero .marquee-track {
  will-change: transform;
  animation: projectFlowLeft 96s linear infinite;
}

@keyframes projectFlowLeft {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (min-width: 961px) {
  .brand-hero .hero-inner {
    min-height: 750px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .brand-hero .hero-top--contacts-only {
    position: absolute;
    top: 640px;
    right: 0;
    left: 0;
    display: block;
  }

  .brand-hero .hero-ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 370px));
    justify-content: space-between;
    width: 100%;
  }

  .brand-hero .socials {
    position: absolute;
    top: 640px;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 108px; /* высота карточек Денис/Василиса — оси совпадают */
  }

  .brand-hero .cover-edit-toggle,
  .brand-hero .cover-reset {
    position: absolute;
    top: -540px;
    right: 0;
  }

  .brand-hero .cover-reset {
    right: 210px;
  }

}

.tile {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.tile::after,
.card[data-project-card]::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(237, 28, 36, 0.64), transparent);
  transform: rotate(7deg);
  transition: left 600ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.tile:hover::after,
.card[data-project-card]:hover::after {
  left: 115%;
}

.section {
  position: relative;
  overflow: hidden;
}

.section:not(.tech-lab):not(.cta)::after {
  content: "";
  position: absolute;
  top: 36px;
  right: 0;
  width: 160px;
  height: 12px;
  background: linear-gradient(90deg, var(--brand-light-gray) 0 38%, transparent 38% 44%, #d0d0cd 44% 69%, transparent 69% 75%, var(--brand-red) 75%);
  transform: rotate(-7deg);
  opacity: 0.75;
}

.section-head {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
}

.cards {
  gap: 22px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-white);
  box-shadow: 0 14px 40px rgba(11, 11, 11, 0.055);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-red);
  box-shadow: 0 18px 55px rgba(11, 11, 11, 0.13);
}

.card h3 {
  font-size: 27px;
}

.card p {
  color: var(--brand-dark-gray);
  font-size: 12px;
}

.card .bio {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.more {
  position: relative;
  padding: 12px 0 8px 22px;
  border: 0;
}

.more::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--brand-red);
}

.more::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 22px;
  height: 2px;
  background: currentColor;
  transform-origin: left;
  transition: transform 180ms ease;
}

.more:hover::after {
  transform: scaleX(0.45);
}

.about {
  background: var(--brand-light-gray);
}

.project-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(30px, 4vw, 52px) 0;
}

.project-stats .stat {
  min-height: 154px;
  background: var(--brand-light-gray);
  box-shadow: 0 14px 40px rgba(11, 11, 11, 0.055);
}

.project-tech-status {
  margin-top: clamp(34px, 5vw, 62px);
  border-color: rgba(11, 11, 11, 0.22);
  background: rgba(11, 11, 11, 0.18);
}

.project-tech-status > div,
.project-tech-status > button {
  background: var(--brand-black);
}

.about-team-only h2 {
  margin-bottom: clamp(26px, 4vw, 52px);
}

.about-team-only {
  overflow-x: hidden;
  overflow-y: visible;
}

.team-portrait {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--brand-white);
  box-shadow: none;
}

.team-portrait-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.team-portrait-base,
.team-portrait-brush {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.team-portrait-base {
  z-index: 1;
  object-fit: cover;
}

/* офисное фото в #komanda: кроп уже в файле team-cover.webp */
.about-team-only .team-portrait {
  aspect-ratio: 1600 / 791;
}

.about-team-only .team-portrait .team-portrait-base {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

.team-portrait[data-color-brush] {
  cursor: crosshair;
}

.team-portrait-brush {
  z-index: 2;
  pointer-events: none;
}

.team-hotspot {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .team-portrait-brush {
    display: none;
  }
}

.team-hotspot--sabri { left: 0; width: 27%; }
.team-hotspot--anatoly { left: 20%; width: 22%; }
.team-hotspot--vasilisa { left: 38%; width: 20%; }
.team-hotspot--vladimir-orchestrator { left: 55%; width: 23%; }
.team-hotspot--vladimir-operations { left: 76%; width: 24%; }

.team-person-label {
  position: absolute;
  top: 4%;
  right: 6px;
  bottom: auto;
  left: 6px;
  display: grid;
  gap: 3px;
  padding: 10px 12px 11px;
  color: var(--brand-white);
  text-align: left;
  background: rgba(11, 11, 11, 0.9);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.team-person-label::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--brand-red);
  transform: skewX(-7deg);
  transform-origin: top;
}

.team-person-label small,
.team-person-label strong {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  text-transform: uppercase;
}

.team-person-label small {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(8px, 0.78vw, 11px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.team-person-label strong {
  font-size: clamp(13px, 1.25vw, 18px);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.05;
}

.team-hotspot:is(:hover, :focus) .team-person-label {
  opacity: 1;
  transform: translateY(0);
}

.team-hotspot:focus-visible {
  outline: none;
}

.team-hotspot:focus-visible .team-person-label {
  box-shadow: inset 0 0 0 2px var(--brand-red);
}

.team-hotspot--vladimir-operations .team-person-label {
  top: 7%;
  bottom: auto;
}

.stat {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  border-top: 5px solid var(--brand-red);
}

.stat::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -34px;
  width: 65px;
  height: 110px;
  border-left: 12px solid var(--brand-light-gray);
  transform: rotate(7deg);
}

.stat b {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(52px, 6vw, 78px);
}

.features > div {
  padding-left: 20px;
  border-left: 3px solid var(--brand-red);
}

.tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-white);
  transition: transform 170ms ease, background 170ms ease, color 170ms ease;
}

.tab:hover {
  transform: translateY(-3px);
}

.tab.is-on,
.tab:hover,
.tab--more[aria-expanded="true"] {
  color: var(--brand-white);
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.service-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.035), transparent 42%),
    var(--brand-light-gray);
}

.service-list a {
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.service-list a:hover {
  transform: translateX(7px);
  border-color: var(--brand-red);
}

.tags span::before {
  content: "■";
  margin-right: 7px;
  color: var(--brand-red);
}

.process-item {
  position: relative;
  cursor: pointer;
  transition: padding 180ms ease, background 180ms ease, color 180ms ease;
}

.process-item::after {
  content: "ЭТАП ПРОВЕРЕН";
  position: absolute;
  top: 50%;
  right: 18px;
  padding: 5px 8px;
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(-50%) rotate(-7deg) scale(1.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.process-item:hover,
.process-item.is-inspected {
  padding-inline: 18px;
  background: var(--brand-light-gray);
}

.process-item.is-inspected::after {
  opacity: 1;
  transform: translateY(-50%) rotate(-7deg) scale(1);
}

.partner {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  border-top: 5px solid var(--brand-black);
}

.partner:hover {
  border-top-color: var(--brand-red);
}

.cta {
  isolation: isolate;
  background: var(--brand-red);
}

.cta .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
}

.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  right: 9%;
  width: 150px;
  height: 170%;
  border-right: 58px solid rgba(255, 255, 255, 0.97);
  border-left: 14px solid rgba(11, 11, 11, 0.9);
  transform: rotate(7deg);
}

.cta .pill {
  color: var(--brand-red);
  background: var(--brand-white);
}

.footer {
  background: var(--brand-black);
  border-top: 7px solid var(--brand-red);
}

.footer .kicker {
  color: rgba(255, 255, 255, 0.55);
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(47px + clamp(28px, 5vw, 52px)) 0 clamp(72px, 9vw, 132px);
  background: var(--brand-black);
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  right: 8%;
  width: 120px;
  height: 200%;
  border-left: 34px solid var(--brand-red);
  border-right: 9px solid var(--brand-white);
  transform: rotate(7deg);
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.7);
}

/* Интерактивная строительная лаборатория */
.tech-lab {
  color: var(--brand-white);
  background: var(--brand-black);
}

.tech-lab .kicker,
.tech-lab .lead {
  color: rgba(255, 255, 255, 0.68);
}

.tech-lab .section-head {
  margin-bottom: 54px;
}

.tech-console {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(360px, 1.6fr) minmax(250px, 0.8fr);
  align-items: stretch;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #101010;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.tech-stage-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.tech-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  align-content: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.tech-step span:first-child {
  color: var(--brand-red);
}

.tech-step:hover,
.tech-step.is-active {
  color: var(--brand-white);
  background: var(--brand-red);
}

.tech-step.is-active span:first-child {
  color: var(--brand-white);
}

.build-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(237, 28, 36, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 28, 36, 0.065) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
}

.build-visual::before {
  content: "SCAN / OBJECT_001";
  position: absolute;
  top: 18px;
  left: 20px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.build-visual::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--brand-red);
  box-shadow: 0 0 22px var(--brand-red);
  animation: buildScan 4s linear infinite;
}

.build-stage-video {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #08090b;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.build-stage-video.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.build-visual.is-video-stage::before,
.build-visual.is-video-stage::after,
.build-visual.is-video-stage .build-crane,
.build-visual.is-video-stage .build-structure,
.build-visual.is-video-stage .build-measure {
  visibility: hidden;
}

.build-structure {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  width: min(84%, 540px);
  height: 390px;
  padding-top: 56px;
  transform: perspective(900px) rotateX(3deg) rotateY(-5deg);
}

.build-layer {
  position: relative;
  width: calc(94% - var(--level) * 3%);
  height: 50px;
  margin-top: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(90deg, transparent 12%, rgba(255,255,255,.16) 12% 13%, transparent 13% 36%, rgba(255,255,255,.16) 36% 37%, transparent 37% 62%, rgba(255,255,255,.16) 62% 63%, transparent 63% 86%, rgba(255,255,255,.16) 86% 87%, transparent 87%),
    rgba(255, 255, 255, 0.018);
  opacity: 0.16;
  transform: translateY(22px) scaleY(0.5);
  transition: opacity 360ms ease, transform 520ms cubic-bezier(.2,.8,.2,1), border-color 360ms ease, background 360ms ease;
}

.build-layer::before,
.build-layer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.build-layer::before { left: 25%; }
.build-layer::after { right: 25%; }

.build-layer.is-built {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  border-color: var(--brand-red);
  background:
    linear-gradient(90deg, transparent 12%, rgba(255,255,255,.28) 12% 13%, transparent 13% 36%, rgba(255,255,255,.28) 36% 37%, transparent 37% 62%, rgba(255,255,255,.28) 62% 63%, transparent 63% 86%, rgba(255,255,255,.28) 86% 87%, transparent 87%),
    rgba(237, 28, 36, 0.16);
}

.build-crane {
  position: absolute;
  z-index: 2;
  top: 58px;
  right: 8%;
  width: 45%;
  height: 4px;
  background: var(--brand-red);
  transform: rotate(-2deg);
}

.build-crane::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18%;
  width: 1px;
  height: 110px;
  background: var(--brand-red);
  animation: craneHook 3.6s ease-in-out infinite;
}

.build-crane::after {
  content: "";
  position: absolute;
  top: 58px;
  right: calc(18% - 5px);
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
  transform: rotate(45deg);
  animation: craneHookPoint 3.6s ease-in-out infinite;
}

.build-measure {
  position: absolute;
  right: 4%;
  bottom: 8%;
  left: 4%;
  height: 26px;
  border-right: 1px solid rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.55);
  border-left: 1px solid rgba(255,255,255,.55);
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}

.build-readout {
  display: flex;
  flex-direction: column;
  height: 0;
  min-height: 100%;
  padding: 24px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  overflow-y: auto;
}

.build-readout__label {
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.build-readout h3 {
  margin: 18px 0 14px;
  font-family: var(--font-title);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.95;
}

.build-readout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.build-readout__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.build-readout__tags span {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.28);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.build-readout__media {
  margin-top: 24px;
}

.build-media-action {
  position: relative;
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 16px 44px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--brand-white);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.build-media-action[hidden] {
  display: none;
}

.build-media-action::after {
  content: "▶";
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--brand-red);
  font-size: 18px;
  transform: translateY(-50%);
}

.build-media-action small {
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.build-media-action strong {
  font-size: 14px;
  line-height: 1.2;
}

.build-media-action span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.build-media-action:hover,
.build-media-action:focus-visible {
  border-color: var(--brand-red);
  background: rgba(237, 28, 36, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.build-next {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--brand-white);
  background: var(--brand-red);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.build-progress {
  height: 5px;
  margin-top: 16px;
  background: rgba(255,255,255,.16);
}

.build-progress > span {
  display: block;
  width: var(--progress, 16.66%);
  height: 100%;
  background: var(--brand-green);
  transition: width 420ms ease;
}

.construction-toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px 13px 38px;
  border: 1px solid var(--brand-red);
  color: var(--brand-white);
  background: rgba(11, 11, 11, 0.94);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.construction-toast::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 10px;
  height: 10px;
  background: var(--brand-green);
  transform: translateY(-50%);
}

.construction-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.click-spark {
  position: fixed;
  z-index: 119;
  width: 14px;
  height: 14px;
  border: 2px solid var(--brand-red);
  pointer-events: none;
  animation: clickMeasure 620ms ease-out forwards;
}

.copy-concept-badge {
  position: fixed;
  z-index: 110;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  color: var(--brand-black);
  background: var(--brand-white);
  border-left: 5px solid var(--brand-red);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.construction-toast.is-visible ~ .copy-concept-badge {
  opacity: 0;
}

/* Форма фирменной плашки: горизонтальные верх/низ и боковые грани под 7°. */
:is(
  .pill,
  .tech-toggle,
  .tab,
  .tech-step,
  .build-readout__tags span,
  .build-next,
  .gallery-order-button,
  .copy-concept-badge
) {
  border-radius: 0 !important;
  transform: skewX(-7deg);
  transform-origin: center;
}

:is(
  .pill,
  .tech-toggle,
  .tab,
  .tech-step,
  .build-next,
  .gallery-order-button
):hover {
  transform: skewX(-7deg) translateY(-2px);
}

:is(.pill, .tech-toggle, .tab, .tech-step, .build-next, .gallery-order-button):active {
  transform: skewX(-7deg) translateY(0) scale(0.985);
}

@keyframes signalPulse {
  50% { transform: scale(0.76); opacity: 0.7; }
}

@keyframes heroScan {
  from { transform: translateY(-10px); }
  to { transform: translateY(100svh); }
}

@keyframes buildScan {
  from { transform: translateY(0); }
  to { transform: translateY(560px); }
}

@keyframes craneHook {
  0%, 100% { height: 76px; }
  50% { height: 142px; }
}

@keyframes craneHookPoint {
  0%, 100% { top: 74px; }
  50% { top: 140px; }
}

@keyframes clickMeasure {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.35) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4) rotate(7deg); }
}

@media (max-width: 1080px) {
  .tech-console {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .build-readout {
    grid-column: 1 / -1;
    height: auto;
    min-height: 0;
    border-top: 1px solid rgba(255,255,255,.18);
    border-left: 0;
  }
}

@media (max-width: 960px) {
  .header {
    height: 47px;
    min-height: 47px;
    max-height: 47px;
  }

  .nav-drawer.is-open {
    inset: 47px 0 0;
    background: var(--brand-black);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .brand-hero .hero-top,
  .section-head {
    grid-template-columns: 1fr;
  }

  /* Мобильный хук: фото 100% ширины (3:2) → CTA на фото → контакты → лента */
  .hero.brand-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    padding-top: 47px;
    background: var(--brand-black);
  }

  .brand-hero .hero-media.team-cover {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: none;
    flex: none;
    opacity: 1;
    filter: none;
    overflow: hidden;
  }

  .brand-hero .hero-media.team-cover::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 11, 11, 0.55) 55%, rgba(11, 11, 11, 0.88) 100%);
    pointer-events: none;
  }

  .brand-hero .hero-tech-overlay {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    top: auto;
    inset: auto;
    width: 100%;
    height: auto;
    align-self: stretch;
    pointer-events: none;
  }

  .brand-hero .hero-inner {
    display: contents;
  }

  .brand-hero .socials {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    z-index: 6;
    top: auto;
    left: auto;
    right: auto;
    align-self: end;
    justify-self: stretch;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    width: auto;
    margin: 0 16px 16px;
    order: 0;
  }

  .brand-hero .socials .hero-action-button[href^="tel"],
  .brand-hero .socials .tech-toggle {
    display: none;
  }

  .brand-hero .socials .hero-action-button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    border-color: var(--brand-red);
    background: rgba(237, 28, 36, 0.94);
    font-size: 14px;
  }

  .brand-hero .socials .hero-action-button:hover {
    transform: none;
    background: var(--brand-red);
  }

  .brand-hero .hero-top--contacts-only {
    grid-row: 2;
    grid-column: 1;
    order: 2;
    position: relative;
    z-index: 4;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 16px 10px;
    background: var(--brand-black);
  }

  .brand-hero .hero-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    justify-self: stretch;
  }

  .brand-hero .hero-cta {
    padding: 8px;
  }

  .brand-hero .hero-cta:hover {
    transform: none;
  }

  .brand-hero .avatar {
    width: 52px;
    height: 52px;
  }

  .brand-hero .hero-contact-copy {
    min-height: 52px;
    gap: 3px;
    padding: 8px 10px;
  }

  .brand-hero .hero-contact-meta {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .brand-hero .hero-contact-action {
    font-size: 12px;
    line-height: 1.15;
  }

  .brand-hero .hero-contact-action--long {
    font-size: 11px;
  }

  .brand-hero .marquee {
    grid-row: 3;
    grid-column: 1;
    order: 3;
    position: relative;
    z-index: 4;
    margin: 0;
    padding: 6px 0 22px;
    background: var(--brand-black);
  }

  .brand-hero .hero-tech-status {
    order: 2;
  }

  .hero-tech-status {
    grid-template-columns: 1fr 1fr;
  }

  .project-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section:not(.tech-lab):not(.cta)::after {
    top: 20px;
  }

  .process-item::after {
    position: static;
    grid-column: 2 / -1;
    width: max-content;
    margin-top: 8px;
    transform: rotate(-7deg) scale(1.2);
  }

  .process-item.is-inspected::after {
    transform: rotate(-7deg) scale(1);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 36px, var(--max));
  }

  .logo img {
    width: clamp(112px, 29vw, 147px);
  }

  .brand-hero::after {
    right: -20%;
    opacity: 0.28;
  }

  .cover-edit-hint {
    display: none;
  }

  .cover-editor-panel {
    top: 104px;
    padding: 13px 14px;
  }

  .cover-zoom-control {
    grid-template-columns: 1fr 50px;
  }

  .cover-zoom-control > span {
    grid-column: 1 / -1;
  }

  .widget-drag-handle {
    width: 32px;
    height: 32px;
  }

  .brand-hero .hero-inner {
    padding-top: 46px;
  }

  .brand-hero h1 {
    font-size: clamp(56px, 17vw, 88px);
  }

  .avatar {
    width: 68px;
    height: 68px;
  }

  .team-person-label {
    top: 3%;
    right: 2px;
    bottom: auto;
    left: 2px;
    gap: 2px;
    padding: 7px 7px 8px;
  }

  .hero-tech-status {
    margin-top: 8px;
  }

  .hero-tech-status > div,
  .hero-tech-status > button {
    padding: 11px 12px;
  }

  .tech-console {
    display: block;
    min-height: 0;
  }

  .tech-stage-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-right: 0;
  }

  .tech-step {
    min-height: 52px;
    flex: 1 1 auto;
    border-right: 1px solid rgba(255,255,255,.13);
  }

  .build-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .build-stage-video {
    object-fit: cover;
  }

  .build-readout {
    height: auto;
    min-height: 0;
  }

  .cta::after {
    right: -16%;
    opacity: .23;
  }

  .copy-concept-badge {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .brand-hero .marquee-track {
    animation-duration: 96s !important;
    animation-iteration-count: infinite !important;
  }
}


/* v2-prod: хук без зума и без доп. растяжения */
.brand-hero .team-cover .team-portrait-base,
.brand-hero .team-cover .team-portrait-brush {
  width: 100%;
  max-width: 100%;
  height: 100%;
  transform: none;
}
@media (max-width: 720px) {
  .brand-hero .team-cover .team-portrait-base,
  .brand-hero .team-cover .team-portrait-brush {
    transform: none;
  }
}
.team-core-portrait--hero img {
  height: calc(100% + 329px);
  transform: translate3d(94px, -329px, 0) scale(1.14);
  transform-origin: center center;
}
@media (max-width: 720px) {
  .team-core-portrait--hero img {
    transform: translate3d(94px, -329px, 0) scale(1.3);
  }
}
.copy-concept-badge,
.cover-edit-hint,
.cover-editor-panel,
.cover-edit-toggle,
.cover-reset,
.cover-zoom-control,
.team-photo-edit-toggle,
.team-photo-editor,
.gallery-order-controls,
.gallery-order-button,
.gallery-upload-input,
.gallery-order-status {
  display: none !important;
}
