/* ═══════════════════════════════════════════════════
   Motto Azabu — Подарочные сертификаты
   Стили по макету Figma «Сертификаты / 960» и «/ Mobile 390».
   Палитра и приёмы те же, что на лендинге Ue
   (см. motto-azabu-ue.css) — при правке цветов менять оба файла.
   ═══════════════════════════════════════════════════ */

/* ── Фон всей страницы — макетный, включая зону футера ── */
body.mab-cert-page {
  background-color: #141210 !important;
  background-image: none !important;
}
.mab-cert-page .site-content,
.mab-cert-page .page-container,
.mab-cert-page .boxed-container,
.mab-cert-page .page-content,
.mab-cert-page #main.site-main,
.mab-cert-page .mab-footer {
  background-color: transparent !important;
  background-image: none !important;
}

/* ── Плавающие кнопки брони на странице сертификатов не нужны ──
   Свой блок не рендерим (фильтр mab_show_reserve_button), но вместе с ним
   пропадает и его <style>, который прятал легаси-кнопку Restoplace, —
   поэтому гасим обе, независимо от того, что отрендерилось. */
.mab-cert-page #mab-reserve-wrap,
.mab-cert-page #restoplace-wrapper-btn {
  display: none !important;
}

/* ── Заплатка на попап виджета e-gift ──
   При тёмной кастомизации (color_background) подрядчик красит текст поля
   в белый, а подложка формы в попапе остаётся белой — поле для почты
   становится невидимым (контраст 1:1). Правило приходит из их таблицы
   стилей с widget.metechcards.ru: она грузится позже нашей и недоступна
   для чтения, поэтому без !important не перебить.
   Это дефект на стороне подрядчика — когда починят у себя, блок можно снять.
   Попап скриптом переносится в body, поэтому цепляемся за класс страницы,
   а не за секцию. */
.mab-cert-page .egift-popup input,
.mab-cert-page .egift-popup textarea {
  color: #141210 !important;
}
.mab-cert-page .egift-popup input::placeholder {
  color: #8a8478 !important;
  opacity: 1;
}

/* Секции идут во всю ширину: гасим отступы обёрток WPBakery/Norebro */
.mab-cert-page .vc_row,
.mab-cert-page .vc_column_container,
.mab-cert-page .vc_column-inner,
.mab-cert-page .wpb_wrapper,
.mab-cert-page .wpb_content_element {
  padding: 0 !important;
  margin: 0 !important;
}
.mab-cert-page .page-content,
.mab-cert-page #main.site-main { padding: 0 !important; }
.mab-cert-page .header-title-box,
.mab-cert-page .breadcrumbs { display: none; }

.mab-cert {
  --c-bg:        #141210;
  --c-bg-alt:    #191611;
  --c-bg-hero:   #1a1714;
  --c-photo:     #17140f;
  --c-gold:      #9c7a3c;
  --c-cream:     #e8e3d8;
  --c-text:      #cfc9bc;
  --c-muted:     #a8a294;
  --c-dim:       #8a8478;
  --c-faint:     #6b655a;
  --c-ghost:     #5f594e;
  --c-line:      #2a2620;
  --c-line-soft: #4a453c;

  /* Разделитель секций: в макете 0.5px #2a2620. На обычной плотности
     полупиксель гаснет, поэтому там 1px в полутоне — тот же оптический вес. */
  --c-hair-w: 1px;
  --c-hair-c: #1f1c18;

  --c-font:    'Montserrat', sans-serif;
  --c-font-jp: 'Noto Serif JP', 'Noto Sans JP', serif;

  --c-pad-y: 48px;
  --c-pad-x: 28px;
  --c-max:   960px;   /* ширина фрейма макета */
  --c-col:   560px;   /* узкая колонка внутри фрейма */

  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: var(--c-pad-y) var(--c-pad-x);
  background: var(--c-bg);
  border-top: var(--c-hair-w) solid var(--c-hair-c);
  font-family: var(--c-font);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}
