:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-accent: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --color-primary: #38bdf8;
    --color-green: #34d399;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.software-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2d3748;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.software-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,.3);
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.software-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-right: 15px;
    background: #0f172a;
    object-fit: cover;
    border: 1px solid #2d3748;
    transition: border-color .2s ease;
}

.software-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.main-card-link {
    color: var(--text-main);
    text-decoration: none;
    transition: color .2s ease;
}

.main-card-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.software-card:hover .main-card-link {
    color: var(--color-primary);
}

.software-card:hover .software-logo {
    border-color: var(--color-primary);
}

.software-desc {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.2em;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
    z-index: 2;
    pointer-events: none;
}

.software-meta-tags {
    display: flex;
    gap: 8px;
    font-size: .75rem;
    font-weight: 500;
}

.meta-item {
    background: var(--bg-accent);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-main);
}

.meta-stars {
    color: #fbbf24;
}

.pseudo-btn {
    display: block;
    text-align: center;
    background: var(--bg-accent);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
}

.software-card:hover .pseudo-btn {
    background: var(--color-primary);
    color: #0f172a;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination .regular, .pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 500;
    box-sizing: border-box;
    transition: all .2s ease;
    padding: 0;
}

.pagination .regular {
    background: var(--bg-card);
    border: 1px solid #2d3748;
    cursor: pointer;
}

.pagination .regular a {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 12px;
}

.pagination .regular:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.pagination .regular:hover a {
    color: var(--color-primary);
}

.pagination .current {
    background: var(--color-primary)!important;
    color: #0f172a!important;
    border-color: var(--color-primary)!important;
    font-weight: 700;
    padding: 0 12px;
    cursor: default;
}

.pagination .disabled {
    opacity: .4;
    cursor: not-allowed;
    background: transparent;
}

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid #2d3748;
    margin-top: 80px;
    padding-top: 40px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.footer-logo span {
    color: #fff;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: .9rem;
    margin-top: 15px;
    max-width: 350px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-nav-col h4 {
    font-size: .95rem;
    color: #fff;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.footer-nav-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
    margin-bottom: 10px;
    transition: color .2s ease;
}

.footer-nav-col a:hover {
    color: var(--color-primary);
}

.footer-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px 20px;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: .85rem;
}

.about-seo-section {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid #2d3748;
    line-height: 1.6;
    width: calc(100% - 40px);
}

.seo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.seo-col {
    flex: 1;
    min-width: 280px;
}

.about-seo-section h2 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.about-seo-section h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.about-seo-section p {
    font-size: .95rem;
    color: var(--text-muted);
    margin: 0 0 15px 0;
}

.about-seo-section strong {
    color: var(--text-main);
}

.seo-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: .95rem;
}

.seo-list li {
    margin-bottom: 10px;
}

.seo-future-block {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #2d3748;
}

.product-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.tech-table td {
    padding: 15px;
    border-bottom: 1px solid var(--bg-main);
    font-size: 0.95rem;
}

.tech-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.btn-download {
    display: block;
    text-align: center;
    background: var(--color-green);
    color: #0f172a;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.btn-download:hover {
    opacity: 0.9;
}

.card-tags-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    z-index: 3;
}

.tags-label {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.card-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-badge {
    display: inline-block;
    background: var(--bg-accent);
    color: var(--text-main);
    text-decoration: none;
    font-size: .75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #2d3748;
    transition: all .2s ease;
    pointer-events: auto;
}

.tag-badge:hover {
    background: var(--color-primary);
    color: #0f172a;
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.cat-menu-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
    }
.cat-menu-btn {
        display: inline-block;
        background: var(--bg-card, #1e293b);
        color: var(--text-main, #f8fafc);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        padding: 10px 18px;
        border-radius: 8px;
        border: 1px solid #2d3748;
        transition: all 0.2s ease-in-out;
    }
.cat-menu-btn:hover {
        background: var(--bg-accent, #0f172a);
        color: var(--color-primary, #38bdf8);
        border-color: var(--color-primary, #38bdf8);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
    }

@media (max-width: 768px) {
    .footer-inner, .seo-grid {
        flex-direction: column;
        gap: 20px;
    }
    .footer-links {
        gap: 40px;
        flex-direction: column;
    }
	.cat-menu-btn {
            padding: 8px 14px;
            font-size: 0.8rem;
        }
    .about-seo-section {
        width: calc(100% - 20px);
        padding: 20px;
    }
    .product-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}