/* top107.ru — main styles */

/* =============================================
   Article content typography
   ============================================= */
.article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #404040;
}
.article-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #171717;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F5F5F5;
    letter-spacing: -0.02em;
}
.article-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #171717;
    margin: 1.75rem 0 0.75rem;
    letter-spacing: -0.01em;
}
.article-content p { margin: 0 0 1.25rem; }
.article-content a { color: #7F56D9; text-decoration: none; }
.article-content a:hover { text-decoration: underline; color: #6941C6; }
.article-content strong { color: #171717; font-weight: 600; }
.article-content ul, .article-content ol {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
}
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
    border-left: 3px solid #7F56D9;
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: #F9F5FF;
    border-radius: 0 8px 8px 0;
    color: #6941C6;
    font-style: italic;
}

/* =============================================
   Service card (main.css variant — fallback)
   ============================================= */
.service-card {
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
    background: #fff;
    box-shadow:
        0px 1px 2px -1px rgba(0,0,0,0.10),
        0px 1px 3px rgba(0,0,0,0.10);
    transition: box-shadow .2s, border-color .2s;
}
.service-card:hover {
    box-shadow:
        0px 2px 4px -2px rgba(0,0,0,0.06),
        0px 4px 6px -1px rgba(0,0,0,0.10);
    border-color: #E9D7FE;
}
.service-card h2, .service-card h3 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #171717 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: none !important;
}
.service-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
    line-height: 1.4;
}
.badge--price   { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.badge--free    { color: #0369a1; background: #f0f9ff; border-color: #bae6fd; }
.badge--trial   { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.badge--feature { color: #6941C6; background: #F9F5FF; border-color: #E9D7FE; }

.service-card__pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F5F5F5;
}
@media (max-width: 600px) {
    .service-card__pros-cons { grid-template-columns: 1fr; }
}
.service-card__pros h4,
.service-card__cons h4 {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: none !important;
}
.service-card__pros h4 { color: #16a34a !important; }
.service-card__cons h4 { color: #dc2626 !important; }
.service-card__pros ul, .service-card__cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-card__pros li, .service-card__cons li {
    font-size: 0.875rem;
    color: #525252;
    padding: 3px 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.service-card__pros li::before { content: '+'; color: #16a34a; font-weight: 700; }
.service-card__cons li::before { content: '−'; color: #dc2626; font-weight: 700; }

/* =============================================
   Comparison table
   ============================================= */
.article-content table, .comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    overflow-x: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
    margin: 1.5rem 0;
}
.article-content thead th, .comparison-table thead th {
    background: #FAFAFA;
    text-align: left;
    padding: 11px 16px;
    border-bottom: 1px solid #E5E5E5;
    font-weight: 600;
    color: #404040;
    white-space: nowrap;
    font-size: 0.8125rem;
}
.article-content tbody td, .comparison-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #F5F5F5;
    vertical-align: middle;
    color: #525252;
}
.article-content tbody tr:last-child td,
.comparison-table tbody tr:last-child td { border-bottom: none; }
.article-content tbody tr:hover td,
.comparison-table tbody tr:hover td { background: #FAFAFA; }

/* =============================================
   FAQ
   ============================================= */
.faq-item {
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-item summary {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #171717;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-answer {
    padding: 0 18px 14px;
    font-size: 0.9375rem;
    color: #525252;
    line-height: 1.7;
}

/* =============================================
   Breadcrumbs
   ============================================= */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.8125rem;
    color: #A3A3A3;
    margin-bottom: 16px;
}
.breadcrumbs a { color: #737373; text-decoration: none; transition: color .15s; }
.breadcrumbs a:hover { color: #7F56D9; }
.breadcrumbs .sep { color: #D4D4D4; }

/* =============================================
   Pagination
   ============================================= */
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a, .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #E5E5E5;
    color: #404040;
    text-decoration: none;
    transition: all .15s;
}
.nav-links a:hover { border-color: #7F56D9; color: #7F56D9; background: #F9F5FF; }
.nav-links .current { background: #7F56D9; color: #fff; border-color: #7F56D9; }

/* =============================================
   Page container (shared across all templates)
   ============================================= */
.t107-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}
@media (max-width: 1024px) { .t107-container { padding: 0 32px; } }
@media (max-width: 768px)  { .t107-container { padding: 0 16px; } }

/* =============================================
   Utils
   ============================================= */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html { scroll-behavior: smooth; }
a:focus-visible, button:focus-visible {
    outline: none;
    box-shadow: 0px 0px 0px 4px #9E77ED, 0px 0px 0px 2px white;
    border-radius: 4px;
}
.site-header, .site-footer { display: none !important; }
body { margin: 0; padding: 0; }
