/*
Theme Name: Zennomax
Theme URI: https://zennomax.com/
Author: Maxim Salnikov
Author URI: https://zennomax.com/
Description: Zennomax is a dark, modern marketplace theme for selling digital goods — automation templates, Android apps, CMS themes and plugins. Products are managed in the WordPress admin and link out to an external checkout / delivery service. Includes a built-in blog, product categories, breadcrumbs, numbered pagination and a cookie banner.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: zmx
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
    --bg:          #0a0e18;
    --bg-alt:      #0d1322;
    --bg-deep:     #070b13;
    --surface:     #131c30;
    --surface-2:   #172239;
    --border:      #253150;
    --border-soft: #1c2740;
    --text:        #e8edf8;
    --heading:     #f4f7fd;
    --muted:       #9fb0cd;
    --muted-2:     #708099;
    --primary:     #2f92f5;
    --primary-600: #1f6fd6;
    --cyan:        #37d3e8;
    --green:       #34c47a;
    --purple:      #a274f0;
    --amber:       #f0a23a;
    --star:        #f6b93b;
    --radius:      14px;
    --radius-sm:   10px;
    --shell:       1220px;
    --shadow:      0 18px 40px rgba(0, 0, 0, .45);
    --glow:        0 0 0 1px rgba(47, 146, 245, .15), 0 20px 45px rgba(9, 30, 66, .55);
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 600px at 78% -6%, rgba(47, 146, 245, .10), transparent 60%),
        radial-gradient(900px 520px at 8% 4%, rgba(55, 211, 232, .06), transparent 55%),
        linear-gradient(180deg, #0a0e18 0%, #090d15 100%);
    background-attachment: fixed;
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 700;
    letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }

.shell {
    width: min(92%, var(--shell));
    margin-inline: auto;
}

.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }

.eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 700;
    margin-bottom: .7rem;
}

.section-head { margin-bottom: 2.2rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0; }
.section-head .link-all { font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    box-shadow: 0 10px 26px rgba(31, 111, 214, .45);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(31, 111, 214, .55); }
.btn-ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover { color: #fff; border-color: var(--primary); background: rgba(47, 146, 245, .12); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: rgba(9, 13, 22, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    position: relative;
    z-index: 40;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: .9rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand .brand-logo { display: block; height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.28rem; color: var(--heading); letter-spacing: -.02em; }
.brand-name b { color: var(--primary); }
.brand-tag { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); }
.brand-desc { display: none; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
    display: block;
    padding: .5rem .8rem;
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
    border-radius: 8px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: #fff; background: rgba(47, 146, 245, .12); }

.header-tools { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.search-toggle, .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    cursor: pointer;
}
.search-toggle:hover, .nav-toggle:hover { border-color: var(--primary); color: #fff; }
.nav-toggle { display: none; }
.nav-toggle svg, .search-toggle svg { width: 20px; height: 20px; }

.header-search {
    border-top: 1px solid var(--border-soft);
    background: var(--bg-deep);
}
.header-search[hidden] { display: none !important; }
.header-search .search-form { display: flex; gap: .6rem; padding: 1rem 0; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .7rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: .95rem;
}
.search-form input[type="search"]::placeholder { color: var(--muted-2); }
.search-form input[type="search"]:focus { outline: none; border-color: var(--primary); }
.search-form button {
    padding: .7rem 1.3rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
    background:
        radial-gradient(760px 420px at 82% 26%, rgba(47, 146, 245, .22), transparent 62%),
        radial-gradient(620px 380px at 96% 80%, rgba(55, 211, 232, .12), transparent 60%),
        linear-gradient(180deg, #0b1120 0%, #0a0e18 100%);
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 4.5rem 0 4rem;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.02;
    margin: .4rem 0 1rem;
}
.hero h1 .accent {
    background: linear-gradient(120deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 32rem; margin-bottom: 1.7rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.hero-badge { display: flex; align-items: center; gap: .6rem; }
.hero-badge .bi {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: rgba(47, 146, 245, .14); color: var(--cyan);
    flex-shrink: 0;
}
.hero-badge .bi svg { width: 18px; height: 18px; }
.hero-badge b { display: block; color: var(--heading); font-size: .92rem; line-height: 1.2; }
.hero-badge span { font-size: .78rem; color: var(--muted-2); }
.hero-art { position: relative; }
.hero-art img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* ==========================================================================
   Category rubric grid
   ========================================================================== */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}
