/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg: #fafaf8;
    --color-surface: #ffffff;
    --color-text: #2d2a26;
    --color-text-muted: #6b6560;
    --color-accent: #c45a3c;
    --color-accent-hover: #a8482e;
    --color-border: #e8e4df;
    --color-nav-bg: #f5f2ed;
    --color-footer-bg: #2d2a26;
    --color-footer-text: #c4bfb8;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --max-width: 960px;
    --radius: 8px;
}

html { font-size: 17px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

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

/* === Header === */
.site-header {
    text-align: center;
    padding: 2.5rem 1rem 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}
.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
.logo span { color: var(--color-accent); font-weight: 400; }
.logo:hover { text-decoration: none; }
.tagline {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* === Nav === */
.site-nav {
    background: var(--color-nav-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap;
}
.site-nav a {
    display: block;
    padding: 0.65rem 1.1rem;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.15s;
}
.site-nav a:hover {
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
}

/* === Main === */
main { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1rem 3rem; }

/* === Hero === */
.hero { text-align: center; padding: 3rem 1rem 2rem; }
.hero h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-sub { color: var(--color-text-muted); font-size: 1.1rem; margin-top: 0.6rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* === Headings === */
h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}
h3 { font-size: 1.15rem; font-weight: 600; }

/* === Card Grid === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.card-body { padding: 1.2rem; }
.card-cat {
    display: inline-block;
    background: var(--color-nav-bg);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.card-body h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.card-body p { color: var(--color-text-muted); font-size: 0.9rem; }

/* === Reasons === */
.reasons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.reason { text-align: center; padding: 1.5rem; }
.reason-icon { font-size: 2.5rem; display: block; margin-bottom: 0.8rem; }
.reason h3 { margin-bottom: 0.4rem; }
.reason p { color: var(--color-text-muted); font-size: 0.92rem; }

.about-preview { margin-top: 3rem; }

/* === Page (category, review, info) === */
.page-header { text-align: center; padding: 2rem 1rem 1rem; }
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-header p { color: var(--color-text-muted); margin-top: 0.4rem; }

.page-content { max-width: 720px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.page-content h2 { margin-top: 2rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.4rem; }

/* === Review === */
.review-header { text-align: center; padding: 2rem 1rem; }
.review-header h1 { font-size: 2rem; font-weight: 800; }
.review-meta { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0.4rem; }

.review-score {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0.8rem 0;
}

.review-body { max-width: 720px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.review-body h2 { margin-top: 2rem; }
.review-body p { margin-bottom: 1rem; }
.review-body ul, .review-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.review-body li { margin-bottom: 0.5rem; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.pros, .cons {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.2rem;
}
.pros h3 { color: #2d8a4e; margin-bottom: 0.6rem; }
.cons h3 { color: #c45a3c; margin-bottom: 0.6rem; }
.pros ul, .cons ul { padding-left: 1.2rem; }
.pros li, .cons li { font-size: 0.92rem; margin-bottom: 0.3rem; }

.affiliate-box {
    background: var(--color-nav-bg);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}
.affiliate-box h3 { margin-bottom: 0.5rem; }
.affiliate-box .price { font-size: 1.5rem; font-weight: 700; color: var(--color-accent); }
.affiliate-box .btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 0.7rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    margin-top: 0.8rem;
    transition: background 0.15s;
}
.affiliate-box .btn:hover { background: var(--color-accent-hover); text-decoration: none; color: #fff; }

/* === Footer === */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 2.5rem 1rem 1.5rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col p { font-size: 0.85rem; line-height: 1.5; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.3rem; }
.footer-col a { color: var(--color-footer-text); font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    text-align: center;
}
.footer-bottom a { color: var(--color-footer-text); text-decoration: underline; }

/* === 404 === */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page h1 { font-size: 4rem; color: var(--color-accent); }
.error-page p { color: var(--color-text-muted); margin-top: 0.5rem; }
.error-page a { font-weight: 600; }

/* === Responsive === */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.6rem; }
    .pros-cons { grid-template-columns: 1fr; }
    .site-nav ul { justify-content: flex-start; overflow-x: auto; }
    .card-grid { grid-template-columns: 1fr; }
    .reasons { grid-template-columns: 1fr; }
}
