/*
Theme Name: AstonSoft
Theme URI: https://astonsoft.ru
Author: AstonSoft
Author URI: https://astonsoft.ru
Description: Native, lightweight WordPress theme for the AstonSoft software catalog.
Version: 1.3.7
Requires at least: 5.9
Tested up to: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: astonsoft
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
    --ink:        #14232e;
    --ink-soft:   #3c5566;
    --slate:      #6b8393;
    --line:       #e5eef2;
    --bg:         #f4f8fa;
    --surface:    #ffffff;

    --navy:       #08202b;
    --navy-2:     #0b2b38;
    --navy-3:     #0e3644;
    --teal:       #0f9e93;
    --teal-bright:#17c3b2;
    --teal-deep:  #0b7a72;

    --mint:       #3ddc91;
    --mint-hover: #2ecb80;
    --mint-ink:   #04352a;

    --radius-sm: 10px;
    --radius:    14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(10, 40, 60, .06);
    --shadow:    0 10px 30px -12px rgba(10, 40, 60, .18);
    --shadow-lg: 0 30px 60px -30px rgba(6, 30, 45, .45);

    --container: 1180px;
    --gutter: 24px;

    --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --ease: cubic-bezier(.4, .12, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 800;
    letter-spacing: -.02em;
}

p { margin: 0 0 1em; }

a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-deep); }

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

svg { display: block; }

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

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--mint);
    color: var(--mint-ink);
    padding: 12px 18px;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--teal-bright);
    outline-offset: 3px;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s var(--ease), background-color .18s var(--ease),
                box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn-lg { padding: 17px 30px; font-size: 1rem; }

.btn-mint {
    background: var(--mint);
    color: var(--mint-ink);
    box-shadow: 0 10px 24px -10px rgba(61, 220, 145, .7);
}
.btn-mint:hover {
    background: var(--mint-hover);
    color: var(--mint-ink);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(61, 220, 145, .8);
}

.btn-outline {
    background: transparent;
    color: var(--teal-deep);
    border: 1.5px solid #cfe4e4;
    padding: 11px 20px;
}
.btn-outline:hover {
    background: #ffffff;
    border-color: var(--teal-bright);
    color: var(--teal-deep);
    transform: translateY(-1px);
}

.cta-btn.primary,
.cta-btn.secondary { /* legacy aliases kept for templates */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 999px;
    transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.cta-btn.primary { background: var(--mint); color: var(--mint-ink); padding: 13px 24px; border: 0; }
.cta-btn.primary:hover { background: var(--mint-hover); transform: translateY(-2px); }
.cta-btn.secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--line); padding: 12px 22px; }
.cta-btn.secondary:hover { border-color: var(--teal-bright); color: var(--teal-deep); transform: translateY(-2px); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
}

.brand-link { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; }
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.32rem;
    color: var(--ink);
    letter-spacing: -.02em;
}
.brand-tagline { font-size: .72rem; color: var(--slate); }

