/* Brief stack rhythm v2 — scoped to .kovalchuk-brief-stack only */

.kovalchuk-brief-stack {
  --kbs-bg: #faf9f5;
  --kbs-bg-alt: #ffffff;
  --kbs-ink: #1c1b17;
  --kbs-muted: rgba(28, 27, 23, 0.72);
  --kbs-line: rgba(28, 27, 23, 0.1);
  --kbs-accent: #a89885;
  --kbs-graphite: #2a2824;
  --kbs-header-offset: 96px;
}

.kovalchuk-brief-stack .kbs-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 56px;
  box-sizing: border-box;
}

.kovalchuk-brief-stack .kbs-inner--wide {
  max-width: 1780px;
  padding: 0 48px;
}

.kovalchuk-brief-stack .kbs-label {
  /* Typography delegated to .kovalchuk-section-label */
  display: block;
}

.kovalchuk-brief-stack .kbs-label--light,
.kovalchuk-brief-stack .kbs-label--on-dark {
  /* Color delegated to .kovalchuk-section-label--on-dark */
}

.kovalchuk-brief-stack .kbs-title {
  font-family: "room", sans-serif;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--kbs-ink);
  margin: 0 0 16px;
  max-width: 22em;
  text-wrap: pretty;
}

.kovalchuk-brief-stack .kbs-title--wide {
  max-width: 980px;
}

.kovalchuk-brief-stack .kbs-title--light,
.kovalchuk-brief-stack .kbs-title--on-dark {
  color: #f5f2eb;
}

.kovalchuk-brief-stack .kbs-lead,
.kovalchuk-brief-stack .kbs-text {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--kbs-muted);
  margin: 0 0 16px;
  max-width: 640px;
}

.kovalchuk-brief-stack .kbs-text--light,
.kovalchuk-brief-stack .kbs-text--on-dark {
  color: rgba(255, 255, 255, 0.72);
}

.kovalchuk-brief-stack .kbs-link {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--kbs-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 27, 23, 0.25);
  padding-bottom: 2px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: border-color 220ms ease, gap 220ms ease;
}

.kovalchuk-brief-stack .kbs-link:hover {
  border-bottom-color: rgba(28, 27, 23, 0.55);
  gap: 12px;
}

.kovalchuk-brief-stack .kbs-link--light {
  color: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.kovalchuk-brief-stack .kbs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #faf9f5;
  background: var(--kbs-ink);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* 4 Featured */
.kbs-featured {
  background: var(--kbs-bg-alt);
  padding: 80px 0 72px;
}

.kbs-featured__top {
  display: block;
  margin-bottom: 36px;
  max-width: 40em;
}

.kbs-featured__header .kbs-title {
  margin-bottom: 12px;
}

.kbs-featured__header .kbs-lead {
  margin: 0;
  max-width: 38em;
}

.kbs-featured__list {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.kbs-featured__item--lead .kbs-featured__image {
  display: block;
  overflow: hidden;
}

.kbs-featured__item--lead .kbs-featured__image img {
  width: 100%;
  height: clamp(400px, 46vw, 560px);
  object-fit: cover;
  display: block;
  filter: saturate(0.78) sepia(0.05) contrast(1.02);
  transform: scale(1);
  transition: filter 0.45s ease, transform 0.65s ease;
}

.kbs-featured__item--lead .kbs-featured__image:hover img {
  /* никогда не возвращаем исходную яркость */
  filter: saturate(0.82) sepia(0.04) contrast(1.03);
  transform: scale(1.06);
}

.kbs-featured__item--lead .kbs-featured__body {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  grid-template-areas:
    "name text"
    "meta text"
    ". link";
  column-gap: 36px;
  row-gap: 6px;
  align-items: start;
  margin-top: 16px;
  max-width: 880px;
}

.kbs-featured__item--lead .kbs-featured__name {
  grid-area: name;
  margin: 0;
}

.kbs-featured__item--lead .kbs-featured__meta {
  grid-area: meta;
  margin: 0;
}

.kbs-featured__item--lead .kbs-featured__text {
  grid-area: text;
  margin: 0;
}

.kbs-featured__item--lead .kbs-link {
  grid-area: link;
  margin-top: 8px;
}

.kbs-featured__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.kbs-featured__image {
  display: block;
  overflow: hidden;
}

.kbs-featured__image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  filter: saturate(0.78) sepia(0.05) contrast(1.02);
  transform: scale(1);
  transition: filter 0.45s ease, transform 0.65s ease;
}

.kbs-featured__image:hover img {
  filter: saturate(0.82) sepia(0.04) contrast(1.03);
  transform: scale(1.06);
}

.kbs-featured__name {
  font-family: "room", sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin: 16px 0 6px;
  color: var(--kbs-ink);
}

.kbs-featured__meta {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(28, 27, 23, 0.55);
  margin: 0 0 12px;
}

.kbs-featured__text {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--kbs-muted);
  margin: 0 0 16px;
}