.mab-cert *,
.mab-cert *::before,
.mab-cert *::after { box-sizing: border-box; }

/* Retina — буквально макет */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .mab-cert { --c-hair-w: 0.5px; --c-hair-c: #2a2620; }
}

/* Norebro задаёт <p> ширину 100% — внутри flex-строк это ломает базис */
.mab-cert p,
.mab-cert ol,
.mab-cert ul,
.mab-cert blockquote { width: auto; }

/* Страховка: ни одна ссылка внутри секций не должна свалиться
   в системный синий, если я забыл её покрасить точечно.
   Кнопки исключены: у залитой кнопки текст тёмный, и без :not()
   эта страховка перебивала её и красила золотом по золоту. */
.mab-cert a:not(.mab-cert-btn) { color: var(--c-gold); }
.mab-cert a[href^="tel:"] { text-decoration: none; }
.mab-cert a[href^="tel:"]:hover { color: var(--c-cream); }

/* Norebro скругляет всё подряд */
.mab-cert a,
.mab-cert img,
.mab-cert input,
.mab-cert button,
.mab-cert .mab-cert-btn,
.mab-cert .mab-cert-photo { border-radius: 0 !important; -webkit-border-radius: 0 !important; }

.mab-cert__inner { max-width: var(--c-max); margin: 0 auto; }
.mab-cert__col   { max-width: var(--c-col); margin: 0 auto; }

/* ── Лейбл секции ── */
.mab-cert__label {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 400;
}
.mab-cert__label--center { text-align: center; }

/* ── Заголовок секции ── */
.mab-cert__title {
  margin: 20px 0 0;
  font-size: 22px;
  line-height: 1.3;
  color: var(--c-cream);
  font-weight: 400;
}

