/* ============================================
   FLORELITE — Luxury Flower House
   Hero Section Styles
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 3rem;
    transition: all 0.5s ease;
    background: transparent;
}

.header--scrolled {
    padding: 0.8rem 3rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(199, 168, 115, 0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* Навигация */

.header__nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header__nav--right {
    gap: 1.8rem;
}

.header__link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c7a873;
    transition: width 0.3s ease;
}

.header__link:hover {
    color: #c7a873;
}

.header__link:hover::after {
    width: 100%;
}

/* Логотип по центру */

.header__logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: #c7a873;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header__logo:hover {
    opacity: 0.8;
}

/* Телефон */

.header__phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.header__phone:hover {
    color: #c7a873;
}

/* Иконки */

.header__icon {
    width: 18px;
    height: 18px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header__icon-btn {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
    position: relative;
}

.header__icon-btn:hover {
    color: #c7a873;
}

/* Корзина */

.header__cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #c7a873;
    color: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

/* Бургер */

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #c7a873;
    transition: all 0.3s ease;
}

.header__burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.header__burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Мобильная навигация */

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav__link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav__link:hover {
    color: #c7a873;
}

.mobile-nav__phone {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #c7a873;
    text-decoration: none;
}

/* ---------- Header Responsive ---------- */

@media (max-width: 1024px) {
    .header {
        padding: 1.2rem 2rem;
    }

    .header--scrolled {
        padding: 0.7rem 2rem;
    }

    .header__nav--left {
        display: none;
    }

    .header__nav--right .header__link,
    .header__nav--right .header__phone {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__inner {
        justify-content: space-between;
    }

    /* Логотип — слева */
    .header__logo {
        position: static;
        transform: none;
        order: -1;
    }

    /* Иконки + бургер — справа, иконки ближе к бургеру */
    .header__nav--right {
        order: 1;
        gap: 1.2rem;
        margin-left: auto;
        margin-right: 1.2rem;
    }

    /* Роскошная анимация бургера */
    .header__burger {
        order: 2;
        width: 28px;
        height: 20px;
        position: relative;
        gap: 0;
        padding: 0;
    }

    .header__burger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 1.5px;
        background: linear-gradient(90deg, #a3824a, #f0ddb8, #c7a873);
        border-radius: 2px;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1);
        transform-origin: center;
    }

    .header__burger span:nth-child(1) {
        top: 0;
        width: 100%;
    }

    .header__burger span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
        width: 60%;
        right: 0;
        left: auto;
    }

    .header__burger span:nth-child(3) {
        bottom: 0;
        width: 80%;
    }

    /* Открытое состояние — элегантный X */
    .header__burger.is-open span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 100%;
    }

    .header__burger.is-open span:nth-child(2) {
        opacity: 0;
        width: 0;
        transform: translateY(-50%) translateX(10px);
    }

    .header__burger.is-open span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 1.2rem;
    }

    .header--scrolled {
        padding: 0.6rem 1.2rem;
    }

    .header__icon {
        width: 16px;
        height: 16px;
    }

    .header__nav--right {
        gap: 1rem;
        margin-right: 1rem;
    }
}

/* ---------- Hero Section ---------- */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background */

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 70%, rgba(0,0,0,0.85) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.5) 100%);
}

/* ---------- Content ---------- */

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 10vh 2rem 5vh;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero__content.is-visible {
    opacity: 1;
}

/* ---------- Top Block: Title + Tagline ---------- */

.hero__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

/* ---------- Title ---------- */

.hero__title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1.8rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: 0.35em;
    color: transparent;
    background: linear-gradient(
        135deg,
        #c7a873 0%,
        #f0ddb8 25%,
        #c7a873 50%,
        #a3824a 75%,
        #c7a873 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 6s ease-in-out infinite;
    line-height: 1.1;
    filter: drop-shadow(0 0 30px rgba(199, 168, 115, 0.25));
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ---------- Divider ---------- */

.hero__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.7;
}

.hero__divider-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c7a873, transparent);
}

.hero__divider-diamond {
    width: 6px;
    height: 6px;
    background: #c7a873;
    transform: rotate(45deg);
}

