/* ============================================================
 *  Стиль: Тёплый редакционный минимализм
 * ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

/* ── CSS-переменные ──────────────────────────────────────── */
:root {
  --mc-bg: #F3F0E9;
  --mc-bg-light: #FAF9F6;
  --mc-surface: #FFFFFF;

  --mc-text: #191918;
  --mc-text-secondary: #6F6B64;
  --mc-border: #DDD8CE;

  --mc-dark: #20211F;
  --mc-dark-soft: #292B28;

  --mc-accent: #405448;
  --mc-accent-hover: #314238;
  --mc-accent-soft: #E3E8E2;

  --mc-sand: #D7C8AF;
  --mc-white: #FFFFFF;

  --mc-line-light: rgba(25, 25, 24, 0.10);
  --mc-line-dark: rgba(255, 255, 255, 0.10);
  --mc-shadow: 0 20px 44px -24px rgba(35, 38, 34, 0.20);

  /* Типографика */
  --mc-font-heading: 'Manrope', sans-serif;
  --mc-font-body: 'Inter', sans-serif;
  --mc-font-mono: 'IBM Plex Mono', monospace;

  /* Размеры и отступы */
  --mc-container: 1200px;
  --mc-header-h: 76px;

  /* Переходы и тени */
  --mc-transition: 0.3s ease;
  --mc-shadow-soft: 0 8px 24px -8px rgba(25, 25, 24, 0.08);
}

/* ── Сброс и базовые стили ───────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--mc-font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--mc-text);
  background-color: var(--mc-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.mc-loader-active {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--mc-transition), opacity var(--mc-transition);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mc-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mc-font-heading);
  font-weight: 700;
}


/* ============================================================
 *  ЗАГРУЗОЧНЫЙ ЭКРАН
 * ============================================================ */
.mc-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--mc-dark);
  background-image: radial-gradient(circle at 85% 15%, rgba(64, 84, 72, 0.25) 0%, transparent 45%),
                    radial-gradient(circle at 15% 85%, rgba(215, 200, 175, 0.12) 0%, transparent 45%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 450ms ease;
}

.mc-loader.mc-loader--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Пиксельные декорации в углах загрузчика */
.mc-loader::before,
.mc-loader::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.mc-loader::before {
  top: 32px;
  left: 32px;
  box-shadow: 12px 0 0 rgba(255,255,255,0.04), 0 12px 0 rgba(255,255,255,0.03);
}

.mc-loader::after {
  bottom: 32px;
  right: 32px;
  box-shadow: -12px 0 0 rgba(255,255,255,0.04), 0 -12px 0 rgba(255,255,255,0.03);
}

.mc-loader__name {
  font-family: var(--mc-font-heading);
  font-size: 52px;
  font-weight: 700;
  color: var(--mc-white);
  letter-spacing: -0.02em;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  filter: blur(8px);
  text-shadow: 0 0 24px rgba(215, 200, 175, 0.25);
  transform: translateY(8px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 650ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mc-loader__name--visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Пиксельный курсор рядом с именем */
.mc-loader__cursor {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--mc-sand);
  border-radius: 0;
  flex-shrink: 0;
  opacity: 1;
  animation: mc-cursor-blink 800ms ease-in-out 3;
  animation-delay: 300ms;
}

.mc-loader__cursor--hidden {
  opacity: 0;
  transition: opacity 300ms ease;
}

@keyframes mc-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

@media (max-width: 768px) {
  .mc-loader__name { font-size: 36px; min-height: 48px; }
}

.mc-loader__subtitle {
  font-family: var(--mc-font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 10px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .mc-loader__subtitle { font-size: 11px; margin-bottom: 32px; }
}

.mc-loader__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 360px;
  max-width: calc(100vw - 48px);
}

.mc-loader__track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.10);
  position: relative;
  border-radius: 0;
}

.mc-loader__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(64, 84, 72, 0.3), var(--mc-sand));
  box-shadow: 0 0 12px rgba(215, 200, 175, 0.4);
  transition: width 80ms linear;
}

