/* ==============================
   HAPPY 420 – GLOBAL VARIABLES
================================ */
:root {
    --yellow: #FFD600;
    --yellow-soft: #FFF3B0;
    --yellow-dark: #E6C200;

    --text: #1A1A1A;
    --muted: #555555;

    --bg: #FFFDF7;
    --card: #FFFFFF;

    --border: #F0E6C8;
    --shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* ==============================
   TOP ACCENT
================================ */
.top-accent {
    height: 5px;
    background: linear-gradient(90deg, #ffe066, var(--yellow));
}

/* ==============================
   HERO
================================ */
.hero {
    padding: 90px 24px 70px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    background: var(--yellow-soft);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 3.2rem);
    line-height: 1.15;
}

.hero h1 span {
    display: block;
    font-size: 0.6em;
    color: #b48c00;
    margin-top: 8px;
}

.hero p {
    margin: 22px 0 32px;
    color: var(--muted);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* CTA */
.cta-primary {
    width: auto;
    max-width: 280px;
    align-self: flex-start;
    background: var(--yellow);
    padding: 14px 34px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    box-shadow: var(--shadow);
    transition: background .25s ease, transform .25s ease;
}

.cta-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
}

.hero-trust {
    font-size: 0.9rem;
    color: var(--muted);
}

/* HERO LOGO */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-visual img {
    max-width: 260px;   /* DESKTOP MAX */
    width: 100%;
}

/* ==============================
   PROMO BLOCK
================================ */
.promo {
    padding: 40px 24px 80px;
}

.promo-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: var(--shadow);
}

.promo-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.promo-label {
    font-weight: 700;
}

.promo-value {
    font-family: 'JetBrains Mono', monospace;
    color: #b48c00;
    font-size: 0.9rem;
}

.promo-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.promo-code .mask {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    letter-spacing: 6px;
    background: var(--yellow-soft);
    padding: 16px 30px;
    border-radius: 12px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
}

.promo-code button {
    background: var(--yellow);
    border: none;
    padding: 14px 26px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

.promo-hint {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}

/* ==============================
   BRAND SECTION
================================ */
.brand {
    padding: 80px 24px;
}

.brand-inner {
    max-width: 820px;
    margin: 0 auto;
}

.brand-callout {
    margin-top: 28px;
    background: var(--yellow-soft);
    padding: 22px;
    border-radius: 12px;
    font-weight: 500;
}

/* ==============================
   OFFERS GRID
================================ */
.offers {
    padding: 80px 24px;
    text-align: center;
}

.offers-grid {
    max-width: 1100px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.offer-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 18px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
	justify-content: space-between;
    box-shadow: var(--shadow);
}

.offer-card  img {
    max-height: 40px;
    max-width: 110px;   /* КЛЮЧ: ограничение */
    object-fit: contain;
}

.offer-info {
    margin-top: auto;
    text-align: center;
}

.offer-discount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: #b48c00;
}

.offer-name {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==============================
   FOOTER
================================ */
.footer {
    padding: 50px 24px;
    text-align: center;
    color: var(--muted);
}

/* ==============================
   TOAST
================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--yellow);
    color: #000;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0;
    transition: .3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    /* HERO: logo FIRST */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: 1;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual img {
        max-width: 160px;   /* MOBILE MAX */
        margin-bottom: 12px;
    }

    .cta-primary {
        width: 100%;
        max-width: 320px;
        align-self: center;
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {

    .hero-visual img {
        max-width: 140px;   /* SMALL MOBILE */
    }

    .promo-code {
        flex-direction: column;
    }

    .promo-code .mask {
        font-size: 1.4rem;
        letter-spacing: 4px;
        padding: 14px 16px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }
}
