﻿/* ===== SELF-HOSTED LOGO/HEADLINE FONT (no FOUT jerk, branded) ===== */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(fonts/bebas-neue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(fonts/bebas-neue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --sun: #FFB800;
    --sun-bright: #FFD600;
    --solar: #FF6B00;
    --dark: #0A0E1A;
    --dark2: #111827;
    --dark3: #1C2333;
    --text: #E8EDF5;
    --muted: #8B97B0;
    --accent: #00D4FF;
    --green: #22C55E;
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { overflow-x: hidden; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Manrope', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
  }

  /* ===== ANIMATED BG ===== */
  .bg-grid {
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,184,0,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,184,0,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
  }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10,14,26,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,184,0,0.12);
  }

  .logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--sun), var(--solar));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .logo span { color: var(--accent); -webkit-text-fill-color: var(--accent); }

  nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
  }
  nav a:hover { color: var(--sun); }

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

  .nav-cta {
    background: linear-gradient(135deg, var(--sun), var(--solar));
    color: var(--dark) !important;
    font-weight: 700 !important;
    padding: 10px 24px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s !important;
  }
  .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255,184,0,0.4);
  }

  /* ===== HERO ===== */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
  }

  .hero-glow {
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,184,0,0.15) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
  }

  .hero-glow2 {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
    bottom: 0; left: -100px;
    pointer-events: none;
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
  }

  .hero-content {
    max-width: 700px;
    width: 100%;
    overflow: visible;
    animation: fadeUp 0.8s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,184,0,0.12);
    border: 1px solid rgba(255,184,0,0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sun);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
  }

  .hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--sun);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 10vw, 96px);
    line-height: 0.95;
    letter-spacing: 1px;
    margin-bottom: 24px;
    padding-right: 4px;
  }

  h1 .line1 { color: var(--text); display: block; }
  h1 .line2 {
    display: block;
    background: linear-gradient(135deg, var(--sun), var(--solar));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  h1 .line3 { color: var(--accent); display: block; }

  .hero-sub {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 560px;
  }

  .hero-sub strong { color: var(--text); font-weight: 600; }

  .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--sun), var(--solar));
    color: var(--dark);
    font-weight: 800;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Manrope', sans-serif;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255,107,0,0.5);
  }

  .btn-secondary {
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Manrope', sans-serif;
  }

  .btn-secondary:hover {
    border-color: var(--sun);
    color: var(--sun);
  }

  .hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
  }

  .stat { }
  .stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    color: var(--sun);
    letter-spacing: 1px;
    line-height: 1;
  }
  .stat-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 4px;
  }

  /* ===== SOLAR VISUAL ===== */
  .hero-visual {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sun-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,184,0,0.2);
    animation: rotate 20s linear infinite;
  }

  .sun-ring:nth-child(1) { width: 480px; height: 480px; animation-duration: 30s; }
  .sun-ring:nth-child(2) { width: 360px; height: 360px; animation-duration: 20s; animation-direction: reverse; border-color: rgba(0,212,255,0.15); }
  .sun-ring:nth-child(3) { width: 240px; height: 240px; animation-duration: 15s; border-color: rgba(255,107,0,0.2); }

  @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .sun-core {
    width: 140px; height: 140px;
    background: radial-gradient(circle, var(--sun-bright), var(--solar));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    box-shadow: 0 0 60px rgba(255,184,0,0.6), 0 0 120px rgba(255,184,0,0.3);
    animation: glow 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
  }

  @keyframes glow {
    0%, 100% { box-shadow: 0 0 60px rgba(255,184,0,0.6), 0 0 120px rgba(255,184,0,0.3); }
    50% { box-shadow: 0 0 80px rgba(255,184,0,0.9), 0 0 160px rgba(255,184,0,0.5); }
  }

  .sun-dot {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
  }

  .sun-ring:nth-child(1) .sun-dot { top: 10px; left: 50%; transform: translateX(-50%); }
  .sun-ring:nth-child(2) .sun-dot { top: 10px; left: 50%; transform: translateX(-50%); background: var(--sun); }

  /* ===== SECTION ===== */
  section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
  }

  .section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sun);
    margin-bottom: 16px;
  }

  h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }

  .section-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 60px;
  }

  /* ===== SERVICES ===== */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .service-card {
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }

  .service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,184,0,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .service-card:hover {
    border-color: rgba(255,184,0,0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  }

  .service-card:hover::before { opacity: 1; }

  .service-icon {
    width: 56px; height: 56px;
    background: rgba(255,184,0,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
  }

  .service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
  }

  .service-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
  }

  /* ===== WHY ===== */
  .why-section {
    background: var(--dark2);
    margin: 0;
    max-width: 100%;
    padding: 100px 40px;
  }

  .why-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .why-points { display: flex; flex-direction: column; gap: 24px; }

  .why-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--dark3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.2s;
  }

  .why-point:hover { border-color: rgba(255,184,0,0.3); }

  .why-icon {
    width: 44px; height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--sun), var(--solar));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .why-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
  .why-text { font-size: 14px; color: var(--muted); line-height: 1.6; }

  .why-image-box {
    background: var(--dark3);
    border-radius: 20px;
    border: 1px solid rgba(255,184,0,0.15);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .big-stat {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(255,184,0,0.1), rgba(255,107,0,0.1));
    border-radius: 16px;
    border: 1px solid rgba(255,184,0,0.2);
  }

  .big-stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    color: var(--sun);
    line-height: 1;
  }

  .big-stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; }

  .mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  .mini-stat {
    background: var(--dark2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
  }

  .mini-stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--accent);
    line-height: 1;
  }

  .mini-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

  /* ===== PROCESS ===== */
  .process-steps {
    display: flex;
    gap: 0;
    position: relative;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--sun), var(--solar), var(--accent));
    opacity: 0.3;
  }

  .step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    position: relative;
  }

  .step-num {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--sun), var(--solar));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: var(--dark);
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 24px rgba(255,184,0,0.4);
  }

  .step-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
  .step-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

  /* ===== FORM ===== */
  .form-section {
    background: linear-gradient(135deg, var(--dark2), var(--dark3));
    margin: 0;
    max-width: 100%;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
  }

  .form-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,184,0,0.08), transparent 70%);
    top: -200px; right: -100px;
    pointer-events: none;
  }

  .form-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .form-text h2 { margin-bottom: 16px; }

  .guarantee-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
  }

  .badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
  }

  .badge-icon {
    width: 32px; height: 32px;
    background: rgba(34,197,94,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .form-box {
    background: var(--dark);
    border: 1px solid rgba(255,184,0,0.2);
    border-radius: 20px;
    padding: 40px;
  }

  .form-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .form-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
  }

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

  .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    outline: none;
    transition: border-color 0.2s;
  }

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

  .form-group select option { background: var(--dark2); }

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

  .submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--sun), var(--solar));
    color: var(--dark);
    font-weight: 800;
    font-size: 17px;
    padding: 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
  }

  .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255,107,0,0.5);
  }

  .privacy-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
  }

  /* ===== SUCCESS ===== */
  .success-msg {
    display: none;
    text-align: center;
    padding: 40px 20px;
  }

  .success-msg .check {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
  }

  .success-msg h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--green);
  }

  .success-msg p { color: var(--muted); font-size: 15px; }

  /* ===== FOOTER ===== */
  footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
  }

  footer p { font-size: 13px; color: var(--muted); }

  .footer-contacts { display: flex; gap: 24px; }

  .footer-contacts a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-contacts a:hover { color: var(--sun); }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 900px) {
    nav { padding: 14px 16px; }
    .nav-links { display: none; }
    .hero { padding: 90px 16px 50px; min-height: auto; }
    .hero-visual { display: none; }
    section { padding: 60px 16px 60px 16px; }
    .why-grid, .form-inner { grid-template-columns: 1fr; gap: 40px; }
    .process-steps { flex-direction: column; gap: 32px; }
    .process-steps::before { display: none; }
    .why-section { padding: 60px 16px 60px 16px; }
    .form-section { padding: 60px 16px 60px 16px; }
    .why-inner { padding: 0; }
    footer { padding: 24px 16px; flex-direction: column; text-align: center; }
    .hero-stats { gap: 24px; }
  }

  @media (max-width: 600px) {
    nav { padding: 12px 16px; }
    .logo { font-size: 22px; }
    .nav-cta { padding: 8px 16px; font-size: 13px !important; }
    .hero { padding: 80px 20px 40px 16px; min-height: 100svh; }
    h1 { font-size: clamp(28px, 9vw, 48px) !important; line-height: 1; }
    .hero-badge { font-size: 11px; padding: 6px 12px; margin-bottom: 20px; }
    .hero-sub { font-size: 15px; margin-bottom: 28px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .stat-num { font-size: 32px; }
    .stat-label { font-size: 12px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; justify-content: center; padding: 14px 20px; font-size: 15px; }
    .services-grid { grid-template-columns: 1fr; }
    .mini-stats { grid-template-columns: 1fr 1fr; }
    .form-box { padding: 24px 16px; }
    .footer-contacts { flex-direction: column; gap: 8px; }
  }

/* ===================================================== */
/* ===== MULTIPAGE ADDITIONS (shared by all pages) ===== */
/* ===================================================== */

a.logo { text-decoration: none; display: inline-block; }

/* ----- NAV dropdown ----- */
.nav-links > a,
.nav-dropdown-toggle { line-height: 1; }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  background: rgba(17,24,39,0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,184,0,0.15);
  border-radius: 12px;
  padding: 10px;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 200;
}
/* invisible bridge across the gap so :hover is not lost moving to the menu */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-menu a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: rgba(255,184,0,0.1); color: var(--sun); }

