/**
 * Hero Section — Ambassador landing (Figma GZ54zkM26Zm0XmjoBS8gLB)
 * Стили по figma-developer-mcp: node 1:3 (1920×1080), 1:5 (1080×1350)
 * Шрифт: Manrope. Фон #F9F9F9. Карточки 303×362, border #D1D1D1 18px radius.
 */

@keyframes lc-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lc-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   HERO CONTAINER
   ============================================================ */
.lc-hero {
    --lc-hero-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lc-hero-title-font: 'Manrope', var(--lc-hero-font);
    --lc-hero-bg: #F9F9F9;
    --lc-hero-card-border: #D1D1D1;
    --lc-hero-cta-bg: #C31E3C;
    --lc-hero-accent: #FF5C47;

    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--lc-hero-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

body.page-auth.lc-has-hero {
    display: block;
    padding: 0;
    min-height: 0;
    overflow-x: hidden;
}
body.page-auth.lc-hero-hidden {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem 0;
}
@media (min-width: 768px) {
    body.page-auth.lc-hero-hidden {
        align-items: center;
    }
}

/* ============================================================
   LOGO — Figma mobile: 134×121 at (70,70); desktop: 92×78 at (80,80)
   ============================================================ */
.lc-hero__logo {
    position: absolute;
    top: max(18px, 6.5vw);
    left: max(18px, 6.5vw);
    z-index: 10;
    animation: lc-fadeIn 0.4s ease-out both;
    line-height: 0;
}

.lc-hero__logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: clamp(62px, 12.4vw, 134px);
    max-height: clamp(53px, 11.2vw, 121px);
    object-fit: contain;
}

.lc-hero__logo:not(:has(.lc-hero__logo-img)) {
    padding: 6px 10px;
    font-family: var(--lc-hero-font);
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.01em;
    border: 1px solid #1D1D20;
    border-radius: 4px;
}

.lc-hero__logo-text--accent,
.lc-hero__logo-text--dark {
    color: var(--lc-hero-cta-bg);
}

/* ============================================================
   PHOTO CARDS — общие стили
   Figma: 303×362, border 1px #D1D1D1, radius 18px; фото margin 12px, radius 9px
   ============================================================ */
.lc-hero__card {
    position: absolute;
    z-index: 2;
    animation: lc-fadeInUp 0.6s ease-out both;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--lc-hero-card-border);
    overflow: hidden;
}

