@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@500;600;700;800;900&display=swap");

:root {
  --blue: #2459ee;
  --blue-deep: #153eb9;
  --navy: #1d2948;
  --ink: #172033;
  --muted: #59667e;
  --base: #f3f7f8;
  --white: #ffffff;
  --amber: #e8a62a;
  --red: #e3222d;
  --lpr-green: #007a3d;
  --line: rgba(36, 89, 238, 0.18);
  --display: "Anton", Impact, "Arial Black", sans-serif;
  --text: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --blue: #5d82ff;
  --blue-deep: #8ca6ff;
  --navy: #f3f7ff;
  --ink: #edf3ff;
  --muted: #b8c5d8;
  --base: #07101d;
  --white: #101a2b;
  --amber: #f2b33d;
  --line: rgba(112, 145, 255, 0.26);
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--base);
  color: var(--ink);
  font-family: var(--text);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  background:
    linear-gradient(125deg, rgba(36, 89, 238, 0.12) 0%, transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--base) 54%, #eef4f8 100%);
}

html[data-theme="dark"] .page {
  background:
    linear-gradient(125deg, rgba(93, 130, 255, 0.2) 0%, transparent 34%),
    linear-gradient(180deg, #0a1323 0%, var(--base) 58%, #0b1627 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(243, 247, 248, 0.86), rgba(243, 247, 248, 0.58));
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, rgba(7, 16, 29, 0.9), rgba(7, 16, 29, 0.62));
}

.brand {
  display: flex;
  align-items: center;
  min-width: 72px;
  color: var(--navy);
  text-decoration: none;
}

.brand-logo-main {
  display: block;
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(29, 41, 72, 0.14));
}

.header-nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  gap: 4px;
  min-width: 0;
  max-width: calc(100vw - 128px);
  padding: 6px;
  border: 1px solid rgba(29, 41, 72, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(29, 41, 72, 0.1);
}

html[data-theme="dark"] .header-nav {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(7, 15, 29, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.header-nav a,
.header-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--text);
  font-weight: 900;
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms, color 160ms, transform 160ms;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav button:hover,
.header-nav .is-current {
  background: rgba(36, 89, 238, 0.1);
  color: var(--blue-deep);
}

.header-nav .nav-cta {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(36, 89, 238, 0.28);
}

.header-nav .nav-cta:hover {
  background: var(--blue-deep);
  color: #ffffff;
  transform: translateY(-1px);
}

.theme-toggle {
  width: 38px;
  padding: 0;
}

.theme-toggle svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: clamp(26px, 5vw, 74px);
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 154px);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 68px) 0 54px;
}

.article-hero {
  display: grid;
  gap: 22px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 78px) 0 clamp(26px, 4vw, 46px);
}

.hero-copy,
.article-hero-copy {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb a {
  text-decoration: none;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  border-left: 5px solid var(--amber);
  background: rgba(36, 89, 238, 0.08);
  color: var(--blue-deep);
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
.section-head h2,
.footer-title,
.article-card h2,
.prose h2,
.prose h3,
.related-card h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4.2rem, 10vw, 9rem);
  line-height: 0.86;
}

.article-hero h1 {
  font-size: clamp(3.4rem, 8vw, 7.8rem);
}

.hero-copy p,
.section-head p,
.article-card p,
.prose p,
.prose li,
.footer p,
.related-card p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.62;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(36, 89, 238, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-theme="dark"] .meta-row span,
html[data-theme="dark"] .tag-list span {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 22, 39, 0.7);
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(36, 89, 238, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

html[data-theme="dark"] .tag-list a {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 22, 39, 0.7);
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px rgba(36, 89, 238, 0.24);
}

.button.ghost {
  border-color: rgba(29, 41, 72, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  box-shadow: 0 14px 28px rgba(29, 41, 72, 0.08);
}

html[data-theme="dark"] .button.ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 22, 39, 0.78);
}

.hero-visual,
.article-cover {
  position: relative;
  margin: 0;
  min-width: 0;
}

.hero-visual::before,
.article-cover::before {
  content: "";
  position: absolute;
  inset: 8% -3% -5% 18%;
  border: 2px solid rgba(232, 166, 42, 0.58);
  border-radius: 8px;
  transform: rotate(2.5deg);
}

.hero-visual img,
.article-cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid rgba(29, 41, 72, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(36, 89, 238, 0.12), rgba(232, 166, 42, 0.08)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 34px 76px rgba(29, 41, 72, 0.18);
}

.article-cover img {
  aspect-ratio: 16 / 9;
  max-height: 560px;
}

.article-cover.is-logo img {
  padding: clamp(30px, 7vw, 76px);
  object-fit: contain;
  background:
    linear-gradient(145deg, rgba(36, 89, 238, 0.1), rgba(232, 166, 42, 0.08)),
    rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .hero-visual img,
html[data-theme="dark"] .article-cover img,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .aside-box,
html[data-theme="dark"] .contact-link,
html[data-theme="dark"] .related-card,
html[data-theme="dark"] .partner-card {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(93, 130, 255, 0.12), rgba(242, 179, 61, 0.08)),
    rgba(12, 22, 39, 0.82);
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.28);
}

