/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #0b0b0b;
    color: #e0e0e0;
    line-height: 1.6;
}

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

/* ===== HEADER / НАВИГАЦИЯ ===== */
header {
    background: #1a1a1a;
    padding: 20px 0;
    border-bottom: 3px solid #e63946;
    margin-bottom: 40px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: #e63946;
}

nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: #e63946;
}

nav a.active {
    color: #fff;
    border-bottom: 2px solid #e63946;
    padding-bottom: 5px;
}

/* ===== КАРТОЧКИ СТАТЕЙ ===== */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.article-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #2a2a2a;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.15);
    border-color: #e63946;
}

.card-img {
    width: 100%;
    height: 200px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #e63946;
    background: #131313;
}

.card-content {
    padding: 20px;
}

.card-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-content h2 a {
    color: #fff;
    text-decoration: none;
}

.card-content h2 a:hover {
    color: #e63946;
}

.meta {
    color: #888;
    font-size: 14px;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
}

.btn {
    display: inline-block;
    background: #e63946;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
    margin-top: 15px;
}

.btn:hover {
    background: #c62836;
}

/* ===== СТРАНИЦА ОБЗОРОВ (список) ===== */
.review-item {
    background: #1a1a1a;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #e63946;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.review-item h3 {
    font-size: 20px;
}

.review-item h3 a {
    color: #fff;
    text-decoration: none;
}

.review-item h3 a:hover {
    color: #e63946;
}

.review-item .rating {
    color: #f5c518;
    font-weight: 700;
}

/* ===== КОНТАКТЫ ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-info i {
    color: #e63946;
    margin-right: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e63946;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: #e63946;
    color: #fff;
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #b71c2c;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 14px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 700px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }
    nav a {
        margin: 0 12px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}