.kbs-featured__footer {
  margin-top: 48px;
}

/* ========== 5 Idea compare ========== */
.kbs-idea {
  background: var(--kbs-graphite);
  padding: 80px 0 96px;
}

.kbs-idea__intro {
  max-width: 920px;
  margin-bottom: 48px;
}

/* Рама принимает пропорцию кадра (--kbs-ratio), освободившуюся ширину
   занимает текстовая колонка — так у снимков любого формата нет чёрных полей */
.kbs-idea__compare {
  display: grid;
  /* Доли колонок фиксированы: при переключении пар рамка и текст сохраняют
     размер и позицию, блок не «плавает» */
  grid-template-columns: minmax(0, 62%) minmax(300px, 1fr);
  gap: 56px;
  align-items: center;
  /* Пропорция постоянной рамки — не зависит от кадра */
  --kbs-frame: 3 / 2;
}

/* Паспарту: габариты одинаковы для всех пар, поля — фон секции,
   поэтому чёрных полос не появляется */
.kbs-idea__frame {
  width: 100%;
  aspect-ratio: var(--kbs-frame);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kbs-idea__stage {
  position: relative;
  aspect-ratio: var(--kbs-ratio, 1.5);
  overflow: hidden;
  background: #1a1815;
  user-select: none;
  touch-action: none;
  cursor: crosshair;
  /* Волосяная линия по краю кадра: поля читаются как паспарту, а не как пустота */
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: 14px;
}

/* Кадр вписан в рамку целиком: упирается либо в ширину, либо в высоту.
   Класс ставит JS, сравнивая пропорцию кадра с пропорцией рамки */
.kbs-idea__stage.is-wide {
  width: 100%;
  height: auto;
}

.kbs-idea__stage.is-tall {
  height: 100%;
  width: auto;
}

.kbs-idea__duo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kbs-idea__layer {
  position: absolute;
  inset: 0;
}

.kbs-idea__layer--real {
  z-index: 1;
}

.kbs-idea__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.kbs-idea__layer--viz {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.kbs-idea__badge {
  position: absolute;
  top: 24px;
  z-index: 1;
  padding: 8px 12px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f7f4ee;
  background: rgba(28, 27, 23, 0.45);
  pointer-events: none;
  opacity: 1;
  transition: opacity 160ms ease;
}

.kbs-idea__badge--viz {
  left: 24px;
}

.kbs-idea__badge--real {
  right: 24px;
}

.kbs-idea__curtain-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.88);
  z-index: 4;
  pointer-events: none;
  transform: translateX(-50%);
}

.kbs-idea__curtain-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.35);
}

.kbs-idea__caption {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 28px;
  max-width: 42ch;
  /* Резерв под три строки: описания разной длины не должны менять
     высоту блока при переключении пар */
  min-height: calc(1.65em * 3);
}

.kbs-idea__meta {
  min-width: 0;
}

.kbs-idea__project {
  font-family: "room", sans-serif;
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #f7f4ee;
  margin: 0 0 10px;
  /* Резерв под две строки названия — см. комментарий к caption */
  min-height: calc(1.18em * 2);
}

.kbs-idea__project-meta {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 22px;
}