.mc-loader__fill::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -2px;
  width: 6px;
  height: 6px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 0 12px 3px rgba(215, 200, 175, 0.6), 0 0 20px rgba(255, 255, 255, 0.8);
}

.mc-loader__percent {
  font-family: var(--mc-font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  min-width: 36px;
  text-align: right;
}

.mc-loader__message {
  margin-top: 20px;
  font-family: var(--mc-font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.36);
  min-height: 22px;
  transition: opacity 200ms ease;
}

@media (max-width: 768px) {
  .mc-loader__message { font-size: 13px; }
}

/* ── Контейнер ───────────────────────────────────────────── */
.mc-container {
  max-width: var(--mc-container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 1024px) {
  .mc-container { padding: 0 24px; }
}

@media (max-width: 768px) {
  .mc-container { padding: 0 18px; }
}


/* ============================================================
 *  ШАПКА
 * ============================================================ */
.mc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--mc-header-h);
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(25, 25, 24, 0.08);
  transition: transform 0.4s ease;
}

.mc-header.mc-hidden {
  transform: translateY(-100%);
}

.mc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.mc-header__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}

.mc-header__brand-dot {
  display: none;
}

.mc-header__name {
  font-family: var(--mc-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--mc-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mc-header__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--mc-accent);
  white-space: nowrap;
}

.mc-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width: 900px) {
  .mc-header__nav { display: none; }
}

.mc-header__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--mc-text-secondary);
  transition: color var(--mc-transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-header__link:hover {
  color: var(--mc-text);
}

.mc-header__link.mc-active {
  color: var(--mc-accent);
}

.mc-header__link.mc-active::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--mc-accent);
  border-radius: 0;
  flex-shrink: 0;
}

.mc-header__actions {
  display: flex;
  align-items: center;
}

/* Гамбургер */
.mc-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .mc-burger { display: inline-flex; }
  .mc-header__btn { display: none; }
}

.mc-burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--mc-text);
  border-radius: 0;
  transition: transform var(--mc-transition), opacity var(--mc-transition);
}

.mc-burger.mc-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mc-burger.mc-open span:nth-child(2) {
  opacity: 0;
}

.mc-burger.mc-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
 *  МОБИЛЬНОЕ МЕНЮ (выпадающее)
 * ============================================================ */
.mc-mobile-nav {
  display: none;
  position: fixed;
  top: var(--mc-header-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--mc-bg-light);
  border-top: 1px solid var(--mc-border);
  border-bottom: 1px solid var(--mc-border);
  box-shadow: 0 18px 32px -24px rgba(25, 25, 24, 0.35);
  padding: 24px 20px 28px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--mc-transition), transform var(--mc-transition);
}

.mc-mobile-nav.mc-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mc-mobile-nav__inner {
  display: flex;
  flex-direction: column;
}

.mc-mobile-nav__role {
  font-family: var(--mc-font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mc-accent);
  margin-bottom: 12px;
}

.mc-mobile-nav__link {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--mc-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--mc-line-light);
  text-decoration: none;
  transition: color var(--mc-transition);
}

.mc-mobile-nav__link:last-of-type {
  border-bottom: none;
}

.mc-mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  background: var(--mc-accent);
  color: var(--mc-white);
  border-radius: 11px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--mc-transition);
}

.mc-mobile-nav__cta:hover {
  background: var(--mc-accent-hover);
}

/* Scroll lock when mobile menu is open */
body.mc-menu-open {
  overflow: hidden;
}