/* ----- clickable service cards (visually identical) ----- */
a.service-card { text-decoration: none; color: inherit; display: block; }

/* ----- PAGE HERO ----- */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 150px 40px 50px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.breadcrumbs {
  font-size: 13px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--sun); }
.breadcrumbs .sep { color: rgba(139,151,176,0.5); }
.breadcrumbs .current { color: var(--sun); }
.page-hero h1 { font-size: clamp(32px, 6vw, 64px); margin-bottom: 20px; }
.page-hero .lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}
.page-hero .lead strong { color: var(--text); }
.page-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ----- PROSE / ARTICLE ----- */
.prose {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 40px 70px;
  width: 100%;
  box-sizing: border-box;
}
.prose h2 { font-size: clamp(26px, 4vw, 42px); margin: 50px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 30px 0 12px;
}
.prose p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 18px; }
.prose p strong { color: var(--text); }
.prose ul, .prose ol {
  margin: 0 0 22px 22px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--sun); }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* ----- CONTENT IMAGES ----- */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 26px 0 30px;
}
.content-figure { margin: 26px 0 30px; }
.content-figure img,
.prose img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--dark3);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.content-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* ----- RELATED ----- */
.related-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 40px 100px;
  width: 100%;
  box-sizing: border-box;
}

/* ----- FOOTER (multi-column, all pages) ----- */
footer { display: block; padding: 56px 40px 28px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 6px;
}
.footer-col a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--sun); }
.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 340px; }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-contacts { flex-direction: column; gap: 8px; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding: 116px 16px 36px; }
  .prose { padding: 16px 16px 56px; }
  .related-section { padding: 8px 16px 60px; }
  footer { padding: 40px 16px 24px; }
}

/* ===================================================== */
/* ===== SMOOTHER PAGE-TO-PAGE NAVIGATION ============== */
/* ===================================================== */

/* 1) Kill the white flash between page loads (all browsers):
      paint the root canvas dark before <body> renders. */
html { background: #0A0E1A; }

/* 2) Cross-document fade between pages — progressive enhancement.
      Works in browsers that support MPA View Transitions
      (Chromium 126+); silently ignored everywhere else. */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.30s;
  animation-timing-function: ease;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

/* 3) Stop the fixed header from jerking between pages.
      a) Reserve scrollbar space so pages of different length
         don't shift the fixed nav horizontally. */
html { scrollbar-gutter: stable; }

/*    b) Treat the top nav as ONE continuous element across
         navigations, so it stays put instead of cross-fading
         with the page body (View Transitions, Chromium 126+). */
header[role="banner"] nav { view-transition-name: site-header; }

@media (prefers-reduced-motion: reduce) {
  header[role="banner"] nav { view-transition-name: none; }
}
