.top-menu {
    background: #0077cc;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.top-menu .brand {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    margin-right: auto;
}

.top-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.top-menu a:hover {
    text-decoration: underline;
}

.page-wrapper {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 52px);
}

.page-wrapper .content {
    flex: 1;
    padding: 24px;
    background: #fff;
    overflow-x: auto;
}

.katalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.katalog-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.katalog-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.katalog-box-media {
    height: 200px;
    flex: 0 0 200px;
    width: 100%;
    background: #f3f3f3;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.katalog-box-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    box-sizing: border-box;
}

.katalog-box-placeholder {
    color: #999;
    font-size: 0.85rem;
}

.katalog-box-body {
    padding: 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.katalog-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0077cc;
}

.katalog-box h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.35;
    min-height: 2.7em;
}

.katalog-box-lead {
    margin: -4px 0 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.katalog-box-body p {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.katalog-box-body p:last-child {
    margin-bottom: 0;
}

.inverter-detail-body {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 780px;
}

.inverter-detail .detail-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    flex: 1 1 480px;
    max-width: 520px;
    width: 100%;
    min-width: 0;
}

.inverter-detail-back {
    margin: 0 0 16px;
}

.inverter-detail-back a {
    color: #0077cc;
    text-decoration: none;
}

.inverter-detail-back a:hover {
    text-decoration: underline;
}

.inverter-detail-intro {
    margin-bottom: 20px;
    max-width: 780px;
}

.inverter-detail-intro h1 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.55rem);
    line-height: 1.3;
    text-wrap: balance;
}

.inverter-detail-lead {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #333;
}

.inverter-detail-meta {
    margin: 0;
    color: #555;
}

.inverter-detail-image {
    flex: 0 0 260px;
    position: sticky;
    top: 20px;
}

.inverter-detail-side {
    flex: 0 0 260px;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inverter-detail-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.inverter-affiliate-box {
    padding: 16px;
    border: 2px solid #0077cc;
    border-radius: 10px;
    background: #f0f7fd;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 119, 204, 0.12);
}

.inverter-affiliate-link {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
    background: #0077cc;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.inverter-affiliate-link:hover {
    background: #005fa3;
    text-decoration: none;
    transform: translateY(-1px);
}

.inverter-affiliate-box--below-editorial {
    margin-top: 24px;
    max-width: 720px;
}

.inverter-similar {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    max-width: 720px;
}

.inverter-similar h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.inverter-similar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inverter-similar-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.inverter-similar-list li:last-child {
    border-bottom: 0;
}

.inverter-similar-list a {
    font-weight: 600;
}

.inverter-similar-meta {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 0.95rem;
}

.inverter-similar-more {
    margin: 16px 0 0;
}

.content-prose-block {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 24px 28px;
    box-sizing: border-box;
}

.content-prose-block > :first-child {
    margin-top: 0;
}

.content-prose-block > :last-child {
    margin-bottom: 0;
}

.inverter-detail .detail-section + .detail-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.inverter-detail .detail-section h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #0077cc;
}

.inverter-detail .detail-dl {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
}

.inverter-detail .detail-dl dt {
    margin: 0;
    font-weight: bold;
    color: #333;
}

.inverter-detail .detail-dl dd {
    margin: 0;
    color: #444;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.empty-state {
    color: #666;
    padding: 24px 0;
}

.katalog-intro {
    background: #f0f7fd;
    border: 1px solid #b8daf3;
    border-radius: 8px;
    padding: 20px 24px;
    max-width: 640px;
}

.katalog-intro h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.katalog-intro-lead {
    margin: 0 0 12px;
    line-height: 1.55;
    color: #333;
}

.katalog-intro ol {
    margin: 12px 0 16px;
    padding-left: 20px;
}

.katalog-intro li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.katalog-intro-cta {
    margin: 16px 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px dashed #0077cc;
    border-radius: 8px;
    text-align: center;
}

.katalog-intro-cta-label {
    margin: 0 0 10px;
    font-weight: 600;
    color: #333;
}

.katalog-intro-btn-preview {
    display: inline-block;
    min-width: 180px;
    padding: 12px 20px;
    background: #d32f2f;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.35);
    letter-spacing: 0.02em;
}