.kbs-idea__pager {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.kbs-idea__dot {
  appearance: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: "room", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.kbs-idea__dot:hover {
  color: #f7f4ee;
  border-color: rgba(255, 255, 255, 0.55);
}

.kbs-idea__dot.is-active {
  color: #1a1815;
  background: #f0ebe3;
  border-color: #f0ebe3;
}

.kbs-idea__stage.is-switching .kbs-idea__layer img {
  opacity: 0.35;
  transition: opacity 220ms ease;
}

.kbs-idea__layer img {
  transition: opacity 280ms ease;
}

.kbs-idea__proto {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
  margin: 10px 0 0;
  max-width: 820px;
}

/* ========== 6 Founder ========== */
.kbs-founder {
  background: var(--kbs-bg);
  padding: 80px 0 40px;
}

.kbs-founder .kbs-text:last-of-type {
  margin-bottom: 0;
}

.kbs-founder__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  /* stretch, а не center: верх портрета садится на верх текстовой колонки без магических отступов */
  align-items: stretch;
}

.kbs-founder__media {
  overflow: hidden;
  background: #eceae4;
  height: 100%;
}

.kbs-founder__media img {
  width: 100%;
  height: 100%;
  min-height: clamp(480px, 56vh, 640px);
  object-fit: cover;
  /* Интерьерный кадр: фигура слева, картина справа — лицо остаётся в кадре */
  object-position: 34% 12%;
  display: block;
  transform: scale(1);
  transition: transform 0.65s ease;
  cursor: zoom-in;
}

.kbs-founder__media:hover img {
  transform: scale(1.04);
}

.kbs-founder__quote {
  font-family: "room", sans-serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 300;
  /* Явный сброс: тема курсивит blockquote, а у «room» нет своего курсива — браузер рисовал faux oblique */
  font-style: normal;
  line-height: 1.35;
  color: var(--kbs-ink);
  margin: 0 0 28px;
  max-width: 640px;
  padding-left: 32px;
  border-left: 1px solid rgba(28, 27, 23, 0.15);
}

.kbs-founder__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
  padding-left: 32px;
}

.kbs-founder__name {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--kbs-ink);
}

.kbs-founder__role {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(28, 27, 23, 0.55);
}

.kbs-founder__actions {
  margin-top: 28px;
}

/* .kbs-founder__facts removed from homepage — metrics live only in Trust Bar */

/* ========== 7 Anatomy dossier ========== */
.kbs-anatomy {
  background: var(--kbs-bg);
  padding: 48px 0 80px;
}

.kbs-anatomy__intro {
  max-width: 820px;
  margin-bottom: 48px;
}

.kbs-anatomy__lead {
  max-width: 680px;
  margin: 0;
}

.kbs-anatomy__stage {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kbs-anatomy__frames {
  position: relative;
  width: 100%;
  height: clamp(420px, 58vh, 720px);
  overflow: hidden;
  background: #eceae4;
}

.kbs-anatomy__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 450ms ease;
}

.kbs-anatomy__frame.is-active {
  opacity: 1;
}

.kbs-anatomy__counter {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: "room", sans-serif;
  font-size: 42px;
  font-weight: 300;
  color: #f7f4ee;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.kbs-anatomy__counter span:last-child {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-left: 4px;
}

.kbs-anatomy__nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--kbs-line);
  margin-top: 8px;
}

.kbs-anatomy__tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 22px 12px 20px;
  text-align: left;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(28, 27, 23, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: color 220ms ease, border-color 220ms ease;
}

.kbs-anatomy__tab span {
  font-family: "room", sans-serif;
  font-size: 22px;
  letter-spacing: 0;
  color: inherit;
}

.kbs-anatomy__tab.is-active {
  color: var(--kbs-ink);
  border-bottom-color: var(--kbs-ink);
}

.kbs-anatomy__tab:hover {
  color: var(--kbs-ink);
}

.kbs-anatomy__panels {
  position: relative;
  min-height: 160px;
  margin-top: 36px;
  max-width: 720px;
}

.kbs-anatomy__panel {
  display: none;
}

.kbs-anatomy__panel.is-active {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 28px;
  row-gap: 8px;
  align-items: start;
  animation: none;
}

@media (prefers-reduced-motion: no-preference) {
  .kbs-anatomy__panel.is-active {
    animation: kbs-anatomy-fade 380ms ease;
  }
}

@keyframes kbs-anatomy-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.kbs-anatomy__panel[hidden] {
  display: none !important;
}

.kbs-anatomy__panel-num {
  grid-row: 1 / span 2;
  font-family: "room", sans-serif;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: var(--kbs-accent);
  margin: 0;
}

.kbs-anatomy__panel-title {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0 0;
  color: var(--kbs-ink);
}

.kbs-anatomy__panel-text {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--kbs-muted);
  margin: 0;
  max-width: 560px;
}

.kbs-anatomy__link {
  margin-top: 32px;
  align-self: flex-start;
}

/* ========== 8 Process sequence ========== */
.kbs-process {
  background: #1a1815;
  padding: 130px 0 120px;
}

.kbs-process__intro {
  margin-bottom: 48px;
}

.kbs-process__intro-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 42em;
  align-items: flex-start;
}

.kbs-process__intro-grid .kbs-title {
  margin-bottom: 0;
}

.kbs-process__intro-grid .kbs-text {
  margin: 0;
  max-width: 38em;
}

