/* ========================================
   CarService — SEO Pages Stylesheet
   Спільний стиль для локальних лендингів,
   сторінок порівнянь та блогу.
   Узгоджений з головною сторінкою (index.css).
   ======================================== */

:root {
  font-family: "Times New Roman", Times, serif;
  color: #f8fafc;
  background: #05070b;
  color-scheme: dark;
  font-weight: 400;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 14%, rgba(41, 121, 255, .22), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .08), transparent 30%),
    linear-gradient(135deg, #05070b 0%, #0b111c 38%, #111827 70%, #06080d 100%);
  color: #f8fafc;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
strong, b { font-weight: 500; }
img { max-width: 100%; display: block; height: auto; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 9px 0;
  backdrop-filter: blur(22px);
}
.site-header::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100vw;
  height: 86px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(3, 6, 14, .95), rgba(6, 11, 26, .88));
  box-shadow: 0 18px 45px rgba(0,0,0,.32);
}

.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 48px rgba(0,0,0,.34);
  flex: 0 0 auto;
}
.brand-mark img { width: 54px; height: 54px; object-fit: contain; }
.brand strong { display: block; font-size: 30px; letter-spacing: .01em; color: #fff; font-weight: 500; }
.brand em { display: block; margin-top: 2px; font-style: normal; font-size: 15px; font-weight: 400; letter-spacing: .02em; color: #adb9cd; }

.site-nav { display: flex; align-items: center; justify-content: center; gap: 38px; }
.site-nav a { font-size: 16px; font-weight: 600; letter-spacing: .01em; color: #e5eaf4; transition: color .2s; }
.site-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.header-btn-secondary { background: rgba(255,255,255,.08); }
.header-btn-primary {
  background: linear-gradient(135deg, #f7f9ff, #dde8ff);
  color: #0a1531;
  box-shadow: 0 18px 45px rgba(255,255,255,.12);
}

/* ============ MAIN LAYOUT ============ */
.page-wrap {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

/* Breadcrumbs */
.breadcrumbs {
  margin: 16px 0 24px;
  color: #8b94a8;
  font-size: 14px;
}
.breadcrumbs a { color: #a8c5ff; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: #c0cadb; }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(86, 141, 255, .25);
  border-radius: 999px;
  background: rgba(45, 91, 178, .13);
  color: #a8c5ff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Hero block on SEO pages */
.seo-hero {
  display: grid;
  gap: 18px;
  padding: 28px 0 36px;
  max-width: 880px;
}
.seo-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1.08;
  letter-spacing: .018em;
  color: #f8fafc;
  font-weight: 400;
}
.seo-hero p.lead {
  margin: 0;
  color: #c0cadb;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
}
.seo-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }

/* Buttons (same as main) */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 17px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.1;
  transition: transform .2s, box-shadow .25s, filter .2s, border-color .2s, background .2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -10px 18px rgba(0,0,0,.16), 0 14px 28px rgba(0,0,0,.32);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.28), rgba(255,255,255,0));
  transform: skewX(-24deg);
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #6ea0ff 0%, #3567ec 46%, #254ec1 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), inset 0 -12px 20px rgba(3,18,67,.28), 0 18px 40px rgba(37, 99, 235, .42);
}
.btn-secondary {
  color: #eef4ff;
  background: linear-gradient(180deg, rgba(74,92,140,.88) 0%, rgba(31,43,76,.92) 52%, rgba(16,22,40,.98) 100%);
  border-color: rgba(181, 202, 255, .22);
}

/* ============ CONTENT SECTIONS ============ */
.section {
  margin: 56px 0;
}
.section-head {
  max-width: 880px;
  margin: 0 0 28px;
}
.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  font-weight: 400;
  color: #fff;
  letter-spacing: .018em;
}
.section-head p {
  margin: 14px 0 0;
  color: #b5c0d1;
  font-size: 18px;
  line-height: 1.6;
}