/* ── Мобильная шапка (≤767px) ──────────────────────────── */
@media (max-width: 767px) {
  .mc-header {
    height: 68px;
    min-height: 68px;
  }

  .mc-header__inner {
    padding-left: 24px !important;
    padding-right: 24px !important;
    gap: 16px;
  }

  .mc-header__brand {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
  }

  .mc-header__name {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .mc-header__brand-dot {
    display: none;
  }

  .mc-header__title {
    display: block;
    font-size: 13px;
    color: var(--mc-accent);
    font-weight: 600;
    line-height: 1.1;
  }

  .mc-header__btn {
    display: none !important;
  }

  .mc-burger {
    display: inline-flex;
  }

  /* Мобильное меню — позиция под 68px шапкой */
  .mc-mobile-nav {
    top: 68px;
  }
}

/* ── Первый экран: отступ под мобильную шапку ────────────── */
@media (max-width: 767px) {
  .mc-hero {
    padding-top: calc(68px + 64px);
  }

  .mc-section {
    scroll-margin-top: 88px;
  }
}


/* ============================================================
 *  КНОПКИ
 * ============================================================ */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 11px;
  transition: all var(--mc-transition);
  white-space: nowrap;
  min-height: 54px;
  text-decoration: none;
}

.mc-header__btn {
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
}

.mc-btn--primary {
  background: var(--mc-accent);
  color: var(--mc-white);
  border: none;
}