.katalog-intro-cta-hint {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.45;
}

.katalog-intro-note {
    margin-bottom: 0;
    color: #444;
    line-height: 1.5;
}

.katalog-count {
    color: #444;
}

.katalog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.katalog-page-link,
.katalog-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.92rem;
}

.katalog-page-link {
    background: #f0f7fd;
    border: 1px solid #b8daf3;
    color: #0077cc;
    font-weight: 600;
}

.katalog-page-link:hover {
    background: #dceeff;
}

.katalog-page-current {
    background: #0077cc;
    color: #fff;
    font-weight: 700;
}

.home-articles {
    margin-top: 32px;
}

.home-articles h2 {
    margin-bottom: 16px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 20px;
    background: #fafafa;
}

.article-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.article-card-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.article-card h3 a,
.article-card-title a {
    color: #0077cc;
    text-decoration: none;
}

.article-card h3 a:hover,
.article-card-title a:hover {
    text-decoration: underline;
}

.article-meta {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: #777;
}

.article-read-more {
    color: #0077cc;
    text-decoration: none;
    font-weight: 600;
}

.article-read-more:hover {
    text-decoration: underline;
}

.home-more {
    margin-top: 16px;
}

.home-more a {
    color: #0077cc;
}

.articles-count {
    color: #444;
    margin-bottom: 16px;
}

.article-detail .article-back {
    margin: 0 0 12px;
}

.article-detail .article-back a {
    color: #0077cc;
    text-decoration: none;
}

.article-detail .article-back a:hover {
    text-decoration: underline;
}

.article-detail h1 {
    margin-top: 0;
}

.article-detail .article-content.content-prose-block {
    margin-top: 8px;
}

.article-content {
    line-height: 1.65;
    max-width: 720px;
    text-align: justify;
    text-align-last: left;
}

.article-content h2,
.article-content h3,
.article-content ul,
.article-content ol,
.article-content img {
    text-align: left;
}

.article-content p,
.article-content li {
    text-align: justify;
    text-align-last: left;
}

.article-content p {
    margin: 0 0 1em;
}

.article-content strong {
    font-weight: 600;
}

.article-content a {
    color: #0077cc;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content h2 {
    font-size: 1.45rem;
    margin: 1.6em 0 0.6em;
}

.article-content h3 {
    font-size: 1.2rem;
    margin: 1.4em 0 0.5em;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.article-content li {
    margin-bottom: 0.35em;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.2em 0;
    border-radius: 4px;
}

.faq-page {
    max-width: 720px;
    line-height: 1.65;
}

.faq-page h1 {
    margin-top: 0;
}

.faq-intro {
    margin-bottom: 1.5em;
    color: #444;
}

.faq-section {
    margin-bottom: 2em;
}

.faq-section > h2 {
    font-size: 1.35rem;
    margin: 0 0 0.75em;
    padding-bottom: 0.35em;
    border-bottom: 1px solid #ddd;
}

.faq-item {
    margin-bottom: 1.25em;
}

.faq-item h3 {
    font-size: 1.05rem;
    margin: 0 0 0.35em;
}

.faq-item p {
    margin: 0;
    color: #333;
}

.faq-page a {
    color: #0077cc;
}

.faq-page a:hover {
    text-decoration: underline;
}

.inverter-editorial {
    margin-top: 32px;
}

.inverter-editorial.content-prose-block {
    padding-top: 28px;
    padding-bottom: 28px;
}

.site-footer {
    background: #2a2a2a;
    color: #ddd;
    padding: 20px 24px;
    font-size: 0.9rem;
}

.site-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
}

.site-footer a {
    color: #9fd4ff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 700px) {
    .inverter-detail-body {
        flex-direction: column;
        max-width: 100%;
    }

    .inverter-detail .detail-box {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .inverter-detail-side {
        position: static;
        flex: 0 0 auto;
        max-width: 320px;
    }

    .inverter-detail-image {
        position: static;
        flex: 0 0 auto;
        max-width: 280px;
    }

    .inverter-detail .detail-dl {
        grid-template-columns: 1fr;
    }

    .inverter-detail .detail-dl dt {
        margin-top: 8px;
    }
}