/* ── Кнопки ── */
.mab-cert-btn {
  display: inline-block;
  vertical-align: top;   /* иначе вылезает вниз из обёртки с line-height: 0 */
  text-align: center;
  padding: 13px 34px;
  border: 0.5px solid var(--c-gold);
  background: transparent;
  color: var(--c-gold);
  font-family: var(--c-font);
  font-size: 12px;
  line-height: 16px;   /* 16 + 13*2 = 42px, высота кнопки как в макете */
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.mab-cert-btn:hover,
.mab-cert-btn:focus { background: var(--c-gold); color: var(--c-bg); text-decoration: none; }
.mab-cert-btn--solid {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
}
.mab-cert-btn--solid:hover,
.mab-cert-btn--solid:focus { background: var(--c-cream); border-color: var(--c-cream); color: var(--c-bg); }

/* ── Текстовая ссылка со стрелкой ── */
.mab-cert__link {
  display: inline-block;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: var(--c-dim);
  text-decoration: none;
  transition: color .3s ease;
}
.mab-cert__link:hover { color: var(--c-gold); text-decoration: none; }
.mab-cert__link--gold { color: var(--c-gold); }
.mab-cert__link--gold:hover { color: var(--c-cream); }

/* ── Тонкая линия внутри блока ── */
.mab-cert__hr {
  height: 1px;
  background: var(--c-line);
  border: 0;
  margin: 0;
}

/* ══════════════════
   HERO  (макет 102:6)
   ══════════════════ */
.mab-cert-hero {
  padding: 76px var(--c-pad-x) 64px;
  background: var(--c-bg-hero);
  border-top: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* макет 960×494 — держим пропорцию на широких экранах */
  min-height: min(51vw, 660px);
}
.mab-cert-hero__bg { position: absolute; inset: 0; z-index: 0; }
.mab-cert-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* Двойной градиент ровно как в макете */
.mab-cert-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,18,16,.85) 0%, rgba(20,18,16,.15) 35%, rgba(20,18,16,.35) 75%, rgba(20,18,16,.7) 100%),
    linear-gradient(90deg, rgba(20,18,16,.74) 0%, rgba(20,18,16,.74) 100%);
}
.mab-cert-hero__col {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.mab-cert-hero__jp {
  margin: 0;
  font-family: var(--c-font-jp);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.43;
  color: var(--c-gold);
}
/* Короткие центрированные блоки набираем с балансировкой строк:
   иначе на узком экране остаются висячие «Вы» и одинокие хвосты. */
.mab-cert-hero__title,
.mab-cert-hero__lead p,
.mab-cert-widget__title,
.mab-cert-widget__lead,
.mab-cert-widget__note,
.mab-cert-widget__fallback-text,
.mab-cert-list__items li,
.mab-cert-cta__title,
.mab-cert-cta__sub,
.mab-cert-cta__teaser {
  text-wrap: balance;
}

/* Абзацы по левому краю длиннее — им нужна не балансировка,
   а защита от одинокого слова в последней строке. */
.mab-cert-feature__body p,
.mab-cert-feature__note,
.mab-cert-corp__body,
.mab-cert-step__text,
.mab-cert-terms__list li {
  text-wrap: pretty;
}

.mab-cert-hero__title {
  margin: 16px 0 0;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 5px;
  color: var(--c-cream);
  font-weight: 400;
  text-transform: uppercase;
}
.mab-cert-hero__lead {
  margin: 20px 0 0;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
}
.mab-cert-hero__lead p { margin: 0; }
.mab-cert-hero__meta p { margin: 0; }
.mab-cert-hero__meta {
  margin: 26px 0 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: var(--c-gold);
  text-wrap: balance;
}
/* line-height: 0 — чтобы обёртка обнимала инлайн-блок и не добавляла
   собственный интерлиньяж поверх макетных отступов. */
.mab-cert-hero__cta  { margin-top: 24px; line-height: 0; }
.mab-cert-hero__more { margin-top: 16px; line-height: 0; }

/* ══════════════════
   ДВЕ КОЛОНКИ: текст + фото  (макет 102:20)
   ══════════════════ */
/* Сетка вместо флекса: в макете примечание стоит ПОД текстом, а фото
   занимает обе строки. На мобильном порядок — текст, фото, примечание. */
.mab-cert-feature__row {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-areas:
    "text  photo"
    "note  photo";
  gap: 0 72px;
  align-items: start;
}
.mab-cert-feature__text      { grid-area: text; min-width: 0; }
.mab-cert-feature__note-wrap { grid-area: note; min-width: 0; }
.mab-cert-feature__body {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-text);
}
.mab-cert-feature__body p { margin: 0 0 14px; }
.mab-cert-feature__body p:last-child { margin-bottom: 0; }
.mab-cert-feature__hr   { margin-top: 26px; }
.mab-cert-feature__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-dim);
}
.mab-cert-photo {
  grid-area: photo;
  align-self: start;
  width: 340px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-photo);
  border: 1px solid var(--c-line);
}
.mab-cert-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.mab-cert-photo:hover img { transform: scale(1.04); }
.mab-cert-photo__stub { font-size: 11px; letter-spacing: 1px; color: var(--c-ghost); }

/* ══════════════════
   ЦЕНТРИРОВАННЫЙ СПИСОК  (Повод, макет 102:36)
   ══════════════════ */
.mab-cert-list__items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 26px auto 0;
  padding: 0;
  max-width: var(--c-col);
  list-style: none;
  text-align: center;
}
.mab-cert-list__items li {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-text);
}

/* ══════════════════
   ВИДЖЕТ СЕРТИФИКАТОВ  (макет 103:2)
   ══════════════════ */