.mc-btn--primary:hover {
  background: var(--mc-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(64, 84, 72, 0.35);
}

.mc-btn--outline {
  background: transparent;
  color: var(--mc-text);
  border: 1px solid rgba(25, 25, 24, 0.60);
}

.mc-btn--outline:hover {
  background: rgba(25, 25, 24, 0.04);
}

.mc-btn--outline-light {
  background: transparent;
  color: var(--mc-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.mc-btn--outline-light:hover {
  border-color: var(--mc-white);
  background: rgba(255, 255, 255, 0.1);
}

.mc-btn--light {
  background: var(--mc-surface);
  color: var(--mc-text);
}

.mc-btn--light:hover {
  background: #F3F0E9;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .mc-btn { width: 100%; min-height: 50px; }
}


/* ============================================================
 *  СЕКЦИИ (общие)
 * ============================================================ */
.mc-section {
  padding-top: 120px;
  padding-bottom: 120px;
  scroll-margin-top: 100px;
}

@media (max-width: 1024px) {
  .mc-section { padding-top: 88px; padding-bottom: 88px; }
}

@media (max-width: 768px) {
  .mc-section { padding-top: 64px; padding-bottom: 64px; }
}

.mc-section--dark {
  background-color: var(--mc-dark);
  color: var(--mc-white);
}

.mc-section-title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .mc-section-title { font-size: 40px; }
}

@media (max-width: 768px) {
  .mc-section-title { font-size: 32px; }
}

/* ── Метка секции ──────────────────────────────────────── */
.mc-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mc-font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.mc-section-label--light {
  color: var(--mc-text-secondary);
}

.mc-section-label--dark {
  color: var(--mc-sand);
}

.mc-section-label__dot {
  width: 6px;
  height: 6px;
  background: var(--mc-sand);
  border-radius: 0;
  flex-shrink: 0;
}

/* ── Ссылка перехода между секциями ────────────────────── */
.mc-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  transition: color var(--mc-transition);
}

.mc-section-link--light {
  color: var(--mc-text);
}

.mc-section-link--light:hover {
  color: var(--mc-accent);
}

.mc-section-link--dark {
  color: rgba(255, 255, 255, 0.70);
}

.mc-section-link--dark:hover {
  color: var(--mc-sand);
}


/* ============================================================
 *  ПИКСЕЛЬНЫЕ ДЕТАЛИ
 * ============================================================ */

/* Деталь №1 — матрица 3×3 на первом экране */
.mc-pixel-grid {
  position: absolute;
  top: 40px;
  right: 0;
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 7px;
  pointer-events: none;
}

.mc-pixel-grid span {
  width: 6px;
  height: 6px;
  border-radius: 0;
}

.mc-pixel-grid span:nth-child(1) { background: var(--mc-accent); opacity: 0.18; }
.mc-pixel-grid span:nth-child(2) { background: var(--mc-sand); opacity: 0.15; }
.mc-pixel-grid span:nth-child(3) { background: transparent; }
.mc-pixel-grid span:nth-child(4) { background: transparent; }
.mc-pixel-grid span:nth-child(5) { background: var(--mc-accent); opacity: 0.14; }
.mc-pixel-grid span:nth-child(6) { background: var(--mc-sand); opacity: 0.18; }
.mc-pixel-grid span:nth-child(7) { background: var(--mc-sand); opacity: 0.12; }
.mc-pixel-grid span:nth-child(8) { background: transparent; }
.mc-pixel-grid span:nth-child(9) { background: var(--mc-accent); opacity: 0.16; }

@media (max-width: 1024px) {
  .mc-pixel-grid { display: none; }
}

/* Деталь №3 — ступенчатая линия */
.mc-stair-line {
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
}

.mc-stair-line span {
  height: 1px;
  width: 22px;
}

.mc-stair-line span:nth-child(1) { margin-left: 0; }
.mc-stair-line span:nth-child(2) { margin-left: 22px; margin-top: 6px; }
.mc-stair-line span:nth-child(3) { margin-left: 44px; margin-top: 6px; }

.mc-stair-line--light span { background: var(--mc-accent); opacity: 0.28; }
.mc-stair-line--dark span { background: rgba(215, 200, 175, 0.28); }

/* Деталь №4 — декоративный угол карточки */
.mc-corner-decor {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.mc-corner-decor::before,
.mc-corner-decor::after {
  content: "";
  position: absolute;
  background: rgba(64, 84, 72, 0.32);
}

.mc-corner-decor::before {
  top: 0;
  right: 0;
  width: 14px;
  height: 1px;
}

.mc-corner-decor::after {
  top: 0;
  right: 0;
  width: 1px;
  height: 14px;
}


/* ============================================================
 *  ПЕРВЫЙ ЭКРАН (Hero)
 * ============================================================ */
.mc-hero {
  background-color: var(--mc-bg);
  padding-top: calc(var(--mc-header-h) + 64px);
  padding-bottom: 80px;
  position: relative;
}

.mc-hero__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
  max-width: 100%;
  position: relative;
}

.mc-hero__content {
  flex: 0 0 56%;
  max-width: 56%;
}

.mc-hero__visual {
  flex: 0 0 44%;
  max-width: 44%;
  position: relative;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .mc-hero__grid {
    flex-direction: column;
    gap: 48px;
  }
  .mc-hero__content, .mc-hero__visual {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.mc-hero__badge {
  display: inline-block;
  font-family: var(--mc-font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--mc-accent);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.mc-hero__title {
  font-size: 66px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--mc-text);
  margin-bottom: 24px;
}

.mc-hero__title-accent {
  color: var(--mc-accent);
  text-decoration: underline;
  text-decoration-color: var(--mc-sand);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (max-width: 1440px) {
  .mc-hero__title { font-size: 56px; }
}

@media (max-width: 1024px) {
  .mc-hero__title { font-size: 46px; }
}

@media (max-width: 768px) {
  .mc-hero__title { font-size: 36px; }
}

.mc-hero__subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--mc-text-secondary);
  margin-bottom: 40px;
  max-width: 620px;
}

@media (max-width: 768px) {
  .mc-hero__subtitle { font-size: 16px; margin-bottom: 32px; }
}

.mc-hero__buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .mc-hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

.mc-hero__note {
  font-size: 14px;
  color: var(--mc-text-secondary);
  max-width: 440px;
  margin-bottom: 44px;
  line-height: 1.5;
}

/* Квадратные разделители фактов */
.mc-hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--mc-text);
}

.mc-hero__facts-sep {
  width: 4px;
  height: 4px;
  background: var(--mc-sand);
  border-radius: 0;
  flex-shrink: 0;
}

/* Фото в Hero */
.mc-hero__visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(215, 200, 175, 0.28), transparent 68%);
  z-index: 0;
  pointer-events: none;
}

.mc-hero__photo-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.mc-hero__photo-bg {
  position: absolute;
  top: 16px;
  right: -16px;
  bottom: -16px;
  left: 16px;
  background: var(--mc-sand);
  border-radius: 24px;
  z-index: 1;
}

