@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;900&family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&family=Roboto+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== TOKENS ===== */
:root {
  --red:         #C41E3A;
  --red-dark:    #9B1830;
  --red-pale:    #FEF0F2;
  --navy:        #1A2744;
  --navy-2:      #243560;
  --bg:          #F9F8F5;
  --bg-2:        #F0EFE9;
  --surface:     #FFFFFF;
  --heading:     #1A2744;
  --text:        #2A2927;
  --muted:       #666260;
  --border:      #DDD9D2;
  --shadow:      0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 18px rgba(0,0,0,0.11);
  --radius:      3px;
  --font-d:      'Big Shoulders Display', Impact, 'Arial Black', sans-serif;
  --font-h:      'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-b:      'Barlow', system-ui, sans-serif;
  --font-m:      'Roboto Mono', 'Courier New', monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #141414;
    --bg-2:      #1C1C1C;
    --surface:   #242424;
    --heading:   #EDECE8;
    --text:      #DCDAD6;
    --muted:     #8A8880;
    --border:    #2E2E2E;
    --red:       #E03550;
    --red-dark:  #C41E3A;
    --red-pale:  #200D10;
    --navy:      #162040;
    --navy-2:    #1E2D55;
  }
}

:root[data-theme="dark"] {
  --bg:        #141414;
  --bg-2:      #1C1C1C;
  --surface:   #242424;
  --heading:   #EDECE8;
  --text:      #DCDAD6;
  --muted:     #8A8880;
  --border:    #2E2E2E;
  --red:       #E03550;
  --red-dark:  #C41E3A;
  --red-pale:  #200D10;
  --navy:      #162040;
  --navy-2:    #1E2D55;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

code {
  font-family: var(--font-m);
  font-size: 13px;
  background: var(--bg-2);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.skip-link { position: absolute; top: -50px; left: 0; padding: 8px 16px; background: var(--red); color: #fff; z-index: 200; }
.skip-link:focus { top: 0; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
}

.site-logo img { height: 36px; width: auto; }

.main-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.main-nav ul li a {
  display: block;
  padding: 6px 14px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
  position: relative;
}

.main-nav ul li a:hover { color: var(--red); text-decoration: none; }

.main-nav ul li a.active {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}

.has-dropdown { position: relative; }

.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 6px 0;
  z-index: 100;
  flex-direction: column;
}

.has-dropdown:hover > .dropdown { display: flex; }

.dropdown li { list-style: none; }
.dropdown li a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  border-bottom: none;
}

.dropdown li a:hover { background: var(--bg-2); color: var(--red); text-decoration: none; }

.arrow { font-size: 11px; margin-left: 2px; }

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  background: var(--bg);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-label {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(68px, 9vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--red); }

.hero-tagline {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-text > p { font-size: 15px; color: var(--text); line-height: 1.7; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 13px 28px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover { background: var(--red-dark); text-decoration: none; transform: translateY(-1px); }

.btn-ghost {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}

.btn-ghost:hover { color: var(--red); border-color: var(--red); text-decoration: none; }

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
}

/* ===== SECTION STYLES ===== */
.section-white   { padding: 72px 0; background: var(--surface); }
.section-light   { padding: 72px 0; background: var(--bg-2); }
.section-red     { padding: 72px 0; background: var(--red-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

h2 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.1;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 8px;
}

.section-intro { font-size: 16px; color: var(--muted); margin-bottom: 36px; max-width: 620px; }

.section-rule {
  display: block;
  width: 36px;
  height: 3px;
  background: var(--red);
  margin-bottom: 20px;
}

/* ===== FEATURE CARDS ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}

.feature-card {
  background: var(--surface);
  padding: 28px 22px;
  transition: background 0.15s;
}

.feature-card:hover { background: var(--bg-2); }

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--red);
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 { font-size: 15px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===== DOWNLOAD GRID ===== */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.1s;
}

.dl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.dl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.dl-flag { font-size: 28px; line-height: 1; }

.dl-tag {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.dl-card-body { padding: 10px 20px 16px; flex: 1; }

.dl-region {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 4px;
}

.dl-models {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.dl-card-footer {
  padding: 0 20px 20px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.btn-download:hover { background: var(--navy-2); text-decoration: none; }

.dl-card.dl-featured {
  border-color: var(--red);
  border-width: 2px;
}

.dl-card.dl-featured .btn-download {
  background: var(--red);
}

.dl-card.dl-featured .btn-download:hover { background: var(--red-dark); }

.dl-featured-label {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-pale);
  text-align: center;
  padding: 6px;
  border-bottom: 1px solid var(--border);
}

/* ===== FILE DETAILS ===== */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}

.detail-card { background: var(--surface); padding: 22px 20px; }

.detail-card h3 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
  font-family: var(--font-h);
}

.detail-card p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  font-weight: 500;
  font-family: var(--font-b);
}

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }

table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  font-family: var(--font-b);
}

table tr:last-child td { border-bottom: none; }
table tr:nth-child(even) td { background: var(--bg-2); }

table td:first-child { font-family: var(--font-m); font-size: 13px; font-weight: 500; white-space: nowrap; }

.comparison-table th { background: var(--red); }

/* ===== INFO BOXES ===== */
.info-box {
  background: var(--surface);
  border-left: 4px solid var(--navy);
  padding: 22px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.legal-box {
  background: var(--red-pale);
  border-left: 4px solid var(--red);
  padding: 22px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.legal-box h3 { color: var(--red-dark); }

/* ===== BIOS FUNCTIONS ===== */
.bios-functions { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 24px 0; }

.bios-functions li {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
}

/* ===== EMULATORS ===== */
.emulators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.emulator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  border-top: 3px solid var(--navy);
}

.emulator-card h3 {
  font-size: 15px;
  color: var(--heading);
  margin-bottom: 8px;
}
.emulator-card p { font-size: 14px; margin: 0; }

/* ===== INSTALL STEPS ===== */
.install-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }

