/* ===== Главная «Родина» — hero + блок доставки ===== */
/* Дизайн по home.json боевого rodina-cafe.ru, реализован своим кодом.
   Бренд-цвета берём из nbc-overrides.css (--rod-red и т.д.). */

/* ── Hero ── */
.nbc-home-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.nbc-home-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.nbc-home-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.78) 100%);
}
.nbc-home-hero-inner {
    position: relative; z-index: 2;
    max-width: 880px; padding: 70px 24px;
    text-align: center; color: #fff;
}
.nbc-home-hero-logo {
    width: min(288px, 58vw); height: auto;
    margin: 0 auto 30px; display: block;
}
.nbc-home-hero-intro {
    font-family: 'Oswald', sans-serif; font-weight: 300;
    font-size: 21px; line-height: 1.5; color: #f3eee9;
    max-width: 760px; margin: 0 auto 40px;
}
.nbc-home-hero-actions {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.nbc-home-action {
    display: flex; flex-direction: column; align-items: center; gap: 11px;
    width: 124px; text-decoration: none; color: #fff;
    transition: transform .2s ease;
}
.nbc-home-action:hover { transform: translateY(-4px); }
.nbc-home-action-ic {
    width: 66px; height: 66px; border-radius: 50%;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.28);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, border-color .2s ease;
}
.nbc-home-action:hover .nbc-home-action-ic {
    background: var(--rod-red, #D24A43);
    border-color: var(--rod-red, #D24A43);
}
.nbc-home-action-ic img {
    width: 38px; height: 38px; object-fit: contain;
    filter: brightness(0) invert(1);
}
.nbc-home-action-l {
    font-family: 'Oswald', sans-serif; font-weight: 300;
    font-size: 14px; text-transform: uppercase; letter-spacing: .4px;
    line-height: 1.2;
}
.nbc-home-action-sub {
    font-family: 'Oswald', sans-serif; font-weight: 300;
    font-size: 12px; letter-spacing: .3px;
    /* «Яровой кофе» — золотисто-светло-коричневый (а не красный) */
    color: #C9A05A;
}

/* Телефоны в hero — на десктопе скрыты (они в шапке), показываем на мобайле */
.nbc-home-hero-phones { display: none; }
.nbc-home-hero-phones a {
    display: block; color: #fff; text-decoration: none;
    font-family: 'Oswald', sans-serif; font-weight: 300;
    font-size: 18px; line-height: 1.7; letter-spacing: .3px;
}
.nbc-home-hero-phones a b { font-weight: 500; }
.nbc-home-hero-phones a:hover { color: var(--rod-red, #D24A43); }

/* ── Блок «Доставка на дом» ── */
.nbc-home-delivery {
    background: #fff; padding: 66px 24px;
}
.nbc-home-delivery-inner {
    max-width: 1100px; margin: 0 auto; text-align: center;
}
.nbc-home-delivery-title {
    font-family: 'Oswald', sans-serif; font-weight: 500;
    font-size: 34px; line-height: 1.2; color: #1a1a1a; margin: 0 0 10px;
}
.nbc-home-delivery-sub {
    font-family: 'Oswald', sans-serif; font-weight: 300;
    font-size: 20px; color: var(--rod-red, #D24A43); margin: 0 0 42px;
}
.nbc-home-delivery-cta {
    font-family: 'Oswald', sans-serif; font-weight: 400;
    font-size: 22px; color: #1a1a1a; margin: 82px 0 0;
}

/* ── Мобайл: раскладка как на боевом (иконки → лого → телефоны → интро-карточка) ── */
@media (max-width: 768px) {
    .nbc-home-hero { min-height: 0; }
    .nbc-home-hero-inner {
        display: flex; flex-direction: column;
        padding: 28px 16px 24px;
    }
    /* Порядок блоков */
    .nbc-home-hero-actions { order: 1; }
    .nbc-home-hero-logo    { order: 2; }
    .nbc-home-hero-phones  { order: 3; }
    .nbc-home-hero-intro   { order: 4; }

    /* Действия — один ряд, без круглой подложки, крупные контурные иконки */
    .nbc-home-hero-actions {
        flex-wrap: nowrap; gap: 6px;
        margin: 0 0 26px; align-items: flex-start;
    }
    .nbc-home-action { width: auto; flex: 1 1 0; gap: 9px; }
    .nbc-home-action:hover { transform: none; }
    .nbc-home-action-ic {
        width: auto; height: 54px; border: none; background: none;
    }
    .nbc-home-action:hover .nbc-home-action-ic { background: none; border: none; }
    .nbc-home-action-ic img { width: auto; height: 48px; }
    .nbc-home-action-l { font-size: 11px; letter-spacing: .2px; }
    .nbc-home-action-sub { font-size: 10px; }

    /* Лого + телефоны */
    .nbc-home-hero-logo { width: min(280px, 80vw); margin: 8px auto 20px; }
    .nbc-home-hero-phones { display: block; margin: 0 0 28px; }
    .nbc-home-hero-phones a { font-size: 17px; line-height: 1.8; }

    /* Интро — белая карточка снизу */
    .nbc-home-hero-intro {
        background: #fff; color: #2a2a2a;
        border-radius: 6px; padding: 22px 20px; margin: 0;
        font-size: 14px; line-height: 1.6; font-weight: 300;
        text-transform: uppercase; letter-spacing: .2px;
    }

    .nbc-home-delivery { padding: 44px 18px; }
    .nbc-home-delivery-title { font-size: 24px; }
    .nbc-home-delivery-sub { font-size: 17px; margin-bottom: 28px; }
    .nbc-home-delivery-cta { font-size: 18px; }
}

/* ── Прячем плавающий футер корзины и моб-кнопку, пока виден hero-баннер ── */
body.nbc-home-hero-inview .nbc-sidebar-cart-footer,
body.nbc-home-hero-inview .nbc-mobile-cart-btn { display: none !important; }

/* ── Анимблок «4 причины доставки»: дорожка-путь + ч/б→цвет ── */
.rodina-anim-wrap { position: relative; font-family: 'Oswald', sans-serif; text-align: left; padding-top: 130px; padding-bottom: 50px; }
.rodina-anim-wrap .path-svg { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 1; }
.rodina-anim-wrap .path-bg { fill: none; stroke: #d0d0d0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rodina-anim-wrap .path-colored { fill: none; stroke: var(--rod-red, #D24A43); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rodina-anim-wrap .star-icon { overflow: visible; }
.rodina-anim-wrap .star-icon polygon { fill: var(--rod-red, #D24A43); }
.rodina-anim-wrap .rodina-blocks { position: relative; z-index: 2; }
.rodina-anim-wrap .rodina-block { display: flex; align-items: center; position: relative; min-height: 300px; }
.rodina-anim-wrap .block-left { flex-direction: row; }
.rodina-anim-wrap .block-right { flex-direction: row-reverse; }
.rodina-anim-wrap .photo-wrapper { position: relative; width: 42%; flex-shrink: 0; z-index: 3; }
.rodina-anim-wrap .photo-wrapper img { width: 100%; height: 280px; object-fit: cover; display: block; filter: grayscale(100%); transition: filter .8s ease; clip-path: url(#wavyMaskR); }
.rodina-anim-wrap .photo-wrapper.active img { filter: grayscale(0%); }
.rodina-anim-wrap .text-col { position: relative; width: 55%; z-index: 4; }
.rodina-anim-wrap .block-left .text-col { margin-left: -5%; }
.rodina-anim-wrap .block-right .text-col { margin-right: -5%; }
.rodina-anim-wrap .reason-label { text-align: center; margin-bottom: 0; opacity: 0; transform: translateY(50px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.rodina-anim-wrap .reason-label.visible { opacity: 1; transform: translateY(0); }
.rodina-anim-wrap .reason-number { font-size: 46px; font-weight: 500; color: var(--rod-red, #D24A43); opacity: .55; line-height: 1; }
.rodina-anim-wrap .reason-word { font-size: 24px; font-weight: 300; color: var(--rod-red, #D24A43); opacity: .55; margin-left: 6px; text-transform: lowercase; }
.rodina-anim-wrap .text-inner { background: rgba(255,255,255,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 12px; padding: 28px 32px; box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.04); }
.rodina-anim-wrap .text-inner p { font-size: 18px; font-weight: 300; line-height: 1.55; color: #202020; font-family: 'Oswald', sans-serif; margin: 0; }
.rodina-anim-wrap .text-inner p strong { font-weight: 500; }
.rodina-anim-wrap .mob-line-segment { display: none; justify-content: center; height: 30px; position: relative; z-index: 1; }
.rodina-anim-wrap .mob-line-inner { width: 2px; height: 100%; background: #d0d0d0; position: relative; }
.rodina-anim-wrap .mob-line-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--rod-red, #D24A43); transition: height .3s ease; }
@media (max-width: 768px) {
    .rodina-anim-wrap { padding-top: 0; }
    .rodina-anim-wrap .path-svg { display: none; }
    .rodina-anim-wrap .mob-line-segment { display: flex; }
    .rodina-anim-wrap .rodina-block { flex-direction: column !important; margin-bottom: 0 !important; min-height: auto; align-items: stretch; }
    .rodina-anim-wrap .photo-wrapper { width: 100%; position: relative; }
    .rodina-anim-wrap .photo-wrapper img { height: 220px; }
    .rodina-anim-wrap .text-col { width: 100%; margin: -20px 0 0 0 !important; }
    .rodina-anim-wrap .block-left .text-col, .rodina-anim-wrap .block-right .text-col { margin-left: 0; margin-right: 0; }
    .rodina-anim-wrap .text-inner { padding: 20px; }
    .rodina-anim-wrap .text-inner p { font-size: 16px; }
    .rodina-anim-wrap .reason-label { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; z-index: 10; margin-bottom: 0; }
    .rodina-anim-wrap .reason-label .reason-number, .rodina-anim-wrap .reason-label .reason-word { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); opacity: .85; }
}