.kbs-process__visual {
  width: 100%;
  margin-bottom: 64px;
  overflow: hidden;
  background: #11100e;
}

.kbs-process__visual img {
  width: 100%;
  height: clamp(360px, 42vw, 560px);
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}

.kbs-process__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.kbs-process__item {
  padding: 36px 28px 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 240ms ease, opacity 240ms ease;
}

.kbs-process__item:nth-child(3n) {
  border-right: 0;
  padding-right: 0;
}

.kbs-process__item:nth-child(3n + 1) {
  padding-left: 0;
}

.kbs-process__item:nth-child(3n + 2) {
  padding-left: 28px;
  padding-right: 28px;
}

.kbs-process__item:nth-child(3n + 3) {
  padding-left: 28px;
}

.kbs-process__item.is-active,
.kbs-process__item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.kbs-process__rail:hover .kbs-process__item:not(:hover):not(.is-active) {
  opacity: 0.55;
}

.kbs-process__num {
  display: block;
  font-family: "room", sans-serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: #d4c4a8;
  margin-bottom: 20px;
}

.kbs-process__name {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 14px;
  max-width: 240px;
}

.kbs-process__desc {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
  max-width: 320px;
}

.kbs-process__footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.kbs-process__footer p {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 640px;
}

/* ========== 9 Materials ========== */
.kbs-materials {
  background: var(--kbs-bg);
  padding: 72px 0 80px;
}

.kbs-materials__header {
  margin-bottom: 32px;
}

.kbs-materials__lead {
  max-width: 760px;
}

.kbs-materials__layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 56px;
  align-items: start;
}

.kbs-materials__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: var(--kbs-header-offset);
}

.kbs-materials__cat {
  appearance: none;
  background: none;
  border: 0;
  border-left: 1px solid transparent;
  text-align: left;
  padding: 14px 0 14px 18px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 27, 23, 0.42);
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease;
}

.kbs-materials__cat.is-active {
  color: var(--kbs-ink);
  border-left-color: var(--kbs-ink);
}

.kbs-materials__visual {
  position: relative;
  width: 100%;
  height: clamp(380px, 48vh, 560px);
  overflow: hidden;
  background: #eceae4;
}

.kbs-materials__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 380ms ease;
  filter: saturate(0.78) sepia(0.05) contrast(1.02);
}

.kbs-materials__img.is-active {
  opacity: 1;
}

.kbs-materials__img[src$=".svg"] {
  object-fit: contain;
  background: #f4f1ea;
  padding: 28px;
  box-sizing: border-box;
  filter: none;
}

.kbs-materials__hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.kbs-materials__dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #141414;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.kbs-materials__desc {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--kbs-muted);
  margin: 22px 0 0;
  max-width: 720px;
}

.kbs-materials__desc[hidden] {
  display: none;
}

/* ========== 10 Art (disabled) ========== */
.kbs-art[data-enabled="false"],
.kbs-art[hidden] {
  display: none !important;
}

.kbs-art {
  background: var(--kbs-bg);
  padding: 120px 0;
}

.kbs-art__intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.kbs-art__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 32px;
}

.kbs-art__card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--kbs-line);
  min-height: 180px;
}

.kbs-art__card h3 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--kbs-ink);
}

.kbs-art__card p {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--kbs-muted);
  margin: 0;
}

/* ========== 11 Publications ========== */
.kbs-pubs {
  background: var(--kbs-bg-alt);
  padding: 80px 0 80px;
}

.kbs-pubs__press {
  font-family: "room", sans-serif;
  font-size: 24px;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(28, 27, 23, 0.62);
  margin: 0 0 32px;
}

.kbs-pubs__rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--kbs-line);
}

.kbs-pubs__row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--kbs-line);
  text-decoration: none;
  color: inherit;
  transition: background 220ms ease;
}

.kbs-pubs__cat {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 27, 23, 0.5);
}

.kbs-pubs__name {
  font-family: "room", sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  color: var(--kbs-ink);
  line-height: 1.18;
  transition: transform 240ms ease;
}

.kbs-pubs__arrow {
  font-size: 28px;
  color: var(--kbs-ink);
  transition: transform 240ms ease;
  opacity: 0.85;
}

.kbs-pubs__row:hover .kbs-pubs__name,
.kbs-pubs__row:focus-visible .kbs-pubs__name {
  transform: translateX(6px);
}

