/* MissFresh Loyalty Page — styles.css */
/* Стиль: тёмный hero (как у Миксит) + светлые секции */

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #FFFBF5;
    color: #1A1A2E;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.logo { display: block; margin: 0 auto; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
}

.btn--cta {
    background: linear-gradient(135deg, #2A2A3A 0%, #1A1A2E 100%);
    color: #fff;
    width: 100%;
    max-width: 320px;
    font-size: 0.95rem;
    padding: 1rem 2rem;
    border-radius: 4px;
}
.btn--cta:hover { background: linear-gradient(135deg, #3a3a4a 0%, #2a2a3e 100%); }

.btn--dark {
    background: #1A1A2E;
    color: #fff;
    padding: 0.75rem 1.5rem;
}
.btn--dark:hover { background: #2a2a3e; }

/* ================================ */
/* === HERO === */
/* ================================ */

.loyalty-hero {
    background: linear-gradient(180deg, #2A2A3A 0%, #1A1A2E 60%, #FFFBF5 100%);
    text-align: center;
    padding: 2rem 1.25rem 2.5rem;
    color: #fff;
}

.loyalty-hero__inner {
    max-width: 480px;
    margin: 0 auto;
}

.loyalty-hero__logo {
    margin-bottom: 1.5rem;
    filter: brightness(10);
}

.loyalty-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.loyalty-hero__subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
}

.loyalty-hero__badge {
    display: inline-block;
    background: #D4A855;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.loyalty-hero__image {
    margin: 0 auto 1.5rem;
    max-width: 280px;
    min-height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loyalty-hero__image img {
    border-radius: 12px;
}

/* ================================ */
/* === SECTIONS === */
/* ================================ */

.loyalty-section {
    padding: 2rem 1.25rem;
    max-width: 480px;
    margin: 0 auto;
}

.loyalty-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.25rem;
    color: #1A1A2E;
}

.loyalty-section__subtitle {
    font-size: 0.95rem;
    text-align: center;
    color: #555;
    margin-bottom: 1.25rem;
}

/* ================================ */
/* === CARDS === */
/* ================================ */

.loyalty-card {
    background: #f0ebe3;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.loyalty-card__content {
    flex: 1;
    z-index: 1;
}

.loyalty-card__heading {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1A1A2E;
}

.loyalty-card__image {
    flex-shrink: 0;
    width: 120px;
}

.loyalty-card__image img {
    border-radius: 8px;
    opacity: 0.85;
}

.loyalty-card__label {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
}

.loyalty-card__note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.75rem;
}

/* Support card */
.loyalty-card--support {
    background: #f0ebe3;
}

/* Contest card */
.loyalty-card--contest {
    background: linear-gradient(135deg, #f0ebe3 0%, #e8dfd0 100%);
    padding-top: 2.5rem;
}

/* ================================ */
/* === PHONE MOCKUP === */
/* ================================ */

.phone-mockup {
    width: 100px;
    height: 160px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #ddd;
    padding: 1.25rem 0.75rem;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
}

.phone-mockup__logo {
    font-size: 0.55rem;
    font-weight: 700;
    text-align: center;
    color: #4C8C64;
    margin-bottom: 0.5rem;
}

.phone-mockup__line {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 0.375rem;
}

.phone-mockup__line--short {
    width: 65%;
}

/* ================================ */
/* === LINKS === */
/* ================================ */

.loyalty-section--links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.loyalty-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0ebe3;
    border-radius: 12px;
    padding: 1.125rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A2E;
    transition: background 0.2s;
}

.loyalty-link:hover {
    background: #e8e0d4;
}

.loyalty-link__arrow {
    font-size: 1.25rem;
    color: #888;
}

/* ================================ */
/* === NOTIFY === */
/* ================================ */

.loyalty-section--notify {
    padding-top: 1rem;
}

.notify-card {
    text-align: center;
}

.notify-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.notify-card__text {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

.notify-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.notify-form__input {
    padding: 0.875rem 1.25rem;
    border: 2px solid #c5c0b8;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.notify-form__input:focus {
    border-color: #4C8C64;
}

.notify-form__btn {
    border-radius: 8px;
}

.notify-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    cursor: pointer;
}

.notify-form__consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #4C8C64;
    cursor: pointer;
}

.notify-form__consent a {
    color: #4C8C64;
    text-decoration: underline;
}

.notify-form__consent a:hover {
    color: #3a7050;
}

/* ================================ */
/* === FOOTER === */
/* ================================ */

.loyalty-footer {
    text-align: center;
    padding: 1.5rem 1.25rem;
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid #e8e0d4;
    max-width: 480px;
    margin: 0 auto;
}

.loyalty-footer p {
    margin: 0.125rem 0;
}

/* ================================ */
/* === DESKTOP OVERRIDES === */
/* ================================ */

@media (min-width: 768px) {
    .loyalty-hero {
        padding: 3rem 2rem 3.5rem;
    }

    .loyalty-hero__title {
        font-size: 2rem;
    }

    .loyalty-section,
    .loyalty-footer {
        max-width: 560px;
    }

    .loyalty-card {
        padding: 2rem;
    }

    .loyalty-card__heading {
        font-size: 1.5rem;
    }

    .loyalty-card__image {
        width: 160px;
    }

    .phone-mockup {
        width: 120px;
        height: 190px;
    }
}