.main-navigation { flex: 1; display: flex; justify-content: center; }
.main-navigation .nav-menu,
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-navigation .nav-menu a {
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .95rem;
}
.main-navigation .nav-menu a:hover { color: var(--teal-deep); background: #f1f8f7; }
.main-navigation .nav-menu .current-menu-item > a,
.main-navigation .nav-menu a[aria-current] { color: var(--teal-deep); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-search {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color .18s var(--ease), color .18s var(--ease);
}
.header-search:hover { background: #f1f8f7; color: var(--teal-deep); }

.nav-toggle { display: none; }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 88% 6%, #0f4557 0%, rgba(15, 69, 87, 0) 55%),
        linear-gradient(160deg, #07202b 0%, #0a2e3d 45%, #0d3d4c 100%);
    color: #eaf6f7;
    padding: clamp(48px, 6vw, 82px) 0 clamp(60px, 7vw, 96px);
}

.hero-scene { position: absolute; inset: 0; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-glow-a { width: 460px; height: 460px; right: -60px; top: -120px; background: rgba(23, 195, 178, .25); }
.hero-glow-b { width: 520px; height: 520px; right: 200px; bottom: -260px; background: rgba(15, 158, 147, .18); }
.hero-ridge { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 62%; }

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #cdeee9;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 22px;
}
.hero-badge svg { color: var(--mint); }

.hero-title {
    font-size: clamp(2.1rem, 3.5vw, 3.05rem);
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: .45em;
}
.hero-title .accent { color: var(--mint); }

.hero-subtitle {
    font-size: clamp(1rem, 1.2vw, 1.16rem);
    color: #a9c8cd;
    max-width: 30em;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    margin: 0 0 34px;
    padding: 0;
}
.hero-features li {
    flex: 1 1 142px;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.hero-features li + li {
    border-left: 1px solid rgba(255, 255, 255, .14);
    padding-left: 18px;
}
.hf-icon {
    width: 36px; height: 36px;
    flex: none;
    display: grid; place-items: center;
    border-radius: 10px;
    background: linear-gradient(150deg, #17c3b2, #0b7a72);
    color: #ffffff;
    box-shadow: 0 8px 18px -10px rgba(23, 195, 178, .9);
}
.hf-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hf-text { display: flex; flex-direction: column; font-size: .78rem; color: #90b1b8; line-height: 1.35; }
.hf-text strong { font-family: var(--font-display); font-size: .88rem; color: #f2fbfb; font-weight: 700; }

/* Hero Visual Illustration */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { padding: clamp(56px, 6vw, 84px) 0; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}
.section-title {
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
    margin: 0;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: .92rem;
    color: var(--teal);
}
.section-link svg { transition: transform .18s var(--ease); }
.section-link:hover svg { transform: translateX(3px); }

.empty-note { color: var(--slate); }

/* ---------- Catalog ---------- */
.catalog { background: #f6fafb; }

.catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.catalog-actions-wrap {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.catalog-carousel-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.catalog-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(10, 35, 50, 0.04);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
    padding: 0;
}

.catalog-nav-arrow:hover:not(:disabled) {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--mint-ink);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -3px rgba(23, 195, 178, 0.35);
}

.catalog-nav-arrow:active:not(:disabled) {
    transform: scale(0.93);
}

.catalog-nav-arrow:disabled,
.catalog-nav-arrow.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f8fafb;
    border-color: #e5ecee;
    color: var(--slate);
    transform: none;
    box-shadow: none;
}

.catalog-carousel-container {
    position: relative;
    width: 100%;
}

.catalog-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 4px 24px 4px;
    margin: -10px -4px -24px -4px;
}

.catalog-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Exactly 3 programs fit inside the block on desktop */
.catalog-carousel-track .catalog-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    scroll-snap-align: start;
    box-sizing: border-box;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.catalog-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 22px;
    display: flex;
    flex-direction: column;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5e6e9; }

.card-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}
.card-icon {
    width: 54px; height: 54px;
    flex: none;
    border-radius: 15px;
    display: grid; place-items: center;
    overflow: hidden;
    box-shadow: 0 10px 20px -12px rgba(10, 40, 60, .75);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; }

.card-title { font-size: 1.08rem; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--teal-deep); }
.card-text { color: var(--slate); font-size: .9rem; flex: 1; margin: 0 0 18px; }

.card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tag {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: #eef5f6;
    border-radius: 999px;
    padding: 5px 11px;
}
.card-arrow {
    margin-left: auto;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #f1f8f7;
    color: var(--teal-deep);
    transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.catalog-card:hover .card-arrow { background: var(--mint); color: var(--mint-ink); transform: translateX(2px); }

/* ---------- Blog + aside ---------- */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}
.post-list { display: flex; flex-direction: column; gap: 6px; }
.post-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.post-row:first-child { border-top: 0; padding-top: 0; }
.post-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #0d2b38;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #0d2b38, #17c3b2); }
.post-title { font-size: 1.08rem; margin: 0 0 6px; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--teal-deep); }
.post-excerpt { color: var(--slate); font-size: .9rem; margin: 0 0 10px; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--slate); }
.post-meta .meta-sep { opacity: .6; }
.post-cat { color: var(--teal); font-weight: 600; }

