/* GlobeHub — тема сайта об авто из Китая для СНГ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --ink: #0b1220;
  --ink-2: #2b3648;
  --muted: #64748b;
  --line: #e6e9ef;
  --accent: #d7263d;
  --accent-2: #b51d31;
  --accent-soft: #fdecef;
  --navy: #0b1220;
  --navy-2: #131d33;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 10px 28px -14px rgba(11, 18, 32, .22);
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0; font-weight: 800; }
ul, ol { margin: 0; padding: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(215, 38, 61, .45); outline-offset: 2px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2; border: 2px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* Шапка */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -.02em; flex: 0 0 auto; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; }
.brand-name span { color: var(--accent); }
.brand-img { max-height: 40px; width: auto; }
.site-nav { flex: 1 1 auto; }
.menu { list-style: none; display: flex; gap: 2px; }
.menu li { position: relative; }
.menu a { display: block; white-space: nowrap; padding: 10px 12px; color: rgba(255, 255, 255, .88); font-weight: 600; font-size: 15px; border-radius: 8px; }
.menu a:hover, .menu .current-menu-item > a, .menu .current-menu-parent > a, .menu .current-menu-ancestor > a { color: #fff; background: rgba(255, 255, 255, .08); }
.menu .sub-menu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(11, 18, 32, .35); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a { color: var(--ink); font-weight: 600; padding: 9px 12px; }
.menu .sub-menu a:hover { background: var(--bg-soft); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: rgba(255, 255, 255, .85); }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; cursor: pointer; margin-left: auto; }
.menu-toggle span:not(.sr-only) { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-extra { display: none; }

/* Герой */
.hero { background: radial-gradient(900px 420px at 85% -20%, rgba(215, 38, 61, .45), transparent 65%), radial-gradient(600px 300px at 0% 110%, rgba(215, 38, 61, .18), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; margin-bottom: 16px; }
.hero-text { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .82); margin: 0 0 28px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

/* Секции и сетки */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 20px; }
.section-head h2 { font-size: 26px; }
.section-head .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.section-head .more:hover { color: var(--accent); }
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-featured .card-featured { grid-column: span 2; grid-row: span 2; }

/* Карточки */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card-media img, .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.thumb-placeholder { display: flex; align-items: center; justify-content: center; color: rgba(11, 18, 32, .25); background: linear-gradient(135deg, #e9edf3, #f7f8fa); }
.thumb-placeholder svg { width: 28%; max-width: 64px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.badge { display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.badge:hover { background: var(--accent); color: #fff; }
.card-title { font-size: 17px; line-height: 1.32; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-featured .card-media { aspect-ratio: 16 / 9; }
.card-featured .card-body { padding: 22px 24px 24px; }
.card-featured .card-title { font-size: 26px; }
.meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-top: auto; }
.meta-read { display: inline-flex; align-items: center; gap: 5px; }

/* Списки */
.list { list-style: none; display: flex; flex-direction: column; }
.list-item { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; padding-top: 0; }
.list-thumb { flex: 0 0 96px; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.list-thumb img, .list-thumb .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.list-title { display: block; color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.35; margin-bottom: 4px; }
.list-title:hover { color: var(--accent); }
.list-compact .list-thumb { flex-basis: 80px; }
.rubrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 8px; }
.rubric .section-head { margin-top: 36px; }
.rubric .section-head h2 { font-size: 20px; }

/* Полоса призыва */
.cta-band { margin: 56px 0 8px; padding: 36px 40px; border-radius: 20px; background: radial-gradient(600px 300px at 100% 0%, rgba(215, 38, 61, .5), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 560px; }

/* Страницы списков */
.page-head { padding: 36px 0 8px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 10px; }
.page-desc { color: var(--muted); max-width: 720px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-weight: 600; font-size: 14px; border: 1px solid var(--line); }
.chips a:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; padding: 24px 0 8px; align-items: start; }
.layout-main { min-width: 0; }
.empty-note { color: var(--muted); padding: 40px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: #b2bccb; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.pagination { margin: 36px 0 8px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .screen-reader-text { display: none; }

/* Сайдбар */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 16px; margin-bottom: 14px; }
.side-cta { background: radial-gradient(400px 200px at 100% 0%, rgba(215, 38, 61, .55), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.side-cta strong { display: block; font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.side-cta p { margin: 0 0 16px; color: rgba(255, 255, 255, .78); font-size: 14px; }

/* Статья */
.entry { max-width: 800px; }
.entry-header { margin: 10px 0 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.entry-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; }
.entry-figure { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.entry-figure img { width: 100%; }
.entry-content { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 26px; margin-top: 1.8em; }
.entry-content h3 { font-size: 21px; margin-top: 1.6em; }
.entry-content p { margin: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(215, 38, 61, .4); text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink); font-weight: 500; }
.entry-content blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.entry-content th, .entry-content td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:nth-child(even) td { background: #fafbfc; }
.cta-box { margin: 40px 0; padding: 28px 30px; border-radius: 18px; background: radial-gradient(500px 250px at 100% 0%, rgba(215, 38, 61, .5), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-box strong { display: block; font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
.cta-box p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.entry-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.tags a:hover { color: var(--accent); }
.share { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.share a { font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.share a:hover { border-color: var(--accent); color: var(--accent); }
.related .section-head { margin-top: 36px; }
.related .section-head h2 { font-size: 22px; }
.entry-page { margin: 0 auto; padding-bottom: 20px; }
.entry-page .entry-title { margin: 8px 0 20px; }

/* Поиск */
.search-form { display: flex; gap: 10px; max-width: 560px; margin: 10px 0 6px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 16px; border: 2px solid var(--line); border-radius: 999px; font: inherit; font-size: 16px; color: var(--ink); }
.search-form input:focus { border-color: var(--accent); outline: 0; }

/* Подвал */
.site-footer { margin-top: 72px; background: var(--navy); color: rgba(255, 255, 255, .72); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-about p { margin: 16px 0 20px; font-size: 15px; line-height: 1.6; max-width: 380px; }
.site-footer h3 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: rgba(255, 255, 255, .78); font-size: 15px; }
.site-footer ul a:hover { color: #fff; }
.social-links { list-style: none; display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; margin-top: 16px; }
.social-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 13px !important; }
.social-links a:hover { border-color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-bottom p { margin: 0; max-width: 760px; }
.footer-menu { flex-direction: row !important; gap: 16px !important; }

/* Адаптив */
@media (max-width: 1100px) {
  .grid-4, .grid-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-featured .card-featured { grid-column: span 3; grid-row: auto; }
  .grid-featured .card-featured .card-media { aspect-ratio: 21 / 9; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .rubrics { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: span 2; }
}
@media (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .menu a { padding: 10px 9px; font-size: 14px; }
  .btn-sm { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 1023px) {
  .header-inner { gap: 12px; }
  .menu-toggle { display: flex; order: 3; }
  .header-actions { margin-left: 0; order: 2; margin-left: auto; }
  .header-cta { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-2); padding: 10px 20px 20px; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6); }
  .site-nav.is-open { display: block; }
  .menu { flex-direction: column; gap: 0; }
  .menu a { padding: 12px 10px; font-size: 16px; }
  .menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0 0 6px 14px; }
  .menu .sub-menu a { color: rgba(255, 255, 255, .75); font-size: 15px; padding: 8px 10px; }
  .menu .sub-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .nav-mobile-extra { display: block; padding: 12px 10px 0; }
  .nav-mobile-extra .btn { width: 100%; justify-content: center; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .grid-4, .grid-featured, .grid-2 { grid-template-columns: 1fr; gap: 18px; }
  .grid-featured .card-featured { grid-column: auto; }
  .grid-featured .card-featured .card-media { aspect-ratio: 16 / 10; }
  .card-featured .card-title { font-size: 21px; }
  .card-featured .card-body { padding: 16px 18px 18px; }
  .hero { padding: 44px 0 40px; }
  .hero-text { font-size: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .section-head { margin: 34px 0 16px; }
  .section-head h2 { font-size: 22px; }
  .cta-band, .cta-box { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cta-band .btn, .cta-box .btn { width: 100%; justify-content: center; }
  .entry-content { font-size: 17px; }
  .entry-footer { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
  .search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
