:root {
    --bg: #f5f5f5;
    --card: #ffffff;
    --ink: #08122b;
    --muted: #7b7f8f;
    --green-1: #18cd5a;
    --green-2: #12b84d;
    --green-3: #7ef6b5;
    --cookie: #1f2033;
    --cookie-muted: #bfc2cd;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Nunito", sans-serif;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    padding: 0 0 150px;
}

.phone-frame {
    position: relative;
    width: min(100%, 506px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--card);
    border-radius: 0 0 26px 26px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(9, 16, 33, 0.08);
}

.hero-panel {
    width: calc(100% - 56px);
    min-height: 272px;
    margin: 18px auto 0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 20% 18%, rgba(193, 250, 226, 0.58), transparent 40%),
        radial-gradient(circle at 84% 22%, rgba(251, 243, 231, 0.65), transparent 34%),
        linear-gradient(180deg, #f1fcf6 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 26px 24px;
}

.hero-panel h1 {
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 2.1rem);
    line-height: 1.05;
    font-weight: 900;
    color: #0a4d49;
    letter-spacing: 0;
}

.hero-panel p {
    margin: 20px 0 0;
    font-size: 1.03rem;
    line-height: 1.5;
    color: #2f8a67;
    font-weight: 600;
}

.offer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 28px 0;
}

.app-logo {
    width: 110px;
    height: 110px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.offer-block h2 {
    margin: 24px 0 0;
    font-size: clamp(2.05rem, 7vw, 2.25rem);
    line-height: 1.08;
    font-weight: 900;
    color: #060d20;
}

.rating-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 1.08rem;
}

.stars {
    color: #ffc91d;
    letter-spacing: 0.08em;
    font-size: 1.28rem;
}

.score {
    color: #f0b91e;
    font-weight: 700;
}

.reviews {
    color: #585e6f;
}

.developer-note,
.offer-note {
    margin: 18px 0 0;
    color: #8b8f9d;
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 600;
}

.continue-button {
    position: relative;
    width: 100%;
    margin-top: 28px;
    min-height: 72px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--green-1) 0%, #2ad56d 48%, var(--green-2) 100%);
    box-shadow: 0 16px 26px rgba(37, 207, 101, 0.26);
}

.continue-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 26%, rgba(255, 255, 255, 0.38) 45%, rgba(255, 255, 255, 0.16) 56%, transparent 74%);
    transform: translateX(-120%);
    animation: shimmer 2.6s linear infinite;
}

.continue-button span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 72px;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.apps-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 76px;
    gap: 12px;
    align-items: end;
    padding: 342px 14px 26px;
    overflow: hidden;
}

.mini-card {
    position: relative;
    height: 84px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(18, 28, 52, 0.1);
}

.mini-card.sky {
    background: linear-gradient(180deg, #e8f0ff 0%, #9ebeff 100%);
}

.mini-card.slate {
    background: linear-gradient(180deg, #edf4ff 0%, #dbe7ff 100%);
}

.mini-card.navy {
    background: radial-gradient(circle at 50% 32%, #5f4cff 0%, #25105b 68%);
}

.mini-card.violet {
    background: linear-gradient(160deg, #861fff 0%, #c223ff 100%);
}

.mini-card.mint {
    background: linear-gradient(135deg, #f36e59 0%, #fff1eb 22%, #d5fff0 100%);
}

.badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ff4040;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.mini-art {
    position: absolute;
    inset: auto 0 0;
    margin: auto;
}

.mini-art.cloud {
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 34px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(206, 232, 255, 0.86));
}

.mini-art.shield {
    left: 18px;
    right: 18px;
    bottom: 10px;
    height: 48px;
    background: linear-gradient(180deg, #7cb0ff 0%, #2f63b8 100%);
    clip-path: polygon(50% 0, 100% 22%, 86% 100%, 14% 100%, 0 22%);
}

.mini-art.moon {
    left: 22px;
    right: 22px;
    bottom: 14px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 40%, #ffffff 0%, #d7cdff 42%, transparent 45%);
}

.mini-art.circle {
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 42px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.82);
}

.mini-art.wave {
    left: 10px;
    right: 10px;
    bottom: 12px;
    height: 28px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(80, 212, 160, 0.92), rgba(23, 166, 120, 0.92));
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 12px;
    z-index: 30;
    width: min(calc(100% - 20px), 486px);
    transform: translateX(-50%);
    background: var(--cookie);
    color: #ffffff;
    text-align: center;
    padding: 14px 18px 16px;
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(10, 11, 20, 0.22);
    transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.35;
    font-weight: 700;
}

.cookie-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.cookie-actions button {
    min-width: 92px;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
}

.cookie-accept {
    background: #1fd058;
}

.cookie-decline {
    background: #737373;
}

.cookie-banner.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 100%);
}

@keyframes shimmer {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

@media (max-width: 520px) {
    .page-shell {
        padding-bottom: 136px;
    }

    .phone-frame {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-panel {
        width: calc(100% - 28px);
        min-height: 240px;
        margin-top: 10px;
        border-radius: 22px;
        padding: 22px 18px;
    }

    .hero-panel h1 {
        font-size: 1.62rem;
    }

    .hero-panel p {
        margin-top: 16px;
        font-size: 0.95rem;
    }

    .offer-block {
        padding: 18px 20px 0;
    }

    .app-logo {
        width: 106px;
        height: 106px;
    }

    .offer-block h2 {
        font-size: 1.76rem;
    }

    .rating-line {
        gap: 8px;
        font-size: 0.98rem;
    }

    .stars {
        font-size: 1.12rem;
    }

    .continue-button,
    .continue-button span {
        min-height: 66px;
    }

    .continue-button span {
        font-size: 1.66rem;
    }

    .developer-note,
    .offer-note {
        font-size: 0.92rem;
    }

    .apps-strip {
        grid-auto-columns: 68px;
        gap: 10px;
        padding: 332px 10px 18px;
    }

    .mini-card {
        height: 78px;
        border-radius: 18px;
    }

    .cookie-banner {
        width: calc(100% - 16px);
        bottom: 8px;
        padding: 12px 14px 14px;
        border-radius: 16px;
    }

    .cookie-banner p {
        font-size: 0.88rem;
    }

    .cookie-actions {
        margin-top: 8px;
        gap: 10px;
    }

    .cookie-actions button {
        min-width: 88px;
        min-height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 520px) and (max-height: 920px) {
    .page-shell {
        padding-bottom: 128px;
    }

    .hero-panel {
        min-height: 212px;
        padding: 18px 16px;
    }

    .hero-panel h1 {
        font-size: 1.54rem;
    }

    .hero-panel p {
        margin-top: 12px;
        font-size: 0.88rem;
    }

    .offer-block {
        padding: 14px 18px 0;
    }

    .app-logo {
        width: 92px;
        height: 92px;
        margin-top: 2px;
    }

    .offer-block h2 {
        margin-top: 18px;
        font-size: 1.54rem;
    }

    .rating-line {
        margin-top: 12px;
        gap: 6px;
        font-size: 0.92rem;
    }

    .developer-note,
    .offer-note {
        margin-top: 12px;
        font-size: 0.86rem;
    }

    .continue-button {
        margin-top: 20px;
    }

    .continue-button,
    .continue-button span {
        min-height: 58px;
    }

    .continue-button span {
        font-size: 1.46rem;
    }

    .cookie-banner {
        padding: 10px 12px 12px;
    }

    .cookie-banner p {
        font-size: 0.84rem;
        line-height: 1.3;
    }

    .cookie-actions button {
        min-width: 84px;
        min-height: 38px;
        font-size: 0.88rem;
    }
}