.mc-hero__photo {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  overflow: hidden;
  height: 570px;
  background: #EAE6DF;
}

.mc-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 768px) {
  .mc-hero__photo { height: 460px; }
}

@media (max-width: 430px) {
  .mc-hero__photo { height: 420px; }
}

.mc-hero__photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mc-text);
  border: 1px solid rgba(25, 25, 24, 0.05);
  box-shadow: var(--mc-shadow-soft);
}


/* Desktop Hero Compact Layout */
@media (min-width: 1100px) {
  .mc-hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--mc-header-h) + 4vh);
    padding-bottom: 4vh;
  }
  .mc-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.75fr);
    display: grid;
    gap: clamp(48px, 6vw, 92px);
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
  }
  .mc-hero__content,
  .mc-hero__visual {
    max-width: 100%;
    flex: none;
  }
  .mc-hero__facts {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .mc-hero__badge {
    margin-bottom: 20px;
  }
  .mc-hero__title {
    font-size: clamp(46px, 4vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
  }
  .mc-hero__subtitle {
    max-width: 660px;
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 28px;
  }
  .mc-hero__buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 18px;
  }
  .mc-hero__buttons .mc-btn {
    min-height: 52px;
    padding-inline: 26px;
  }
  .mc-hero__note {
    margin-bottom: 28px;
  }
  .mc-hero__facts {
    font-size: 14px;
  }
  .mc-hero__photo-wrapper {
    width: min(100%, 410px);
  }
  .mc-hero__photo {
    height: clamp(480px, 62vh, 590px);
    max-height: calc(100svh - 150px);
  }
}

/* ============================================================
 *  БЛОК «ОБО МНЕ»
 * ============================================================ */
.mc-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

@media (max-width: 1024px) {
  .mc-about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.mc-about__left {
  max-width: 500px;
}

.mc-about__quote {
  font-size: 22px;
  font-style: italic;
  color: var(--mc-white);
  padding-left: 28px;
  border-left: 3px solid var(--mc-accent);
  margin-top: 40px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .mc-about__quote { font-size: 18px; padding-left: 20px; }
}

.mc-about__right p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.65;
}

.mc-about__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px 0;
}

.mc-about__fact-item {
  font-size: 15px;
  line-height: 1.4;
  color: var(--mc-white);
  font-weight: 500;
  padding: 24px 0;
  border-top: 1px solid var(--mc-line-dark);
  border-bottom: 1px solid var(--mc-line-dark);
}

.mc-about__fact-item:not(:last-child) {
  border-right: 1px solid var(--mc-line-dark);
  padding-right: 20px;
}

.mc-about__fact-item:not(:first-child) {
  padding-left: 20px;
}

@media (max-width: 600px) {
  .mc-about__facts { grid-template-columns: 1fr; }
  .mc-about__fact-item:not(:last-child) { border-right: none; }
  .mc-about__fact-item:not(:first-child) { padding-left: 0; }
  .mc-about__fact-item:not(:last-child) { border-bottom: none; }
}

.mc-about__link {
  margin-top: 8px;
}


/* ============================================================
 *  БЛОК «КАК ПРОХОДИТ РАБОТА» (видео)
 * ============================================================ */
.mc-video__inner {
  max-width: 1020px;
  margin: 0 auto;
}

.mc-video__header {
  margin-bottom: 48px;
  position: relative;
}

.mc-video__header p {
  color: var(--mc-text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.mc-video__stair {
  position: absolute;
  top: 8px;
  right: 0;
}

@media (max-width: 768px) {
  .mc-video__stair { display: none; }
}

.mc-video__player {
  aspect-ratio: 16/9;
  background: var(--mc-dark-soft);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(25, 25, 24, 0.05);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.mc-video__player-icon {
  font-size: 48px;
  opacity: 0.25;
  margin-bottom: 12px;
  line-height: 1;
}

.mc-video__player-text {
  font-size: 15px;
  font-weight: 500;
}

/* Пиксельные квадраты на видео-заглушке */
.mc-video__player::before,
.mc-video__player::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
}

.mc-video__player::before { top: 24px; right: 24px; }
.mc-video__player::after { bottom: 24px; left: 24px; }

.mc-video__player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-video__link-wrap {
  text-align: left;
}


/* ============================================================
 *  КЕЙСЫ
 * ============================================================ */
#process {
  padding-bottom: 0;
}

#cases {
  padding-top: 88px;
  padding-bottom: 96px;
}

