/* public/css/style.css */

:root {
    --primary: #ff4747;
    --primary-dark: #e63939;
    --text: #333333;
    --text-light: #666666;
    --bg: #f8f9fa;
    --card: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --border: #e9ecef;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; margin-bottom: 15px; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn-cta {
    display: inline-block;
    background: var(--primary);
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(255, 71, 71, 0.3);
}
.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 71, 71, 0.4);
}

/* Cards */
.review-card img, .product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.review-card:hover, .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Review Content Typography */
.review-content h2 {
    margin-top: 30px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.review-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}
.review-content ul, .review-content ol {
    margin: 15px 0 15px 30px;
}

/* Comparison Page Responsive */
@media (max-width: 768px) {
    section[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .row { grid-template-columns: 1fr !important; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .btn-cta { padding: 12px 24px; font-size: 1rem; }
}

/* Pros/Cons Responsive */
@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr !important;
    }
}

/* Table responsiveness */
table { overflow-x: auto; display: block; }
@media (min-width: 769px) {
    table { display: table; }
}

/* Stars animation */
.stars { letter-spacing: 2px; }

/* Timeline badges */
.timeline-block li {
    transition: transform 0.2s;
}
.timeline-block li:hover {
    transform: translateY(-2px);
}

/* Focus styles for accessibility */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, .btn-cta, nav[aria-label="Breadcrumb"] {
        display: none !important;
    }
    body { background: white; }
}

/* Светлая кнопка для цветных фонов (hero-секция) */
.btn-cta.btn-light {
    background: #ffffff !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ==================================================
   DESIGN POLISH v2 — premium look
   ================================================== */

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f6f7f9;
    color: #1f2328;
}
h1, h2, h3, h4 { letter-spacing: -0.02em; color: #16191d; }

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #e8eaee;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, #ff4747, #ff7a59);
    color: #fff; font-size: 14px; font-weight: 800;
    box-shadow: 0 2px 6px rgba(255, 71, 71, .35);
}

/* Cards */
.review-card, .product-card {
    border: 1px solid #e8eaee;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.review-card:hover, .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(16, 24, 40, .14) !important;
}