.blog-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-radius: var(--radius-lg);
    padding: 30px 28px;
}
.faq-card { background: #e8f6f1; }
.contact-card { background: #eaf1fb; }
.aside-icon {
    width: 74px; height: 74px;
    flex: none;
    border-radius: 22px;
    display: grid; place-items: center;
    background: linear-gradient(150deg, #17c3b2, #0b7a72);
    color: #ffffff;
    box-shadow: 0 14px 26px -14px rgba(11, 122, 114, .9);
}
.contact-card .aside-icon {
    background: linear-gradient(150deg, #4a9bf5, #2f6ddc);
    box-shadow: 0 14px 26px -14px rgba(47, 109, 220, .9);
}
.aside-icon svg { width: 34px; height: 34px; }
.aside-body { min-width: 0; }
.aside-card h3 { font-size: 1.2rem; margin: 4px 0 8px; }
.aside-card p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 18px; }
.aside-card .btn-outline { background: #ffffff; border-color: transparent; }

/* ---------- Trust strip ---------- */
.trust {
    background: #eef7f4;
    border-top: 1px solid #e0eeea;
    border-bottom: 1px solid #e0eeea;
    padding: 34px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    background: var(--surface);
    color: var(--teal);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    padding: 0 !important;
    overflow: hidden;
}
.trust-icon svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    margin: 0 auto !important;
    flex: 0 0 22px;
    stroke: currentColor;
    fill: none;
}
.trust-item strong { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--ink); }
.trust-item span { display: block; font-size: .78rem; color: var(--slate); line-height: 1.4; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer { background: #0a2733; color: #b8cdd3; padding-top: 40px; }
.site-footer {
    background: #08202b;
    color: #9bb5bd;
    padding: 36px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}
.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 4px;
}
.footer-legal-links a {
    color: #9bb5bd;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.18s ease;
}
.footer-legal-links a:hover {
    color: var(--mint);
    text-decoration: underline;
}
.legal-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
}
.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}
.footer-disclaimer {
    margin: 0;
    font-size: 0.76rem;
    color: #6c8892;
    max-width: 520px;
    line-height: 1.45;
}

/* Legal Pages Styling */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.75;
}
.legal-date {
    font-size: 0.88rem;
    color: var(--slate);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    color: var(--ink);
}
.legal-content p, .legal-content li {
    color: var(--ink-soft);
    font-size: 0.96rem;
}
.legal-content ul {
    margin: 0 0 1.2em 1.2em;
    padding: 0;
}

/* ==========================================================================
   8. Inner pages (archive, single, generic content)
   ========================================================================== */
