:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --dark: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--dark);
}

a {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.header {
    padding: 18px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 231, 235, 0.95);
    backdrop-filter: blur(18px);
    border-radius: 22px;
    padding: 12px 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 12px;
}

.nav-link:hover {
    background: #fff7ed;
    color: var(--primary-dark);
}

.install-btn {
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 900;
    border-radius: 13px;
    padding: 11px 13px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.install-btn:hover {
    background: #1f2937;
}

body.is-pwa .install-btn,
body.is-pwa .install-hero,
body.is-pwa .footer-install-btn {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary,
.btn-light {
    background: #ffffff;
    color: #111827;
    border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-light:hover {
    background: #f9fafb;
}

.btn-dark {
    background: #111827;
    color: #ffffff;
}

/* Ads */
.ad-box {
    margin: 26px auto;
    min-height: 110px;
    border: 1px dashed #fdba74;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    font-size: 14px;
    font-weight: 800;
}

.ad-box-real {
    display: block;
    text-align: initial;
    border: none;
    background: transparent;
    padding: 0;
    color: inherit;
    min-height: 120px;
}

.ad-box-real .adsbygoogle {
    display: block !important;
    width: 100%;
}

/* Footer */
.site-footer {
    margin-top: 42px;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.20), transparent 32%),
        linear-gradient(135deg, #111827, #020617);
    color: #ffffff;
    padding: 46px 0 22px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 34px;
    align-items: start;
}

.footer-brand p {
    color: #d1d5db;
    line-height: 1.75;
    margin: 16px 0 18px;
    max-width: 460px;
    font-size: 14px;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.footer-logo-wrap strong {
    display: block;
    font-size: 21px;
    line-height: 1.2;
}

.footer-logo-wrap small {
    display: block;
    color: #d1d5db;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 700;
}

.footer-install-btn {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    border-radius: 15px;
    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
}

.footer-install-btn:hover {
    background: rgba(255,255,255,0.16);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.footer-col {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 22px;
    padding: 18px;
}

.footer-col h3 {
    margin: 0 0 13px;
    font-size: 15px;
    color: #ffffff;
}

.footer-col a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 0;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-note {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.6;
}

.footer-disclaimer {
    max-width: 680px;
    text-align: right;
}

/* Install Modal */
.install-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(17, 24, 39, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.install-modal.show {
    display: flex;
}

.install-card {
    width: min(460px, 100%);
    background: #ffffff;
    color: #111827;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}

.install-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.install-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
}

.install-steps {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 16px;
    padding: 14px;
    line-height: 1.7;
    font-size: 14px;
    font-weight: 700;
}

.install-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links .nav-link {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-note {
        display: block;
    }

    .footer-disclaimer {
        margin-top: 10px;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1160px);
    }

    .nav {
        padding: 10px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .install-btn {
        padding: 10px 11px;
        font-size: 13px;
    }

    .site-footer {
        padding-top: 34px;
    }

    .footer-logo-wrap {
        align-items: flex-start;
    }

    .footer-col {
        padding: 16px;
    }
}