/* ============================================================
   PREMIUM HERO — тёмная full-bleed секция, serif + золотой акцент
   Подключается ПОСЛЕ redesign.css, перекрывает .ph_hero нэймспейс
   ============================================================ */

:root {
    --ph-cream: #f5efe6;
    --ph-cream-dim: #c8bfb3;
    --ph-text-dark: #1d1814;
    --ph-gold: #d4b896;
    --ph-bg: #1a1614;
    --ph-scrim-strength: 0.45;
}

/* Hero base */
.ph_hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--ph-bg);
    color: var(--ph-cream);
    font-family: 'Inter', sans-serif;
}

/* Background slider */
.ph_hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ph_hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
}
.ph_hero__slide.is-active { opacity: 1; }

/* Scrim — тёмный градиент для читаемости текста слева */
.ph_hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg,
            rgba(20, 16, 14, 0.78) 0%,
            rgba(20, 16, 14, 0.55) 35%,
            rgba(20, 16, 14, 0.15) 60%,
            rgba(20, 16, 14, 0)    100%),
        linear-gradient(180deg,
            rgba(20, 16, 14, 0.30) 0%,
            rgba(20, 16, 14, 0)    25%,
            rgba(20, 16, 14, 0)    70%,
            rgba(20, 16, 14, 0.55) 100%);
    pointer-events: none;
}

/* Content (слева) */
.ph_hero__content {
    position: relative;
    z-index: 3;
    padding: 140px 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    max-width: 820px;
    box-sizing: border-box;
}

/* Title — Playfair Display */
.ph_hero__title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 500 !important;
    font-size: clamp(42px, 4.6vw, 76px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
    color: var(--ph-cream) !important;
    margin: 0 0 32px !important;
    white-space: nowrap;
}
.ph_hero__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--ph-gold);
}
.ph_hero__title_sub {
    display: inline-block;
    margin-top: 8px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 0.45em;
    color: var(--ph-cream-dim);
    letter-spacing: 0.005em;
}

/* Sub-paragraph */
.ph_hero__sub {
    margin: 0 0 44px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ph-cream-dim);
    font-weight: 300;
    max-width: 500px;
}

/* Features (4 в линию 2x2) */
.ph_hero__features {
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
    max-width: 560px;
}
.ph_hero__feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ph-cream);
    font-weight: 300;
}
.ph_hero__feature_ico {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 7px;
    box-sizing: border-box;
    color: var(--ph-cream);
    border: 1px solid rgba(245, 239, 230, 0.25);
    border-radius: 50%;
}
.ph_hero__feature span {
    padding-top: 2px;
}

/* Telegram CTA — ghost button */
.ph_hero__tg_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--ph-cream);
    color: var(--ph-cream);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: 0.3s ease;
    width: fit-content;
    margin-bottom: 36px;
}
.ph_hero__tg_btn:hover {
    background: var(--ph-cream);
    color: var(--ph-text-dark);
}
.ph_hero__tg_btn svg {
    transition: transform 0.3s ease;
}
.ph_hero__tg_btn:hover svg {
    transform: translateX(3px);
}