.install-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
}

.install-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--red);
  color: #fff;
  border-radius: 2px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 17px;
}

/* ===== ERRORS ===== */
.errors-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }

.error-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  border-left: 4px solid #EF4444;
}

.error-item h3 { color: #991B1B; font-size: 17px; margin-bottom: 10px; }

/* ===== BLOGS ===== */
.blogs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.1s;
  display: block;
}

.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }

.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.blog-card-body { padding: 14px; }
.blog-card-body h3 {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0;
  line-height: 1.35;
}

/* ===== TIPS ===== */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }

.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  border-top: 2px solid var(--border);
  transition: border-top-color 0.15s;
}

.tip-card:hover { border-top-color: var(--red); }

.tip-card h3 {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--heading);
  margin-bottom: 8px;
}
.tip-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ===== GAMES ===== */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }

.games-grid ul { list-style: none; display: flex; flex-direction: column; }

.games-grid li {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.games-grid li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* ===== FAQ ===== */
.faq-list { margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--surface);
  border: none;
  padding: 18px 22px;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background 0.12s, color 0.12s;
  font-family: var(--font-h);
}

.faq-question:hover { background: var(--bg-2); }
.faq-question[aria-expanded="true"] { background: var(--navy); color: #fff; }

.faq-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s;
  opacity: 0.7;
}

.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer { display: none; padding: 0 22px 20px; background: var(--surface); font-size: 15px; border-top: 1px solid var(--border); padding-top: 16px; }
.faq-answer.open { display: block; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }

.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 60px; margin-bottom: 48px; }

.footer-brand img { height: 40px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.55); max-width: 360px; margin-bottom: 8px; }

.footer-nav { display: flex; gap: 60px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-nav ul li a { color: rgba(255,255,255,0.6); font-size: 14px; font-family: var(--font-h); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.12s; }
.footer-nav ul li a:hover { color: #fff; text-decoration: none; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 16px; }

.social-links { display: flex; gap: 10px; }

.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  color: rgba(255,255,255,0.6);
  transition: background 0.12s, color 0.12s;
}

.social-links a:hover { background: var(--red); color: #fff; }

.copyright { font-size: 13px; color: rgba(255,255,255,0.35); margin: 0; font-family: var(--font-h); letter-spacing: 0.04em; text-transform: uppercase; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background 0.12s;
  z-index: 40;
  font-family: var(--font-h);
}

.scroll-top:hover { background: var(--red); }
.scroll-top.visible { display: flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .emulators-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .blogs-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { gap: 40px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; }
  .main-nav.open {
    display: flex;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px 28px;
    box-shadow: var(--shadow-md);
    z-index: 100;
  }
  .main-nav.open ul { flex-direction: column; width: 100%; gap: 0; }
  .main-nav.open ul li a { padding: 10px 0; display: block; text-transform: uppercase; }
  .has-dropdown .dropdown { position: static; box-shadow: none; border: none; padding-left: 12px; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open > .dropdown { display: flex; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-image { display: none; }

  .section-white, .section-light, .section-red { padding: 48px 0; }

  .feature-grid { grid-template-columns: 1fr 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .emulators-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .blogs-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .blogs-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; gap: 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ===== INNER PAGES ===== */
.page-header {
  background: var(--bg-2);
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-family: var(--font-h);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); transition: color 0.12s; }
.breadcrumb a:hover { color: var(--red); text-decoration: none; }
.breadcrumb-sep { color: var(--border); }

.page-title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.05;
  margin-bottom: 14px;
  text-wrap: balance;
}

.page-meta {
  font-family: var(--font-h);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== ARTICLE BODY ===== */
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.article-body { max-width: 760px; }

.article-body h2 {
  font-size: clamp(20px, 3vw, 32px);
  margin-bottom: 14px;
  margin-top: 44px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 { font-size: 18px; margin-bottom: 10px; margin-top: 28px; }

.article-body p { margin-bottom: 18px; font-size: 16px; line-height: 1.75; }

.article-body ul,
.article-body ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-body ul li {
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  font-size: 15px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body ol { counter-reset: art-step; }
.article-body ol li {
  counter-increment: art-step;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.article-body ol li::before {
  content: counter(art-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--red);
  color: #fff;
  border-radius: 2px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 15px;
}

.article-sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.sidebar-card-head {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-card-body { padding: 16px; }

.sidebar-card-body ul { list-style: none; display: flex; flex-direction: column; gap: 0; margin: 0; }
.sidebar-card-body ul li a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.12s;
}
.sidebar-card-body ul li:last-child a { border-bottom: none; }
.sidebar-card-body ul li a:hover { color: var(--red); text-decoration: none; }

/* ===== BLOGS INDEX ===== */
.blogs-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.blog-index-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.15s, transform 0.1s;
  color: var(--text);
  border-top: 3px solid var(--border);
}

.blog-index-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
  border-top-color: var(--red);
}

.blog-index-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }

.blog-index-card h3 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 5px;
}

.blog-index-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 580px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group textarea { height: 130px; resize: vertical; }

/* ===== CTA BOX ===== */
.cta-box {
  background: var(--navy);
  color: #fff;
  padding: 32px 36px;
  border-radius: var(--radius);
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-box h3 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}

.cta-box p { color: rgba(255,255,255,0.65); margin: 0; font-size: 14px; }

@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .blogs-index-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