.mab-cert-widget { background: var(--c-bg-alt); padding-top: 56px; padding-bottom: 56px; }
.mab-cert-widget__col { text-align: center; }
.mab-cert-widget__title { margin: 20px 0 0; }
.mab-cert-widget__lead {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-muted);
}
.mab-cert-widget__box {
  position: relative;
  margin-top: 34px;
  min-height: 640px;          /* по указанию в макете */
  background: var(--c-photo);
  border: 1px solid var(--c-line);
  text-align: left;
}
/* Пока виджет не отрисовался — рамка-заглушка как в макете */
.mab-cert-widget__box.is-empty {
  border: 1px dashed var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mab-cert-widget__fallback {
  display: none;
  padding: 40px 28px;
  text-align: center;
}
.mab-cert-widget__box.is-empty .mab-cert-widget__fallback { display: block; }
.mab-cert-widget__fallback-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-gold);
}
.mab-cert-widget__fallback-text {
  margin: 14px auto 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
}
.mab-cert-widget__fallback-hr {
  width: 200px;
  margin: 24px auto;
  height: 1px;
  background: var(--c-line);
  border: 0;
}
.mab-cert-widget__fallback-phone {
  margin: 0;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--c-faint);
}
.mab-cert-widget__fallback-phone a { color: var(--c-gold); text-decoration: none; }
.mab-cert-widget__note {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-dim);
}

/* ══════════════════
   ШАГИ В ТРИ КОЛОНКИ  (макет 103:23)
   ══════════════════ */
.mab-cert-steps__row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 28px;
}
.mab-cert-step { flex: 1 1 0; min-width: 0; }
.mab-cert-step__num {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-gold);
}
.mab-cert-step__title {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-cream);
}
.mab-cert-step__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}
/* Номер внутри шага набран тем же текстом, что и остальное предложение */
.mab-cert-step__text a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
  transition: color .3s ease, border-color .3s ease;
}
.mab-cert-step__text a:hover { color: var(--c-gold); border-color: var(--c-gold); }

/* ══════════════════
   УСЛОВИЯ  (макет 103:45)
   ══════════════════ */
.mab-cert-terms__list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.mab-cert-terms__list li {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: var(--c-text);
}
.mab-cert-terms__link { margin-top: 24px; }

/* ══════════════════
   КОРПОРАТИВНЫЙ ЗАКАЗ  (макет 104:2)
   ══════════════════ */
.mab-cert-corp { background: var(--c-bg-alt); padding-top: 56px; padding-bottom: 56px; }
.mab-cert-corp__row {
  display: flex;
  gap: 88px;
  align-items: flex-start;
}
.mab-cert-corp__text { flex: 1 1 0; min-width: 0; }
.mab-cert-corp__body {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-muted);
}
.mab-cert-corp__hr    { margin-top: 28px; }
.mab-cert-corp__dept  { margin: 20px 0 0; font-size: 13px; line-height: 1.4; color: var(--c-dim); }
.mab-cert-corp__phone {
  display: inline-block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-gold);
  text-decoration: none;
}
.mab-cert-corp__phone:hover { color: var(--c-cream); text-decoration: none; }

/* Форма */
.mab-cert-form {
  flex: 0 0 420px;
  width: 420px;
  /* Norebro центрирует содержимое любого <form> — возвращаем макетное
     выравнивание по левому краю (подписи, согласие, кнопка). */
  text-align: left;
}
/* Chrome при автозаполнении заливает поле своим фоном и синим текстом */
.mab-cert-form input:-webkit-autofill,
.mab-cert-form input:-webkit-autofill:hover,
.mab-cert-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--c-cream);
  caret-color: var(--c-cream);
  transition: background-color 9999s ease-in-out 0s;
}
.mab-cert-form__row { display: flex; gap: 24px; }
.mab-cert-form__field { flex: 1 1 0; min-width: 0; margin-bottom: 28px; }
/* Метка скрыта визуально, но остаётся для скринридеров */
.mab-cert-form__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Поле в макете (104:18) ровно 33px: строка текста 16 + зазор 16 + линия 1.
   Подпись — плейсхолдер внутри поля, поэтому текст занимает верхние 16px,
   а нижние 16px — воздух до линии, ровно как нарисовано. */