/* Slider dots под кнопкой */
.ph_hero__slider_dots {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.ph_hero__dot {
    width: 24px;
    height: 2px;
    background: rgba(245, 239, 230, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
    border-radius: 1px;
}
.ph_hero__dot.is-active {
    background: var(--ph-cream);
    width: 40px;
}

/* Цена-плашка справа внизу. right: учитываем робота (96px + 28px + запас) */
.ph_hero__price_card {
    position: absolute;
    right: 160px;
    bottom: 40px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 18px 22px 18px 30px;
    background: rgba(245, 239, 230, 0.97);
    color: var(--ph-text-dark);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ph_hero__price_card:hover {
    background: var(--ph-cream);
    transform: translateY(-3px);
}
.ph_hero__price_text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ph_hero__price_label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(29, 24, 20, 0.55);
    font-weight: 500;
}
.ph_hero__price_value {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: var(--ph-text-dark);
    letter-spacing: -0.01em;
}
.ph_hero__price_unit {
    font-family: 'Inter', sans-serif;
    font-size: 0.6em;
    font-weight: 400;
    color: rgba(29, 24, 20, 0.6);
    margin-left: 2px;
}
.ph_hero__price_arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--ph-text-dark);
    color: var(--ph-cream);
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.ph_hero__price_card:hover .ph_hero__price_arrow {
    transform: rotate(-45deg);
}

/* ----- Шапка на тёмном hero — светлая ----- */
body.has-ph-hero .header_float:not(.is-scrolled) {
    background: transparent !important;
    box-shadow: none !important;
}
body.has-ph-hero .header_float:not(.is-scrolled) .header_float__inner {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.has-ph-hero .header_float:not(.is-scrolled) .header_nav a,
body.has-ph-hero .header_float:not(.is-scrolled) .header_float__phone {
    color: var(--ph-cream) !important;
}
body.has-ph-hero .header_float:not(.is-scrolled) .header_float__cta {
    background: transparent !important;
    border: 1px solid var(--ph-cream) !important;
    color: var(--ph-cream) !important;
}
body.has-ph-hero .header_float:not(.is-scrolled) .header_float__cta:hover {
    background: var(--ph-cream) !important;
    color: var(--ph-text-dark) !important;
}
/* Логотип на тёмном hero — кладём в светлую кремовую пилюлю */
body.has-ph-hero .header_float:not(.is-scrolled) .header_logo_block {
    background: rgba(245, 239, 230, 0.95);
    padding: 8px 18px;
    border-radius: 30px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.3s ease, padding 0.3s ease;
}
body.has-ph-hero .header_float.is-scrolled .header_logo_block {
    background: transparent;
    padding: 0;
}

/* Прячем старые элементы hero чтобы не мешали */
.nh_hero,
.hero_gallery { display: none !important; }

/* ----- STORIES в премиум-стиле ----- */
/* Контейнер: тонкая капсула, графитовый стеклянный фон */
.header_stories__inner {
    background: rgba(20, 16, 14, 0.55) !important;
    backdrop-filter: blur(14px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
    border: 1px solid rgba(245, 239, 230, 0.12) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    padding: 12px 10px !important;
    border-radius: 50px !important;
}

/* Когда шапка прокручена в content (тёмная плашка справа на светлом фоне) */
body.has-ph-hero .header_float.is-scrolled .header_stories__inner {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(29, 24, 20, 0.08) !important;
}

/* Само "кольцо" истории — без instagram-градиента */
.header_story__ring {
    background: transparent !important;
    border: 1px solid rgba(245, 239, 230, 0.35) !important;
    padding: 1px !important;
    transition: border-color 0.3s ease, transform 0.3s ease !important;
}
.header_story:hover .header_story__ring {
    border-color: var(--ph-gold) !important;
    box-shadow: none !important;
}
body.has-ph-hero .header_float.is-scrolled .header_story__ring {
    border-color: rgba(29, 24, 20, 0.18) !important;
}
body.has-ph-hero .header_float.is-scrolled .header_story:hover .header_story__ring {
    border-color: var(--ph-text-dark) !important;
}

/* Лицо круга — всегда светлое (иначе цветной логотип не виден) */
.header_story__face {
    background: rgba(245, 239, 230, 0.96) !important;
}
.header_story__face svg {
    color: var(--ph-text-dark) !important;
}
body.has-ph-hero .header_float.is-scrolled .header_story__face {
    background: #fff !important;
}
/* Логотип внутри лица — оставляем как есть */
.header_story__face img { filter: none; }

/* Подпись stories */
.header_story__label {
    color: rgba(245, 239, 230, 0.85) !important;
    letter-spacing: 0.01em !important;
    font-weight: 300 !important;
}
body.has-ph-hero .header_float.is-scrolled .header_story__label {
    color: rgba(29, 24, 20, 0.7) !important;
}

/* Focus outline — золотистый */
.header_story:focus-visible {
    outline-color: var(--ph-gold) !important;
}

/* ----- Mobile ----- */
@media (max-width: 980px) {
    .ph_hero { min-height: auto; }
    .ph_hero__scrim {
        background:
            linear-gradient(180deg,
                rgba(20, 16, 14, 0.85) 0%,
                rgba(20, 16, 14, 0.55) 60%,
                rgba(20, 16, 14, 0.85) 100%);
    }
    .ph_hero__content {
        padding: 110px 22px 200px;
        min-height: 100vh;
        max-width: 100%;
    }
    .ph_hero__title { font-size: clamp(38px, 11vw, 64px) !important; }
    .ph_hero__features {
        grid-template-columns: 1fr 1fr;
        gap: 16px 14px;
    }
    .ph_hero__feature { font-size: 12px; }
    .ph_hero__feature_ico { width: 32px; height: 32px; padding: 6px; }
    .ph_hero__price_card {
        right: 16px;
        bottom: 16px;
        left: 16px;
        gap: 14px;
        padding: 14px 16px 14px 22px;
        justify-content: space-between;
    }
    .ph_hero__price_value { font-size: 18px; }
    .ph_hero__price_arrow { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .ph_hero__features { grid-template-columns: 1fr; }
}