.page-header {
    background: linear-gradient(160deg, #07202b 0%, #0b3444 100%);
    color: #fff;
    padding: 54px 0;
}
.page-title { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 6px; }
.page-description { color: #a9c8cd; margin: 0; }

.site-main > .container > article,
.page-content {
    padding: 48px 0;
}

.software-archive { padding: 48px 0 72px; background: var(--bg); }
.archive-toolbar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.filter-select {
    appearance: none;
    padding: 11px 40px 11px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b8393' stroke-width='2.5' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 14px center;
    font: inherit;
    font-size: .92rem;
    color: var(--ink);
    cursor: pointer;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.software-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.software-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5e6e9; }
.software-thumbnail { aspect-ratio: 16 / 10; background: #eef5f6; overflow: hidden; }
.software-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.software-thumbnail.placeholder { display: grid; place-items: center; }
.software-thumbnail.placeholder svg { width: 48px; height: 48px; color: #b3ccd2; }
.software-content { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.software-title { font-size: 1.14rem; margin: 0 0 8px; }
.software-title a { color: var(--ink); }
.software-title a:hover { color: var(--teal-deep); }
.software-excerpt { color: var(--slate); font-size: .9rem; flex: 1; margin: 0 0 16px; }
.software-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.meta-item { display: inline-flex; }
.meta-item .meta-label { display: none; }
.meta-item .meta-value {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: #eef5f6;
    border-radius: 999px;
    padding: 5px 11px;
}
.software-actions { display: flex; gap: 10px; margin-top: auto; }
.software-actions .cta-btn { flex: 1; padding: 11px 14px; font-size: .88rem; }

.no-results, .no-software, .no-articles { color: var(--slate); grid-column: 1 / -1; }

.pagination, .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.page-numbers {
    display: grid; place-items: center;
    min-width: 40px; height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    font-size: .9rem;
}
.page-numbers.current, .page-numbers:hover { background: var(--mint); color: var(--mint-ink); border-color: transparent; }

/* ---------- Single software ---------- */
.software-header { background: linear-gradient(160deg, #07202b 0%, #0b3444 100%); color: #fff; padding: 52px 0; }
.software-header-title { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 18px; }
.software-header-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; max-width: 460px; }
.software-header-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.meta-badge {
    display: inline-flex;
    gap: 6px;
    font-size: .82rem;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #dcefef;
}
.meta-badge .meta-label { color: #8fb4ba; }
.meta-badge .meta-value { font-weight: 700; color: #fff; }
.software-header-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.software-content-section { padding: 56px 0 72px; background: var(--bg); }
.software-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.software-main-content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.blog-article-card {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 60px) clamp(24px, 5vw, 54px);
    box-shadow: 0 10px 40px -15px rgba(10, 40, 60, 0.08);
}
.blog-article-card .post-thumb {
    margin-bottom: 36px;
    border-radius: var(--radius);
    overflow: hidden;
}
.software-main-content h2 { font-size: 1.4rem; margin-top: 1.6em; }
.software-main-content h2:first-child { margin-top: 0; }
.software-description :is(p, ul, ol) { color: var(--ink-soft); }
.software-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.sidebar-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-widget h3 { font-size: 1.05rem; margin: 0 0 16px; }
.download-widget .cta-btn { width: 100%; }
.download-info, .download-note { font-size: .84rem; color: var(--slate); margin: 12px 0 0; }
.info-list { margin: 0; }
.info-list dt { font-size: .78rem; color: var(--slate); margin-top: 12px; }
.info-list dt:first-child { margin-top: 0; }
.info-list dd { margin: 2px 0 0; font-weight: 600; }
.share-buttons { display: flex; gap: 10px; }
.share-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #eef5f6; color: var(--ink-soft); }
.share-btn:hover { background: var(--mint); color: var(--mint-ink); }
.screenshots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.screenshot-item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }

/* ---------- Generic Gutenberg/entry content (Modern Article Typography) ---------- */
.entry-content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #273b47;
    max-width: 820px;
    margin: 0 auto;
}
.entry-content p {
    margin-bottom: 1.35em;
}
.entry-content :is(h2, h3, h4) {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 800;
    line-height: 1.3;
}
.entry-content h2 {
    font-size: 1.65rem;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    color: #08202b;
}
.entry-content h3 {
    font-size: 1.32rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #0f4557;
}
.entry-content h4 {
    font-size: 1.12rem;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.4em;
    padding-left: 1.6em;
}
.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}
.entry-content img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
}
.entry-content blockquote {
    margin: 1.8em 0;
    padding: 16px 24px;
    border-left: 4px solid var(--teal-bright);
    background: #f4fbf9;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #1a424b;
    font-style: italic;
}
.entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #17c3b2, #3ddc91, transparent);
    margin: 36px 0;
}

/* Callout Boxes (Info, Tip, Warning) */
.callout-box {
    padding: 18px 22px;
    border-radius: 12px;
    margin: 24px 0;
    font-size: 0.98rem;
    line-height: 1.6;
}
.callout-info {
    background: #eef8fb;
    border-left: 4px solid #17c3b2;
    color: #0c3e4a;
}
.callout-tip {
    background: #eafaf3;
    border-left: 4px solid #3ddc91;
    color: #064032;
}
.callout-warning {
    background: #fef7ec;
    border-left: 4px solid #f59e0b;
    color: #5c3b04;
}

/* Clean Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    font-size: 0.95rem;
}
.entry-content table th {
    background: #08202b;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
}
.entry-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: #273b47;
}
.entry-content table tr:nth-child(even) td {
    background: #fafcfe;
}

/* Code block */
.entry-content pre {
    background: #08202b;
    color: #38ef7d;
    border-radius: 12px;
    padding: 18px 22px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.92rem;
    line-height: 1.6;
    overflow-x: auto;
    border: 1px solid rgba(23, 195, 178, 0.25);
}

.wp-block-button__link { border-radius: 999px !important; }

/* ---------- FAQ accordion (native <details>/<summary>) ---------- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}
.faq-accordion > p { color: var(--ink-soft); margin: 0; }
.faq-accordion details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.faq-accordion details[open] { border-color: #d5e6e9; }
.faq-accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .98rem;
    color: var(--ink);
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
    content: '+';
    flex: none;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #eef5f6;
    color: var(--teal-deep);
    font-weight: 600;
    line-height: 1;
    transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.faq-accordion details[open] summary::after {
    transform: rotate(45deg);
    background: var(--mint);
    color: var(--mint-ink);
}
.faq-accordion .faq-answer {
    padding: 0 20px 18px;
    color: var(--ink-soft);
    font-size: .95rem;
}
.faq-accordion .faq-answer p { margin: 0 0 10px; }
.faq-accordion .faq-answer p:last-child { margin-bottom: 0; }
.faq-accordion .faq-answer a { color: var(--teal); font-weight: 600; }
.faq-accordion .faq-answer a:hover { color: var(--teal-deep); }

@media (max-width: 520px) {
    .faq-accordion summary { padding: 14px 16px; }
    .faq-accordion .faq-answer { padding: 0 16px 16px; }
}

/* ---------- Contact page ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-email-link { font-weight: 600; }

.contact-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-form-card h3 { font-size: 1.05rem; margin: 0 0 16px; }

.contact-notice {
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 20px;
}
.contact-notice.is-success { background: #e8f6f1; color: #0b7a72; }
.contact-notice.is-error { background: #fbeaea; color: #a33a3a; }

.contact-form { display: flex; flex-direction: column; }
.contact-field { margin: 0 0 18px; display: flex; flex-direction: column; }
.contact-field label,
.contact-hp label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink);
    margin-bottom: 7px;
}
.consent-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 0.86rem !important;
    color: var(--ink-soft) !important;
    cursor: pointer;
    line-height: 1.45;
}
.consent-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    width: 17px;
    height: 17px;
    accent-color: var(--teal);
}
.consent-checkbox-label a {
    color: var(--teal);
    text-decoration: underline;
}
.consent-checkbox-label a:hover {
    color: var(--teal-deep);
}
.required { color: #c0392b; }
.contact-field input,
.contact-field textarea {
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: #fbfdfd;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--teal-bright);
    box-shadow: 0 0 0 3px rgba(23, 195, 178, .15);
}
.contact-field textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }

.contact-hp {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    margin: 0;
}

.contact-social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-social-list a {
    display: inline-block;
    font-weight: 600;
    color: var(--teal-deep);
}
.contact-social-list a:hover { color: var(--teal); text-decoration: underline; }

@media (max-width: 720px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-form-card { padding: 24px 22px; }
}

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .main-navigation { display: none; }
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px; height: 42px;
        padding: 0 10px;
        background: transparent;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        cursor: pointer;
    }
    .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: 2; margin-top: 8px; padding-right: 0; }
    .hero-note { display: none; }

    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-carousel-track { gap: 18px; }
    .catalog-carousel-track .catalog-card {
        flex: 0 0 calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
        max-width: calc((100% - 18px) / 2);
    }
    .blog-layout { grid-template-columns: 1fr; }
    .software-content-grid { grid-template-columns: 1fr; }
    .software-sidebar { position: static; }
}

@media (max-width: 720px) {
    .header-actions .btn { font-size: .85rem; }
    .hero-features { gap: 14px; }
    .hero-features li { flex: 1 1 100%; }
    .hero-features li + li { border-left: 0; padding-left: 0; }
    .laptop-base { display: none; }
    .screen-body { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .post-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
    .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
    .footer-bottom { text-align: left; }
}

@media (max-width: 600px) {
    .catalog-carousel-track { gap: 14px; }
    .catalog-carousel-track .catalog-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
    .catalog-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .catalog-actions-wrap { width: 100%; justify-content: space-between; }
}

@media (max-width: 520px) {
    :root { --gutter: 18px; }
    .brand-tagline { display: none; }
    .catalog-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .software-actions { flex-direction: column; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .aside-card { flex-direction: column; gap: 14px; padding: 24px 22px; }
    .aside-icon { width: 60px; height: 60px; border-radius: 18px; }
    .aside-icon svg { width: 28px; height: 28px; }
}

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