.kbs-pubs__row:hover .kbs-pubs__arrow,
.kbs-pubs__row:focus-visible .kbs-pubs__arrow {
  transform: translateX(10px);
  opacity: 1;
}

/* ========== 12 CTA ========== */
.kbs-cta {
  background: var(--kbs-bg);
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  padding: 140px 0;
  position: relative;
}

.kbs-cta__wrap {
  max-width: 980px;
}

.kbs-cta__title {
  font-size: clamp(48px, 6vw, 84px);
  max-width: 920px;
  margin-bottom: 28px;
}

.kbs-cta__lead {
  max-width: 640px;
  margin-bottom: 36px;
}

.kbs-cta__action {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(28, 27, 23, 0.35);
  padding: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--kbs-ink);
  cursor: pointer;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  transition: gap 240ms ease, border-color 240ms ease;
}

.kbs-cta__action:hover {
  gap: 18px;
  border-bottom-color: rgba(28, 27, 23, 0.7);
}

.kbs-cta__extra {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(28, 27, 23, 0.5);
  margin: 36px 0 0;
}

.kbs-cta-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(28, 27, 23, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.kbs-cta-overlay[hidden] {
  display: none;
}

.kbs-cta-overlay__panel {
  width: min(560px, 100%);
  background: #faf9f5;
  padding: 40px 36px 36px;
  position: relative;
  max-height: min(90vh, 760px);
  overflow: auto;
}

.kbs-cta-overlay__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--kbs-ink);
  cursor: pointer;
}

.kbs-cta-overlay__title {
  font-family: "room", sans-serif;
  font-size: 36px;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--kbs-ink);
}

.kbs-cta-overlay__text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--kbs-muted);
  margin: 0 0 28px;
}

.kbs-cta-overlay__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.kbs-cta-overlay__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28, 27, 23, 0.55);
}

.kbs-cta-overlay__field--full {
  grid-column: 1 / -1;
}

.kbs-cta-overlay__field input,
.kbs-cta-overlay__field textarea {
  border: 0;
  border-bottom: 1px solid rgba(28, 27, 23, 0.25);
  background: transparent;
  padding: 10px 0;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--kbs-ink);
  outline: none;
}