.lc-hero__card-photo {
    border-radius: 6px;
    margin: 12px;
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.lc-hero__card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.lc-hero__card-photo img[src=""],
.lc-hero__card-photo img:not([src]) {
    opacity: 0;
}

.lc-hero__card-photo--warm {
    background: linear-gradient(135deg, #f4a26133, #f4a26166);
}
.lc-hero__card-photo--teal {
    background: linear-gradient(135deg, #2a9d8f33, #2a9d8f66);
}
.lc-hero__card-photo--coral {
    background: linear-gradient(135deg, #e76f5133, #e76f5166);
}
.lc-hero__card-photo--navy {
    background: linear-gradient(135deg, #26465333, #26465366);
}
.lc-hero__card-photo--gold {
    background: linear-gradient(135deg, #e9c46a33, #e9c46a66);
}
.lc-hero__card-photo--mint {
    background: linear-gradient(135deg, #a7e9af33, #81c14b66);
}

/* Figma: иконка сердца #FF5C47 */
.lc-hero__card-social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
}

.lc-hero__card-social .lc-hero__card-heart {
    fill: var(--lc-hero-accent);
    stroke: var(--lc-hero-accent);
}

/* ============================================================
   MOBILE BASE (< 576px) — Figma 1:5 (1080×1350) масштабированный
   Левое выравнивание, карточки справа, 4 видимых
   ============================================================ */

/* Карточки: адаптивный размер */
.lc-hero__card {
    width: clamp(130px, 36vw, 200px);
    min-width: 0;
}
.lc-hero__card-photo {
    height: clamp(150px, 40vw, 230px);
    margin: clamp(6px, 1.1vw, 10px);
    margin-bottom: 0;
    border-radius: clamp(6px, 0.83vw, 9px);
}
.lc-hero__card-social {
    padding: clamp(5px, 0.74vw, 8px) clamp(6px, 1.1vw, 10px);
}

/* Карточки 1 и 2 скрыты на мобильных (Figma 1:5 — только 4 карточки) */
.lc-hero__card--1,
.lc-hero__card--2 {
    display: none;
}

/* Карточки 3-6: правая сторона (Figma 1:5), с отступами между ними */
.lc-hero__card--3 {
    right: 30%;
    left: auto;
    top: -4%;
    transform: rotate(-2deg);
    animation-delay: 200ms;
}
.lc-hero__card--4 {
    right: -2%;
    left: auto;
    top: 54%;
    transform: rotate(2deg);
    animation-delay: 300ms;
}
.lc-hero__card--5 {
    right: -4%;
    left: auto;
    top: -2%;
    transform: rotate(3deg);
    animation-delay: 400ms;
}
.lc-hero__card--6 {
    right: 28%;
    left: auto;
    top: auto;
    bottom: -4%;
    transform: rotate(-3deg);
    animation-delay: 500ms;
}

/* ============================================================
   BUBBLE — Figma mobile: правый верхний угол (47.8%, 26.6%)
   ============================================================ */
.lc-hero__bubble {
    position: absolute;
    top: 25%;
    left: auto;
    right: 2%;
    transform: none;
    width: clamp(160px, 40vw, 494px);
    max-width: calc(100vw - 48px);
    background: #F9F9F9;
    border-radius: 10px;
    padding: clamp(10px, 2vw, 24px) clamp(12px, 2vw, 28px);
    border: 1px solid #000000;
    z-index: 4;
    animation: lc-fadeInUp 0.6s ease-out 400ms both;
}

.lc-hero__bubble p {
    margin: 0;
    font-family: var(--lc-hero-title-font);
    font-size: clamp(11px, 3.2vw, 40px);
    font-weight: 500;
    line-height: 1.2;
    color: #000000;
}

/* ============================================================
   CENTRAL CONTENT — мобильный: выравнивание по левому краю (Figma 1:5)
   ============================================================ */
.lc-hero__center {
    position: relative;
    z-index: 5;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 3vw, 28px);
    padding: 0 20px;
    padding-left: max(20px, 6.5vw);
    max-width: 75%;
    width: 100%;
    box-sizing: border-box;
}

/* Заголовок: Figma mobile 110px / 1080 = 10.19vw */
.lc-hero__title {
    margin: 0;
    font-family: var(--lc-hero-title-font);
    font-size: clamp(36px, 10.19vw, 110px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #000000;
    text-align: left;
    animation: lc-fadeInUp 0.6s ease-out 300ms both;
    max-width: 100%;
}

/* Figma: «Loyal Club» — акцент #C31E3C */
.lc-hero__title-accent {
    display: block;
    font-size: 1.15em;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lc-hero-cta-bg);
}

/* CTA: Figma mobile 267×89, font 42px */
.lc-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lc-hero-cta-bg);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: clamp(10px, 2vw, 16px) clamp(24px, 5vw, 48px);
    font-family: var(--lc-hero-title-font);
    font-size: clamp(16px, 3.89vw, 42px);
    font-weight: 600;
    line-height: 1.366;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: lc-fadeInUp 0.6s ease-out 500ms both;
    min-height: clamp(40px, 8.24vw, 89px);
}

.lc-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(195, 30, 60, 0.35);
}

.lc-hero__cta:active {
    transform: scale(0.98);
}

/* ============================================================
   TABLET (576px+) — масштаб Figma 1:5
   ============================================================ */
@media (min-width: 576px) {
    .lc-hero__logo {
        top: max(24px, 6.5vw);
        left: max(24px, 6.5vw);
    }

    .lc-hero__center {
        max-width: 65%;
    }

    .lc-hero__card {
        width: clamp(150px, 30vw, 220px);
    }
    .lc-hero__card-photo {
        height: clamp(170px, 34vw, 250px);
        margin: clamp(8px, 1.1vw, 12px);
        margin-bottom: 0;
        border-radius: 9px;
    }

    .lc-hero__card--3 { right: 32%; top: -4%; }
    .lc-hero__card--4 { right: -2%; top: 54%; }
    .lc-hero__card--5 { right: -2%; top: -1%; }
    .lc-hero__card--6 { right: 30%; bottom: -2%; }

    .lc-hero__bubble {
        top: 28%;
        right: 6%;
        width: clamp(220px, 45vw, 494px);
    }
}

/* ============================================================
   TABLET (768px+) — md, ближе к Figma 1:5 пропорциям
   ============================================================ */
@media (min-width: 768px) {
    .lc-hero__center {
        max-width: 60%;
        padding-left: max(28px, 6.5vw);
    }

    .lc-hero__card {
        width: clamp(180px, 30vw, 260px);
    }
    .lc-hero__card-photo {
        height: clamp(200px, 34vw, 300px);
    }

    .lc-hero__card--3 { right: 34%; top: -5%; }
    .lc-hero__card--4 { right: -1%; top: 54%; }
    .lc-hero__card--5 { right: -1%; top: -1%; }
    .lc-hero__card--6 { right: 32%; bottom: -3%; }

    .lc-hero__bubble {
        top: 26%;
        right: 8%;
        width: clamp(260px, 45vw, 494px);
        padding: 20px 26px;
    }
    .lc-hero__bubble p {
        font-size: clamp(15px, 3.7vw, 32px);
    }
}

/* ============================================================
   DESKTOP (992px+) — центрированная раскладка (Figma 1:3, 1920×1080)
   Все размеры пропорциональны через vw, достигая Figma-значений при 1920px
   Карточка: 303/1920=15.78vw, Заголовок: 135/1920=7.03vw
   ============================================================ */
@media (min-width: 992px) {
    .lc-hero {
        align-items: center;
        overflow: hidden;
    }

    .lc-hero__logo {
        top: min(80px, 4.17vw);
        left: min(80px, 4.17vw);
    }
    .lc-hero__logo-img {
        max-width: min(92px, 4.79vw);
        max-height: min(78px, 4.06vw);
    }

    .lc-hero__center {
        text-align: center;
        align-items: center;
        padding: 0 40px;
        padding-left: 40px;
        max-width: min(1050px, 54.5vw);
    }

    .lc-hero__title {
        text-align: center;
        font-size: clamp(56px, 7.03vw, 135px);
        line-height: 1em;
    }

    /* CTA: Figma 187×70, r:10, font 28px — пропорционально с минимумами */
    .lc-hero__cta {
        border-radius: 10px;
        width: auto;
        box-sizing: border-box;
        padding: clamp(10px, 0.83vw, 16px) clamp(24px, 2.03vw, 39px);
        font-size: clamp(16px, 1.46vw, 28px);
        font-weight: 600;
        line-height: 1.366;
        min-height: clamp(44px, 3.65vw, 70px);
        white-space: nowrap;
    }

    /* Показать все 6 карточек */
    .lc-hero__card--1,
    .lc-hero__card--2 {
        display: block;
    }

    /* Восстановить десктопные скругления (Figma: card r:18, photo r:9, bubble r:18) */
    .lc-hero__card {
        border-radius: 18px;
    }

    /* Карточки: пропорциональные (303/1920=15.78vw, 362/1920=18.85vw) */
    .lc-hero__card,
    .lc-hero__card--1, .lc-hero__card--2, .lc-hero__card--3,
    .lc-hero__card--4, .lc-hero__card--5, .lc-hero__card--6 {
        width: clamp(140px, 15.78vw, 303px);
        height: clamp(170px, 18.85vw, 362px);
    }
    .lc-hero__card-photo,
    .lc-hero__card--3 .lc-hero__card-photo,
    .lc-hero__card--4 .lc-hero__card-photo,
    .lc-hero__card--5 .lc-hero__card-photo,
    .lc-hero__card--6 .lc-hero__card-photo {
        height: clamp(130px, 15.57vw, 299px);
        margin: clamp(6px, 0.625vw, 12px);
        margin-bottom: 0;
        border-radius: 9px;
    }
    .lc-hero__card-social {
        padding: clamp(6px, 0.625vw, 12px);
    }

    /* Figma 1:3 позиции карточек (% от 1920×1080) */
    .lc-hero__card--1 {
        left: 4.2%;
        right: auto;
        top: 24.6%;
        bottom: auto;
        transform: rotate(-3deg);
        animation-delay: 200ms;
    }
    .lc-hero__card--2 {
        left: 64.3%;
        right: auto;
        top: -14.9%;
        bottom: auto;
        transform: rotate(3deg);
        animation-delay: 280ms;
    }
    .lc-hero__card--3 {
        left: 29.5%;
        right: auto;
        top: -6.7%;
        bottom: auto;
        transform: rotate(-2deg);
        animation-delay: 360ms;
    }
    .lc-hero__card--4 {
        left: auto;
        right: 4%;
        top: 57.8%;
        bottom: auto;
        transform: rotate(2deg);
        animation-delay: 440ms;
    }
    .lc-hero__card--5 {
        left: 11.9%;
        right: auto;
        top: 61.9%;
        bottom: auto;
        transform: rotate(3deg);
        animation-delay: 520ms;
    }
    .lc-hero__card--6 {
        left: 62.6%;
        right: auto;
        top: 77.9%;
        bottom: auto;
        transform: rotate(-4deg);
        animation-delay: 600ms;
    }

    /* Пузырёк: Figma Frame 3: 542×188, top 24%, right 7.5% (144/1920) */
    .lc-hero__bubble {
        top: 24%;
        left: auto;
        right: 7.5%;
        transform: none;
        width: clamp(240px, 28.23vw, 542px);
        max-width: clamp(240px, 28.23vw, 542px);
        padding: clamp(16px, 1.88vw, 36px) clamp(18px, 1.98vw, 38px);
        border-radius: 18px;
        border: 1px solid #000000;
    }
    .lc-hero__bubble p {
        font-size: clamp(14px, 1.67vw, 32px);
        font-weight: 500;
        line-height: 1.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lc-hero__card,
    .lc-hero__title,
    .lc-hero__cta,
    .lc-hero__bubble,
    .lc-hero__logo {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
    }
}
