/* ВЫКУП.АВТО blog. Colors and font follow the main Tilda site (#1367e9, #f2f4f6, Inter). */
:root {
  --blue: #1367e9;
  --blue-dark: #0d4fb8;
  --bg: #f2f4f6;
  --card: #ffffff;
  --ink: #111418;
  --text: #2c3138;
  --muted: #707070;
  --line: #dde1e6;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7; font-size: 17px;
}
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: .5px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--blue); }
.header-nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.header-nav a { color: var(--ink); text-decoration: none; }
.header-nav a:hover { color: var(--blue); }
.header-phone { background: var(--blue); color: #fff !important; padding: 9px 16px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.header-phone:hover { background: var(--blue-dark); }

/* Layout */
.wrap { max-width: 820px; margin: 0 auto; padding: 28px 16px 56px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 28px 16px 56px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs .sep { margin: 0 6px; }

/* Article */
article.post { background: var(--card); border-radius: var(--radius); padding: 32px 36px; }
h1 { font-size: 2.1rem; line-height: 1.25; color: var(--ink); margin-bottom: 12px; letter-spacing: -.3px; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.article-hero { margin: 0 0 24px; }
.article-hero img, .article-img img { border-radius: 10px; width: 100%; }
.article-img { margin: 28px 0; }
.article-preview { background: var(--bg); border-left: 4px solid var(--blue); padding: 16px 20px; border-radius: 0 10px 10px 0; margin-bottom: 28px; }
.article-preview p { margin: 0; color: var(--text); }
.post h2 { font-size: 1.5rem; line-height: 1.3; color: var(--ink); margin: 40px 0 14px; }
.post h3 { font-size: 1.2rem; color: var(--ink); margin: 26px 0 10px; }
.post p { margin-bottom: 16px; }
.post ul, .post ol { margin: 0 0 18px 22px; }
.post li { margin-bottom: 6px; }
.post strong { color: var(--ink); }
.post table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .95rem; }
.post th, .post td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post th { background: var(--bg); }

/* Short answer, callouts, tables */
.summary { background: #eef4ff; border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; }
.summary-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.summary ul { margin: 0 0 0 20px; }
.summary li { margin-bottom: 6px; }
.post blockquote { margin: 24px 0; padding: 16px 20px; border-radius: 0 10px 10px 0; background: var(--bg); border-left: 4px solid var(--line); }
.post blockquote p:last-child { margin-bottom: 0; }
.post blockquote.example { border-left-color: var(--blue); }
.post blockquote.example::before { content: "Пример"; display: block; font-weight: 700; font-size: .85rem; color: var(--blue); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.post blockquote.warn { border-left-color: #e0a100; background: #fff8e6; }
.table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; min-width: 520px; }
.post td, .post th { vertical-align: top; }

/* CTA */
.cta { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 28px 30px; margin: 36px 0 8px; }
.cta h2 { color: #fff !important; margin: 0 0 8px !important; font-size: 1.45rem; }
.cta p { color: #e8f0ff; margin-bottom: 18px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; text-decoration: none; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: .98rem; }
.btn-white { background: #fff; color: var(--blue) !important; }
.btn-white:hover { background: #eaf1ff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* FAQ */
.faq { margin-top: 36px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: var(--card); }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; }

/* Related + index cards */
.related { margin-top: 36px; }
.related h2, .section-title { font-size: 1.35rem; color: var(--ink); margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; border: 1px solid var(--line); }
.card:hover { border-color: var(--blue); }
.card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card .card-body { padding: 14px 16px 18px; }
.card .card-title { color: var(--ink); font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.card .card-text { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.blog-intro { background: var(--card); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 24px; }
.blog-intro p { color: var(--muted); }

/* Footer */
.site-footer { background: #111418; color: #a9b0b8; font-size: .9rem; }
.site-footer .inner { max-width: 1080px; margin: 0 auto; padding: 28px 16px 90px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Mobile bottom bar */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  body { font-size: 16px; }
  h1 { font-size: 1.55rem; }
  .post h2 { font-size: 1.3rem; }
  article.post { padding: 20px 16px; }
  .header-nav .nav-link { display: none; }
  .cta { padding: 22px 18px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); }
  .mobile-bar a { text-align: center; padding: 12px 4px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink); }
  .mobile-bar a.primary { background: var(--blue); color: #fff; }
}
@media (max-width: 400px) {
  .logo { font-size: 1rem; }
  .header-phone { padding: 8px 10px; font-size: .85rem; }
  .site-header .inner { padding: 10px 12px; gap: 8px; }
}