.kbs-cta-overlay__submit {
  grid-column: 1 / -1;
  margin-top: 8px;
  min-height: 48px;
  border: 0;
  background: var(--kbs-ink);
  color: #faf9f5;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* ========== Motion reduce ========== */
@media (prefers-reduced-motion: reduce) {
  .kbs-anatomy__frame,
  .kbs-materials__img,
  .kbs-founder__media img,
  .kbs-featured__image img,
  .kbs-pubs__arrow,
  .kbs-cta__action,
  .kbs-link {
    transition: none !important;
    transform: none !important;
  }
}

/* ========== Tablet ========== */
@media (max-width: 1100px) {
  .kovalchuk-brief-stack .kbs-inner,
  .kovalchuk-brief-stack .kbs-inner--wide {
    padding: 0 36px;
  }

  .kbs-featured__top,
  .kbs-featured__item--lead .kbs-featured__body,
  .kbs-featured__row,
  .kbs-founder__grid,
  .kbs-process__intro-grid,
  .kbs-process__footer,
  .kbs-materials__layout,
  .kbs-pubs__row,
  .kbs-idea__compare {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kbs-idea__compare {
    --kbs-frame: 4 / 3;
  }

  /* grid-template-areas продолжал задавать две колонки и перебивал grid-template-columns: 1fr */
  .kbs-featured__item--lead .kbs-featured__body {
    grid-template-areas: none;
    row-gap: 10px;
  }

  .kbs-featured__item--lead .kbs-featured__name,
  .kbs-featured__item--lead .kbs-featured__meta,
  .kbs-featured__item--lead .kbs-featured__text,
  .kbs-featured__item--lead .kbs-link {
    grid-area: auto;
  }

  .kbs-process__rail {
    grid-template-columns: 1fr 1fr;
  }

  .kbs-process__item,
  .kbs-process__item:nth-child(3n),
  .kbs-process__item:nth-child(3n + 1),
  .kbs-process__item:nth-child(3n + 2),
  .kbs-process__item:nth-child(3n + 3) {
    padding: 28px 20px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .kbs-process__item:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .kbs-process__item:nth-child(2n + 1) {
    padding-left: 0;
  }

  .kbs-anatomy__nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .kbs-anatomy__tab {
    flex: 0 0 auto;
    min-width: 140px;
    scroll-snap-align: start;
  }

  .kbs-materials__nav {
    position: static;
  }

  .kbs-anatomy__frames,
  .kbs-materials__visual {
    height: clamp(300px, 52vw, 480px);
  }

  .kbs-idea__compare {
    gap: 26px;
  }

  .kbs-idea__caption {
    margin-bottom: 20px;
    /* Узкая колонка — тот же текст занимает на строку больше */
    min-height: calc(1.65em * 4);
  }

  .kbs-founder__media img {
    height: clamp(420px, 70vw, 620px);
  }

  .kbs-materials__nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--kbs-line);
    padding-bottom: 0;
  }

  .kbs-materials__cat {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 14px 16px;
    scroll-snap-align: start;
  }

  .kbs-materials__cat.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--kbs-ink);
  }
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
  .kbs-featured,
  .kbs-idea,
  .kbs-anatomy,
  .kbs-process,
  .kbs-materials,
  .kbs-pubs,
  .kbs-cta {
    padding: 56px 0;
  }

  .kbs-founder {
    padding: 56px 0 48px;
  }

  /* Квадратная рамка — компромисс, при котором и портретный, и горизонтальный
     кадр получают сопоставимый размер на узком экране */
  .kbs-idea__compare {
    --kbs-frame: 1 / 1;
  }

  .kbs-idea__stage {
    outline-offset: 8px;
  }

  /* Портретный кадр на мобильном узкий — крупные бейджи в нём смыкаются */
  .kbs-idea__badge {
    top: 12px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .kbs-idea__badge--viz {
    left: 12px;
  }

  .kbs-idea__badge--real {
    right: 12px;
  }

  /* Шесть кружков остаются в одну строку */
  .kbs-idea__pager {
    gap: 6px;
  }

  .kbs-idea__dot {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .kbs-founder__quote,
  .kbs-founder__author {
    padding-left: 20px;
  }

  /* Тап-зона до 44px без изменения вида: подчёркивание остаётся у текста */
  .kbs-link {
    position: relative;
  }

  .kbs-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
  }

  .kovalchuk-brief-stack .kbs-inner,
  .kovalchuk-brief-stack .kbs-inner--wide {
    padding: 0 22px;
  }

  .kovalchuk-brief-stack .kbs-title {
    font-size: clamp(34px, 9vw, 42px);
  }

  .kbs-cta {
    min-height: auto;
  }

  .kbs-cta__title {
    font-size: clamp(40px, 11vw, 52px);
  }

  .kbs-featured__image img,
  .kbs-featured__item--lead .kbs-featured__image img {
    height: 260px;
  }

  .kbs-process__rail {
    grid-template-columns: 1fr;
  }

  .kbs-process__item,
  .kbs-process__item:nth-child(2n),
  .kbs-process__item:nth-child(2n + 1),
  .kbs-process__item:nth-child(3n),
  .kbs-process__item:nth-child(3n + 1),
  .kbs-process__item:nth-child(3n + 2),
  .kbs-process__item:nth-child(3n + 3) {
    border-right: 0;
    padding: 28px 0;
  }

  .kbs-process__visual img {
    height: 240px;
  }

  .kbs-materials__hotspots {
    display: none;
  }

  .kbs-cta-overlay__form {
    grid-template-columns: 1fr;
  }

  .kbs-pubs__row {
    grid-template-columns: 1fr auto;
  }

  .kbs-pubs__cat {
    grid-column: 1 / -1;
  }
}

/* Лайтбокс фото на главной — тёмный оверлей, без обводок */
.ki-home-lb {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.ki-home-lb.is-open {
  display: flex;
}

.ki-home-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, 0.82);
  cursor: pointer;
}

.ki-home-lb__img {
  position: relative;
  z-index: 1;
  max-width: min(1280px, 94vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ki-home-lb__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #f4f1ea;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.kovalchuk-brief-stack .kbs-faq {
  padding: 88px 0 24px;
  background: var(--kbs-bg);
}

.kovalchuk-brief-stack .kbs-faq__list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-top: 28px;
}

.kovalchuk-brief-stack .kbs-faq__item {
  border-top: 1px solid var(--kbs-line);
  padding: 4px 0 12px;
}

.kovalchuk-brief-stack .kbs-faq__item summary {
  font-family: "room", sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--kbs-ink);
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
}

.kovalchuk-brief-stack .kbs-faq__item summary::-webkit-details-marker {
  display: none;
}

.kovalchuk-brief-stack .kbs-faq__item p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--kbs-muted);
  margin: 0 0 12px;
  max-width: 640px;
}