/* Section titles */
.section-title {
    font-size: 1.6rem; font-weight: 800; margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px;
    border: none; padding: 0;
}
.section-title::before {
    content: ""; width: 5px; height: 26px; border-radius: 3px;
    background: linear-gradient(180deg, #ff4747, #ff7a59);
}

/* Hero */
.hero {
    text-align: center; padding: 70px 24px 90px;
    background: linear-gradient(135deg, #ff4747 0%, #ff7a59 100%);
    color: #fff; border-radius: 20px; margin-bottom: 0;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; opacity: .95; }

/* Trust bar (перекрывает hero снизу — современный приём) */
.trust-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    margin: -30px auto 50px; position: relative; z-index: 5;
    max-width: 960px; padding: 0 20px;
}
.trust-item {
    background: #fff; border: 1px solid #e8eaee; border-radius: 12px;
    padding: 16px 18px; display: flex; gap: 12px; align-items: center;
    box-shadow: 0 6px 16px -6px rgba(16, 24, 40, .12);
    font-weight: 600; font-size: .95rem;
}
.trust-item .icon { font-size: 1.4rem; }
@media (max-width: 768px) {
    .trust-bar { grid-template-columns: 1fr; margin-top: 16px; }
    .hero { padding: 50px 20px 40px; }
    .hero h1 { font-size: 2rem; }
}

/* Sort bar */
.sort-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e8eaee; border-radius: 12px;
    padding: 12px 16px; margin-bottom: 28px;
}
.sort-bar > span { font-weight: 600; color: #667085; font-size: .9rem; }
.sort-chip {
    padding: 7px 14px; border-radius: 999px; text-decoration: none;
    color: #344054; background: #f2f4f7; font-size: .9rem; font-weight: 600;
    transition: all .15s;
}
.sort-chip:hover { background: #e8eaee; text-decoration: none; }
.sort-chip.active { background: #16191d; color: #fff; }

/* Footer */
footer { background: #10131a; }

/* ========== REVIEW PAGE v2 ========== */
.review-hero { display:flex; gap:28px; background:#fff; border:1px solid #e8eaee; border-radius:14px; padding:24px; margin-bottom:20px; }
.hero-img-wrap { flex:0 0 300px; position:relative; align-self:flex-start; }
.hero-img-wrap img { width:100%; max-height:260px; object-fit:contain; border-radius:10px; background:#f6f7f9; }
.badge-tested { position:absolute; top:10px; left:10px; background:rgba(22,25,29,.85); color:#fff; font-size:.72rem; font-weight:700; padding:5px 10px; border-radius:999px; }
.hero-info h1 { font-size:1.65rem; margin-bottom:6px; }
.hero-meta { color:#667085; font-size:.9rem; margin-bottom:10px; }
.rating-price { display:flex; align-items:center; gap:16px; margin-bottom:12px; }
.rating-price .price { font-size:1.5rem; font-weight:800; color:var(--primary); }
.hero-summary { font-size:1rem; line-height:1.7; margin-bottom:16px; }
.cta-note { font-size:.78rem; color:#98a2b3; margin-top:8px; }

.toc { background:#fff; border:1px solid #e8eaee; border-radius:12px; padding:14px 20px; margin-bottom:28px; display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; }
.toc a { color:var(--primary); font-weight:600; font-size:.92rem; text-decoration:none; }
.toc a:hover { text-decoration:underline; }
section[id] { scroll-margin-top: 90px; }

.pros-cons { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:32px; }
.pros-box { background:#e8f5e9; padding:20px; border-radius:12px; }
.cons-box { background:#ffebee; padding:20px; border-radius:12px; }
.pros-box h3 { color:var(--success); margin-bottom:12px; }
.cons-box h3 { color:var(--danger); margin-bottom:12px; }
.pros-cons ul { padding-left:20px; }
.pros-cons li { margin-bottom:8px; }

.specs-table { width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 1px 3px rgba(16,24,40,.06); margin-bottom:32px; }

.timeline-list { list-style:none; display:flex; flex-wrap:wrap; gap:14px; margin-bottom:32px; }
.timeline-list li { flex:1; min-width:140px; background:#fff; border:1px solid #e8eaee; padding:14px; border-radius:10px; text-align:center; }
.timeline-list strong { display:block; color:#667085; font-size:.85rem; margin-bottom:4px; }

.related-compare { background:#fff; border:1px solid #e8eaee; border-radius:14px; padding:24px; margin:32px 0; }
.related-compare .links { display:flex; flex-wrap:wrap; gap:12px; }
.related-compare a { background:#f2f4f7; padding:10px 16px; border-radius:999px; text-decoration:none; color:#344054; font-weight:600; font-size:.9rem; }
.related-compare a:hover { background:#e8eaee; }

.coupon-block { background:#fff3cd; padding:24px; border-radius:12px; text-align:center; border:1px dashed #ffc107; }
.coupon-block a { color:#856404; font-weight:600; }

/* Compare cards (homepage) */
.compare-card { display:block; background:#fff; border:1px solid #e8eaee; border-radius:14px; padding:20px; text-decoration:none; color:inherit; transition:all .2s; }
.compare-card:hover { transform:translateY(-3px); box-shadow:0 12px 24px -8px rgba(16,24,40,.14); }
.compare-card .vs-imgs { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.compare-card img { width:64px; height:64px; object-fit:cover; border-radius:10px; }
.compare-card .vs { font-weight:800; color:var(--primary); }
.compare-card h3 { font-size:1.05rem; margin-bottom:8px; }
.compare-card .go { color:var(--primary); font-weight:700; font-size:.9rem; }

@media (max-width:768px){
    .review-hero { flex-direction:column; }
    .hero-img-wrap { flex:none; width:100%; }
    .pros-cons { grid-template-columns:1fr; }
}