:root {
  --rc-red: #c8102e;
  --rc-black: #0d0d0d;
  --rc-gray-700: #3a3a3a;
  --rc-gray-500: #6b6b6b;
  --rc-gray-100: #f5f5f5;
  --rc-gray-50: #fafafa;
  --rc-white: #ffffff;
  --rc-border: rgba(0, 0, 0, 0.1);
  --rc-radius: 4px;
  --rc-radius-lg: 8px;
  --rc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--rc-white);
  color: var(--rc-black);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rc-white);
  border-bottom: 1px solid var(--rc-border);
  padding-top: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.logo-tagline {
  display: block;
  font-size: 11px;
  color: var(--rc-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--rc-radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--rc-gray-700);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--rc-gray-100);
  color: var(--rc-black);
}

.nav-cta {
  background: var(--rc-red) !important;
  color: var(--rc-white) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  gap: 5px;
  flex-direction: column;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rc-black);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.96);
  padding: 110px 24px 24px;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu a {
  color: var(--rc-white);
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--rc-white);
  font-size: 30px;
  line-height: 1;
}

.hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  padding: 88px 0 44px;
}

.hero-shell,
.hero > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
}

.hero > .container:has(.panel):not(:has(.side)) {
  display: block;
}

.panel,
.side {
  border-radius: 22px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.panel {
  background: transparent;
  color: var(--rc-white);
}

.side {
  background: var(--rc-white);
  border-color: var(--rc-border);
  color: var(--rc-black);
  box-shadow: var(--rc-shadow-sm);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rc-red);
}

h1,
h2,
h3 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  margin: 18px 0 14px;
  color: var(--rc-white);
}

.hero p {
  font-size: 16px;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.74);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-primary,
.btn-secondary,
.sidebar-primary,
.sidebar-secondary {
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--rc-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.btn-primary,
.sidebar-primary {
  background: var(--rc-red);
  color: var(--rc-white);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--rc-white);
}

.sidebar-secondary {
  border: 1px solid var(--rc-border);
  background: var(--rc-white);
}

.side h3,
.sidebar-card h3 {
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--rc-black);
}

.side p,
.side li,
.sidebar-card p,
.sidebar-card li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--rc-gray-700);
}

.layout {
  padding: 40px 0 72px;
  background: var(--rc-gray-50);
}

.content-grid,
.grid,
.layout > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.layout > .container:not(:has(.side)):not(:has(.sidebar-card)) {
  display: block;
}

.article-card,
.card,
.sidebar-card,
.side {
  background: var(--rc-white);
  border: 1px solid var(--rc-border);
  border-radius: 22px;
  box-shadow: var(--rc-shadow-sm);
}

.article-card,
.card {
  padding: 32px;
}

.sidebar-card,
.side {
  padding: 24px;
  position: sticky;
  top: 92px;
  height: fit-content;
}

.breadcrumb,
.meta,
.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--rc-gray-500);
}

.meta span,
.article-meta span,
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--rc-gray-100);
  font-size: 12px;
  font-weight: 800;
  color: var(--rc-black);
}

.prose h2 {
  font-size: 32px;
  margin: 30px 0 12px;
  color: var(--rc-black);
}

.prose h3 {
  font-size: 24px;
  margin: 22px 0 10px;
  color: var(--rc-black);
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.88;
  color: var(--rc-gray-700);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose strong {
  color: var(--rc-black);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  border: 1px solid var(--rc-border);
  border-radius: 16px;
  overflow: hidden;
}

.table th {
  background: var(--rc-black);
  color: var(--rc-white);
  padding: 14px 16px;
  font-size: 13px;
  text-align: left;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rc-border);
  font-size: 14px;
  color: var(--rc-gray-700);
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: none;
}

.doc-box,
.box,
.info,
.compare,
.calc-box {
  background: var(--rc-gray-50);
  border: 1px solid var(--rc-border);
  border-radius: 18px;
  padding: 22px;
  margin: 20px 0;
  color: var(--rc-black);
}

.doc-list {
  display: grid;
  gap: 14px;
}

.doc-item,
.calc-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--rc-white);
  border: 1px solid var(--rc-border);
}

.doc-item strong,
.calc-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rc-black);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.calc-item strong {
  font-size: 26px;
}

.note {
  padding: 18px 20px;
  border-radius: 16px;
  margin: 20px 0;
  background: #fff3f5;
  border: 1px solid rgba(200, 16, 46, 0.12);
}

.note.good {
  background: #f4f4f4;
  border-color: var(--rc-border);
}

.note.warn {
  background: #fff3f5;
}

.note h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--rc-black);
}

.note p {
  margin: 0;
}

.faq-item {
  border: 1px solid var(--rc-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--rc-white);
}

.faq-question {
  width: 100%;
  background: var(--rc-white);
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  color: var(--rc-black);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--rc-gray-700);
}

.faq-item.open .faq-answer {
  display: block;
}

.sidebar-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.footer {
  background: #111;
  color: var(--rc-white);
  padding: 42px 0 22px;
  border-top: 3px solid var(--rc-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer p,
.footer-copy {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
}

.footer-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rc-white);
  margin-bottom: 12px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-shell,
  .hero > .container,
  .content-grid,
  .grid,
  .layout > .container,
  .footer-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card,
  .side {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .article-card,
  .card {
    padding: 24px;
  }
}