@media (max-width: 1024px) {
  #cases { 
    padding-top: 60px;
    padding-bottom: 68px;
  }
}

@media (max-width: 768px) {
  #cases { 
    padding-top: 48px;
    padding-bottom: 52px;
  }
}

.mc-cases__header {
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .mc-cases__header { margin-bottom: 32px; }
}

.mc-cases__header p {
  color: var(--mc-text-secondary);
  max-width: 540px;
  margin-top: 12px;
}

.mc-cases__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1099px) {
  .mc-cases__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .mc-cases__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.mc-case {
  background: linear-gradient(145deg, var(--mc-surface) 0%, rgba(215, 200, 175, 0.25) 100%);
  border: 1px solid var(--mc-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 38px -28px rgba(35, 38, 34, 0.22);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 300px;
}

@media (hover: hover) {
  .mc-case {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }
  .mc-case:hover {
    transform: translateY(-3px);
    border-color: rgba(64, 84, 72, 0.35);
    box-shadow: 0 24px 46px -28px rgba(35, 38, 34, 0.30);
  }
}

@media (min-width: 1100px) {
  .mc-case:nth-child(1) {
    grid-column: 1 / -1;
  }
  .mc-case:nth-child(2),
  .mc-case:nth-child(3),
  .mc-case:nth-child(4) {
    grid-column: span 2;
  }
  .mc-case:nth-child(5),
  .mc-case:nth-child(6) {
    grid-column: span 3;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .mc-case:nth-child(1) {
    grid-column: 1 / -1;
  }
  .mc-case:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .mc-case {
    padding: 24px;
    min-height: auto;
  }
}

/* Header (Meta) */
.mc-case__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mc-case__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-case__num-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-case__num-decor {
  width: 5px;
  height: 5px;
  background: var(--mc-accent);
  opacity: 0.75;
}

.mc-case__num {
  font-family: var(--mc-font-mono);
  font-size: 13px;
  color: var(--mc-text-secondary);
}

.mc-case__cat {
  font-family: var(--mc-font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--mc-bg);
  border: 1px solid var(--mc-border);
  color: var(--mc-text-secondary);
}

.mc-case__matrix-decor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  opacity: 0.15;
}

.mc-case__matrix-decor span {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--mc-text);
}

.mc-case__title {
  font-family: var(--mc-font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 22px;
  color: var(--mc-text);
  margin-bottom: 0;
}

.mc-case__divider {
  height: 1px;
  background: var(--mc-line-light);
  margin: 22px 0;
}

/* Metrics Grid */
.mc-case__metrics {
  display: grid;
  gap: 22px;
  margin-top: auto;
}

.mc-case__metrics--four {
  grid-template-columns: 1fr 1fr;
}

.mc-case__metrics--three {
  grid-template-columns: 1fr;
  gap: 12px;
}

.mc-case__metrics--three .mc-case__metric:not(:last-child) {
  border-bottom: 1px solid var(--mc-line-light);
  padding-bottom: 12px;
}

.mc-case__metrics--four .mc-case__metric:nth-child(odd) {
  border-right: 1px solid var(--mc-line-light);
}

@media (max-width: 767px) {
  .mc-case__metrics--four .mc-case__metric:nth-child(odd) {
    border-right: none;
  }
  .mc-case__metrics--four .mc-case__metric:not(:last-child) {
    border-bottom: 1px solid var(--mc-line-light);
    padding-bottom: 12px;
  }
}

.mc-case__metric-val {
  font-family: var(--mc-font-mono);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--mc-text);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .mc-case__metric-val {
    font-size: 26px;
  }
}

.mc-case__metric-lbl {
  font-family: var(--mc-font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--mc-text-secondary);
  margin-top: 6px;
}

/* Dark case (featured fallback if needed) */
.mc-case--dark {
  background: linear-gradient(145deg, var(--mc-dark) 0%, #272e29 100%);
  border-color: rgba(255,255,255,0.08);
}

.mc-case--dark .mc-case__num-decor {
  background: rgba(255,255,255,0.58); 
}

.mc-case--dark .mc-case__num {
  color: rgba(255,255,255,0.58);
}

.mc-case--dark .mc-case__cat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
}

.mc-case--dark .mc-case__title {
  color: var(--mc-white);
}

.mc-case--dark .mc-case__divider,
.mc-case--dark .mc-case__metrics--three .mc-case__metric:not(:last-child),
.mc-case--dark .mc-case__metrics--four .mc-case__metric:nth-child(odd),
.mc-case--dark .mc-case__metrics--four .mc-case__metric:not(:last-child) {
  border-color: rgba(255,255,255,0.10);
}

.mc-case--dark .mc-case__metric-val {
  color: var(--mc-white);
}

.mc-case--dark .mc-case__metric-lbl {
  color: rgba(255,255,255,0.58);
}

/* =========================================
   Featured Case (Planet BBQ)
========================================= */
.mc-case--featured {
  background: #343632;
  border-radius: 22px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--mc-white);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: center;
  min-height: auto;
}

