/* ============================================================
   YIAYIA — главная страница (перевёрстка прод-главной в теме)
   Источник: Elementor-экспорты (home/top-header/footer/popup) + revslider hero
   ============================================================ */

/* ---------- Шрифт Bion-Book (с прода) ---------- */
@font-face {
    font-family: 'Bion-Book';
    src: url('../../fonts/bion-book-webfont.woff2') format('woff2'),
         url('../../fonts/bion-book-webfont.woff') format('woff'),
         url('../../fonts/bion-book-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- Токены ---------- */
:root {
    --yia-terra:     #AC694F;  /* шапка / подвал / блок «Кухня» */
    --yia-terra-btn: #A86347;  /* кнопка «Забронировать стол» */
    --yia-hero-bg:   #AF694E;  /* подложка hero */
    --yia-blue:      #35567C;  /* кнопки, блок «О ресторане» */
    --yia-cream:     #E7CBA9;  /* кремовый логотип */
    --yia-white:     #ffffff;
    --yia-ink:       #2b2018;  /* тёмный текст на кремовом */
    --yia-font-head: 'Cormorant', Georgia, serif;
    --yia-font-body: 'Bion-Book', 'Montserrat', sans-serif;
}

/* ---------- Сброс под главную ---------- */
body.yia-front {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--yia-font-body);
    background: var(--yia-hero-bg) !important; /* без белых разрывов между секциями */
}
body.yia-front * { box-sizing: border-box; }
.yia-front img { max-width: 100%; height: auto; display: block; }
.yia-front a { text-decoration: none; }

/* ---------- Сбросы для хрома на всём сайте ---------- */
.yia-header *, .yia-popup *, .yia-footer * { box-sizing: border-box; }
.yia-header img, .yia-popup img, .yia-footer img { max-width: 100%; height: auto; display: block; }
.yia-header a, .yia-popup a, .yia-footer a { text-decoration: none; }
/* отступ под фикс-шапку на внутренних страницах (на главной hero сам компенсирует) */
body:not(.yia-front) { padding-top: 80px; }
@media (max-width: 900px) { body:not(.yia-front) { padding-top: 64px; } }

/* кнопка-пилюля (общая) */
.yia-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--yia-font-body);
    font-size: 12px; font-weight: 400; line-height: 1;
    color: #fff; background: var(--yia-blue);
    border: 0; border-radius: 90px; cursor: pointer;
    padding: 14px 26px; transition: opacity .2s, transform .2s;
}
.yia-pill:hover { opacity: .88; transform: translateY(-1px); }
.yia-pill svg, .yia-pill i { font-size: 12px; }

/* ============================================================
   ШАПКА (fixed, кремовая текстура)
   ============================================================ */