/* Article body (blog & local pages) */
.article-body {
  max-width: 880px;
}
.article-body h2 {
  margin: 48px 0 16px;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.15;
  color: #fff;
  font-weight: 400;
  letter-spacing: .01em;
}
.article-body h3 {
  margin: 32px 0 12px;
  font-size: 22px;
  color: #fff;
  font-weight: 500;
}
.article-body p {
  margin: 12px 0;
  color: #cbd3e2;
  font-size: 17px;
  line-height: 1.7;
}
.article-body ul, .article-body ol {
  margin: 14px 0;
  padding-left: 24px;
  color: #cbd3e2;
  font-size: 17px;
  line-height: 1.7;
}
.article-body li { margin: 6px 0; }
.article-body strong { color: #fff; font-weight: 500; }
.article-body a {
  color: #a8c5ff;
  text-decoration: underline;
  text-decoration-color: rgba(168, 197, 255, .35);
  text-underline-offset: 3px;
}
.article-body a:hover { color: #fff; text-decoration-color: #fff; }

/* Feature/benefit grid (re-used) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.feature-card {
  padding: 24px;
  border-radius: 26px;
  min-height: 180px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.034));
  box-shadow: 0 22px 70px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
}
.feature-card .num {
  display: block;
  color: #70a2ff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .18em;
}
.feature-card h3 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
}
.feature-card p {
  margin: 0;
  color: #b5c0d1;
  font-size: 16px;
  line-height: 1.6;
}

/* ============ COMPARISON TABLE ============ */
.compare-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #d0d8e8;
  font-size: 15px;
  line-height: 1.5;
}
.compare-table th {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  background: rgba(255,255,255,.04);
  letter-spacing: .02em;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td.yes { color: #7ee396; font-weight: 500; }
.compare-table td.no { color: #ef8c8c; }
.compare-table td.partial { color: #ffd28a; }
.compare-table .row-feature { color: #b5c0d1; }

/* ============ FAQ block ============ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.faq-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.034));
  box-shadow: 0 22px 70px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
}
.faq-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}
.faq-card p {
  margin: 0;
  color: #b5c0d1;
  line-height: 1.6;
  font-size: 16px;
}

/* ============ CTA BAND ============ */
.cta-band {
  margin: 56px 0;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 20% 0%, rgba(110, 160, 255, .18), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cta-band h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 400;
}
.cta-band p {
  margin: 0;
  color: #c0cadb;
  font-size: 17px;
  line-height: 1.55;
}
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ BLOG CARDS ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: 0 22px 70px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12);
}
.blog-card .tag {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(86, 141, 255, .14);
  color: #a8c5ff;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.blog-card h3 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 400;
}
.blog-card p {
  margin: 0;
  color: #b5c0d1;
  font-size: 15px;
  line-height: 1.55;
}
.blog-card .meta {
  margin-top: auto;
  color: #8893a8;
  font-size: 13px;
}

/* Article meta (blog post header) */
.article-meta {
  display: flex;
  gap: 16px;
  margin: 12px 0 24px;
  color: #8893a8;
  font-size: 14px;
  flex-wrap: wrap;
}
.article-meta time { color: #c0cadb; }

/* TOC */
.toc {
  margin: 28px 0;
  padding: 22px 28px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.toc strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  color: #cbd3e2;
}
.toc li { margin: 6px 0; }
.toc a { color: #a8c5ff; text-decoration: none; }
.toc a:hover { color: #fff; }

/* ============ FOOTER ============ */
.site-footer {
  width: min(1680px, calc(100% - 40px));
  margin: 60px auto 0;
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 18px;
  color: #8b94a8;
}
.footer-brand { margin-bottom: 8px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-links a {
  color: #c0cadb;
  font-size: 15px;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-links-secondary a { color: #8b94a8; font-size: 14px; }
.site-footer p { margin: 8px 0 0; font-size: 13px; color: #6b7280; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; gap: 12px; padding: 10px 0; }
  .brand-mark { width: 56px; height: 56px; border-radius: 18px; }
  .brand-mark img { width: 40px; height: 40px; }
  .brand strong { font-size: 22px; }
  .brand em { font-size: 12px; }
  .site-nav { display: none; }
  .header-actions { display: flex; gap: 8px; }
  .header-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 24px; text-align: left; }
  .seo-hero h1 { font-size: 30px; }
  .article-body p { font-size: 16px; }
}

@media (max-width: 640px) {
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 14px; }
  .header-btn-secondary { display: none; }
}

/* ============ BLOG ARTICLE STYLES (new tags) ============ */
.article {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 40px;
}
.article-header { margin: 18px 0 32px; }
.article-header h1 {
  margin: 14px 0 16px;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: .012em;
  color: #fff;
  font-weight: 500;
}
.article-header .lede {
  font-size: 19px;
  line-height: 1.6;
  color: #c2cad8;
  margin: 0 0 14px;
}
.article-section { margin: 36px 0; }
.article-section h2 {
  margin: 32px 0 16px;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: #fff;
  font-weight: 500;
  letter-spacing: .005em;
}
.article-section h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  color: #e8edf6;
  font-weight: 500;
}
.article-section p {
  margin: 12px 0;
  font-size: 17px;
  line-height: 1.7;
  color: #c8d0de;
}
.article-section ul, .article-section ol {
  margin: 14px 0;
  padding-left: 24px;
  color: #c8d0de;
  font-size: 17px;
  line-height: 1.65;
}
.article-section ul.check-list, .article-section ul.cross-list {
  list-style: none;
  padding-left: 0;
}
.article-section ul.check-list li,
.article-section ul.cross-list li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}
.article-section ul.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: #5fa7ff;
  font-weight: 600;
}
.article-section ul.cross-list li:before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 1px;
  color: #d97a7a;
  font-weight: 600;
}
.article-section li { margin: 8px 0; }
.article-section strong { color: #fff; font-weight: 500; }
.article-section a {
  color: #a8c5ff;
  text-decoration: underline;
  text-decoration-color: rgba(168,197,255,.45);
  text-underline-offset: 3px;
}
.article-section a:hover { color: #fff; }
.article-section .compare-table-wrap { margin: 18px 0; }

/* Update .blog-card to support .eyebrow inside */
.blog-card .eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
}

/* Pros-cons grid for vs pages */
.proscons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.proscons-card {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}
.proscons-card h3 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
}
.proscons-card h3:first-child { margin-top: 0; }
.proscons-card ul.check-list, .proscons-card ul.cross-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 18px;
  color: #c8d0de;
  font-size: 16px;
  line-height: 1.55;
}
.proscons-card ul.check-list li, .proscons-card ul.cross-list li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}
.proscons-card ul.check-list li:before {
  content: "✓"; position: absolute; left: 0; top: 1px; color: #5fa7ff; font-weight: 600;
}
.proscons-card ul.cross-list li:before {
  content: "✕"; position: absolute; left: 0; top: 1px; color: #d97a7a; font-weight: 600;
}

/* Mobile */
@media (max-width: 880px) {
  .article { width: calc(100% - 32px); }
  .article-section p, .article-section ul, .article-section ol { font-size: 16px; }
  .proscons-grid { grid-template-columns: 1fr; }
}