@media (max-width: 900px) {
  .mc-case--featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .mc-case--featured {
    padding: 24px;
    gap: 32px;
  }
}

.mc-case--featured .mc-case__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mc-case--featured .mc-case__right {
  display: flex;
  flex-direction: column;
}

.mc-case--featured .mc-case__meta {
  margin-bottom: 24px;
}

.mc-case__logo {
  max-width: 145px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .mc-case__logo {
    max-width: 110px;
    max-height: 32px;
  }
}

/* For normal cards logo */
.mc-case:not(.mc-case--featured) .mc-case__logo {
  max-width: 130px;
  max-height: 36px;
  margin-top: 16px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .mc-case:not(.mc-case--featured) .mc-case__logo {
    max-width: 110px;
    max-height: 32px;
  }
}

.mc-case--featured .mc-case__title {
  font-family: "Manrope", var(--mc-font-heading), sans-serif;
  font-size: 38px;
  color: var(--mc-white);
  margin-top: 0;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .mc-case--featured .mc-case__title {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .mc-case--featured .mc-case__title {
    font-size: 30px;
  }
}

.mc-case__subtitle {
  font-family: var(--mc-font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.mc-case__featured-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .mc-case__featured-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.mc-case__featured-metrics .mc-case__metric {
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.15);
  flex: 1;
}

.mc-case__featured-metrics .mc-case__metric:first-child {
  padding-left: 0;
}

.mc-case__featured-metrics .mc-case__metric:last-child {
  padding-right: 0;
  border-right: none;
}

@media (max-width: 600px) {
  .mc-case__featured-metrics .mc-case__metric {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 16px;
    width: 100%;
  }
  .mc-case__featured-metrics .mc-case__metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.mc-case__featured-metrics .mc-case__metric-val {
  font-family: var(--mc-font-mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--mc-white);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .mc-case__featured-metrics .mc-case__metric-val {
    font-size: 32px;
  }
}

@media (max-width: 360px) {
  .mc-case__metric-val,
  .mc-case__featured-metrics .mc-case__metric-val {
    font-size: 24px;
  }
}

.mc-case__featured-metrics .mc-case__metric-lbl {
  font-family: var(--mc-font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  margin-top: 4px;
}

.mc-case__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  background: #FAFAFA;
  color: #232622;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
  width: max-content;
}

@media (max-width: 767px) {
  .mc-case__btn {
    width: 100%;
  }
}

.mc-case__btn .mc-arrow {
  transition: transform 180ms ease;
}

@media (hover: hover) {
  .mc-case__btn:not(.is-disabled):hover {
    transform: translateY(-2px);
    background: #FFFFFF;
  }
  .mc-case__btn:not(.is-disabled):hover .mc-arrow {
    transform: translateX(3px);
  }
}

.mc-case__btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.mc-case__step-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 1px;
  background: rgba(255,255,255,0.10);
}

/* Matrix decor overrides for featured */
.mc-case--featured .mc-case__matrix-decor {
  position: absolute;
  top: 40px;
  right: 40px;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

@media (max-width: 767px) {
  .mc-case--featured .mc-case__matrix-decor {
    top: 24px;
    right: 24px;
  }
}

.mc-case--featured .mc-case__matrix-decor span {
  width: 4px;
  height: 4px;
  background: rgba(215, 200, 175, 0.26);
}

/* Link Footer */
.mc-cases__footer {
  margin-top: 36px;
}

.mc-cases__link-text {
  font-family: var(--mc-font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--mc-text);
  display: inline-flex;
  align-items: center;
  transition: color var(--mc-transition);
}

.mc-cases__link-text .mc-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform var(--mc-transition);
}

.mc-cases__link-text:hover {
  color: var(--mc-accent);
}

@media (hover: hover) {
  .mc-cases__link-text:hover .mc-arrow {
    transform: translateX(3px);
  }
}


/* ============================================================
 *  ФИНАЛЬНЫЙ CTA
 * ============================================================ */
.mc-cta {
  text-align: center;
  padding-bottom: 40px;
  position: relative;
}

.mc-cta__inner {
  max-width: 760px;
  margin: 0 auto;
}

.mc-cta p {
  color: rgba(255, 255, 255, 0.70);
  font-size: 18px;
  margin-bottom: 24px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .mc-cta p { font-size: 16px; }
}

.mc-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .mc-cta__buttons { flex-direction: column; }
}

.mc-cta__note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.40);
  line-height: 1.5;
}

