/* ============================================================
   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: 16px; padding-right: 18px; align-items: flex-start; }
.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-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 {
    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;
}
/* единый цвет пунктов меню (перебиваем :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 { font-size: 11px; transition: transform .25s ease; }
.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: none; color: var(--yia-terra); 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__map iframe { width: 100%; height: 420px; border: 0; display: block; }
.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__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-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 {
    /* текстурный беж-фон, фиксированный (не скроллится) — как в галерее */
    background: #ece3d3 url('../../img/yiayia/bejev.jpg') center top / cover no-repeat 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.active { color: #2A3386 !important; border-bottom-color: #2A3386 !important; }

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

/* кнопки витрины: по умолчанию терракот+белый, наведение — беж+тёмный */
body.yia-shop .nbc-img-add-btn,
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-img-add-btn:hover,
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-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; }

/* липкий таб-нав / сайдбар-корзина ниже фикс-шапки 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); }
}
@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); }
}
