/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --bg-dark: #0d1b2a;
  --text: #1a1a2e;
  --text-light: #555e6c;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --gold: #d4a017;
  --gold-light: #f5e6a3;
  --green: #2d6a4f;
  --green-light: #d8f3dc;
  --blue: #1d3557;
  --blue-light: #a8dadc;
  --border: #dee2e6;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
ul, ol { padding-left: 1.4em; }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

/* === HEADER === */
.site-header { background: var(--bg-dark); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; max-width: var(--max-w); margin: 0 auto; }
.logo { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; flex-wrap: wrap; }
.nav-links a { color: #ffffffcc; font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* === HERO === */
.hero { background: linear-gradient(135deg, var(--bg-dark) 0%, #162a40 100%); color: #fff; padding: 5rem 0 4rem; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--bg)); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.2rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: #ffffffcc; max-width: 650px; margin: 0 auto 2rem; line-height: 1.6; }
.hero-badge { display: inline-block; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 700; padding: .4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }

/* === BUTTONS === */
.btn { display: inline-block; padding: .85rem 2rem; border-radius: 50px; font-weight: 700; font-size: 1rem; text-align: center; transition: all .25s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,.3); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: .6rem 1.4rem; font-size: .9rem; }

/* === SECTION TITLES === */
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; text-align: center; margin-bottom: .6rem; color: var(--text); }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1.05rem; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* === PRODUCT CARDS === */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.8rem; }
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card.featured { border: 3px solid var(--accent); }
.product-badge { position: absolute; top: 1rem; left: 1rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: 50px; text-transform: uppercase; z-index: 2; }
.product-badge.gold { background: var(--gold); color: var(--text); }
.product-img { width: 100%; height: 220px; object-fit: cover; background: var(--bg-alt); }
.product-body { padding: 1.5rem; }
.product-brand { font-size: .78rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .4rem; }
.product-name { font-size: 1.2rem; font-weight: 800; margin-bottom: .6rem; line-height: 1.3; }
.product-desc { font-size: .92rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.5; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.product-price { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.product-rating { display: flex; align-items: center; gap: .3rem; font-size: .88rem; color: var(--gold); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 1px; }
.product-features { list-style: none; padding: 0; margin-bottom: 1.2rem; }
.product-features li { font-size: .88rem; padding: .3rem 0; padding-left: 1.4rem; position: relative; color: var(--text-light); }
.product-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* === COMPARISON TABLE === */
.comparison-wrapper { overflow-x: auto; margin: 2rem 0; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.comparison-table th { background: var(--bg-dark); color: #fff; padding: .9rem 1rem; text-align: left; font-weight: 700; white-space: nowrap; }
.comparison-table th.winner { background: var(--accent); }
.comparison-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.comparison-table tr:nth-child(even) { background: var(--bg-alt); }
.comparison-table .check { color: var(--green); font-weight: 700; }
.comparison-table .cross { color: var(--accent); }
.comparison-table .highlight-col { background: rgba(230,57,70,.04); }

/* === ARTICLE CARDS === */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-card-img { width: 100%; height: 200px; object-fit: cover; background: var(--bg-alt); }
.article-card-body { padding: 1.4rem; }
.article-card-tag { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem; }
.article-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.article-card-title a { color: var(--text); }
.article-card-title a:hover { color: var(--accent); }
.article-card-excerpt { font-size: .88rem; color: var(--text-light); line-height: 1.5; margin-bottom: 1rem; }
.read-more { font-size: .88rem; font-weight: 700; color: var(--accent); }

/* === ARTICLE PAGE === */
.article-hero { background: linear-gradient(135deg, var(--bg-dark) 0%, #162a40 100%); color: #fff; padding: 4rem 0 3rem; }
.article-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; line-height: 1.2; max-width: 800px; }
.article-hero .breadcrumb { font-size: .85rem; color: #ffffff99; margin-bottom: 1rem; }
.article-hero .breadcrumb a { color: #ffffffcc; }
.article-hero .article-meta-info { display: flex; gap: 1.5rem; margin-top: 1rem; font-size: .85rem; color: #ffffff99; }

.article-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.25rem; }
.article-content h2 { font-size: 1.6rem; font-weight: 800; margin: 2.5rem 0 1rem; color: var(--text); padding-bottom: .5rem; border-bottom: 3px solid var(--accent); display: inline-block; }
.article-content h3 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .8rem; color: var(--blue); }
.article-content p { margin-bottom: 1.2rem; color: var(--text); }
.article-content ul, .article-content ol { margin-bottom: 1.2rem; }
.article-content li { margin-bottom: .4rem; }

/* === INFO BOXES === */
.info-box { border-radius: var(--radius-sm); padding: 1.4rem 1.6rem; margin: 1.5rem 0; }
.info-box-warning { background: #fff3cd; border-left: 4px solid var(--gold); }
.info-box-danger { background: #f8d7da; border-left: 4px solid var(--accent); }
.info-box-success { background: var(--green-light); border-left: 4px solid var(--green); }
.info-box-info { background: #d1ecf1; border-left: 4px solid #0c7abf; }
.info-box strong { display: block; margin-bottom: .3rem; }

/* === CTA BOX === */
.cta-box { background: linear-gradient(135deg, var(--bg-dark), #1d3557); color: #fff; border-radius: var(--radius); padding: 2.5rem; text-align: center; margin: 2.5rem 0; }
.cta-box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .8rem; }
.cta-box p { color: #ffffffcc; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === VERDICT BOX === */
.verdict-box { background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); padding: 2rem; margin: 2rem 0; }
.verdict-box h3 { color: var(--accent); font-size: 1.3rem; margin-bottom: 1rem; }
.verdict-box .verdict-winner { display: flex; align-items: center; gap: 1rem; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1rem; margin-top: 1rem; }
.verdict-box .verdict-winner .trophy { font-size: 2rem; }

/* === FAQ === */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; }
.faq-question { padding: 1.1rem 1.4rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; transition: background .2s; }
.faq-question:hover { background: var(--bg-alt); }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--accent); font-weight: 300; transition: transform .3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem; max-height: 0; overflow: hidden; transition: all .35s ease; }
.faq-item.active .faq-answer { padding: 1rem 1.4rem; max-height: 800px; }

/* === FOOTER === */
.site-footer { background: var(--bg-dark); color: #ffffffaa; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #ffffffaa; font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #ffffff1a; padding-top: 1.5rem; text-align: center; font-size: .82rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark); padding: 1rem 1.25rem; gap: .8rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 1.8rem; }
  .products-grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .comparison-table { font-size: .82rem; }
  .comparison-table th, .comparison-table td { padding: .6rem .7rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .product-meta { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* === TOC (Table of Contents) === */
.toc { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1.5rem 2rem; margin: 1.5rem 0 2rem; }
.toc h4 { font-size: 1rem; margin-bottom: .8rem; color: var(--text); }
.toc ol { padding-left: 1.2rem; }
.toc li { margin-bottom: .4rem; font-size: .92rem; }
.toc a { color: var(--blue); font-weight: 500; }
.toc a:hover { color: var(--accent); }

/* === INLINE PRODUCT CTA === */
.product-cta-inline { display: flex; align-items: center; gap: 1.5rem; background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--accent); }
.product-cta-inline .pci-info { flex: 1; }
.product-cta-inline .pci-name { font-weight: 800; font-size: 1.05rem; margin-bottom: .3rem; }
.product-cta-inline .pci-desc { font-size: .88rem; color: var(--text-light); }
.product-cta-inline .pci-price { font-weight: 800; color: var(--accent); font-size: 1.2rem; white-space: nowrap; }

@media (max-width: 600px) {
  .product-cta-inline { flex-direction: column; align-items: flex-start; gap: .8rem; }
}

/* === SCHEMA / STRUCTURED DATA STYLES === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp .6s ease both; }