.mc-cta__stair {
  position: absolute;
  bottom: 40px;
  right: 32px;
}

@media (max-width: 768px) {
  .mc-cta__stair { display: none; }
}


/* ============================================================
 *  ФУТЕР
 * ============================================================ */
.mc-footer {
  background: var(--mc-dark);
  color: rgba(255, 255, 255, 0.50);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mc-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

@media (max-width: 600px) {
  .mc-footer__inner {
    justify-content: center;
    text-align: center;
  }
}


/* ============================================================
 *  АНИМАЦИИ
 * ============================================================ */
.mc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.mc-reveal.mc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .mc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mc-loader {
    transition: opacity 100ms ease;
  }

  .mc-header {
    transition: none;
  }

  .mc-btn,
  .mc-case {
    transition: none;
  }

  .mc-btn:hover,
  .mc-case:hover {
    transform: none;
  }
}

/* ============================================================
 *  FINAL POLISH OVERRIDES
 * ============================================================ */

/* Title Reveal Animation (No Scramble/Glitch) */
.mc-title-reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), 
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1), 
              filter 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mc-title-reveal.mc-visible,
.mc-hero__content.mc-visible .mc-title-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .mc-title-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* MOST BI (2 metrics layout) */
.case-card--two-metrics .mc-case__metrics {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px !important;
}
.case-card--two-metrics .mc-case__body {
  display: flex;
  flex-direction: column;
}
.case-card--two-metrics .mc-case__body > .mc-case__metrics {
  margin-top: auto;
  padding-top: 26px;
}

/* Planet BBQ Review Button */
.mc-case--dark .mc-case__btn {
  background-color: var(--mc-bg) !important;
  color: var(--mc-text) !important;
  border: none !important;
  padding: 16px 24px !important;
  font-weight: 600;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: auto;
}

@media (min-width: 1025px) {
  .mc-case--dark .mc-case__btn:not(.is-disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.3);
  }
}

/* Metric labels compact text */
.mc-case__metric-lbl {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

/* Final CTA Buttons Desktop */
@media (min-width: 1025px) {
  .mc-cta__buttons .mc-btn {
    min-height: 50px;
    padding-inline: 22px;
  }
}