.rubric {
    position: relative;
    display: block;
    padding: 1.8rem 1.6rem;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
    color: var(--text);
}
.rubric::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px 180px at 20% 0%, var(--accent, var(--primary)), transparent 70%);
    opacity: .14;
    pointer-events: none;
}
.rubric:hover { transform: translateY(-4px); border-color: var(--accent, var(--primary)); box-shadow: var(--shadow); color: var(--text); }
.rubric-icon {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 13px;
    background: color-mix(in srgb, var(--accent, var(--primary)) 22%, transparent);
    color: var(--accent, var(--primary));
    margin-bottom: 1.1rem;
}
.rubric-icon svg { width: 28px; height: 28px; }
.rubric h3 { position: relative; font-size: 1.12rem; margin: 0 0 .4rem; }
.rubric p { position: relative; color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.rubric .rubric-link { position: relative; color: var(--accent, var(--primary)); font-weight: 600; font-size: .88rem; }

/* ==========================================================================
   Product cards
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }

.card-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-deep); }
.card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-badge {
    position: absolute; top: .8rem; left: .8rem;
    padding: .3rem .7rem; border-radius: 999px;
    font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: linear-gradient(135deg, var(--amber), #e67e22); color: #1a1206;
}

.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.1rem 1.2rem 1.3rem; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 700; margin-bottom: .4rem; }
.card-title { font-size: 1.02rem; margin: 0 0 .5rem; line-height: 1.3; }
.card-title a { color: var(--heading); }
.card-title a:hover { color: var(--primary); }

.card-rating { display: flex; align-items: center; gap: .4rem; margin-bottom: .8rem; font-size: .82rem; color: var(--muted); }
.stars { letter-spacing: 1px; }
.star { color: #33405e; }
.star.full { color: var(--star); }
.star.half {
    background: linear-gradient(90deg, var(--star) 50%, #33405e 50%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .4rem; }
.card-price { display: flex; align-items: baseline; gap: .5rem; }
.card-price .now { font-size: 1.3rem; font-weight: 800; color: var(--heading); }
.card-price .was { font-size: .9rem; color: var(--muted-2); text-decoration: line-through; }
.card-buy {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1rem; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff; font-weight: 600; font-size: .85rem;
}
.card-buy:hover { color: #fff; transform: translateY(-1px); }
.card-buy svg { width: 15px; height: 15px; }

/* ==========================================================================
   Blog cards
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-thumb-fallback {
    display: flex; align-items: center; justify-content: center;
    height: 100%;
    background: radial-gradient(400px 200px at 30% 0%, rgba(47, 146, 245, .3), transparent 70%), var(--surface-2);
    color: var(--primary);
}
.post-thumb-fallback svg { width: 46px; height: 46px; opacity: .7; }
.post-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.3rem 1.4rem; }
.post-meta { font-size: .78rem; color: var(--muted-2); margin-bottom: .5rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.post-cat-tag { color: var(--cyan); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.post-card h3 { font-size: 1.1rem; margin: 0 0 .6rem; }
.post-card h3 a { color: var(--heading); }
.post-card h3 a:hover { color: var(--primary); }
.card-excerpt { color: var(--muted); font-size: .92rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.post-more { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .88rem; }

/* ==========================================================================
   Why / features + stats
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; }
.feature { text-align: left; }
.feature .fi { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(47, 146, 245, .14); color: var(--cyan); margin-bottom: .8rem; }
.feature .fi svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1rem; margin: 0 0 .35rem; }
.feature p { font-size: .86rem; color: var(--muted); margin: 0; }

.stats-band {
    margin-top: 2.6rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    padding: 1.8rem 2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(47, 146, 245, .12), rgba(55, 211, 232, .06));
    border: 1px solid var(--border);
}
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--heading); font-weight: 800; }
.stat span { font-size: .82rem; color: var(--muted); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.tst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.tst {
    padding: 1.6rem 1.6rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.tst-quote { color: var(--text); font-size: .96rem; margin: 0 0 1.2rem; }
.tst-quote::before { content: "“"; color: var(--primary); font-size: 2rem; line-height: 0; vertical-align: -.35em; margin-right: .2rem; }
.tst-person { display: flex; align-items: center; gap: .8rem; }
.tst-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--purple)); flex-shrink: 0; }
.tst-person b { display: block; color: var(--heading); font-size: .92rem; }
.tst-person span { font-size: .78rem; color: var(--muted-2); }
.tst-stars { margin-left: auto; color: var(--star); font-size: .85rem; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
    position: relative;
    overflow: hidden;
    padding: 3rem 2.4rem;
    border-radius: 18px;
    background:
        radial-gradient(600px 300px at 88% 30%, rgba(55, 211, 232, .2), transparent 65%),
        linear-gradient(120deg, #123a6b 0%, #0f2c55 60%, #14264a 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0 0 .6rem; }
.cta p { color: #c9d8ef; margin: 0; max-width: 34rem; }
.cta .btn-primary { background: #fff; color: #0f2c55; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.cta .btn-primary:hover { color: #0f2c55; }

/* ==========================================================================
   Content layout (blog, pages, single, archives)
   ========================================================================== */
.page-body { padding: 2.6rem 0 4rem; }
.crumbs { font-size: .84rem; color: var(--muted-2); margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumb-sep { margin: 0 .35rem; color: var(--border); }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 2.4rem; align-items: start; }
.layout-single { display: block; }
.layout-single .content-area { max-width: 880px; margin-inline: auto; }

.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.4rem; }

.entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.2rem;
}
.entry-content { color: var(--text); }
.entry-content a { text-decoration: underline; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
    margin: 1.5em 0;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--primary);
    background: var(--surface-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
}
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content code { background: var(--bg-deep); padding: .15em .45em; border-radius: 5px; font-size: .9em; color: var(--cyan); }
.entry-content pre { background: var(--bg-deep); padding: 1rem 1.2rem; border-radius: var(--radius-sm); overflow-x: auto; border: 1px solid var(--border); }