/* ---------- Tagline ---------- */

.hero__tagline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.25em;
    text-transform: lowercase;
    color: rgba(199, 168, 115, 0.9);
}

/* ---------- Flower (крупный, 40% экрана, 3D-параллакс) ---------- */

.hero__flower-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    will-change: transform;
    transform-style: preserve-3d;
}

.hero__flower {
    height: 60vh;
    max-height: 600px;
    width: auto;
    position: relative;
    z-index: 2;
}

/* ---------- Bottom Block: CTA ---------- */

.hero__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__cta {
    position: relative;
    display: inline-block;
    padding: 1.1rem 3.5rem;
    text-decoration: none;
    color: #c7a873;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    border: 1px solid rgba(199, 168, 115, 0.4);
    background: rgba(199, 168, 115, 0.05);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s ease;
}

.hero__cta:hover {
    border-color: rgba(199, 168, 115, 0.8);
    background: rgba(199, 168, 115, 0.1);
    color: #f0ddb8;
    box-shadow:
        0 0 30px rgba(199, 168, 115, 0.15),
        inset 0 0 30px rgba(199, 168, 115, 0.05);
    transform: translateY(-2px);
}

.hero__cta-text {
    position: relative;
    z-index: 1;
}

.hero__cta-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(199, 168, 115, 0.08),
        transparent
    );
    animation: ctaShimmer 4s ease-in-out infinite;
}

@keyframes ctaShimmer {
    0%, 100% { left: -100%; }
    50%      { left: 100%; }
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    /* Фон: начальная позиция — Кремль, далее JS делает панораму */
    .hero__bg-img {
        object-position: 15% center;
        transition: none;
    }

    /* Перестраиваем layout: текст сверху, цветок ниже */
    .hero__content {
        padding: calc(70px + 4vh) 1.5rem 0;
        justify-content: flex-start;
        gap: 4vh;
    }

    .hero__top {
        gap: 0.8rem;
    }

    .hero__flower-wrap {
        flex-shrink: 0;
        align-items: flex-start;
        margin: 0;
    }

    .hero__flower {
        height: 52vh;
        width: auto;
        max-height: none;
    }

    /* Кнопка поверх нижней части цветка */
    .hero__bottom {
        position: absolute;
        bottom: 8vh;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }

    .hero__title {
        font-size: clamp(1.8rem, 7vw, 3.5rem);
        letter-spacing: 0.25em;
    }

    .hero__tagline {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .hero__divider {
        gap: 0.7rem;
    }

    .hero__divider-line {
        width: 35px;
    }

    .hero__cta {
        padding: 0.9rem 2.2rem;
        font-size: 0.65rem;
        letter-spacing: 0.2em;
        background: rgba(10, 10, 10, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@media (max-width: 430px) {
    .hero__bg-img {
        object-position: 15% center;
    }

    .hero__content {
        padding: calc(60px + 7vh) 1rem 0;
        gap: 7vh;
    }

    .hero__flower {
        height: 49vh;
    }

    .hero__bottom {
        bottom: 7vh;
    }

    .hero__top {
        gap: 0.7rem;
    }

    .hero__title {
        font-size: clamp(1.6rem, 6.5vw, 2.5rem);
        letter-spacing: 0.2em;
    }

    .hero__tagline {
        font-size: 0.9rem;
        letter-spacing: 0.12em;
    }

    .hero__divider {
        gap: 0.5rem;
    }

    .hero__divider-line {
        width: 28px;
    }

    .hero__divider-diamond {
        width: 5px;
        height: 5px;
    }

    .hero__cta {
        padding: 0.85rem 1.8rem;
        font-size: 0.6rem;
        letter-spacing: 0.18em;
    }

    .header__logo {
        font-size: 1rem;
        letter-spacing: 0.25em;
    }
}

/* Маленькие экраны по высоте (ландшафт) */
@media (max-height: 700px) and (orientation: landscape) {
    .hero__content {
        padding: 60px 1rem 0;
    }

    .hero__flower {
        height: 40vh;
    }

    .hero__top {
        gap: 0.5rem;
    }
}
