/* ═══════════════════════════════════════════════════
   Motto Azabu — Ue / Chef's Table (минус первый этаж)
   Стили по макету Figma «Ue Chef's Table Landing»
   (десктоп 960 / мобайл 390). Значения — 1:1 из макета.
   ═══════════════════════════════════════════════════ */

/* ── Фон всей страницы — макетный #141210 ──
   Тема держит body чёрным (#000 !important), из-за чего ниже последней секции
   и в зоне футера начинался чёрный и был виден стык. Красим сам body, а
   промежуточные обёртки делаем прозрачными: .site-content подмешивает
   rgba(53,53,53,.06) и высветлял бы фон. Канвас частиц прозрачный —
   звёзды в футере продолжают рисоваться поверх. */
body.mab-ue-page {
  background-color: #141210 !important;
  background-image: none !important;
}
.mab-ue-page .site-content,
.mab-ue-page .page-container,
.mab-ue-page .boxed-container,
.mab-ue-page .page-content,
.mab-ue-page #main.site-main,
.mab-ue-page .mab-footer {
  background-color: transparent !important;
  background-image: none !important;
}

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

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

.mab-ue {
  /* Палитра Ue — отличается от основной (--mab-copper), это отдельный лендинг */
  --ue-bg:        #141210;
  --ue-bg-alt:    #191611;
  --ue-photo:     #221e18;
  --ue-gold:      #9c7a3c;
  --ue-cream:     #e8e3d8;
  --ue-text:      #cfc9bc;
  --ue-muted:     #a8a294;
  --ue-dim:       #8a8478;
  --ue-faint:     #6b655a;
  --ue-ghost:     #5f594e;
  --ue-line:      #2a2620;
  --ue-line-soft: #2e2a24;
  --ue-line-chip: #3a352e;

  /* Разделитель секций. В макете это 0.5px #2a2620, но на экранах с обычной
     плотностью браузер гасит полупиксель до неразличимого — контраст с фоном
     и так минимальный. Поэтому там рисуем 1px в полутоне #1f1c18: это ровно
     тот цвет, который даёт наполовину закрашенный пиксель #2a2620 на #141210,
     то есть тот же оптический вес. На retina ниже включается буквальный макет. */
  --ue-hair-w: 1px;
  --ue-hair-c: #1f1c18;

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

  /* Всё 1:1 с макетом: отступы 48/40, колонка 560 внутри фрейма 960,
     и hairline-разделитель 0.5px между секциями. Толщина принципиальна —
     на 1px линия читается вдвое тяжелее задуманного. */
  --ue-pad-y: 48px;
  --ue-pad-x: 28px;
  --ue-max:   960px;   /* ширина фрейма макета */
  --ue-col:   560px;   /* текстовая колонка внутри фрейма */

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

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

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

/* Norebro любит скруглять всё подряд — гасим */
.mab-ue a,
.mab-ue img,
.mab-ue .mab-ue-btn,
.mab-ue .mab-ue-tile,
.mab-ue .mab-ue-chip,
.mab-ue .mab-ue-photo,
.mab-ue .mab-ue-chef__ava {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

.mab-ue__inner {
  max-width: var(--ue-max);
  margin: 0 auto;
}
.mab-ue__col {
  max-width: var(--ue-col);
  margin: 0 auto;
}
.mab-ue__col--wide { max-width: none; }

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

/* ── Кнопки ── */
.mab-ue-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 0.5px solid var(--ue-gold);
  background: transparent;
  color: var(--ue-gold);
  font-family: var(--ue-font);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.mab-ue-btn:hover,
.mab-ue-btn:focus {
  background: var(--ue-gold);
  color: var(--ue-bg);
  text-decoration: none;
}
.mab-ue-btn--solid {
  padding: 13px 34px;
  background: var(--ue-gold);
  color: var(--ue-bg-alt);
}
.mab-ue-btn--solid:hover,
.mab-ue-btn--solid:focus {
  background: var(--ue-cream);
  color: var(--ue-bg-alt);
}

/* ══════════════════
   HERO
   ══════════════════ */
.mab-ue-hero {
  padding: 64px var(--ue-pad-x) 56px;
  overflow: hidden;
  /* Макет нарисован на 960 (419px высоты). На широких экранах держим
     ту же пропорцию, иначе фото превращается в узкую полосу. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(44vw, 620px);
}
.mab-ue-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mab-ue-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Видео лежит поверх постера, но под затемнением. Проявляется по canplay,
   до этого момента виден кадр-постер — без чёрного провала. */
.mab-ue-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease;
}
.mab-ue-hero.is-video-ready .mab-ue-hero__video { opacity: 1; }

.mab-ue-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.65);
}
.mab-ue-hero__col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mab-ue-hero__jp {
  margin: 0;
  font-family: var(--ue-font-jp);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.43;   /* 80px — как в макете */
  color: var(--ue-gold);
}
.mab-ue-hero__title {
  margin: 14px 0 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 6px;
  color: var(--ue-cream);
  font-weight: 400;
}
.mab-ue-hero__lead {
  margin: 18px 0 0;
  max-width: 440px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ue-muted);
  text-shadow: 0 20px 45px rgba(0,0,0,0.25), 0 15px 35px rgba(0,0,0,0.25);
}
.mab-ue-hero__lead p { margin: 0; }
/* Отступы уменьшены на полулидинг, чтобы суммарная высота хиро совпала
   с макетом (419px), но строка могла переноситься без слипания. */