.mab-cert-form__field input {
  display: block;
  width: 100%;
  height: 33px;
  margin: 0;
  padding: 0 0 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-cream);
  font-family: var(--c-font);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 1px;
  outline: none;
  transition: border-color .3s ease;
}
.mab-cert-form__field input::placeholder {
  color: var(--c-dim);
  opacity: 1;            /* Firefox приглушает плейсхолдер по умолчанию */
}
.mab-cert-form__field input:focus { border-bottom-color: var(--c-gold); }
/* honeypot — прячем от людей, ботам оставляем */
.mab-cert-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.mab-cert-form__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 2px;   /* 28px от поля выше + 2 = макетные 30 */
}
/* Тема сбрасывает размеры чекбокса (input[type=checkbox]{width:auto;border:auto})
   и растягивала его до 14×26 — поэтому размеры фиксируем жёстко. */
.mab-cert-form__consent input[type="checkbox"] {
  flex: 0 0 14px;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  min-height: 14px;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid var(--c-line-soft) !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.mab-cert-form__consent input[type="checkbox"]:hover { border-color: var(--c-gold) !important; }
/* Настоящая галочка, а не просто заливка */
.mab-cert-form__consent input[type="checkbox"]:checked {
  background-color: var(--c-gold);
  border-color: var(--c-gold) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.8 9 1.2' fill='none' stroke='%23141210' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 7px;
}
.mab-cert-form__consent input[type="checkbox"]:focus-visible {
  outline: 1px solid var(--c-gold);
  outline-offset: 2px;
}
.mab-cert-form__consent label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-dim);
}
.mab-cert-form__consent a { color: var(--c-gold); text-decoration: none; }
.mab-cert-form__submit { margin-top: 30px; }
.mab-cert-form__submit .mab-cert-btn {
  padding: 14px 36px;
  border: 0;
  line-height: 16px;   /* 16 + 14*2 = 44px, как в макете */
}
.mab-cert-form__msg {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.mab-cert-form__msg:empty { display: none; }
.mab-cert-form__msg--ok   { color: var(--c-gold); }
.mab-cert-form__msg--err  { color: #d08a70; }
.mab-cert-form.is-sending .mab-cert-btn { opacity: .5; pointer-events: none; }

/* ══════════════════
   ФИНАЛЬНЫЙ CTA  (макет 104:43)
   ══════════════════ */
.mab-cert-cta { padding-top: 56px; padding-bottom: 56px; }
.mab-cert-cta__col { text-align: center; }
.mab-cert-cta__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--c-cream);
  font-weight: 400;
}
.mab-cert-cta__sub {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-muted);
}
.mab-cert-cta__btn { margin-top: 26px; }
.mab-cert-cta__phone {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-dim);
  text-decoration: none;
  transition: color .3s ease;
}
.mab-cert-cta__phone:hover { color: var(--c-gold); text-decoration: none; }
.mab-cert-cta__teaser {
  margin-top: 34px;
  padding-top: 20px;
  border-top: var(--c-hair-w) solid var(--c-hair-c);
  font-size: 11px;
  line-height: 1.4;
  color: var(--c-ghost);
}

/* ══════════════════
   МОБАЙЛ — макет 390
   ══════════════════ */
