/* === БАЗА === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ШАПКА === */
.header {
    background-color: #1a1a2e;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #00adb5;
    letter-spacing: 0.5px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav a:hover {
    color: #00adb5;
}

/* === HERO-БЛОК (только на главной) === */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    color: #fff;
    padding: 55px 0;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero .accent {
    color: #00adb5;
}

.hero p {
    font-size: 18px;
    color: #b8c2d8;
    max-width: 720px;
    margin-bottom: 22px;
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats span {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* === ОСНОВНОЙ КОНТЕНТ === */
.main {
    padding: 40px 0;
    flex-grow: 1;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* === СЕТКА КАРТОЧЕК === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-image {
    height: 180px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    padding: 12px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Метка категории на карточке */
.card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #00adb5;
    margin-bottom: 6px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
}

.card-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* === КНОПКИ === */
.btn {
    display: inline-block;
    background-color: #00adb5;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #008c93;
}

/* === СТРАНИЦА СТАТЬИ === */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #00adb5;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.article-content h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.article-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

.article-image {
    display: block;
    margin: 0 auto 30px;
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.article-image-placeholder {
    height: 350px;
    background-color: #e0e5ec;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 30px;
}

.article-content p {
    font-size: 17px;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.article-content h3 {
    font-size: 21px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #333;
}

/* === БЕЙДЖ "ВЫБОР РЕДАКЦИИ" === */
.badge {
    display: inline-block;
    background: linear-gradient(90deg, #ffb347, #ffcc33);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

/* === ЗВЁЗДНЫЙ РЕЙТИНГ === */
.stars {
    color: #f5a623;
    font-size: 17px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.rating-num {
    color: #888;
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 700;
    margin-left: 6px;
}

/* === ПЛЮСЫ / МИНУСЫ С ИКОНКАМИ === */
.pros-cons {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.pros-cons li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    font-size: 16px;
}

.pros-cons li.pro::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 800;
    font-size: 18px;
}

.pros-cons li.con::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 800;
    font-size: 18px;
}

/* === БЛОК ПАРТНЕРСКОЙ ССЫЛКИ === */
.cta-block {
    background-color: #e6f7f8;
    border: 1px dashed #00adb5;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 25px 0;
}

.btn-cta {
    font-size: 18px;
    padding: 12px 30px;
    background-color: #ff9f43;
}

.btn-cta:hover {
    background-color: #e68a2e;
}

/* === ТАБЛИЦА === */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #1a1a2e;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* === ПОДВАЛ === */
.footer {
    background-color: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav a {
        margin: 0 10px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .article-content h1 {
        font-size: 26px;
    }
    .article-image {
        max-height: 300px;
    }
    .article-image-placeholder {
        height: 200px;
    }
}