.mab-ue-hero__meta {
  margin: 21px 0 6px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: var(--ue-gold);
  text-wrap: balance;
}

/* ══════════════════
   ТЕКСТОВЫЙ БЛОК (Что такое Ue / Условия)
   ══════════════════ */
.mab-ue-text__body {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ue-text);
}
.mab-ue-text__body p { margin: 0 0 1.9em; }
.mab-ue-text__body p:last-child { margin-bottom: 0; }
.mab-ue-text__body strong { color: var(--ue-cream); font-weight: 500; }

/* вариант «список строк» — «Условия» */
.mab-ue-text--list .mab-ue-text__body {
  margin-top: 20px;
  font-size: 13px;
  line-height: 2.1;
}
.mab-ue-text--list .mab-ue-text__body p { margin: 0; }

/* ══════════════════
   ШАГИ (Как устроен вечер)
   ══════════════════ */
.mab-ue-steps__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.mab-ue-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.mab-ue-steps__item + .mab-ue-steps__item { margin-top: 14px; }
.mab-ue-steps__num {
  flex: 0 0 22px;
  width: 22px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ue-gold);
}
.mab-ue-steps__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ue-text);
}

/* ══════════════════
   ПЛИТКИ СЕТОВ
   ══════════════════ */
.mab-ue-sets__tiles {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.mab-ue-tile {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px;
  border: 0.5px solid var(--ue-line-soft);
}
.mab-ue-tile--active { border-color: var(--ue-gold); }
/* Десктоп: иероглиф и текст — одной колонкой с одинаковым шагом 8px.
   Мобайл: плитка становится строкой, __body — правой колонкой. */
.mab-ue-tile__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.mab-ue-tile__jp {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--ue-font-jp);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ue-faint);
  white-space: nowrap;
}
.mab-ue-tile--active .mab-ue-tile__jp { color: var(--ue-gold); }
.mab-ue-tile__name {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 1px;
  color: var(--ue-muted);
}
.mab-ue-tile--active .mab-ue-tile__name { color: var(--ue-cream); }
.mab-ue-tile__note {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ue-faint);
}
.mab-ue-tile--active .mab-ue-tile__note { color: var(--ue-dim); }

/* ══════════════════
   БЛИЖАЙШИЙ УЖИН
   ══════════════════ */
.mab-ue-dinner { background: var(--ue-bg-alt); }
.mab-ue-dinner__col {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.mab-ue-dinner__title {
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ue-cream);
  font-weight: 400;
}
.mab-ue-dinner__chefs {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ue-muted);
}
.mab-ue-dinner__metrics {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
}
.mab-ue-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}
.mab-ue-metric__value {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ue-gold);
}
.mab-ue-metric__label {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ue-dim);
}
.mab-ue-dinner__cta { margin-top: 24px; }
.mab-ue-dinner__cta .mab-ue-btn { padding: 11px 28px; }

/* ══════════════════
   ГАЛЕРЕЯ
   ══════════════════ */
.mab-ue-gallery__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--ue-col);
  margin: 24px auto 0;
}
.mab-ue-gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mab-ue-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ue-photo);
  border: 0.5px solid var(--ue-line-soft);
}
.mab-ue-photo--lead { height: 300px; }
.mab-ue-gallery__row .mab-ue-photo { height: 180px; }
.mab-ue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.mab-ue-photo:hover img { transform: scale(1.04); }
.mab-ue-photo__stub {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ue-ghost);
}

/* ══════════════════
   ШЕФЫ
   ══════════════════ */
