.mtt {
    /* --- Цвета и шрифты с major-terminal.ru --- */
    --mtt-font: Montserrat, sans-serif;                     /* основной текст сайта */
    --mtt-font-head: "Roboto Condensed Medium", "Roboto Condensed", sans-serif; /* заголовки сайта */
    --mtt-navy: #052343;       /* цвет заголовков и тёмных блоков */
    --mtt-blue: #004996;       /* фирменный синий: кнопки, выделение в заголовках */
    --mtt-blue-hover: #00539f;
    --mtt-red: #e10000;        /* красный акцент, как «вперед» и «деталям» в шапке сайта */
    --mtt-text: #000000;
    --mtt-muted: #5b5b5b;
    --mtt-surface: #f2f6fa;    /* светлый фон карточек */
    --mtt-line: #c1c6d0;
    --mtt-radius: 30px;        /* скругление карточек как на сайте */
    /* ------------------------------------------ */

    font-family: var(--mtt-font);
    color: var(--mtt-text);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  .mtt *, .mtt *::before, .mtt *::after { box-sizing: border-box; }
  .mtt :where(h1, h2, h3, h4, p, ul) { margin: 0; }
  .mtt img { display: block; max-width: 100%; }

  .mtt-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
  .mtt-section { padding: 48px 0; }
  .mtt-h2 { font-family: var(--mtt-font-head); font-weight: 900; color: var(--mtt-navy); font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
  .mtt-h2 span, .mtt-hero__title span { color: var(--mtt-blue); }
  .mtt-intro { color: var(--mtt-muted); font-size: 16px; max-width: 720px; margin-bottom: 28px; }

  /* Кнопки: «таблетки», как «Заявка» на сайте */
  .mtt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 12px 28px; border-radius: 100px;
    font-family: var(--mtt-font-head); font-size: 18px; font-weight: 700; text-decoration: none; line-height: 1.2;
    transition: background-color .15s, color .15s, border-color .15s;
    width: 100%;
  }
  .mtt-btn--primary { background: var(--mtt-blue); color: #fff; border: 2px solid var(--mtt-blue); }
  .mtt-btn--primary:hover { background: var(--mtt-blue-hover); border-color: var(--mtt-blue-hover); }
  .mtt-btn--ghost { background: transparent; color: var(--mtt-blue); border: 2px solid var(--mtt-blue); }
  .mtt-btn--ghost:hover { background: var(--mtt-blue); color: #fff; }
  .mtt-btn--white { background: transparent; color: #fff; border: 2px solid #fff; }
  .mtt-btn--white:hover { background: #fff; color: var(--mtt-navy); }
  .mtt-btn:focus-visible, .mtt-arrow:focus-visible { outline: 3px solid var(--mtt-red); outline-offset: 2px; }

  /* 1. Шапка */
  .mtt-hero { padding: 40px 0 48px; background: var(--mtt-surface); }
  .mtt-hero__label {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--mtt-font-head); font-size: 15px; font-weight: 700;
    color: var(--mtt-navy); padding: 8px 16px; border-radius: 100px; background: #fff; margin-bottom: 20px;
  }
  .mtt-hero__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mtt-red); }
  .mtt-hero__title { font-family: var(--mtt-font-head); font-weight: 900; color: var(--mtt-navy); font-size: 36px; line-height: 1.05; margin-bottom: 16px; }
  .mtt-hero__topics { font-family: var(--mtt-font-head); font-size: 19px; font-weight: 700; color: var(--mtt-blue); line-height: 1.35; margin-bottom: 16px; max-width: 820px; }
  .mtt-hero__text { font-size: 16px; color: var(--mtt-text); max-width: 760px; margin-bottom: 28px; }
  .mtt-hero__actions { display: flex; flex-direction: column; gap: 12px; }

  /* 2. Запись */
  .mtt-video { display: grid; gap: 24px; }
  .mtt-video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--mtt-radius); overflow: hidden; background: var(--mtt-navy); }
  .mtt-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .mtt-video__aside { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--mtt-radius); background: var(--mtt-surface); }
  .mtt-video__label { font-family: var(--mtt-font-head); font-size: 18px; font-weight: 700; color: var(--mtt-navy); }
  .mtt-video__divider { height: 1px; background: var(--mtt-line); margin: 8px 0; }

  /* 3. Фотослайдер */
  .mtt-slider { position: relative; }
  .mtt-slider__track {
    list-style: none; margin: 0; padding: 0 20px;
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .mtt-slider__track::-webkit-scrollbar { display: none; }
  .mtt-slide { flex: 0 0 86%; scroll-snap-align: start; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--mtt-surface); }
  .mtt-slide img { width: 100%; height: 100%; object-fit: cover; }
  .mtt-slider__bar { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
  .mtt-slider.is-ready .mtt-slider__bar { display: flex; }
  .mtt-slider__count { font-family: var(--mtt-font-head); font-weight: 700; font-size: 18px; color: var(--mtt-navy); }
  .mtt-slider__count span { color: var(--mtt-muted); }
  .mtt-slider__arrows { display: flex; gap: 8px; }
  .mtt-arrow {
    width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--mtt-blue); background: #fff; color: var(--mtt-blue);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s, color .15s, opacity .15s;
  }
  .mtt-arrow:hover { background: var(--mtt-blue); color: #fff; }
  .mtt-arrow:disabled { opacity: .35; cursor: default; background: #fff; color: var(--mtt-blue); }
  .mtt-arrow svg { width: 22px; height: 22px; }

  /* 4. Спикеры */
  .mtt-group { margin-bottom: 36px; }
  .mtt-group:last-child { margin-bottom: 0; }
  .mtt-group__title { font-family: var(--mtt-font-head); font-size: 20px; font-weight: 700; color: var(--mtt-blue); margin-bottom: 16px; }
  .mtt-speakers { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
  .mtt-speaker { display: flex; flex-direction: column; padding: 20px 22px; background: var(--mtt-surface); border-radius: 20px; }
  .mtt-speaker > div { display: flex; flex-direction: column; flex: 1; }
  .mtt-speaker::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--mtt-red); margin-bottom: 14px; }
  .mtt-speaker__name { font-family: var(--mtt-font-head); font-size: 19px; font-weight: 700; color: var(--mtt-navy); line-height: 1.2; margin-bottom: 4px; }
  .mtt-speaker__role { font-size: 14px; color: var(--mtt-muted); line-height: 1.35; }
  .mtt-speaker__company { font-size: 14px; font-weight: 600; color: var(--mtt-blue); margin-top: auto; padding-top: 10px; } /* компания прижата к низу карточки, чтобы в ряду была на одной линии */

  /* Просмотр фото во весь экран */
  .mtt-slide img { cursor: zoom-in; }
  .mtt-lb { position: fixed; inset: 0; z-index: 10000; background: rgba(5, 35, 67, .98); display: none; align-items: center; justify-content: center; padding: 56px 12px; }
  .mtt-lb.is-open { display: flex; }
  .mtt-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
  .mtt-lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s; }
  .mtt-lb__btn:hover { background: rgba(255,255,255,.28); }
  .mtt-lb__btn svg { width: 24px; height: 24px; }
  .mtt-lb__close { top: 12px; right: 12px; }
  .mtt-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
  .mtt-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
  .mtt-lb__count { position: absolute; top: 24px; left: 20px; color: #fff; font-family: var(--mtt-font-head); font-weight: 700; font-size: 16px; }
  @media (max-width: 639px) { .mtt-lb__prev, .mtt-lb__next { top: auto; bottom: 12px; transform: none; } .mtt-lb { padding: 64px 8px 76px; } }

  /* ---------- Планшет ---------- */
  @media (min-width: 640px) {
    .mtt-container { padding: 0 32px; }
    .mtt-section { padding: 64px 0; }
    .mtt-h2 { font-size: 40px; }
    .mtt-btn { width: auto; }
    .mtt-video__aside .mtt-btn { width: 100%; }
    .mtt-hero { padding: 56px 0 64px; }
    .mtt-hero__title { font-size: 50px; }
    .mtt-hero__topics { font-size: 22px; }
    .mtt-hero__actions { flex-direction: row; flex-wrap: wrap; }
    .mtt-slider__track { padding: 0 32px; scroll-padding: 0 32px; gap: 16px; }
    .mtt-slide { flex-basis: 62%; }
    .mtt-speakers { grid-template-columns: repeat(2, 1fr); }
  }

  /* ---------- Десктоп ---------- */
  @media (min-width: 1024px) {
    .mtt-section { padding: 88px 0; }
    .mtt-h2 { font-size: 50px; }
    .mtt-hero { padding: 72px 0 80px; }
    .mtt-hero__title { font-size: 64px; }
    .mtt-video { grid-template-columns: 2fr 1fr; align-items: start; }
    /* слайдер на десктопе выровнен по контейнеру */
    .mtt-slider__track { padding: 0 max(32px, calc((100vw - 1280px) / 2 + 32px)); scroll-padding: 0 max(32px, calc((100vw - 1280px) / 2 + 32px)); }
    .mtt-slide { flex-basis: 44%; border-radius: var(--mtt-radius); }
    .mtt-speakers--4 { grid-template-columns: repeat(4, 1fr); }
    .mtt-speakers--3 { grid-template-columns: repeat(3, 1fr); }
  }