.article-hub,
.related,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.article-hub {
  padding: 0 0 clamp(58px, 8vw, 110px);
}

.partner-hub {
  display: grid;
  gap: 22px;
  padding-top: clamp(34px, 6vw, 70px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.3fr);
  gap: 24px;
  align-items: end;
  padding: 28px 0;
  border-top: 2px solid var(--line);
}

.section-head h2 {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.section-head p {
  margin: 0;
  font-size: 0.95rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 34px);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.partner-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(29, 41, 72, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(29, 41, 72, 0.1);
}

.partner-card img {
  width: 92px;
  height: 70px;
  padding: 10px;
  border: 1px solid rgba(29, 41, 72, 0.08);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.partner-card span {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner-card strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
}

.partner-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.article-card {
  overflow: hidden;
  border: 1px solid rgba(29, 41, 72, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 54px rgba(29, 41, 72, 0.12);
}

.article-card:first-child {
  grid-column: 1 / -1;
}

.article-card a {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 0.52fr);
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.article-card:not(:first-child) a {
  grid-template-columns: 1fr;
}

.article-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #eef3f8;
}

.article-card.is-lpr img,
.article-card.is-remanauto img {
  object-fit: contain;
  background:
    linear-gradient(145deg, rgba(36, 89, 238, 0.08), rgba(232, 166, 42, 0.08)),
    #eef3f8;
}

.article-card-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(18px, 3vw, 32px);
  border-left: 5px solid var(--blue);
}

.article-card:not(:first-child) .article-card-copy {
  border-top: 5px solid var(--blue);
  border-left: 0;
}

.article-card.is-lpr .article-card-copy {
  border-color: var(--lpr-green);
}

.article-card.is-remanauto .article-card-copy {
  border-color: var(--red);
}

.article-card span,
.related-card span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-card h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.article-card:not(:first-child) h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.article-card p {
  margin: 0;
  font-size: 0.95rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(22px, 4vw, 44px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(58px, 8vw, 104px);
}

.article-body,
.aside-box,
.related-card {
  border: 1px solid rgba(29, 41, 72, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 54px rgba(29, 41, 72, 0.1);
}

.article-body {
  padding: clamp(22px, 4vw, 48px);
}

.prose {
  display: grid;
  gap: 22px;
}

.prose h2 {
  margin-top: 8px;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.prose h3 {
  margin-top: 4px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.prose p,
.prose li {
  margin: 0;
  font-size: 1rem;
}

.prose ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.prose a {
  color: var(--blue-deep);
  font-weight: 900;
}

.prose figure {
  display: grid;
  gap: 10px;
  margin: 8px 0;
}

.prose figure img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid rgba(29, 41, 72, 0.12);
  border-radius: 8px;
  background: #eef3f8;
}

.prose figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.fact-strip {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 16px;
  border-left: 5px solid var(--amber);
  background: rgba(36, 89, 238, 0.08);
}

.fact-strip strong {
  color: var(--navy);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-aside {
  display: grid;
  align-content: start;
  gap: 14px;
}

.aside-box {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.aside-box h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aside-box a {
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
}

.aside-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
}

.related {
  display: grid;
  gap: 18px;
  padding-bottom: clamp(46px, 7vw, 86px);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.related-card h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
}

.related-card p {
  margin: 0;
  font-size: 0.9rem;
}

.footer {
  display: grid;
  gap: 20px;
  padding: 54px 0 40px;
  border-top: 2px solid var(--line);
}

.footer-title {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(29, 41, 72, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.12;
  box-shadow: 0 14px 30px rgba(29, 41, 72, 0.08);
}

.contact-link small {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-deep);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wa-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #21c063;
  color: #ffffff;
}

.wa-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
  }

  .brand-logo-main {
    width: 54px;
    height: 54px;
  }

  .header-nav {
    flex-wrap: wrap;
    max-width: calc(100vw - 86px);
    justify-content: flex-end;
    border-radius: 18px;
  }

  .header-nav a,
  .header-nav button {
    min-height: 31px;
    padding: 0 8px;
    font-size: 0.56rem;
    letter-spacing: 0.05em;
  }

  .theme-toggle {
    flex-basis: 31px;
    width: 31px;
  }

  .blog-hero,
  .section-head,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .article-grid,
  .partner-grid,
  .related-grid,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .article-card:first-child {
    grid-column: auto;
  }

  .article-card a {
    grid-template-columns: 1fr;
  }

  .article-card-copy {
    border-top: 5px solid var(--blue);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .blog-hero,
  .article-hero,
  .article-hub,
  .article-layout,
  .related,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(3.7rem, 17vw, 5.6rem);
  }

  .article-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.4rem);
  }

  .section-head h2 {
    font-size: clamp(2.5rem, 13vw, 4.4rem);
  }

  .article-card img {
    min-height: 260px;
  }

  .partner-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .partner-card img {
    width: 78px;
    height: 64px;
  }

  .prose p,
  .prose li {
    font-size: 0.96rem;
  }
}