.yia-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    background: var(--yia-terra) url('../../img/yiayia/bgr_menu.jpg') center/cover no-repeat;
    animation: yiaFadeDown .8s ease both;
}
/* админ-бар WP не должен перекрывать шапку */
body.admin-bar .yia-header { top: 32px; }
body.admin-bar .yia-popup  { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .yia-header { top: 46px; }
    body.admin-bar .yia-popup  { top: 46px; }
}
.yia-header__in {
    max-width: 1310px; margin: 0 auto; padding: 0 24px;
    height: 80px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.yia-header__left  { display: flex; align-items: center; gap: 42px; justify-self: start; }
.yia-header__mid   { justify-self: center; }
.yia-header__right { display: flex; align-items: center; gap: 0; justify-self: end; }

/* бургер */
.yia-burger {
    width: 34px; height: 26px; position: relative; background: none; border: 0; cursor: pointer; padding: 0;
}
.yia-burger::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: transparent; transition: background .25s;
}
.yia-burger span {
    position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--yia-ink); border-radius: 2px;
    transition: .25s;
}
/* hover: терракотовый фон + светлые линии (как кнопка брони) */
.yia-burger:hover::before { background: var(--yia-terra-btn); }
.yia-burger:hover span { background: #fff; }
.yia-burger span:nth-child(1) { top: 2px; }
.yia-burger span:nth-child(2) { top: 11px; }
.yia-burger span:nth-child(3) { top: 20px; }

.yia-header__logo img { width: 140px; }

.yia-header__sched, .yia-header__phone {
    display: flex; align-items: center; gap: 9px;
    font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500;
    letter-spacing: .4px; color: var(--yia-ink);
}
.yia-header__sched { text-align: right; line-height: 15px; padding-right: 18px; align-items: flex-start; font-size: 12px; }
.yia-header__sched p { margin: 0; }
.yia-header__sched .yia-header__ico { margin-top: 1px; } /* иконка на одной линии с «График работы» */
.yia-header__phone { padding-left: 22px; border-left: 1px solid #8A8A8A; }
.yia-header__phone a {
    color: var(--yia-ink); white-space: nowrap;
    border: 1px solid #c79a82; border-radius: 90px; padding: 9px 18px;
    transition: background .2s;
}
.yia-header__phone a:hover { background: rgba(168,99,71,.20); } /* полупрозрачный терракот */
.yia-header__ico { display: inline-flex; color: var(--yia-ink); }
.yia-header__ico .yia-ico { display: block; }

.yia-header__burger-mob, .yia-header__phone-mob { display: none; }
.yia-header__phone-mob .yia-ico { width: 20px; height: 20px; }

/* вход в ЛК — иконка + подпись столбиком, без обводки */
.yia-header__user {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; margin-left: 20px; padding: 0;
    border: none; background: none; cursor: pointer;
    color: var(--yia-ink); text-decoration: none;
    transition: color .2s ease;
}
.yia-header__user .yia-ico { display: block; }
.yia-header__user__label {
    font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
    color: var(--yia-terra-btn); letter-spacing: .3px;
    max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.yia-header__user:hover .yia-header__user__label { color: var(--yia-terra); }

/* модалка входа — терракот-акцент вместо жёлтого (только yiayia) */
.nbc-login-modal { --nbc-primary: var(--yia-terra-btn); --nbc-primary-dark: #95583e; }
.nbc-login-modal .nbc-login-submit { color: #fff !important; }
/* ссылка «Хотите получить карту лояльности?» в модалке входа */
.nbc-login-modal .yia-loyalty-link {
    display: block; margin-top: 18px; text-align: center;
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
    color: #000; text-decoration: none; transition: color .2s ease;
}
.nbc-login-modal .yia-loyalty-link:hover { color: var(--yia-terra-btn); text-decoration: underline; }

/* ============================================================
   ПОПАП-МЕНЮ (фуллскрин оверлей)
   ============================================================ */
.yia-popup {
    position: fixed; inset: 0; z-index: 10000;
    background: #ECECEC;
    display: flex; flex-direction: column; align-items: center;
    padding: 40px 20px 60px; overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: scale(.35); transform-origin: center center;
    transition: opacity .3s ease, transform .45s cubic-bezier(.22,.7,.3,1), visibility .45s;
}
.yia-popup.is-open { opacity: 1; visibility: visible; transform: scale(1); }
.yia-popup__close {
    position: absolute; top: 26px; left: 34px; width: 36px; height: 36px;
    background: none; border: 0; cursor: pointer; color: #2b2b2b;
}
.yia-popup__close::before, .yia-popup__close::after {
    content: ''; position: absolute; left: 6px; top: 17px; width: 26px; height: 2.4px; background: #2b2b2b;
}
.yia-popup__close::before { transform: rotate(45deg); }
.yia-popup__close::after  { transform: rotate(-45deg); }
.yia-popup__logo { margin-top: 10px; text-align: center; }
.yia-popup__logo img { width: 200px; margin: 0 auto; }
.yia-popup__sub {
    display: inline-block; margin-top: 6px; padding: 3px 14px;
    border: 1px solid #c9b59f; border-radius: 4px;
    font-family: var(--yia-font-body); font-size: 11px; letter-spacing: 3px; color: #b08a6a; text-transform: lowercase;
}
.yia-popup__nav { margin: 26px 0 0; display: flex; flex-direction: column; align-items: center; gap: 17px; }
.yia-popup__nav a {
    position: relative;
    font-family: var(--yia-font-body); font-size: 17px; letter-spacing: 1px;
    color: var(--yia-blue); text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px;
    transition: color .2s;
}
/* анимированное подчёркивание при наведении (2px белое, slide слева направо) */
.yia-popup__nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.yia-popup__nav a:hover::after { transform: scaleX(1); }
/* единый цвет пунктов меню (перебиваем :visited/тему, иначе посещённые синие, новые тёмные) */
.yia-popup__nav > a,
.yia-popup__toggle,
.yia-popup__link,
.yia-popup__nav > a:visited,
.yia-popup__toggle:visited,
.yia-popup__link:visited { color: #1a1a1a !important; }
.yia-popup__nav a:hover,
.yia-popup__toggle:hover,
.yia-popup__link:hover { color: var(--yia-terra) !important; }
/* группа с подменю (МЕНЮ → PDF) */
.yia-popup__group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.yia-popup__toggle { cursor: pointer; }
.yia-popup__caret { display: inline-flex; align-items: center; transition: transform .25s ease; }
.yia-popup__caret svg { width: 22px; height: 22px; }
.yia-popup__group.is-open .yia-popup__caret { transform: rotate(180deg); }
.yia-popup__submenu { display: none; flex-direction: column; align-items: center; gap: 11px; }
.yia-popup__group.is-open .yia-popup__submenu { display: flex; }
.yia-popup__nav .yia-popup__submenu a {
    font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: #1a1a1a; opacity: .92;
}
.yia-popup__nav .yia-popup__submenu a:hover { color: var(--yia-terra-btn); opacity: 1; }
.yia-popup__btn { margin-top: 28px; }
.yia-popup__btn .yia-pill { background: var(--yia-terra-btn); padding: 16px 30px; }
.yia-popup__loc { margin-top: 26px; text-align: center; color: var(--yia-terra); }
.yia-popup__loc .yia-pin { display: flex; justify-content: center; }
.yia-popup__loc .yia-pin svg { display: block; }
.yia-popup__loc p {
    margin: 8px 0 0; font-family: var(--yia-font-body); font-size: 14px; color: #6b6b6b; line-height: 1.7;
}
.yia-popup__loc b { color: #444; }

/* ============================================================
   HERO
   ============================================================ */
.yia-hero {
    position: relative; min-height: 100vh; overflow: hidden;
    background: var(--yia-hero-bg);
    display: flex; align-items: center; justify-content: center;
    padding-top: 80px;
}
/* слайдшоу фото-блюд (смена мгновенная — происходит за закрытыми створками) */
.yia-hero__slides { position: absolute; inset: 0; z-index: 1; }
.yia-hero__slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0;
}
.yia-hero__slide.is-active { opacity: 1; }
/* лёгкое затемнение по краям, чтобы центр читался */
.yia-hero__veil {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: rgba(175,105,78,.30);
}
/* интро: цветы на терракоте — проявляются и держатся, исчезают за створкой (класс is-live от JS) */
.yia-hero__flowers {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: url('../../img/flower.jpg') center center / cover no-repeat;
    opacity: 0;
    animation: yiaHeroFlowersIn 1s ease 2.2s forwards;
}
.yia-hero.is-live .yia-hero__flowers { animation: none; opacity: 0; }

/* створки перехода: две терракотовые шторки съезжаются к центру и обратно */
.yia-hero__shutter {
    position: absolute; top: 0; bottom: 0; width: 50%; z-index: 3; pointer-events: none;
    background: var(--yia-hero-bg);
    /* открытие — быстрый разъезд (ускорение) */
    transition: transform .45s cubic-bezier(.55,0,.85,.35);
}
.yia-hero__shutter--l { left: 0;  transform: translateX(-102%); }
.yia-hero__shutter--r { right: 0; transform: translateX(102%); }
/* закрытие — быстрый съезд с замедлением у центра */
.yia-hero.is-closing .yia-hero__shutter {
    transform: translateX(0);
    transition: transform .52s cubic-bezier(.2,.75,.35,1);
}

/* центральная сцена: овал + лого + ангелы */
.yia-hero__stage {
    position: relative; z-index: 4;
    width: 520px; height: 660px;
}
.yia-hero__oval {
    position: absolute; left: 50%; top: 30px; transform: translateX(-50%);
    width: 442px; height: 572px; z-index: 1;
    animation: yiaFadeIn .8s ease both 5s;
}
.yia-hero__logo {
    position: absolute; left: 50%; top: 240px; transform: translateX(-50%);
    width: 252px; z-index: 4;
    animation: yiaFadeIn .9s ease both .3s;
}
.yia-hero__fly {
    position: absolute; left: 50%; top: 100px; transform: translateX(-58%);
    width: 232px; z-index: 5;
    animation: yiaFadeInRight 1s ease both 1s;
}
.yia-hero__bird {
    position: absolute; left: calc(56% - 30px); top: 70px; width: 50px; z-index: 5;
    animation: yiaBirdIn .9s ease both .7s;
}
.yia-hero__angel-l, .yia-hero__angel-r {
    position: absolute; bottom: 90px; z-index: 6;
    animation: yiaFadeInUp .9s ease both 1.3s;
}
.yia-hero__angel-l { left: 50%; width: 132px; transform: translateX(-142%); }
.yia-hero__angel-r { left: 50%; width: 118px; transform: translateX(48%); animation-delay: 1.5s; }

/* бейдж Яндекс-рейтинг (низ-лево) */
.yia-hero__rating {
    position: absolute; left: 18px; bottom: 18px; z-index: 7;
    background: rgba(255,255,255,.92); border-radius: 8px; padding: 6px 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18); line-height: 0;
}
.yia-hero__rating iframe { border: 0; display: block; }

/* бейдж «Яровой кофе» (низ-право) */
.yia-hero__coffee {
    position: absolute; right: 18px; bottom: 18px; z-index: 7;
    width: 104px; height: 104px; border-radius: 50%;
    background: #efe7d6; box-shadow: 0 4px 14px rgba(0,0,0,.18);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #AA6B3C; padding: 9px;
}
.yia-hero__coffee img { width: 30px; margin: 0 auto 3px; }
.yia-coffee-title { font-family: var(--yia-font-body); font-size: 8.5px; line-height: 1.15; color: #AA6B3C; }
.yia-coffee-brand { font-family: var(--yia-font-body); font-size: 8.5px; font-weight: 700; line-height: 1.2; color: #AA6B3C; margin-top: 2px; }

/* ============================================================
   БЛОК «КУХНЯ»
   ============================================================ */
.yia-kitchen {
    position: relative;
    background: #fff url('../../img/yiayia/bgr-1block.jpg') bottom center/cover no-repeat;
    padding: 60px 0 30px;
}
.yia-kitchen::before {
    content: ''; position: absolute; inset: 0; background: #C76113; opacity: .25; pointer-events: none;
}
.yia-box {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
}
.yia-kitchen .yia-box { background: rgba(172,105,79,.89); margin: 150px auto 140px; }
.yia-kitchen__text { padding: 50px 50px 50px 70px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.yia-kitchen__text h2 {
    margin: 0 0 22px; font-family: var(--yia-font-head); font-weight: 300; font-size: 50px;
    line-height: 1.3; color: #fff; text-transform: uppercase;
}
.yia-kitchen__text p {
    margin: 0 0 30px; font-family: var(--yia-font-body); font-weight: 400; font-size: 16px;
    letter-spacing: -.3px; line-height: 1.45; color: #fff;
}
.yia-kitchen__btn .yia-pill { background: var(--yia-blue); }

/* блобы-блюда (правая колонка) */
.yia-blobs { position: relative; min-height: 460px; }
.yia-blob {
    position: absolute; width: 50%; aspect-ratio: 1/1; object-fit: cover;
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    animation: yiaFadeInRight 1s ease both;
}
.yia-blob--1 { top: 30px;  left: 28%; border-radius: 62% 38% 54% 46% / 47% 58% 42% 53%; z-index: 3; animation-delay: .2s; }
.yia-blob--2 { top: 165px; left: 50%; border-radius: 45% 55% 39% 61% / 57% 43% 57% 43%; z-index: 2; animation-delay: .4s; }
.yia-blob--3 { top: 250px; left: 18%; border-radius: 57% 43% 60% 40% / 42% 56% 44% 58%; z-index: 1; animation-delay: .6s; }

/* ============================================================
   БЛОК «О РЕСТОРАНЕ»
   ============================================================ */
.yia-about {
    position: relative;
    background: #fff url('../../img/yiayia/bgr-locat.jpg') center center/cover no-repeat;
    padding: 140px 0;            /* домы сверху и снизу — синий блок по центру вертикали */
}
.yia-about::before {
    content: ''; position: absolute; inset: 0; background: #C76113; opacity: .25; pointer-events: none;
}
.yia-about__box1 { background: rgba(53,86,124,.86); margin: 0 auto; align-items: stretch; }
/* водяной знак-логотип (фиксированный = параллакс при скролле блока) */
.yia-about__box1, .yia-about__box2 { position: relative; overflow: hidden; }
.yia-about__box1::before, .yia-about__box2::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url('../../img/yiayia/logo-slid.png') -122px -14px / 20% auto repeat;
    background-attachment: fixed; opacity: .09;
}
.yia-about__box1 > *, .yia-about__box2 > * { position: relative; z-index: 1; }
.yia-about__video { padding: 50px 50px 50px 70px; display: flex; align-items: center; }
.yia-about__video video { width: 100%; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.yia-about__txt { padding: 50px 50px 50px 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.yia-about__txt h2 {
    margin: 0 0 18px; font-family: var(--yia-font-head); font-weight: 300; font-size: 51px; line-height: 1.2;
    color: #fff; text-transform: uppercase;
}
.yia-about__txt p {
    margin: 0 0 26px; font-family: var(--yia-font-head); font-weight: 300; font-size: 22px; line-height: 1.5; color: #fff;
}
.yia-about__txt .yia-pill {
    background: transparent; border: 1px solid #fff; font-size: 14px; font-weight: 500; padding: 13px 30px;
}
/* подблок «Идеальное утро» */
.yia-about__box2 {
    position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
    background: rgba(53,86,124,.86); padding: 10px 70px 60px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.yia-about__box2 h3 {
    margin: 30px 0 14px; font-family: var(--yia-font-head); font-weight: 300; font-size: 34px; line-height: 1.3;
    color: #fff; text-transform: uppercase;
}
.yia-about__box2 p {
    margin: 0; max-width: 790px; font-family: var(--yia-font-body); font-weight: 400; font-size: 16px;
    line-height: 1.5; color: #fff; text-align: left;
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.yia-footer { position: relative; background: var(--yia-terra); color: #fff; }
.yia-footer__top {
    max-width: 1001px; margin: 0 auto; padding: 60px 20px 0;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
}
.yia-footer__angel-l img { width: 150px; }
.yia-footer__angel-r { justify-self: end; }
.yia-footer__angel-r img { width: 132px; }
.yia-footer__contacts { text-align: center; }
.yia-footer__contacts .addr {
    font-family: 'Cormorant Infant', Georgia, serif; font-size: 23px; font-weight: 400; line-height: 1.6; color: #fff;
}
.yia-footer__contacts .addr a { color: #fff; }
.yia-footer__contacts .yia-pill { margin-top: 16px; }
.yia-footer__bottom { max-width: 900px; margin: 0 auto; padding: 30px 70px 90px; text-align: center; }
.yia-footer__map { width: 100%; margin: 36px 0 0; padding: 0 10%; }
.yia-footer__mapcanvas { width: 100%; height: 420px; border: 0; display: block; overflow: hidden; }
.yia-footer__mapcanvas ymaps { border-radius: 0; }

/* --- Попап «Вакансии» --- */
.yia-vac { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; }
.yia-vac.is-open { display: flex; }
.yia-vac__overlay { position: absolute; inset: 0; background: rgba(20, 12, 8, .72); }
.yia-vac__box {
    position: relative; z-index: 1; width: 100%; max-width: 520px;
    background: #fff; border-radius: 18px; padding: 46px 50px 42px; text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    animation: yiaVacIn .25s ease both;
}
@keyframes yiaVacIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.yia-vac__close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
    border: 0; background: transparent; color: #1c1c1c; cursor: pointer; padding: 6px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    transition: background .2s ease;
}
.yia-vac__close:hover { background: rgba(0, 0, 0, .06); }
.yia-vac__close svg { width: 100%; height: 100%; }
.yia-vac__title {
    margin: 0 0 18px; font-family: var(--yia-font-body) !important; font-weight: 500;
    font-size: 28px; letter-spacing: .5px; color: #2b2b38;
}
.yia-vac__text {
    margin: 0 0 26px; font-family: var(--yia-font-body) !important;
    font-size: 16px; line-height: 1.55; color: var(--yia-terra);
}
.yia-vac__phone {
    display: inline-block; font-family: var(--yia-font-body) !important; font-weight: 600;
    font-size: 26px; letter-spacing: .5px; color: var(--yia-terra); text-decoration: none;
    white-space: nowrap; transition: opacity .2s ease;
}
.yia-vac__phone:hover { opacity: .8; }
.yia-vac__name {
    margin-top: 14px; font-family: var(--yia-font-body) !important;
    font-size: 14px; letter-spacing: 2px; color: #3a3a48;
}
@media (max-width: 768px) {
    .yia-vac__box { padding: 40px 24px 34px; border-radius: 16px; }
    .yia-vac__title { font-size: 26px; }
    .yia-vac__text { font-size: 15px; }
    .yia-vac__phone { font-size: 23px; }
}
.yia-footer__req {
    font-family: var(--yia-font-body); font-size: 14px; font-weight: 400; line-height: 24px; letter-spacing: -.9px; color: #fff;
}
.yia-footer__req p { margin: 0; }
.yia-footer__links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   Анимации
   ============================================================ */
@keyframes yiaFadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes yiaFadeDown    { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes yiaFadeInUp    { from { opacity: 0; transform: translateX(var(--tx, 0)) translateY(40px); } }
@keyframes yiaFadeInLeft  { from { opacity: 0; transform: translateX(-40px); } }
@keyframes yiaFadeInRight { from { opacity: 0; transform: translateX(40px); } }
@keyframes yiaBirdIn      { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes yiaHeroFlowersIn { from { opacity: 0; } to { opacity: 1; } }

/* angel-l/r используют translateX для позиции — анимируем через отдельные кадры */
.yia-hero__angel-l { animation-name: yiaAngelL; }
.yia-hero__angel-r { animation-name: yiaAngelR; }
@keyframes yiaAngelL { from { opacity: 0; transform: translateX(-142%) translateY(40px); } to { opacity: 1; transform: translateX(-142%); } }
@keyframes yiaAngelR { from { opacity: 0; transform: translateX(48%)  translateY(40px); } to { opacity: 1; transform: translateX(48%); } }
.yia-hero__fly { animation-name: yiaFlyIn; }
@keyframes yiaFlyIn { from { opacity: 0; transform: translateX(-58%) translateX(40px); } to { opacity: 1; transform: translateX(-58%); } }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
    .yia-header__sched p br + br { display: none; }
}
@media (max-width: 900px) {
    .yia-header__in { grid-template-columns: auto 1fr auto; height: 64px; }
    .yia-header__left .yia-pill, .yia-header__right .yia-header__sched, .yia-header__right .yia-header__phone { display: none; }
    .yia-header__phone-mob { display: inline-flex; color: var(--yia-ink); font-size: 20px; justify-self: end; }
    .yia-header__user { margin-left: 12px; }
    .yia-header__user__label { font-size: 10px; }
    .yia-header__logo img { width: 110px; }

    .yia-hero__stage { transform: scale(.62); }
    .yia-box { grid-template-columns: 1fr; }
    .yia-kitchen .yia-box { margin: 60px auto; }
    .yia-kitchen__text { padding: 40px 24px; }
    .yia-kitchen__text h2 { font-size: 30px; }
    .yia-blobs { min-height: 380px; margin-bottom: 20px; }
    .yia-about__box1 { margin-top: 60px; }
    .yia-about__video { padding: 30px 24px; }
    .yia-about__txt { padding: 0 24px 40px; }
    .yia-about__txt h2 { font-size: 30px; }
    .yia-about__box2 { margin-bottom: 60px; padding: 10px 24px 40px; }
    .yia-footer__top { grid-template-columns: 1fr; }
    .yia-footer__angel-l, .yia-footer__angel-r { display: none; }
    .yia-footer__bottom { padding: 24px 16px 60px; }
}

/* на тач/узких экранах фикс-фон ломается — обычный скролл-фон */
@media (max-width: 1024px) {
    .yia-about__box1::before, .yia-about__box2::before { background-attachment: scroll; }
    .yia-footer__map { padding: 0; }
}

/* ============================================================
   Перебивка глобального `font-family: Montserrat !important`
   из iiko/css/nbc-overrides.css (ядро Нахлебника).
   Селекторы специфичнее → наши шрифты выигрывают.
   ============================================================ */
.yia-kitchen__text h2,
.yia-about__txt h2,
.yia-about__txt p,
.yia-about__box2 h3 { font-family: var(--yia-font-head) !important; }

/* в блоке «О ресторане» текст — капсом (как на проде) */
.yia-about__txt p, .yia-about__box2 p { text-transform: uppercase; }

.yia-kitchen__text p,
.yia-about__box2 p,
.yia-footer__req, .yia-footer__req p,
.yia-popup__nav a, .yia-popup__sub, .yia-popup__loc p { font-family: var(--yia-font-body) !important; }

.yia-footer__contacts .addr,
.yia-footer__contacts .addr a { font-family: 'Cormorant Infant', Georgia, serif !important; }

.yia-header__sched, .yia-header__sched p,
.yia-header__phone, .yia-header__phone a { font-family: 'Montserrat', sans-serif !important; }

/* кнопки-пилюли: шрифт Bion-Book + всегда белый текст (в т.ч. поверх nbc) */
.yia-pill, .yia-pill *,
.yia-pill:link, .yia-pill:visited, .yia-pill:hover, .yia-pill:focus {
    font-family: var(--yia-font-body) !important;
    color: #fff !important;
}

/* ============================================================
   КОНТЕНТ-СТРАНИЦЫ: Кофейня / Локация / О нас
   ============================================================ */
.yia-page-main { width: 100%; }
/* border-box на контент-страницах (на главной даёт body.yia-front *);
   без него padding box2 «Идеальное утро» добавляется сверх max-width → разная ширина */
.yia-page-main, .yia-page-main * { box-sizing: border-box; }

/* --- О нас (отдельная страница, переиспользует .yia-about) --- */
.yia-page-about { padding-top: 70px; }

/* --- ЛОКАЦИЯ (светлая винтажная панель, тёмный текст — как на боевом) --- */
.yia-locat__panel {
    position: relative; max-width: 1140px; width: 100%; margin: 0 auto;
    background: url('../../img/yiayia/bgr-locat3.jpg') center / cover no-repeat;
    border-radius: 10px; overflow: hidden; padding: 56px 80px 64px;
}
.yia-locat__panel::before { content: ''; position: absolute; inset: 0; background: rgba(243,235,221,.80); z-index: 0; }
.yia-locat__text { position: relative; z-index: 1; }
.yia-locat__text p {
    margin: 0 0 16px; font-family: var(--yia-font-body) !important; font-size: 15px; line-height: 1.7; color: #303030;
}

/* --- КОФЕЙНЯ --- */
.yia-coffee {
    background-color: var(--yia-terra); background-size: cover; background-position: center; background-attachment: fixed;
    padding: 60px 20px 80px; display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.yia-coffee__panel {
    max-width: 1138px; width: 100%;
    background: rgba(14,42,97,.84); border-radius: 25px; padding: 50px 40px;
    display: grid; grid-template-columns: 32% 1fr; gap: 26px; align-items: center;
}
.yia-coffee__logo { display: flex; justify-content: center; }
.yia-coffee__logo img { width: 280px; max-width: 100%; }
.yia-coffee__founder img { width: 100%; border-radius: 8px; display: block; }
.yia-coffee__col {
    color: #fff; padding-left: 56px; border-left: 1px solid #555891;
    display: flex; flex-direction: column; align-items: flex-start;
}
.yia-coffee__col p { font-family: var(--yia-font-body) !important; color: #fff; margin: 0 0 12px; }
.yia-coffee__panel:nth-of-type(1) .yia-coffee__col p { font-size: 17px; line-height: 1.85; }
.yia-coffee__bio p { font-size: 14px; line-height: 1.6; }
.yia-coffee__btn { background: #3060CA !important; align-self: center; margin-top: 16px; }
.yia-coffee__gallery {
    max-width: 1140px; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.yia-coffee__tile { border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; display: block; }
.yia-coffee__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.yia-coffee__tile:hover img { transform: scale(1.06); }

/* --- Общая подложка: терракот + цветы (Фотоотчёты / Галерея / Локация) --- */
.yia-pagebg {
    background: var(--yia-terra) url('../../img/yiayia/flower.png') center center / cover no-repeat fixed;
    padding: 0 0 80px; display: flex; flex-direction: column; align-items: center;
}
/* беж-полоса сверху (только за блобом-заголовком, упирается в шапку) */
.yia-pagehead {
    width: 100%; display: flex; justify-content: center; margin-bottom: 46px;
    background: #fff url('../../img/yiayia/bejev.jpg') center top / cover no-repeat fixed;
    padding: 0 20px 26px;
}
/* блоб-заголовок (01-title.png), текст по центру кляксы */
.yia-bigtitle {
    margin: 0; min-width: 300px; padding: 44px 70px 74px;
    background: url('../../img/yiayia/01-title.png?v=3') center bottom / 300px auto no-repeat;
    font-family: var(--yia-font-head) !important; font-weight: 300; font-size: 28px; letter-spacing: 2px;
    line-height: 1; color: #D8C8B7; text-transform: uppercase; text-align: center;
}
.yia-pagewrap { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.yia-pagebg__empty {
    font-family: var(--yia-font-body) !important; color: #f3e9dd; font-size: 16px; text-align: center; margin: 20px 0 0;
}

/* --- Легальные страницы: Политика / Оферта / Согласие --- */
.yia-legal__panel {
    max-width: 920px; width: 100%; margin: 0 auto;
    background: rgba(247, 240, 228, .96); border-radius: 14px;
    padding: 48px 56px 56px; color: #2c2c2c;
    font-family: var(--yia-font-body) !important; font-size: 15px; line-height: 1.7;
    text-align: left;
}
.yia-legal__panel p { margin: 0 0 14px; }
.yia-legal__panel a { color: var(--yia-terra); text-decoration: underline; word-break: break-word; }
.yia-legal__panel h1, .yia-legal__panel h2, .yia-legal__panel h3 {
    font-family: var(--yia-font-head) !important; font-weight: 600; color: #1f1f1f;
    margin: 26px 0 12px; line-height: 1.3;
}
.yia-legal__panel h1 { font-size: 20px; }
.yia-legal__panel h2 { font-size: 18px; }
.yia-legal__panel h3 { font-size: 16px; }
.yia-legal__panel b, .yia-legal__panel strong { font-weight: 600; }
.yia-legal__panel ul, .yia-legal__panel ol { margin: 0 0 14px; padding-left: 22px; }
.yia-legal__panel li { margin: 0 0 6px; }
.yia-legal__panel table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.yia-legal__panel td, .yia-legal__panel th {
    border: 1px solid #cdbfa6; padding: 8px 12px; vertical-align: top; text-align: left;
}
.yia-legal__panel td p, .yia-legal__panel th p { margin: 0; }
@media (max-width: 768px) {
    .yia-legal__panel { padding: 30px 20px 36px; border-radius: 12px; font-size: 14px; }
    .yia-legal__panel table { font-size: 12.5px; }
    .yia-legal__panel td, .yia-legal__panel th { padding: 6px 8px; }
}

/* --- Завтраки / «Идеальное утро» (морнинг-тизер, перенос с прода) --- */
.yia-morning { background: #E6DBC9; padding: 30px 20px 55px; display: flex; justify-content: center; }
.yia-morning__panel { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; }
.yia-morning__bg { width: 100%; height: auto; display: block; }
.yia-morning__bg--m { display: none; }
.yia-morning__text {
    position: absolute; top: 33%; left: 50%; transform: translateX(-50%); width: 62%;
    font-family: var(--yia-font-body) !important; color: #fff;
    font-size: clamp(11px, 1.18vw, 14px); line-height: 1.55; text-align: left;
}
.yia-morning__text p { margin: 0 0 13px; }
.yia-morning__text p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
    .yia-morning { padding: 16px 12px 30px; }
    .yia-morning__panel { overflow: hidden; background: #2a3a5f; border-radius: 4px; }
    .yia-morning__bg--d { display: none; }
    .yia-morning__bg--m {
        display: block; position: absolute; inset: 0;
        width: 100%; height: 100%; object-fit: cover; object-position: center top;
    }
    /* текст в обычном потоке задаёт высоту панели; картинка cover её закрывает синим */
    .yia-morning__text {
        position: relative; z-index: 1; top: auto; left: auto; transform: none; width: auto;
        padding: 132px 26px 44px; font-size: 13px; line-height: 1.45;
    }
    .yia-morning__text p { margin: 0 0 11px; }
}

/* ============================================================
   РАДИО + кастомный аудио-плеер
   ============================================================ */
.yia-radio {
    position: relative;
    background: var(--yia-terra) url('../../img/yiayia/bgr-1block.jpg') bottom center / cover no-repeat;
    padding: 0 20px 70px;
}
.yia-radio::before {
    content: ''; position: absolute; inset: 0; background: #C76113; opacity: .25; pointer-events: none;
}
.yia-radio__inner {
    position: relative; z-index: 2;
    max-width: 1100px; margin: 0 auto;
    background: rgba(172,90,58,.82);
    padding: 0 40px 70px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.yia-radio__title { color: #D8C8B7; }
.yia-radio__sub {
    font-family: var(--yia-font-body) !important; font-size: 16px; color: #E0D6C6;
    margin: 24px 0 0; letter-spacing: .3px;
}
.yia-player {
    position: relative; width: 100%; max-width: 720px; margin: 40px auto 0;
    background: #2a2c58 url('../../img/yiayia/radio-bg.jpg') center / cover no-repeat;
    border-radius: 22px; padding: 40px 46px 34px; color: #fff;
    box-shadow: 0 16px 44px rgba(0,0,0,.28);
}
.yia-player__logo { width: 168px; margin: 0 auto; display: block; }
.yia-player__name {
    text-align: center; font-family: var(--yia-font-body) !important; font-size: 18px; font-weight: 500;
    color: #fff; margin: 20px 0 18px;
}
.yia-player__controls { display: flex; align-items: center; gap: 14px; }
.yia-player__play {
    flex: 0 0 auto; width: 58px; height: 58px; border: 0; border-radius: 50%;
    background: #fff; color: #AC5A3A; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s ease;
    margin-left: -28px;
}
.yia-player__play:hover { transform: scale(1.06); }
.yia-player__play svg { width: 26px; height: 26px; }
/* переключение иконок play/pause и vol/mute — классами (атрибут hidden перебивается темой) */
.yia-ic-pause, .yia-ic-mute { display: none; }
.yia-player.is-playing .yia-ic-play { display: none; }
.yia-player.is-playing .yia-ic-pause { display: block; }
.yia-player.is-muted .yia-ic-vol { display: none; }
.yia-player.is-muted .yia-ic-mute { display: block; }
.yia-player__cur, .yia-player__dur {
    font-family: var(--yia-font-body) !important; font-size: 13px; color: #F1E1CD; flex: 0 0 auto;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.yia-player__seek {
    flex: 1 1 auto; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22);
    position: relative; cursor: pointer;
}
.yia-player__seek-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; border-radius: 3px; }
.yia-player__mute {
    flex: 0 0 auto; width: 30px; height: 30px; border: 0; background: transparent; color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.yia-player__mute svg { width: 24px; height: 24px; }
.yia-player__vol { flex: 0 0 84px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); position: relative; cursor: pointer; }
.yia-player__vol-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 70%; background: #B8B8B8; border-radius: 3px; }
.yia-player__audio { display: none; }
@media (max-width: 768px) {
    .yia-radio__inner { padding: 0 16px 50px; }
    .yia-player { padding: 30px 18px 28px; border-radius: 18px; max-width: 460px; }
    .yia-player__logo { width: 132px; }
    .yia-player__controls { flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
    .yia-player__play { margin-left: 0; width: 50px; height: 50px; order: 1; }
    .yia-player__cur { order: 2; } .yia-player__seek { order: 3; flex: 1 1 120px; }
    .yia-player__dur { order: 4; } .yia-player__mute { order: 5; }
    .yia-player__vol { order: 6; flex-basis: 70px; }
}

/* --- Фотоотчёты: сетка карточек --- */
.yia-rep-grid {
    width: 100%; max-width: 1140px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.yia-rep-card {
    display: flex; flex-direction: column; background: #fffaf3; border-radius: 20px; overflow: hidden;
    text-decoration: none; box-shadow: 0 8px 26px rgba(60,30,15,.18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.yia-rep-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(60,30,15,.26); }
.yia-rep-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #e9ddca; }
.yia-rep-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.yia-rep-card:hover .yia-rep-card__img img { transform: scale(1.05); }
.yia-rep-card__noimg { display: block; width: 100%; height: 100%; }
.yia-rep-card__meta { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.yia-rep-card__date { font-family: var(--yia-font-body) !important; font-size: 11px; color: #a98e74; letter-spacing: .5px; }
.yia-rep-card__title {
    font-family: var(--yia-font-body) !important; font-size: 16px; font-weight: 600; line-height: 1.35; color: #3a2a1e;
}
.yia-rep-card__more {
    margin-top: 6px; font-family: var(--yia-font-body) !important; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .6px; color: var(--yia-terra-btn);
}
.yia-rep-card__more::after { content: ' →'; }

/* --- Одиночный фотоотчёт: masonry (база — .nbc-gallery) --- */
.yia-report .nbc-gallery { max-width: 1140px; margin: 0 auto; width: 100%; }
.yia-masonry.nbc-gallery { column-gap: 14px; }
.yia-masonry .nbc-gallery-item { margin-bottom: 14px; border-radius: 16px; box-shadow: 0 6px 20px rgba(60,30,15,.18); }

/* --- Галерея: ровная сетка с кадрированными плитками (как на боевом) --- */
.yia-grid.nbc-gallery {
    column-count: initial !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    max-width: 1140px; margin: 0 auto; width: 100%;
}
.yia-grid .nbc-gallery-item {
    margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3/2;
    box-shadow: 0 6px 20px rgba(60,30,15,.18);
}
.yia-grid .nbc-gallery-item a { display: block; width: 100%; height: 100%; }
.yia-grid .nbc-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.yia-grid .nbc-gallery-item:hover img { transform: scale(1.05); }

/* --- Одиночный фотоотчёт --- */
.yia-report { background: var(--yia-terra); padding: 50px 20px 80px; }
.yia-report__in { max-width: 1140px; margin: 0 auto; }
.yia-report__back {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--yia-font-body) !important; font-size: 13px; font-weight: 500;
    color: #E4D2C4; text-decoration: none; padding: 9px 22px;
    border: 1px solid #E4D2C4; border-radius: 30px; transition: background .25s ease, color .25s ease;
}
.yia-report__back:hover { background: #E4D2C4; color: #885434; }
.yia-report__title {
    font-family: var(--yia-font-body) !important; font-weight: 400; font-size: 36px;
    color: #E4D2C4; margin: 18px 0 30px; line-height: 1.2;
}

@media (max-width: 900px) {
    .yia-locat__panel { padding: 34px 24px 44px; }
    .yia-coffee__panel { grid-template-columns: 1fr; padding: 30px 22px; }
    .yia-coffee__col { padding-left: 0; border-left: 0; align-items: center; text-align: center; }
    .yia-coffee__gallery { grid-template-columns: repeat(2, 1fr); }
    .yia-page-about { padding-top: 20px; }
    .yia-bigtitle { font-size: 26px; padding: 35px 50px 63px; background-size: 250px auto; }
    .yia-rep-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .yia-rep-card__meta { padding: 12px; }
    .yia-rep-card__title { font-size: 14px; }
    .yia-report__title { font-size: 26px; }
    .yia-grid.nbc-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .yia-rep-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ВИТРИНА «ДОСТАВКА» + КОРЗИНА — перекраска ядра под бренд
   (только цвета/шрифты: кнопки терракот, фон светлый беж)
   yia-shop = каталог И корзина; yia-deliver = только каталог
   ============================================================ */
body.yia-shop {
    /* фон витрины и оформления заказа — узор bgrn_new.jpg (фиксированный),
       поверх — полупрозрачная бежевая заливка, чтобы текстура была бледнее */
    background-color: #cdbfa6 !important;
    background-image: linear-gradient(rgba(225,213,191,.55), rgba(225,213,191,.55)), url('../../img/bgrn_new.jpg') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    /* переопределяем переменные ядра (наследуются в каталог/корзину/модалку) */
    --nbc-primary:      #d8a98f;   /* мягкий терракот для hover-подсветок */
    --nbc-primary-dark: #A86347;   /* акцент: фокус полей, точка модификатора */
    --nbc-text:         #3a2a1e;
    --nbc-text-light:   #8a7560;
    --nbc-bg:           #fffaf3;    /* тёплый белый: нав, корзина, модалка */
    --nbc-bg-light:     #f1e8da;    /* беж: подложки фото/кнопок */
    --nbc-bg-warm:      #f6ecdc;    /* беж: блок «Сумма заказа» */
    --nbc-border:       #e7dcc9;
}

/* шрифт витрины везде — Bion-Book (перебиваем Montserrat !important из nbc-overrides) */
body.yia-shop .yia-page-main,
body.yia-shop .yia-page-main * { font-family: var(--yia-font-body) !important; }

/* фирменный синий для заголовков категорий, названий блюд и таб-меню */
body.yia-shop .nbc-cat-title,
body.yia-shop .nbc-product-name,
body.yia-shop .nbc-modal-name,
body.yia-shop .nbc-nav-tab { color: #2A3386 !important; }

/* таб-меню — пилюля (только нав, НЕ названия блюд) */
body.yia-shop .nbc-nav-tab {
    border-bottom: none !important;          /* убираем подчёркивание */
    border-radius: 999px;
    margin: 9px 4px;
    padding: 0 18px;
    display: inline-flex; align-items: center;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}
body.yia-shop .nbc-nav-tab:hover { background: rgba(42,51,134,.10); }
body.yia-shop .nbc-nav-tab.active {
    background: #2A3386 !important;
    color: #E6DBC9 !important;               /* бежевый текст на navi */
    border-bottom: none !important;
}

/* прелоадер ядра — лого Нахлебника, прячем */
body.yia-shop .nbc-preloader { display: none !important; }

/* кнопки витрины: по умолчанию терракот+белый, наведение — беж+тёмный */
body.yia-shop .nbc-cart-checkout-btn,
body.yia-shop .nbc-modal-add-btn,
body.yia-shop .nbc-checkout-btn,
body.yia-shop .nbc-promo-apply,
body.yia-shop .nbc-back-to-menu {
    background: var(--yia-terra-btn) !important; color: #fff !important;
}
body.yia-shop .nbc-cart-checkout-btn:hover,
body.yia-shop .nbc-modal-add-btn:hover,
body.yia-shop .nbc-checkout-btn:hover,
body.yia-shop .nbc-promo-apply:hover,
body.yia-shop .nbc-back-to-menu:hover { background: var(--nbc-bg-light) !important; color: var(--nbc-text) !important; }

/* карточный «+» на фото — терракотовый фон + белый символ, наведение темнее */
body.yia-shop .nbc-img-add-btn {
    background: var(--yia-terra-btn) !important; color: #fff !important;
}
body.yia-shop .nbc-img-add-btn:hover {
    background: #95583e !important; color: #fff !important;
}

/* КБЖУ: по умолчанию залит беж, наведение — терракот+белый */
body.yia-shop .nbc-kbzhu-btn { background: var(--nbc-border) !important; color: var(--nbc-text) !important; }
body.yia-shop .nbc-kbzhu-btn:hover { background: var(--yia-terra-btn) !important; color: #fff !important; }

/* выбранный модификатор — терракотовый тинт (был жёлтый) */
body.yia-shop .nbc-mod-item.selected { background: rgba(168,99,71,.14) !important; }

/* плавающая моб-корзина — терракот (был оранжевый) */
body.yia-shop .nbc-mobile-cart-btn { background: var(--yia-terra-btn) !important; }
body.yia-shop .nbc-mobile-cart-btn,
body.yia-shop .nbc-mobile-cart-sum { color: #fff !important; }
body.yia-shop .nbc-mobile-cart-btn svg { stroke: #fff !important; }

/* кнопки кол-ва «+»: плоские по умолчанию (как «−», не «активные»),
   терракот только при наведении — каталог, корзина, модалка, приборы */
body.yia-shop .nbc-counter-plus,
body.yia-shop .nbc-cart-item-plus,
body.yia-shop .nbc-ci-plus,
body.yia-shop .nbc-cutlery-plus,
body.yia-shop .nbc-cutlery-popup-plus,
body.yia-shop #nbcModalQtyPlus {
    background: transparent !important; color: var(--nbc-text) !important;
}
body.yia-shop .nbc-counter-plus:hover,
body.yia-shop .nbc-cart-item-plus:hover,
body.yia-shop .nbc-ci-plus:hover,
body.yia-shop .nbc-cutlery-plus:hover,
body.yia-shop .nbc-cutlery-popup-plus:hover,
body.yia-shop #nbcModalQtyPlus:hover {
    background: var(--yia-terra-btn) !important; color: #fff !important;
}

/* оформление заказа: поля адреса — белый фон (просвечивал узор страницы);
   три ровные колонки на ширину блока (было repeat(4,1fr) → «Этаж» вылезал) */
body.yia-shop .nbc-address-main,
body.yia-shop .nbc-addr-field { background: #fff !important; }
body.yia-shop .nbc-address-extra { grid-template-columns: repeat(3, 1fr) !important; }
body.yia-shop .nbc-addr-field { box-sizing: border-box; }

/* «Рекомендуем к заказу»: кнопки — терракот, скруглённые, белый «+» */
body.yia-shop .nbc-rec-add {
    background: var(--yia-terra-btn) !important; color: #fff !important;
    border: 1px solid var(--yia-terra-btn) !important; border-radius: 999px !important;
}
body.yia-shop .nbc-rec-add:hover { background: #95583e !important; border-color: #95583e !important; color: #fff !important; }

/* ссылки «У меня есть промокод / сертификат / карта» — терракот вместо золотого */
body.yia-shop .nbc-promo-toggle { color: var(--yia-terra-btn) !important; }
body.yia-shop .nbc-promo-toggle:hover { color: #95583e !important; }

/* ── Модалка товара ── */
/* шрифты названия / цены / кнопок кол-ва и КБЖУ-цифр на 1px меньше */
body.yia-shop .nbc-modal-name      { font-size: 25px !important; }
body.yia-shop .nbc-modal-price,
body.yia-shop .nbc-modal-price *    { font-size: 27px !important; font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important; } /* жирно (Bion-Book без жирного) */
body.yia-shop .nbc-modal-qty-btn   { font-size: 19px !important; }
body.yia-shop .nbc-modal-qty-val   { font-size: 15px !important; }
body.yia-shop .nbc-modal-kbzhu .nbc-kn b { font-size: 17px !important; }
/* граммы (data-weight) — под названием, а не справа */
body.yia-shop .nbc-modal-name::after { display: block; margin-left: 0; margin-top: 6px; }
/* кнопка закрытия — терракотовый фон */
body.yia-shop .nbc-modal-close { background: var(--yia-terra-btn) !important; color: #fff !important; }
body.yia-shop .nbc-modal-close:hover { background: #95583e !important; }

/* карточки витрины: название −2px (13→11), цена −2px (16→14) + жирная.
   Цена в Montserrat — у Bion-Book нет жирного начертания (цифры были тонкими рядом с ₽). */
body.yia-shop .nbc-product-name { font-size: 11px !important; }
body.yia-shop .nbc-product-price,
body.yia-shop .nbc-product-price * {
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important;
}
/* граммы — резервируем только их строку; на десктопе имя без min-height,
   поэтому вес прижат к названию (раньше резерв 2 строк отодвигал его вниз) */
body.yia-shop .nbc-product-meta { min-height: 16px; }
/* равная высота плиток — только на мобайле (там сетка 2 кол., важно выравнивание) */
@media (max-width: 768px) {
    body.yia-shop .nbc-product-name { min-height: 2.7em; }
}

/* плашка «Закрыто до HH:MM» — navy фон, бежевый текст (был жёлтый) */
body.yia-shop .nbc-closed-toast { background: #2A3386 !important; color: #E6DBC9 !important; }

/* липкий таб-нав / сайдбар-корзина ниже фикс-шапки yiayia (только каталог) */
body.yia-deliver .nbc-catalog-nav { top: 80px; }
body.yia-deliver .nbc-sidebar-cart { top: 132px; max-height: calc(100vh - 132px); }

@media (max-width: 900px) {
    body.yia-deliver .nbc-catalog-nav { top: 64px; }
    body.yia-deliver .nbc-sidebar-cart { top: 116px; max-height: calc(100vh - 116px); }
}

/* поправка на WP admin-bar: шапка опущена на 32px (десктоп) / 46px (≤782px),
   sticky-меню и сайдбар должны опуститься на столько же, иначе уезжают под шапку */
body.admin-bar.yia-deliver .nbc-catalog-nav  { top: 112px; }                                  /* 80 + 32 */
body.admin-bar.yia-deliver .nbc-sidebar-cart { top: 164px; max-height: calc(100vh - 164px); } /* 132 + 32 */

@media (max-width: 900px) {
    body.admin-bar.yia-deliver .nbc-catalog-nav  { top: 96px; }                                /* 64 + 32 */
    body.admin-bar.yia-deliver .nbc-sidebar-cart { top: 148px; max-height: calc(100vh - 148px); }
}

/* ============================================================
   ЛИЧНЫЙ КАБИНЕT (страница [nbc_account]) — фирменные цвета
   ============================================================ */
body.yia-lk { background: #f6ecdc; }

/* переменные ядра ЛК: жёлтый → терракот, беж */
body.yia-lk .nbc-account-wrapper,
body.yia-lk .nbc-order-modal {
    --nbc-primary:      #A86347;   /* терракот (кнопки, активный месяц, плитки) */
    --nbc-primary-dark: #95583e;
    --nbc-accent:       #A86347;   /* ссылки/акценты — терракот вместо синего */
    --nbc-text:         #3a2a1e;
    --nbc-bg:           #f6ecdc;   /* беж */
    --nbc-bg-light:     #f1e8da;
    --nbc-border:       #e7dcc9;
}
/* ссылка «войти» в гостевом виде — терракот вместо жёлтого */
body.yia-lk .nbc-account-login-notice a { color: var(--yia-terra-btn) !important; }

/* убираем блок «Помощь» с дашборда */
body.yia-lk .nbc-dash-help { display: none !important; }

/* строка заголовка + ссылка «Перейти в меню» справа */
body.yia-lk .yia-lk-greetrow {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
body.yia-lk .yia-lk-greetrow .nbc-dash-greeting { margin: 0; }
body.yia-lk .yia-lk-menu {
    color: var(--yia-terra-btn); text-decoration: none; font-weight: 600;
    white-space: nowrap; margin-left: auto; transition: color .2s ease;
}
body.yia-lk .yia-lk-menu:hover { color: #95583e; }
body.yia-lk .yia-lk-menu span { margin-left: 4px; }

/* карточка сертификата (инлайн-SVG) — терракот/беж вместо жёлтого */
body.yia-lk .nbc-cert-card svg rect { stroke: var(--yia-terra-btn) !important; }
body.yia-lk .nbc-cert-card svg rect[fill="#FFFDE7"] { fill: #f6ecdc !important; }
body.yia-lk .nbc-cert-card svg circle { fill: var(--yia-terra-btn) !important; }
/* сообщения/поле привязки сертификата — жёлтый → терракот/беж */
body.yia-lk .nbc-cert-msg-ok,
body.yia-lk .nbc-cert-dash-msg.nbc-cert-msg-ok {
    background: #f6ecdc !important; border-left-color: var(--yia-terra-btn) !important;
}
body.yia-lk .nbc-cert-msg-ok b { color: var(--yia-terra-btn) !important; }
body.yia-lk .nbc-cert-dash-form input:focus {
    border-color: var(--yia-terra-btn) !important; box-shadow: 0 0 0 3px rgba(168,99,71,.2) !important;
}
@media (max-width: 782px) {
    body.admin-bar.yia-deliver .nbc-catalog-nav  { top: 110px; }                               /* 64 + 46 */
    body.admin-bar.yia-deliver .nbc-sidebar-cart { top: 162px; max-height: calc(100vh - 162px); }
}