.mab-ue-chefs__list { margin-top: 20px; }
.mab-ue-chef + .mab-ue-chef { margin-top: 28px; }
.mab-ue-chef__row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.mab-ue-chef__ava {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 0.5px solid var(--ue-gold);
  background: var(--ue-photo);
}
.mab-ue-chef__ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mab-ue-chef__col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mab-ue-chef__name {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ue-cream);
  font-weight: 400;
}
.mab-ue-chef__bio {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ue-muted);
}
.mab-ue-chef__quote {
  margin: 22px 0 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--ue-gold);
  /* Norebro задаёт blockquote border-*-color: rgba(0,0,0,.15) !important —
     без !important золотая линия оставалась чёрной и почти невидимой. */
  border-left-color: var(--ue-gold) !important;
  font-size: 15px;
  line-height: 1.7;
  /* В макете прямая речь набрана курсивом. Вес 300 — потому что у Montserrat
     подключены italic только 200 и 300; на 400 браузер синтезировал бы наклон. */
  font-style: italic;
  font-weight: 300;
  color: var(--ue-text);
}

/* ══════════════════
   ЧИПСЫ (Что попробуете)
   ══════════════════ */
.mab-ue-tags__note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ue-dim);
}
.mab-ue-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.mab-ue-chip {
  padding: 6px 12px;
  border: 0.5px solid var(--ue-line-chip);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ue-text);
  white-space: nowrap;
  transition: border-color .3s ease, color .3s ease;
}
.mab-ue-chip:hover {
  border-color: var(--ue-gold);
  color: var(--ue-cream);
}

/* ══════════════════
   ФИНАЛЬНЫЙ CTA
   ══════════════════ */
.mab-ue-cta {
  padding: 56px var(--ue-pad-x);   /* макет 6:7 */
  border-bottom: 0;                /* последняя секция — линии нет */
}
.mab-ue-cta__col { text-align: center; }
.mab-ue-cta__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ue-cream);
  font-weight: 400;
}
.mab-ue-cta__sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ue-muted);
}
.mab-ue-cta__btn { margin-top: 24px; }
.mab-ue-cta__phone {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ue-dim);
  text-decoration: none;
  transition: color .3s ease;
}
.mab-ue-cta__phone:hover { color: var(--ue-gold); text-decoration: none; }
.mab-ue-cta__teaser {
  margin-top: 34px;
  padding-top: 20px;
  border-top: var(--ue-hair-w) solid var(--ue-hair-c);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ue-ghost);
}

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

  .mab-ue-hero { padding: 52px var(--ue-pad-x) 48px; }
  .mab-ue-hero__jp    { font-size: 48px; }
  .mab-ue-hero__title { margin-top: 12px; font-size: 28px; }
  .mab-ue-hero__lead  { margin-top: 16px; max-width: 350px; }
  .mab-ue-hero__meta  { margin: 19px 0 21px; }

  .mab-ue-text__body { font-size: 14px; }
  .mab-ue-text--list .mab-ue-text__body { font-size: 13px; }

  .mab-ue-sets__tiles {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }
  .mab-ue-tile {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px;
  }
  .mab-ue-tile__jp { font-size: 22px; }
  .mab-ue-tile__body {
    flex: 1 1 auto;
    gap: 4px;
  }
  .mab-ue-tile__name { font-size: 14px; }

  .mab-ue-dinner__title  { margin-top: 16px; }
  .mab-ue-dinner__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }
  .mab-ue-metric { align-items: center; }

  .mab-ue-gallery__grid { margin-top: 20px; }
  .mab-ue-gallery__row  { grid-template-columns: repeat(2, 1fr); }
  /* В макете на мобильном ровно три снимка: одно крупное + два в ряд.
     Всё, что загружено сверх этого, на узких экранах не показываем —
     на десктопе эти фото остаются. */
  .mab-ue-gallery__row .mab-ue-photo:nth-child(n+3) { display: none; }
  .mab-ue-photo--lead   { height: 200px; }
  .mab-ue-gallery__row .mab-ue-photo { height: 130px; }

  .mab-ue-chef__row { gap: 14px; }
  .mab-ue-chef__ava { flex-basis: 60px; width: 60px; height: 60px; }
  .mab-ue-chef__quote { margin-top: 20px; padding-left: 14px; }

  .mab-ue-cta__btn .mab-ue-btn--solid { padding: 14px 40px; }
  .mab-ue-cta__teaser { margin-top: 30px; }
}

@media (max-width: 400px) {
  .mab-ue-hero__jp    { font-size: 42px; }
  .mab-ue-hero__title { font-size: 24px; }
  .mab-ue-dinner__chefs { font-size: 12px; }
}