.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry-content table, .entry-content th, .entry-content td { border: 1px solid var(--border); }
.entry-content th, .entry-content td { padding: .6rem .8rem; text-align: left; }
.entry-content th { background: var(--surface-2); color: var(--heading); }

.entry-meta { font-size: .82rem; color: var(--muted-2); margin-bottom: 1.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sidebar */
.sidebar .widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.4rem;
}
.sidebar .widget-title { font-size: 1.02rem; margin: 0 0 1rem; color: var(--heading); padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: .6rem; }
.sidebar a { color: var(--muted); }
.sidebar a:hover { color: var(--primary); }
.sidebar .post-date { display: block; font-size: .76rem; color: var(--muted-2); }

/* ==========================================================================
   Product single page
   ========================================================================== */
.product-single { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.product-gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-deep); }
.product-gallery img { display: block; width: 100%; height: auto; }
.product-info h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .6rem; }
.product-info .p-cat { color: var(--cyan); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.product-info .p-rating { margin: .8rem 0 1.2rem; display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; }
.price-box {
    display: flex; align-items: baseline; gap: .8rem;
    margin: 1.2rem 0;
    padding: 1.3rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.price-box .now { font-size: 2.1rem; font-weight: 800; color: var(--heading); }
.price-box .was { font-size: 1.1rem; color: var(--muted-2); text-decoration: line-through; }
.buy-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.p-note { font-size: .84rem; color: var(--muted-2); display: flex; align-items: center; gap: .5rem; }
.p-note svg { width: 16px; height: 16px; color: var(--green); }
.product-desc { margin-top: 2.6rem; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2.4rem; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 .8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600; font-size: .92rem;
}
.pager a.page-numbers:hover { border-color: var(--primary); color: #fff; background: rgba(47, 146, 245, .12); }
.pager .page-numbers.current { background: linear-gradient(135deg, var(--primary), var(--primary-600)); border-color: transparent; color: #fff; }
.pager .page-numbers.dots { border: none; background: none; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { margin-top: 2.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 2rem; }
.comments-title { font-size: 1.3rem; margin-bottom: 1.4rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ul.children { list-style: none; margin: 1rem 0 0 1.4rem; padding-left: 1.2rem; border-left: 1px solid var(--border); }
.comment-item { margin-bottom: 1.4rem; }
.comment-body { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.comment-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.comment-author { font-weight: 700; color: var(--heading); }
.comment-date { font-size: .78rem; color: var(--muted-2); }
.comment-reply a { font-size: .82rem; font-weight: 600; }
.comment-form { margin-top: 1.6rem; }
.comment-form label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-deep); color: var(--text); font-size: .95rem; margin-bottom: 1rem;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--primary); }
.comment-form .submit {
    padding: .8rem 1.6rem; border-radius: 999px; border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; font-weight: 600; cursor: pointer;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: center; padding: 3rem 0; }
.error-404 .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--primary); line-height: 1; }
.error-404 .search-form { max-width: 420px; margin: 1.6rem auto 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border-soft); margin-top: 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3.4rem 0 2.6rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 22rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 9px;
    border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.footer-social a:hover { color: #fff; border-color: var(--primary); background: rgba(47, 146, 245, .14); }
.footer-social svg { width: 18px; height: 18px; }

.site-footer .widget-title { color: var(--heading); font-size: 1rem; margin: 0 0 1rem; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { margin-bottom: .6rem; }
.site-footer .widget a { color: var(--muted); font-size: .9rem; }
.site-footer .widget a:hover { color: var(--primary); }
.site-footer .widget p { color: var(--muted); font-size: .9rem; }

.footer-bottom { border-top: 1px solid var(--border-soft); padding: 1.3rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: var(--muted-2); font-size: .84rem; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
    max-width: 900px; margin-inline: auto;
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
    padding: 1.1rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; min-width: 220px; }
.cookie-banner button {
    padding: .7rem 1.4rem; border-radius: 999px; border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; font-weight: 600; cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 480px; }
    .rubric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tst-grid { grid-template-columns: 1fr; }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .product-single { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }

    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--bg-deep); border-bottom: 1px solid var(--border);
        padding: .6rem 0;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; width: min(92%, var(--shell)); margin-inline: auto; }
    .main-nav a { padding: .8rem .4rem; border-bottom: 1px solid var(--border-soft); }
    .nav-toggle { display: inline-flex; }
}

@media (max-width: 600px) {
    .section { padding: 2.8rem 0; }
    .rubric-grid { grid-template-columns: 1fr; }
    .product-grid, .product-grid.cols-4 { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.4rem; }
    .footer-top { grid-template-columns: 1fr; }
    .entry { padding: 1.4rem 1.3rem; }
    .cta { padding: 2rem 1.5rem; }
    .brand-tag { display: none; }
    .footer-bottom { justify-content: center; text-align: center; }
}