@media (max-width: 768px) {
  .mab-cert { --c-pad-y: 40px; --c-pad-x: 20px; }

  /* Хиро. В макете жёсткие 504px — это просто высота артборда, к экрану
     телефона отношения не имеет. Берём 80% высоты вьюпорта, содержимое
     центрируем (justify-content: center уже на .mab-cert-hero).
     svh, а не vh: в svh не входит сворачивающаяся адресная строка, поэтому
     блок не прыгает при прокрутке и никогда не вылезает за экран. */
  .mab-cert-hero {
    padding: 56px var(--c-pad-x) 48px;
    min-height: 80vh;
    min-height: 80svh;
  }
  /* Хиро стал выше — cover кадрирует снимок теснее, и светлая часть
     конверта уходила из зоны, где градиент самый прозрачный (35%).
     Поднимаем точку кадрирования, чтобы конверт читался. */
  .mab-cert-hero__bg img { object-position: center 35%; }
  .mab-cert-hero__jp    { font-size: 36px; }
  .mab-cert-hero__title { margin-top: 14px; font-size: 20px; line-height: 1.5; letter-spacing: 4px; }
  .mab-cert-hero__lead  { margin-top: 18px; max-width: 330px; font-size: 14px; }
  .mab-cert-hero__meta  { margin-top: 22px; font-size: 12px; line-height: 1.7; }
  .mab-cert-hero__cta   { margin-top: 22px; }
  .mab-cert-hero__cta .mab-cert-btn { padding: 13px 28px; }
  .mab-cert-hero__more  { margin-top: 14px; }

  .mab-cert__title { font-size: 20px; }

  /* Размеры текста — по мобильному фрейму, он на шаг мельче десктопного */
  .mab-cert-feature__body   { font-size: 14px; line-height: 1.85; }
  .mab-cert-feature__body p { margin-bottom: 12px; }
  .mab-cert-feature__note   { font-size: 12px; }
  .mab-cert-list__items     { gap: 14px; }
  .mab-cert-list__items li  { font-size: 14px; line-height: 1.6; }
  .mab-cert-widget__lead    { font-size: 14px; line-height: 1.85; }
  .mab-cert-widget__note    { font-size: 12px; }
  .mab-cert-step__num       { font-size: 12px; }
  .mab-cert-step__title     { margin-top: 8px; }
  .mab-cert-step__text      { margin-top: 6px; font-size: 13px; }
  .mab-cert-terms__list li  { font-size: 14px; }
  .mab-cert-corp__body      { font-size: 14px; line-height: 1.85; }
  .mab-cert-corp__dept      { font-size: 12px; }
  .mab-cert-corp__phone     { font-size: 17px; }
  .mab-cert-cta__title      { font-size: 19px; }
  .mab-cert-cta__sub        { font-size: 12px; }
  .mab-cert-cta__teaser     { line-height: 1.7; }

  /* Фото встаёт между текстом и примечанием — как в мобильном макете */
  .mab-cert-feature__row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "photo"
      "note";
    gap: 24px 0;
  }
  .mab-cert-photo { width: 100%; height: 220px; }

  .mab-cert-widget { padding-top: 44px; padding-bottom: 44px; }
  .mab-cert-widget__box { min-height: 560px; }   /* по указанию в макете */

  .mab-cert-steps__row { flex-direction: column; gap: 28px; margin-top: 24px; }

  .mab-cert-corp { padding-top: 44px; padding-bottom: 44px; }
  .mab-cert-corp__row  { flex-direction: column; gap: 36px; }
  .mab-cert-form       { flex: 0 0 auto; width: 100%; }
  .mab-cert-form__row  { flex-direction: column; gap: 0; }
  /* Шрифт меньше 16px заставляет iOS зумить страницу при фокусе,
     поэтому поле на мобильном на пару пикселей выше макетного. */
  /* Ввод 16px, чтобы iOS не зумил. Плейсхолдер мельче — длинный
     «Количество сертификатов и номинал» иначе обрезается по ширине. */
  .mab-cert-form__field input { height: 36px; padding-bottom: 15px; font-size: 16px; line-height: 20px; }
  .mab-cert-form__field input::placeholder { font-size: 13px; letter-spacing: .5px; }

  .mab-cert-cta { padding-top: 44px; padding-bottom: 44px; }

  /* В мобильном макете обе эти кнопки во всю ширину колонки */
  .mab-cert-cta__btn .mab-cert-btn,
  .mab-cert-form__submit .mab-cert-btn { display: block; width: 100%; padding-left: 0; padding-right: 0; }
  .mab-cert-form__field { margin-bottom: 24px; }
}
