:root {
    --primary: #1e3a8a;
    --primary-dark: #172554;
    --accent: #c2410c;
    --ink: #1c1917;
    --ink-soft: #57534e;
    --bg: #f6f1e8;
    --card-bg: #fffdf8;
    --border: #e7ddd0;
    --star: #c2410c;
    --radius: 14px;
    --shadow: 0 2px 12px rgba(23, 37, 84, 0.07);
    --shadow-hover: 0 14px 32px rgba(23, 37, 84, 0.14);
    --max-width: 1440px;
    --heading-font: 'Fraunces', Georgia, 'Times New Roman', serif;
    --edge-padding: 2.5rem;
}

@media (max-width: 640px) {
    :root { --edge-padding: 1.5rem; }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
}

h1, h2, h3, .logo, .nav-dropdown-toggle {
    font-family: var(--heading-font);
}

a { color: inherit; }

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -28px) scale(1.08); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 216, 184, 0.55); }
    50% { box-shadow: 0 0 0 7px rgba(79, 216, 184, 0); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--edge-padding); }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff;
    padding: 10px 16px; z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 500;
    transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(20, 30, 45, 0.08); }

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--edge-padding);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 72px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
}
.logo span { color: var(--accent); }
.logo-sub {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-family: 'Source Sans 3', sans-serif;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; flex: 1; }
.nav-links a {
    text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
    padding: 6px 2px; position: relative; transition: color 0.2s ease;
    display: inline-flex; align-items: center; gap: 7px;
}
.nav-links a i { font-size: 0.9em; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
    background: var(--primary); border-radius: 2px; transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    background: none; border: none; font: inherit; font-weight: 600; font-size: 0.95rem;
    color: var(--ink-soft); cursor: pointer; padding: 6px 2px;
    display: inline-flex; align-items: center; gap: 7px;
}
.nav-dropdown-toggle i { font-size: 0.9em; }
.nav-dropdown-toggle:hover { color: var(--primary); }
.nav-dropdown-menu {
    display: grid; position: absolute; top: 100%; left: 0; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hover);
    min-width: 420px; padding: 0.5rem; grid-template-columns: 1fr 1fr; max-height: 70vh; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.nav-dropdown-menu a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-size: 0.92rem; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.nav-dropdown-menu a:hover { transform: translateX(3px); }
.nav-dropdown-menu a i, .mobile-menu-categories a i, .hero-cat-pill i { width: 1.1em; text-align: center; color: var(--primary); }
.hero-cat-pill i { color: inherit; }
.nav-dropdown-menu a:hover { background: var(--bg); color: var(--primary); }

.nav-search { display: flex; }
.nav-search input {
    border: 1px solid var(--border); border-right: none; border-radius: 8px 0 0 8px;
    padding: 8px 12px; width: 220px; font-size: 0.9rem; font-family: inherit;
}
.nav-search button {
    border: 1px solid var(--primary); background: var(--primary); color: #fff;
    border-radius: 0 8px 8px 0; padding: 0 14px; cursor: pointer;
}

.hamburger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--primary); }

.mobile-menu-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(15, 20, 28, 0.5);
    z-index: 1400; opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.open { display: block; opacity: 1; }

