:root {
  --red: #c8202b;
  --red-dark: #a91623;
  --dark: #1f2633;
  --text: #303747;
  --muted: #727b8c;
  --line: #e5e8ee;
  --bg: #f5f6f8;
  --card: #fff;
  --soft: #f1f3f6;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 14px 36px rgba(25, 34, 53, .08);
  --shadow-sm: 0 8px 22px rgba(25, 34, 53, .07);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus { width: auto; height: auto; clip: auto; margin: 0; padding: 10px 14px; background: #fff; z-index: 999; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 24px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 20px rgba(200, 32, 43, .18); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline, .btn-ghost { background: #fff; border-color: #d7dce5; color: var(--dark); }
.btn-white { background: #fff; color: var(--red); }
.btn-wide { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dark);
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.site-logo strong { color: var(--red); font-style: italic; }
.custom-logo { max-height: 46px; width: auto; }
.header-search {
  display: grid;
  grid-template-columns: 1fr 46px;
  max-width: 470px;
  margin-inline: auto;
  width: 100%;
  border: 1px solid #dbe0e8;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.header-search input {
  min-width: 0;
  height: 42px;
  border: 0;
  padding: 0 16px;
  outline: 0;
  color: var(--text);
}
.header-search button {
  border: 0;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.header-search svg { width: 22px; height: 22px; fill: var(--dark); opacity: .75; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.login-link { padding-inline: 18px; }
.menu-toggle { display: none; }
.main-nav { border-top: 1px solid #f0f2f5; }
.primary-menu {
  display: flex;
  align-items: center;
  gap: 42px;
  list-style: none;
  margin: 0;
  padding: 15px 0 17px;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-menu::-webkit-scrollbar { display: none; }
.primary-menu a {
  color: #222a38;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.primary-menu a:hover { color: var(--red); }

.home-main { padding-bottom: 40px; }
.home-hero {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: .96fr 1.3fr;
  align-items: center;
  margin-top: 24px;
  padding: 56px 72px 66px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.82) 43%, rgba(236,240,245,.3) 100%),
    radial-gradient(circle at 78% 25%, rgba(210, 223, 238, .9), transparent 34%),
    linear-gradient(115deg, #f8fafc, #e7edf4 58%, #d6e0eb);
  box-shadow: var(--shadow-sm);
}
.home-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(102deg, transparent 0 44px, rgba(35,50,70,.04) 44px 47px),
    linear-gradient(180deg, transparent 58%, rgba(190,198,210,.16));
  pointer-events: none;
}
.hero-copy, .hero-media { position: relative; z-index: 1; }
.hero-copy h1 {
  margin: 0 0 16px;
  color: #262a31;
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: .98;
  letter-spacing: -.062em;
  font-weight: 900;
}
.hero-copy p { margin: 0 0 26px; max-width: 505px; color: #384253; font-size: 17px; line-height: 1.45; }
.hero-actions { display: flex; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-benefits { display: flex; gap: 30px; color: #394252; font-size: 13px; line-height: 1.15; font-weight: 700; }
.hero-benefits span { display: inline-flex; gap: 10px; align-items: center; }
.hero-benefits i { width: 28px; height: 28px; border: 2px solid #a4acb8; border-radius: 50%; display: inline-block; position: relative; }
.icon-shield:after { content: ""; position: absolute; left: 8px; top: 5px; width: 8px; height: 12px; border: 2px solid #7a8491; border-top-width: 3px; border-radius: 0 0 8px 8px; }
.icon-users:after { content: ""; position: absolute; left: 6px; top: 7px; width: 12px; height: 12px; border: 2px solid #7a8491; border-radius: 50%; }
.icon-wrench:after { content: ""; position: absolute; left: 12px; top: 5px; width: 4px; height: 16px; background: #7a8491; transform: rotate(35deg); border-radius: 4px; }
.hero-media { align-self: stretch; display: flex; align-items: center; justify-content: flex-end; }
.hero-media img { width: min(640px, 108%); max-width: none; filter: drop-shadow(0 22px 22px rgba(20, 25, 35, .22)); }
.hero-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; display: flex; gap: 9px; padding: 10px 18px; border-radius: 99px; background: rgba(255,255,255,.8); }
.hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: #cfd4dd; }
.hero-dots .active { background: var(--red); }
.hero-arrow { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); color: #222; font-size: 36px; line-height: 1; cursor: default; }
.hero-arrow-left { left: 12px; }
.hero-arrow-right { right: 12px; }

.home-layout, .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}
.section-block { margin-bottom: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { margin: 0; color: var(--dark); font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
.section-head a { color: var(--red); text-decoration: none; font-weight: 800; font-size: 14px; }
.cards-grid { display: grid; gap: 22px; }
.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card {
  position: relative;
  background: var(--card);
  border: 1px solid #eef0f4;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(25,34,53,.11); }
.post-card-image { display: block; position: relative; overflow: hidden; background: #edf0f4; }
.post-card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform .3s ease; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.card-badge { position: absolute; left: 12px; bottom: 10px; padding: 4px 9px; border-radius: 99px; background: rgba(20,25,35,.72); color: #fff; font-size: 12px; font-weight: 800; }
.post-card-body { padding: 14px 16px 16px; }
.post-card time { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.post-card h3 { margin: 0 0 8px; color: var(--dark); font-size: 17px; line-height: 1.22; letter-spacing: -.018em; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--red); }
.post-card p { margin: 0 0 10px; color: #515c6e; font-size: 14px; line-height: 1.45; }
.meta-line { color: var(--muted); font-size: 12px; }

.site-sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-widget {
  padding: 21px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 { margin: 0 0 14px; color: var(--dark); font-size: 18px; letter-spacing: -.02em; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: #394252; border-bottom: 1px solid #eff2f6; font-size: 14px; }
.topic-list li:last-child { border-bottom: 0; }
.topic-list a { text-decoration: none; }
.topic-list a:before { content: "🔥"; margin-right: 8px; font-size: 12px; }
.topic-list span { color: var(--muted); }
.mini-comment { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; color: inherit; text-decoration: none; border-bottom: 1px solid #eff2f6; }
.mini-comment:last-of-type { border-bottom: 0; }
.avatar-dot { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #354052, #aab3c0); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.mini-comment strong { display: block; color: var(--dark); font-size: 13px; }
.mini-comment em { display: block; color: #626c7c; font-style: normal; font-size: 13px; line-height: 1.3; }
.comments-widget .btn { margin-top: 14px; }
.links-widget a { display: block; padding: 9px 0; color: #3b4657; text-decoration: none; border-bottom: 1px solid #eff2f6; font-size: 14px; }
.links-widget a:before { content: "◎"; margin-right: 9px; color: #7d8796; }
.links-widget a:last-child { border-bottom: 0; }
.sidebar-join {
  padding: 26px;
  min-height: 214px;
  border-radius: 7px;
  color: #fff;
  background: radial-gradient(circle at 95% 75%, rgba(255,255,255,.27), transparent 28%), linear-gradient(135deg, #cf3145, #9f1828);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-join h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.16; letter-spacing: -.03em; }
.sidebar-join ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.sidebar-join li:before { content: "✓"; margin-right: 8px; }
.ad-slot { display: grid; place-items: center; min-height: 92px; color: #9aa3b1; border: 1px dashed #ccd3dd; border-radius: 7px; background: repeating-linear-gradient(45deg, #fff, #fff 10px, #f6f7f9 10px, #f6f7f9 20px); font-size: 13px; }
.ad-slot-sidebar { min-height: 250px; }

.specs-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}
.specs-car { display: grid; place-items: center; }
.spec-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.spec-item { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.2; }
.spec-icon { display: block; margin-bottom: 5px; color: #9aa3b2; font-size: 22px; }
.spec-item strong { display: block; color: var(--dark); font-size: 19px; letter-spacing: -.03em; }
.spec-item em { font-style: normal; }
.compare-box { max-width: 440px; margin: 0 auto; }
.compare-box h3 { margin: 0 0 8px; color: var(--dark); font-size: 16px; }
.compare-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.compare-row.active { color: var(--red); font-weight: 800; }
.compare-box .btn { margin-top: 12px; width: 230px; }
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}
.gallery-strip a { display: block; border-radius: 5px; overflow: hidden; background: #edf0f4; }
.gallery-strip img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card { position: relative; min-height: 190px; padding: 25px 26px; background: #fff; border: 1px solid #eef0f4; border-radius: 7px; box-shadow: var(--shadow-sm); overflow: hidden; }
.guide-card h3 { margin: 0 0 12px; color: var(--dark); font-size: 19px; }
.guide-card p { margin: 0 0 14px; color: #505b6d; font-size: 14px; }
.guide-card a { color: var(--red); text-decoration: none; font-weight: 800; font-size: 14px; }
.watermark { position: absolute; right: 28px; bottom: 20px; color: #d9dee6; font-size: 64px; line-height: 1; }
.owner-card strong { display: block; margin-bottom: 8px; color: var(--dark); }

.site-footer { margin-top: 32px; padding: 38px 0; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
.footer-logo { font-size: 24px; margin-bottom: 12px; }
.footer-brand p { max-width: 280px; color: #596476; font-size: 14px; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #f1f3f6; color: var(--dark); font-size: 11px; font-weight: 900; text-decoration: none; }
.footer-col h3 { margin: 0 0 12px; color: var(--dark); font-size: 15px; }
.footer-col a, .footer-col span { display: block; margin: 6px 0; color: #586375; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--red); }

.archive-layout, .single-layout { margin-top: 30px; }
.archive-header, .single-article { background: #fff; border: 1px solid #eef0f4; border-radius: 7px; box-shadow: var(--shadow-sm); }
.archive-header { padding: 28px 30px; margin-bottom: 22px; }
.archive-header h1 { margin: 0; color: var(--dark); font-size: 36px; letter-spacing: -.04em; }
.archive-header p { margin: 8px 0 0; color: var(--muted); }
.single-article { padding: 34px 42px; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--red); text-decoration: none; }
.single-header h1 { margin: 0 0 12px; color: var(--dark); font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.055em; }
.single-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.single-cover { margin: 0 0 24px; border-radius: 8px; overflow: hidden; }
.single-cover img { width: 100%; display: block; }
.single-content { color: #2f3747; font-size: 18px; line-height: 1.78; }
.single-content h2 { margin-top: 1.5em; color: var(--dark); font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.single-content h3 { margin-top: 1.4em; color: var(--dark); font-size: 24px; }
.single-content p { margin: 0 0 1.15em; }
.single-content img { border-radius: 8px; }
.single-content blockquote { margin: 1.4em 0; padding: 20px 24px; border-left: 4px solid var(--red); background: #f6f7f9; border-radius: 0 8px 8px 0; }
.post-tags a { display: inline-flex; margin: 4px 6px 4px 0; padding: 7px 11px; border-radius: 99px; background: #f1f3f6; color: #4e596a; text-decoration: none; font-size: 13px; font-weight: 700; }
.navigation.pagination { margin-top: 26px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 36px; min-height: 36px; padding: 8px 12px; border-radius: 8px; background: #fff; color: var(--dark); text-decoration: none; box-shadow: var(--shadow-sm); }
.page-numbers.current { background: var(--red); color: #fff; }
.error-page { min-height: 430px; padding: 70px 0; }
.error-page h1 { font-size: 48px; letter-spacing: -.04em; color: var(--dark); }
.no-sidebar-page { grid-template-columns: minmax(0, 900px); justify-content: center; }

@media (max-width: 1100px) {
  .header-top { grid-template-columns: 1fr auto; }
  .header-search { order: 3; grid-column: 1 / -1; max-width: none; }
  .home-hero { padding-inline: 46px; grid-template-columns: 1fr 1fr; }
  .cards-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-items { grid-template-columns: repeat(3, 1fr); }
  .guide-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-top { min-height: 64px; gap: 14px; }
  .site-logo { font-size: 24px; }
  .header-actions { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; justify-self: end; border: 0; background: #fff; color: var(--dark); font-weight: 800; }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 4px 0; }
  .menu-toggle em { font-style: normal; }
  .main-nav { border-top: 0; }
  .primary-menu { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .primary-menu.is-open { display: flex; }
  .primary-menu a { display: block; padding: 11px 0; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding: 36px 24px 56px; }
  .hero-media { justify-content: center; margin-top: 16px; }
  .hero-media img { width: min(100%, 560px); }
  .hero-arrow { display: none; }
  .hero-benefits { flex-wrap: wrap; gap: 16px; }
  .home-layout, .page-layout { grid-template-columns: 1fr; }
  .site-sidebar { order: 2; }
  .specs-panel { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .single-article { padding: 26px 22px; }
}
@media (max-width: 560px) {
  .cards-grid-3 { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 42px; }
  .section-head { align-items: flex-start; gap: 10px; }
  .spec-items { grid-template-columns: repeat(2, 1fr); }
  .single-content { font-size: 16px; }
}
