﻿:root {
    --background: #faf8f4;
    --surface: #ffffff;
    --text: #202020;
    --muted: #777777;
    --border: #e5e1da;
    --button: #202020;
    --button-hover: #3a3a3a;
    --success-background: #edf5ef;
    --success-border: #cbdccf;
    --success-text: #3d7a52;
    --content-width: 760px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}


/* --------------------------------------------------
   Page
-------------------------------------------------- */

.page {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 0 24px 60px;
}


/* --------------------------------------------------
   Header
-------------------------------------------------- */

.header {
    display: flex;
    align-items: center;
    height: 80px;
}


.logo {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}


/* --------------------------------------------------
   Hero
-------------------------------------------------- */

.hero {
    padding: 60px 0 40px;
    text-align: center;
}


.hero-cookie {
    margin-bottom: 16px;
    font-size: 64px;
    animation: cookie-float 3s ease-in-out infinite;
}


@keyframes cookie-float {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


.hero h1 {
    margin: 0;
    font-size: clamp(46px, 9vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.055em;
}


.hero-subtitle {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 24px;
}


.hero-description {
    max-width: 520px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}


/* --------------------------------------------------
   Advertisement
-------------------------------------------------- */

.advertisement {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 70px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: #aaa;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* --------------------------------------------------
   Cookie
-------------------------------------------------- */

.cookie-section {
    margin-bottom: 90px;
    text-align: center;
}


.cookie-image {
    display: block;
    width: min(600px, 100%);
    height: auto;
    margin: 0 auto 30px;
    border-radius: 12px;
}


/* --------------------------------------------------
   Buttons
-------------------------------------------------- */

.cookie-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


.button {
    width: min(360px, 100%);
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f4f2ee;
    color: var(--text);
    font-size: 16px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}


.button-primary {
    border-color: var(--button);
    background: var(--button);
    color: white;
}


    .button-primary:hover {
        background: var(--button-hover);
        transform: translateY(-1px);
    }


.button:not(:disabled):hover {
    transform: translateY(-1px);
}


.button:not(:disabled):active {
    transform: translateY(0);
}


.button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}


.button-helped:not(:disabled) {
    border-color: var(--success-border);
    background: var(--success-background);
    color: var(--success-text);
}


/* --------------------------------------------------
   Status
-------------------------------------------------- */

.status-message {
    min-height: 24px;
    margin-top: 18px;
    color: var(--success-text);
    font-size: 14px;
    font-weight: 600;
}


/* --------------------------------------------------
   Statistics
-------------------------------------------------- */

.stats-section {
    margin-bottom: 90px;
}


.section-label {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}


.stat-card {
    padding: 26px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}


.stat-number {
    font-size: 34px;
    font-weight: 750;
    letter-spacing: -0.03em;
}


.stat-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}


/* --------------------------------------------------
   About
-------------------------------------------------- */

.about {
    max-width: 600px;
    margin: 0 auto 90px;
    text-align: center;
}


    .about h2 {
        margin: 0 0 20px;
        font-size: 34px;
        letter-spacing: -0.035em;
    }


    .about p {
        margin: 0 0 16px;
        color: #555;
        font-size: 17px;
        line-height: 1.65;
    }


    .about .small-note {
        margin-top: 28px;
        color: #999;
        font-size: 13px;
        font-style: italic;
    }


/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.footer {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: #888;
    font-size: 13px;
    text-align: center;
}


.footer-note {
    margin-top: 8px;
    color: #aaa;
}


/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 600px) {

    .page {
        padding: 0 16px 40px;
    }


    .header {
        height: 64px;
    }


    .hero {
        padding-top: 45px;
    }


    .hero-cookie {
        font-size: 52px;
    }


    .hero-subtitle {
        font-size: 20px;
    }


    .hero-description {
        font-size: 16px;
    }


    .advertisement {
        margin-bottom: 50px;
    }


    .cookie-image {
        width: 100%;
    }


    .stats-grid {
        grid-template-columns: 1fr;
    }


    .stat-card {
        padding: 20px;
    }
}