.mobile-menu {
    display: flex; flex-direction: column; gap: 0.25rem; padding: 0 1.5rem 1.5rem;
    background: #fff; position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw); z-index: 1500; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s ease;
    box-shadow: -8px 0 30px rgba(15, 20, 28, 0.2);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 0; position: sticky; top: 0; background: #fff; z-index: 1;
}
.mobile-menu-close {
    background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-soft);
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu-close:hover { background: var(--bg); color: var(--primary); }
.mobile-menu a { text-decoration: none; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.mobile-menu a i { width: 1.1em; text-align: center; color: var(--primary); }
.mobile-menu-categories { display: flex; flex-direction: column; }
.mobile-menu-cat-label { font-size: 0.8rem; text-transform: uppercase; color: var(--ink-soft); margin: 8px 0 4px; letter-spacing: 0.05em; }
.nav-search-mobile { margin-bottom: 0.5rem; }
.nav-search-mobile input { flex: 1; }

body.menu-open { overflow: hidden; }

@media (max-width: 992px) {
    .nav-links, .nav-search { display: none; }
    .hamburger { display: block; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu, .mobile-menu-backdrop { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 48%, #7c2d12 100%);
    background-size: 180% 180%;
    animation: gradientShift 18s ease infinite;
    color: #fff7ed;
    padding: 4.2rem var(--edge-padding) 4.6rem;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.32; z-index: 0;
    animation: floatBlob 11s ease-in-out infinite;
}
.hero::before { width: 340px; height: 340px; background: #ea580c; top: -110px; left: -70px; }
.hero::after { width: 300px; height: 300px; background: #60a5fa; bottom: -100px; right: -60px; animation-delay: 3.5s; }
.hero-content { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; text-align: center; }
.hero-content > * { animation: fadeInUp 0.7s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0s; }
.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }
.hero-content > *:nth-child(5) { animation-delay: 0.4s; }
.hero-badge {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); padding: 6px 16px 6px 30px;
    border-radius: 50px; font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem;
}
.hero-badge::before {
    content: ''; position: absolute; left: 14px; width: 8px; height: 8px; border-radius: 50%;
    background: #4fd8b8; animation: pulseDot 2s infinite;
}
.hero h1 { font-family: var(--heading-font); font-size: 2.6rem; font-weight: 800; margin-bottom: 0.75rem; }
.hero p { font-size: 1.15rem; opacity: 0.92; max-width: 700px; margin: 0 auto 1.75rem; }
.hero-search { display: flex; max-width: 560px; margin: 0 auto 2rem; }
.hero-search input {
    flex: 1; padding: 14px 18px; border: none; border-radius: 8px 0 0 8px; font-size: 1rem; font-family: inherit;
}
.hero-search button {
    background: var(--accent); color: #fff; border: none; padding: 0 24px; border-radius: 0 8px 8px 0;
    font-weight: 700; cursor: pointer; font-size: 1rem; transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-search button:hover { background: #9a3412; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(194,65,12,0.4); }
.hero-cats { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.hero-cat-pill {
    text-decoration: none; background: rgba(255,255,255,0.12); color: #fff; padding: 8px 16px;
    border-radius: 50px; font-size: 0.9rem; font-weight: 600; transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex; align-items: center; gap: 6px;
}
.hero-cat-pill:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px) scale(1.04); }

/* ---------- Strips / sections ---------- */
.strip { padding: 3rem 0; }
.strip:nth-of-type(even) { background: linear-gradient(180deg, #efe6d6, transparent); border-radius: 28px; }
.strip-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.strip-header h2 { font-size: 1.6rem; font-weight: 800; }
.strip-header h2 i { color: var(--accent); margin-right: 8px; }
.strip-intro { color: var(--ink-soft); margin-bottom: 1.25rem; max-width: 800px; }
.see-all { text-decoration: none; color: var(--primary); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

/* ---------- Product grid / cards ---------- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 1rem;
}
.product-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: var(--ink);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); border-color: var(--primary); }
.product-card-img { position: relative; aspect-ratio: 7 / 5; overflow: hidden; background: #eee; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-card-cat {
    position: absolute; top: 8px; left: 8px; background: rgba(26,34,48,0.75); color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 50px;
}
.product-card-body { padding: 0.9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.product-card-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.product-card-rating { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.product-card-desc { color: var(--ink-soft); font-size: 0.85rem; flex: 1; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; }
.price { font-weight: 800; color: var(--primary-dark); font-size: 1.05rem; }

.stars { color: var(--star); font-size: 0.95rem; }
.stars i { margin-right: 1px; }
.rating-num { font-weight: 700; }
.review-count { color: var(--ink-soft); }

/* ---------- Article grid / cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.article-grid-wide { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .article-grid-wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-grid-wide { grid-template-columns: 1fr; } }
.article-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: var(--ink);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); border-color: var(--primary); }
.article-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #eee; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .article-card-img img { transform: scale(1.07); }
.article-hero { margin: 0 0 1.5rem; border-radius: 14px; overflow: hidden; }
.article-hero img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.article-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.article-card-cat { color: var(--accent); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.article-card-body h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.35; }
.article-card-body p { color: var(--ink-soft); font-size: 0.9rem; }
.article-card-meta { color: var(--ink-soft); font-size: 0.8rem; margin-top: auto; }

.load-more-wrap { text-align: center; margin-top: 2rem; }
#loadMoreArticles {
    background: var(--primary); color: #fff; border: none; padding: 12px 28px;
    border-radius: 50px; font-weight: 700; cursor: pointer; font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
#loadMoreArticles:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
#loadMoreArticles:disabled { opacity: 0.6; cursor: default; }

/* ---------- Catalog / filters ---------- */
.catalog-page { padding-top: 2.5rem; padding-bottom: 4rem; padding-left: calc(var(--edge-padding) + 0.5rem); padding-right: calc(var(--edge-padding) + 0.5rem); }
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.page-subtitle { color: var(--ink-soft); margin-bottom: 1.5rem; }

.catalog-filters {
    display: flex; flex-wrap: wrap; gap: 0.75rem; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; margin: 1.5rem 0 1rem;
}
.catalog-filters input, .catalog-filters select {
    padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.92rem;
}
.catalog-filters input[type="search"] { flex: 1; min-width: 180px; }
.catalog-filters button {
    background: var(--primary); color: #fff; border: none; padding: 10px 22px; border-radius: 8px;
    font-weight: 700; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.catalog-filters button:hover { background: var(--primary-dark); transform: translateY(-2px); }

.catalog-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.5rem; }
.catalog-meta #resultCount { font-weight: 800; color: var(--ink); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.page-link { text-decoration: none; color: var(--primary); font-weight: 700; }
.page-link:hover { text-decoration: underline; }
.page-indicator { color: var(--ink-soft); font-size: 0.9rem; }

.empty-message { padding: 3rem 0; text-align: center; color: var(--ink-soft); }

/* ---------- Category hero ---------- */
.category-hero { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 0.5rem; }
.category-hero-icon { font-size: 3rem; line-height: 1; color: var(--primary); }
.category-intro { color: var(--ink-soft); max-width: 800px; margin: 0.5rem 0 0.75rem; }
.category-subcats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.subcat-pill { background: #eef4f2; color: var(--primary-dark); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }

/* ---------- Product detail ---------- */
.product-detail { padding-top: 2rem; padding-bottom: 4rem; padding-left: calc(var(--edge-padding) + 0.5rem); padding-right: calc(var(--edge-padding) + 0.5rem); }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.breadcrumb a { text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

.product-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.product-gallery-main { width: 100%; aspect-ratio: 7/5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.product-gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.gallery-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb:hover { border-color: var(--primary); }
.image-credit { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.6rem; }
.image-credit a { color: var(--primary); font-weight: 600; text-decoration: none; }
.image-credit a:hover { text-decoration: underline; }
.price-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: -0.5rem; margin-bottom: 0.75rem; font-style: italic; }

.product-subcat { color: var(--accent); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.product-info h1 { font-size: 2rem; font-weight: 800; margin: 0.3rem 0 0.4rem; }
.product-brand { color: var(--ink-soft); margin-bottom: 0.75rem; }
.product-rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem; font-size: 1rem; }
.product-price { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 0.75rem; }
.product-short-desc { color: var(--ink-soft); margin-bottom: 1.25rem; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1rem; }
.pros-cons h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.pros h3 { color: var(--primary); }
.cons h3 { color: #b0472f; }
.pros-cons ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; }
.pros li i { color: var(--primary); margin-right: 6px; }
.cons li i { color: #b0472f; margin-right: 6px; }
.added-date { color: var(--ink-soft); font-size: 0.85rem; }

.product-analysis, .product-specs { max-width: 800px; margin-bottom: 2.5rem; }
.product-analysis h2, .product-specs h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.75rem; }
.product-analysis p { margin-bottom: 1rem; color: var(--ink-soft); }
.verdict { font-weight: 600; color: var(--ink); }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table th, .specs-table td { text-align: left; padding: 10px 12px; font-size: 0.92rem; }
.specs-table th { width: 40%; color: var(--ink-soft); font-weight: 600; }

@media (max-width: 800px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
}

/* ---------- Article detail ---------- */
.article-detail { padding-top: 2rem; padding-bottom: 4rem; padding-left: var(--edge-padding); padding-right: var(--edge-padding); max-width: 800px; }
.article-cat-badge { color: var(--accent); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.article-title { font-size: 2.1rem; font-weight: 800; margin: 0.4rem 0 0.6rem; line-height: 1.25; }
.article-meta { color: var(--ink-soft); margin-bottom: 1.5rem; font-size: 0.92rem; }
.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.5rem; }
.article-detail .image-credit { margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.3rem; font-weight: 800; margin: 1.75rem 0 0.6rem; }
.article-body p { margin-bottom: 1rem; color: var(--ink-soft); }
.article-body ul { margin: 0 0 1.25rem 1.25rem; color: var(--ink-soft); }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--ink); }
.article-detail .strip { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: max(var(--edge-padding), calc(50vw - var(--max-width)/2)); padding-right: max(var(--edge-padding), calc(50vw - var(--max-width)/2)); }

/* ---------- Static pages ---------- */
.static-page { max-width: 800px; padding: 2.5rem var(--edge-padding) 4rem; }
.static-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.static-page h2 { font-size: 1.3rem; font-weight: 800; margin: 1.75rem 0 0.6rem; }
.static-page p { margin-bottom: 1rem; color: var(--ink-soft); }
.static-page a { color: var(--primary); font-weight: 600; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.contact-card h3 { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.4rem; }

.contact-page { padding-top: 2.4rem; padding-bottom: 4.5rem; max-width: var(--max-width); }
.contact-head { max-width: 720px; margin-bottom: 1.75rem; }
.contact-head h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.contact-head p { color: var(--ink-soft); font-size: 1.08rem; }

.contact-split {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.25fr);
    gap: 1.75rem;
    align-items: stretch;
}

.reach-panel {
    background: var(--primary-dark);
    color: #f5f0e8;
    border-radius: 16px;
    padding: 1.75rem 1.7rem 1.9rem;
}
.reach-panel h2 { color: #fff; font-size: 1.45rem; margin-bottom: 0.45rem; }
.reach-lead { color: #d6d3d1; margin-bottom: 1.4rem; }
.reach-block { margin-bottom: 1.4rem; }
.reach-block:last-child { margin-bottom: 0; }
.reach-block h3 {
    color: #fdba74; font-size: 0.78rem; letter-spacing: 0.08em;
    text-transform: uppercase; margin-bottom: 0.45rem; display: flex; align-items: center; gap: 8px;
}
.reach-block h3 i { color: #fdba74; }
.reach-line {
    display: block; color: #fff; text-decoration: none; font-weight: 700;
    font-size: 1.02rem; padding: 0.28rem 0; word-break: break-word;
}
.reach-line:hover { color: #ffedd5; text-decoration: underline; }
.reach-block p { color: #d6d3d1; margin: 0; }

.contact-form-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.7rem 1.8rem 1.8rem;
    box-shadow: var(--shadow);
}
.contact-form-panel h2 { margin-bottom: 0.25rem; font-size: 1.45rem; }
.form-intro { color: var(--ink-soft); margin-bottom: 1.1rem; }

.contact-form { position: relative; }
.contact-form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.95rem; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
    display: block; width: 100%; margin-top: 0.4rem;
    padding: 12px 14px; border: 1px solid #d6d3d1; border-radius: 10px;
    font: inherit; background: #fafaf9; color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.contact-form button {
    background: var(--primary); color: #fff; border: none; padding: 13px 26px;
    border-radius: 10px; font-weight: 800; cursor: pointer; font-size: 1rem;
}
.contact-form button:hover { background: var(--primary-dark); }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8rem; font-weight: 400; }
.form-alert { padding: 0.85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }
.form-alert-ok { background: #ecfdf5; color: #065f46; }
.form-alert-err { background: #fef2f2; color: #991b1b; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.cta-strip { padding-bottom: 4rem; }
.cta-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: start; }
.login-stage {
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem var(--edge-padding) 4rem;
}
.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(23, 37, 84, 0.12);
    padding: 2.1rem 2rem 2.15rem;
}
.login-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.login-card h1 { font-size: 1.85rem; margin-bottom: 0.35rem; }
.login-sub { color: var(--ink-soft); margin-bottom: 1.25rem; }
.login-form label { display: block; font-weight: 700; font-size: 0.9rem; margin: 0.85rem 0 0.35rem; }
.login-form input {
    width: 100%; padding: 12px 14px; border: 1px solid #d6d3d1;
    border-radius: 10px; font: inherit; background: #fafaf9;
}
.login-form input:focus {
    outline: none; border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 72px; }
.pass-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--primary);
    font-weight: 800; font-size: 0.85rem; cursor: pointer; padding: 6px 8px;
}
.pass-toggle:hover { color: var(--primary-dark); }
.login-submit {
    width: 100%; margin-top: 1.25rem; background: var(--primary); color: #fff;
    border: none; padding: 13px 18px; border-radius: 10px; font-weight: 800;
    font-size: 1rem; cursor: pointer;
}
.login-submit:hover { background: var(--primary-dark); }
.admin-inbox { padding: 2.2rem 0 4rem; }
.inbox-list { display: grid; gap: 1rem; }
.inbox-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.inbox-item.is-unread { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.inbox-meta { color: var(--ink-soft); font-size: 0.88rem; margin-left: 0.5rem; }
.inbox-body { margin: 0.6rem 0 0.8rem; white-space: pre-wrap; }
.inbox-actions { display: flex; gap: 0.5rem; }
.inbox-actions button { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-weight: 700; }

@media (max-width: 800px) {
    .contact-split, .contact-layout, .cta-grid, .form-grid { grid-template-columns: 1fr; }
}

.not-found { text-align: center; padding: 5rem var(--edge-padding); }

/* ---------- Footer ---------- */
.site-footer { background: #172554; color: #e7e5e4; margin-top: 2rem; }
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
    max-width: var(--max-width); margin: 0 auto; padding: 3rem var(--edge-padding);
}
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a { display: block; text-decoration: none; color: #d6d3d1; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-about { color: #d6d3d1; font-size: 0.88rem; max-width: 280px; margin-top: 0.75rem; }
.copyright { text-align: center; padding: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; color: #a8a29e; }

/* ---------- How-to site extras ---------- */
.guide-thumb {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.4rem;
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
}
.guide-thumb.windows { background: linear-gradient(145deg, #14503f, #1d6f5c); }
.guide-thumb.internet { background: linear-gradient(145deg, #0f4c81, #1d6f8c); }
.guide-thumb.files { background: linear-gradient(145deg, #8a4b12, #c97a1e); }
.guide-thumb.software { background: linear-gradient(145deg, #3d2a6b, #5b3d99); }
.guide-thumb.coding { background: linear-gradient(145deg, #16324f, #1f6feb); }
.guide-thumb.privacy { background: linear-gradient(145deg, #5a1f2a, #a33b4a); }

.article-layout {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem var(--edge-padding) 4rem;
}
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumbs a { color: var(--primary); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.article-kicker {
    color: var(--accent); font-size: 0.8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.article-layout h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.25; margin-bottom: 0.85rem; }
.article-byline { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.article-byline a { color: var(--primary); font-weight: 700; text-decoration: none; }
.need-box, .toc-box, .callout, .fail-box {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; margin: 0 0 1.5rem;
}
.need-box { border-left: 4px solid var(--primary); }
.fail-box { border-left: 4px solid var(--accent); }
.callout { border-left: 4px solid #1f6feb; background: #f3f7fb; }
.need-box h2, .toc-box h2, .fail-box h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.toc-box ol { margin: 0 0 0 1.1rem; }
.toc-box a { color: var(--primary); text-decoration: none; font-weight: 600; }
.toc-box a:hover { text-decoration: underline; }
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 0.7rem; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.12rem; font-weight: 800; margin: 1.4rem 0 0.5rem; }
.article-body p { margin-bottom: 1rem; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.3rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body kbd {
    font-family: Consolas, "Courier New", monospace;
    background: #eef1f4; border: 1px solid #d0d6dd; border-bottom-width: 2px;
    border-radius: 5px; padding: 1px 6px; font-size: 0.88em;
}
.article-body pre, .code-block {
    background: #14211d; color: #e8f3ee; border-radius: 10px;
    padding: 1rem 1.1rem; overflow-x: auto; font-size: 0.92rem;
    margin: 0 0 1.2rem; line-height: 1.55;
}
.article-body code { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; }
.article-body p code, .article-body li code {
    background: #eef4f1; padding: 1px 6px; border-radius: 4px; color: var(--primary-dark);
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 0.85rem; font-weight: 800;
    margin-right: 0.4rem; vertical-align: middle;
}
.author-box {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.2rem; margin-top: 2.5rem;
}
.author-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-family: var(--heading-font); font-size: 1.2rem;
}
.author-box h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.author-box p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.related-grid { margin-top: 2.5rem; }
.related-grid h2 { font-size: 1.3rem; margin-bottom: 1rem; }

.static-page ul { margin: 0 0 1rem 1.2rem; color: var(--ink-soft); }
.static-page li { margin-bottom: 0.4rem; }

.team-list { display: grid; gap: 1rem; margin: 1.25rem 0; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }

.guide-card-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-soft); }
.hero-count { font-variant-numeric: tabular-nums; }

.about-home { max-width: 820px; }
.about-home h2 { font-size: 1.7rem; margin-bottom: 0.75rem; }
.about-home .lead { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.85rem; }
.about-home p { color: var(--ink-soft); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--edge-padding); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.two-col .lead, .plain-list { color: var(--ink-soft); }
.plain-list { margin: 0.8rem 0 0 1.1rem; }
.plain-list li, .plain-ol li { margin-bottom: 0.55rem; }
.plain-ol { margin: 0.6rem 0 1rem 1.2rem; }
.card-meta { font-size: 0.82rem; font-weight: 700; color: var(--accent); margin-top: 0.6rem; }

.hero-wide { text-align: left; padding: 3.4rem var(--edge-padding) 2.4rem; }
.hero-wide-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
    gap: 2.5rem; align-items: start; position: relative; z-index: 1;
}
.hero-copy { text-align: left; }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 16ch; line-height: 1.12; }
.eyebrow { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.7rem; opacity: 0.9; }
.hero-lead { font-size: 1.2rem; max-width: 46rem; margin: 0 0 0.9rem; opacity: 0.95; }
.hero-copy > p { max-width: 46rem; margin: 0 0 1.1rem; }
.hero-search-wide { margin: 0 0 0; max-width: 36rem; }
.hero-side { display: flex; flex-direction: column; gap: 0.75rem; }
.stat-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; padding: 0.9rem 1rem; }
.stat-card strong { display: block; font-size: 1.7rem; font-family: var(--heading-font); }
.stat-card span { font-size: 0.9rem; opacity: 0.9; }
.side-link { color: #ffedd5; font-weight: 700; }
.hero-topic-row {
    max-width: var(--max-width); margin: 1.75rem auto 0; position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.news-card, .news-row {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.15rem 1.2rem;
}
.news-kicker { color: var(--accent); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.news-card h3, .news-row h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.news-card p, .news-row p { color: var(--ink-soft); }
.news-list { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }

.answer-box {
    background: #fff7ed; border-left: 4px solid var(--accent);
    padding: 0.9rem 1rem; margin: 0 0 1.2rem; border-radius: 0 10px 10px 0;
}

.provide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-top: 0.5rem;
}
.provide-wide { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
    .hero-wide-inner, .two-col, .news-grid, .provide-grid, .provide-wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .hero-wide-inner, .two-col, .news-grid, .provide-grid, .provide-wide { grid-template-columns: 1fr; }
    .logo { white-space: normal; flex-wrap: wrap; }
    .hero-copy h1 { max-width: none; }
}
.provide-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.3rem 1.35rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.provide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.provide-icon { font-size: 1.4rem; color: var(--accent); margin-bottom: 0.55rem; }
.provide-card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.provide-card p { color: var(--ink-soft); font-size: 0.94rem; }

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    margin-top: 0.75rem;
}
.how-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.25rem;
}
.how-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 0.6rem;
}
.how-card h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.how-card p { color: var(--ink-soft); font-size: 0.94rem; }

.faq-block { margin: 2.25rem 0 0; }
.faq-block h2 { font-size: 1.35rem; margin-bottom: 0.9rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0.95rem 1.1rem; margin-bottom: 0.7rem; }
.faq-item h3 { font-size: 1.02rem; margin: 0 0 0.35rem; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
