.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 48px;

  padding: 0 22px;

  border-radius: var(--radius-md);

  font-size: var(--text-sm);
  font-weight: 700;

  transition:
    transform var(--transition-fast),
    background var(--transition-normal),
    box-shadow var(--transition-normal);
}

.btn:hover {
  transform: translateY(-2px);
}

/* Primary */

.btn-primary {
  color: #fff;
  background: var(--primary);

  box-shadow: 0 4px 12px rgba(217, 45, 32, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);

  box-shadow: 0 8px 20px rgba(217, 45, 32, 0.25);
}

/* Secondary */

.btn-secondary {
  color: var(--dark);
  background: var(--surface);

  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-secondary);
}

/* Emergency */

.btn-emergency {
  color: #fff;
  background: var(--primary);

  padding-inline: 20px;
}

.btn-emergency:hover {
  background: var(--primary-dark);
}

/* ==================================================
   HEADER
================================================== */

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  width: 100%;

  background: rgba(255, 255, 255, 0.92);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

/* =========================
   BRAND
========================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  flex-shrink: 0;
}

.brand-icon img {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  background: var(--primary);

  border-radius: 12px;

  box-shadow: 0 6px 16px rgba(217, 45, 32, 0.18);
}

.brand-icon svg img {
  width: 23px;
  height: 23px;
}

.brand-content {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  color: var(--dark);

  font-size: 1rem;
  font-weight: 800;
}

.brand-tagline {
  margin-top: 3px;

  color: var(--text-muted);

  font-size: 0.68rem;
  font-weight: 500;
}

/* =========================
   NAV MENU
========================= */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;

  margin-inline: auto;
}

.nav-link {
  position: relative;

  display: inline-flex;
  align-items: center;

  min-height: 42px;

  padding: 0 14px;

  color: var(--text-light);

  font-size: 0.875rem;
  font-weight: 600;

  border-radius: 10px;

  transition:
    color var(--transition-normal),
    background var(--transition-normal);
}

.nav-link:hover {
  color: var(--dark);
  background: var(--surface-secondary);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";

  position: absolute;

  right: 14px;
  left: 14px;
  bottom: 3px;

  height: 2px;

  border-radius: 10px;

  background: var(--primary);
}

/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-emergency {
  min-height: 44px;

  padding-inline: 16px;

  border-radius: 10px;

  font-size: 0.82rem;
}

.btn-emergency svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   MOBILE MENU TOGGLE
========================================================= */

.mobile-menu-toggle {
  position: relative;

  display: none;

  width: 44px;
  height: 44px;

  align-items: center;
  justify-content: center;

  padding: 0;

  color: var(--dark);

  background: var(--surface-secondary);

  border: 1px solid var(--border);
  border-radius: 12px;

  cursor: pointer;

  overflow: hidden;

  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* -------------------------
   HOVER
------------------------- */

.mobile-menu-toggle:hover {
  color: var(--primary);

  background: var(--primary-light);

  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);

  transform: translateY(-1px);
}

/* -------------------------
   ACTIVE
------------------------- */

.mobile-menu-toggle:active {
  transform: scale(0.94);
}

/* -------------------------
   ICONS
------------------------- */

.mobile-menu-toggle svg {
  position: absolute;

  width: 21px;
  height: 21px;

  stroke-width: 2;

  transition:
    opacity 0.2s ease,
    transform 0.3s ease;
}

/* MENU ICON */

.mobile-menu-toggle .menu-icon {
  opacity: 1;

  transform: rotate(0deg) scale(1);
}

/* CLOSE ICON */

.mobile-menu-toggle .close-icon {
  opacity: 0;

  transform: rotate(-90deg) scale(0.7);
}

/* -------------------------
   OPEN STATE
------------------------- */

.mobile-menu-toggle.is-open {
  color: var(--primary);

  background: var(--primary-light);

  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.mobile-menu-toggle.is-open .menu-icon {
  opacity: 0;

  transform: rotate(90deg) scale(0.7);
}

.mobile-menu-toggle.is-open .close-icon {
  opacity: 1;

  transform: rotate(0deg) scale(1);
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
  position: absolute;

  top: 100%;
  left: 0;
  right: 0;

  z-index: 100;

  visibility: hidden;

  opacity: 0;

  transform: translateY(-12px) scaleY(0.98);

  transform-origin: top;

  pointer-events: none;

  background: var(--surface);

  border-top: 1px solid var(--border);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);

  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s ease;
}

/* -------------------------
   OPEN STATE
------------------------- */

.mobile-menu.is-open {
  visibility: visible;

  opacity: 1;

  transform: translateY(0) scaleY(1);

  pointer-events: auto;
}

/* =========================================================
   MOBILE MENU INNER
========================================================= */

.mobile-menu-inner {
  display: flex;

  flex-direction: column;

  gap: 6px;

  padding: 14px 0 18px;
}

/* =========================================================
   MOBILE NAV LINK
========================================================= */

.mobile-nav-link {
  position: relative;

  min-height: 52px;

  display: flex;

  align-items: center;

  gap: 13px;

  padding: 0 15px;

  color: var(--text);

  background: transparent;

  border: 1px solid transparent;

  border-radius: 13px;

  font-size: 0.9rem;

  font-weight: 600;

  text-decoration: none;

  overflow: hidden;

  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

/* =========================================================
   LINK HOVER
========================================================= */

.mobile-nav-link:hover {
  color: var(--primary);

  background: var(--primary-light);

  border-color: color-mix(in srgb, var(--primary) 12%, transparent);

  transform: translateX(-3px);
}

/* =========================================================
   LINK ICON
========================================================= */

.mobile-nav-link svg {
  flex: 0 0 auto;

  width: 19px;
  height: 19px;

  stroke-width: 2;

  transition:
    transform 0.25s ease,
    color 0.22s ease;
}

.mobile-nav-link:hover svg {
  transform: scale(1.08);
}

/* =========================================================
   ACTIVE LINK
========================================================= */

.mobile-nav-link.active {
  color: var(--primary);

  background: var(--primary-light);

  border-color: color-mix(in srgb, var(--primary) 15%, transparent);
}

.mobile-nav-link.active::before {
  content: "";

  position: absolute;

  right: 0;

  top: 9px;
  bottom: 9px;

  width: 3px;

  background: var(--primary);

  border-radius: 999px;
}

/* =========================================================
   EMERGENCY LINK
========================================================= */

.mobile-nav-link.mobile-emergency {
  margin-top: 8px;

  color: #fff;

  background: var(--primary);

  border-color: var(--primary);

  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 22%, transparent);
}

.mobile-nav-link.mobile-emergency:hover {
  color: #fff;

  background: var(--primary-dark);

  border-color: var(--primary-dark);

  transform: translateY(-2px);

  box-shadow: 0 12px 26px
    color-mix(in srgb, var(--primary-dark) 25%, transparent);
}

.mobile-nav-link.mobile-emergency svg {
  color: currentColor;
}

/* =========================================================
   HEADER POSITION
========================================================= */

.site-header {
  position: relative;
  z-index: 1000;
}

/* ==================================================
   HERO
================================================== */

.hero {
  position: relative;

  overflow: hidden;

  padding: 50px 0px 0px 0px;

  background:
    radial-gradient(
      circle at 85% 30%,
      rgba(217, 45, 32, 0.055),
      transparent 32%
    ),
    var(--background);
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 0.85fr);

  align-items: center;

  gap: 80px;
}

/* =========================
   HERO CONTENT
========================= */

.hero-content {
  max-width: 650px;

  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 7px 13px;

  color: var(--primary);

  background: var(--primary-light);

  border: 1px solid rgba(217, 45, 32, 0.08);

  border-radius: var(--radius-full);

  font-size: 0.8rem;
  font-weight: 700;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--primary);

  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.08);
}

.hero-title {
  max-width: 650px;

  margin-top: 24px;

  color: var(--dark);

  font-size: clamp(2.5rem, 5vw, 4.25rem);

  line-height: 1.25;

  font-weight: 800;

  letter-spacing: -1.5px;
}

.hero-title span {
  display: block;

  color: var(--primary);
}

.hero-description {
  max-width: 590px;

  margin-top: 24px;

  color: var(--text-light);

  font-size: 1.05rem;

  line-height: 2.1;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 34px;
}

.hero-primary-btn {
  min-height: 52px;
  padding-inline: 22px;
}

.hero-actions .btn svg {
  width: 18px;
  height: 18px;
}

/* =========================
   TRUST
========================= */

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 22px;

  margin-top: 34px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--text-light);

  font-size: 0.78rem;
  font-weight: 600;
}

.trust-icon {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--success);

  background: var(--success-light);

  border-radius: 8px;
}

.trust-icon svg {
  width: 15px;
  height: 15px;
}

/* =========================
   HERO VISUAL
========================= */

.hero-visual {
  position: relative;

  min-height: 560px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-bg {
  position: absolute;

  width: 410px;
  height: 410px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(217, 45, 32, 0.1),
    rgba(217, 45, 32, 0.02) 55%,
    transparent 70%
  );
}

/* =========================
   MAIN HERO CARD
========================= */

.hero-card-main {
  position: relative;
  z-index: 3;

  width: min(390px, 85%);

  padding: 28px;

  background: rgba(255, 255, 255, 0.96);

  border: 1px solid rgba(255, 255, 255, 0.8);

  border-radius: 24px;

  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.12);

  backdrop-filter: blur(12px);

  animation: heroCardFloat 5s ease-in-out infinite;
}

@keyframes heroCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card-label {
  color: var(--text-light);

  font-size: 0.82rem;
  font-weight: 600;
}

.hero-card-status {
  padding: 4px 9px;

  color: var(--success);

  background: var(--success-light);

  border-radius: var(--radius-full);

  font-size: 0.7rem;
  font-weight: 700;
}

.readiness-score {
  display: flex;
  align-items: baseline;
  gap: 8px;

  margin-top: 18px;
}

.score-number {
  color: var(--dark);

  font-size: 3rem;

  line-height: 1;

  font-weight: 800;
}

.score-label {
  color: var(--text-muted);

  font-size: 0.75rem;
}

.progress {
  height: 8px;

  margin-top: 20px;

  overflow: hidden;

  background: var(--surface-secondary);

  border-radius: var(--radius-full);
}

.progress-bar {
  display: block;

  height: 100%;

  background: var(--primary);

  border-radius: inherit;

  animation: progressLoad 1.2s ease both;
}

@keyframes progressLoad {
  from {
    width: 0 !important;
  }
}

.readiness-items {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-top: 24px;

  padding-top: 20px;

  border-top: 1px solid var(--border);
}

.readiness-item {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--text-light);

  font-size: 0.78rem;
}

.readiness-check {
  width: 23px;
  height: 23px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-muted);

  background: var(--surface-secondary);

  border-radius: 50%;
}

.readiness-check svg {
  width: 13px;
  height: 13px;
}

.readiness-item.completed {
  color: var(--dark);
}

.readiness-item.completed .readiness-check {
  color: var(--success);

  background: var(--success-light);
}

/* =========================
   FLOATING CARD
========================= */

.hero-floating-card {
  position: absolute;

  z-index: 5;

  left: 2%;

  bottom: 65px;

  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 235px;

  padding: 14px;

  background: rgba(255, 255, 255, 0.95);

  border: 1px solid var(--border);

  border-radius: 14px;

  box-shadow: var(--shadow-lg);

  animation: floatingCard 4s ease-in-out infinite;
}

@keyframes floatingCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.floating-icon {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--success);

  background: var(--success-light);

  border-radius: 11px;
}

.floating-icon svg {
  width: 20px;
  height: 20px;
}

.hero-floating-card div {
  display: flex;
  flex-direction: column;
}

.hero-floating-card strong {
  color: var(--dark);

  font-size: 0.8rem;
}

.hero-floating-card span {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 0.68rem;
}

/* =========================
   ORBITS
========================= */

.hero-orbit {
  position: absolute;

  border: 1px dashed rgba(217, 45, 32, 0.12);

  border-radius: 50%;
}

.hero-orbit-one {
  width: 470px;
  height: 470px;
}

.hero-orbit-two {
  width: 600px;
  height: 600px;
}

/* ==================================================
   CRISIS SECTION
================================================== */

.crisis-section {
  position: relative;

  padding: 110px 0;

  background: var(--surface);
}

/* =========================
   HEADER
========================= */

.crisis-header {
  max-width: 680px;
}

.crisis-header .section-badge {
  gap: 7px;
}

.crisis-header .section-badge svg {
  width: 15px;
  height: 15px;
}

.crisis-header .section-title span {
  color: var(--primary);
}

/* =========================
   GRID
========================= */

.crisis-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
}

/* =========================
   CARD
========================= */

.crisis-card {
  position: relative;

  min-height: 310px;

  display: flex;
  flex-direction: column;

  padding: 24px;

  overflow: hidden;

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.crisis-card::before {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  left: -60px;
  bottom: -80px;

  border-radius: 50%;

  background: var(--card-accent);

  opacity: 0.055;

  transition:
    transform var(--transition-slow),
    opacity var(--transition-normal);
}

.crisis-card:hover {
  transform: translateY(-7px);

  border-color: color-mix(in srgb, var(--card-accent) 30%, var(--border));

  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.09);
}

.crisis-card:hover::before {
  transform: scale(1.5);

  opacity: 0.09;
}

/* =========================
   CARD TOP
========================= */

.crisis-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crisis-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--card-accent);

  background: color-mix(in srgb, var(--card-accent) 10%, transparent);

  border-radius: 15px;
}

.crisis-icon svg {
  width: 24px;
  height: 24px;

  stroke-width: 1.8;
}

.crisis-arrow {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-muted);

  border: 1px solid var(--border);

  border-radius: 50%;

  transition:
    color var(--transition-normal),
    background var(--transition-normal),
    transform var(--transition-normal);
}

.crisis-arrow svg {
  width: 15px;
  height: 15px;
}

.crisis-card:hover .crisis-arrow {
  color: #fff;

  background: var(--card-accent);

  border-color: var(--card-accent);

  transform: rotate(45deg);
}

/* =========================
   CONTENT
========================= */

.crisis-content {
  position: relative;

  margin-top: auto;
}

.crisis-number {
  display: block;

  margin-bottom: 7px;

  color: var(--text-muted);

  font-size: 0.7rem;

  font-weight: 700;

  letter-spacing: 1px;
}

.crisis-content h3 {
  color: var(--dark);

  font-size: 1.35rem;

  font-weight: 800;
}

.crisis-content p {
  max-width: 310px;

  margin-top: 8px;

  color: var(--text-light);

  font-size: 0.8rem;

  line-height: 1.9;
}

/* =========================
   LINK
========================= */

.crisis-link {
  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  margin-top: 20px;

  color: var(--card-accent);

  font-size: 0.75rem;

  font-weight: 700;
}

.crisis-link svg {
  width: 15px;
  height: 15px;

  transition: transform var(--transition-normal);
}

.crisis-card:hover .crisis-link svg {
  transform: translateX(-4px);
}

/* =========================
   CARD COLORS
========================= */

.crisis-earthquake {
  --card-accent: #d92d20;
}

.crisis-fire {
  --card-accent: #f04438;
}

.crisis-flood {
  --card-accent: #1570ef;
}

.crisis-gas {
  --card-accent: #7a5af8;
}

.crisis-electric {
  --card-accent: #f79009;
}

.crisis-accident {
  --card-accent: #475467;
}

/* =========================
   MORE BUTTON
========================= */

.crisis-more {
  display: flex;

  justify-content: center;

  margin-top: 42px;
}

/* ==================================================
   PREPAREDNESS STEPS
================================================== */

.steps-section {
  position: relative;

  padding: 110px 0;

  background: var(--background);

  overflow: hidden;
}

/* =========================
   HEADER
========================= */

.steps-header {
  max-width: 720px;
}

.steps-header .section-badge svg {
  width: 15px;
  height: 15px;
}

.steps-header .section-title span {
  color: var(--primary);
}

/* =========================
   STEPS WRAPPER
========================= */

.steps-wrapper {
  position: relative;

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;

  margin-top: 55px;
}

/* =========================
   CONNECTING LINE
========================= */

.steps-wrapper::before {
  content: "";

  position: absolute;

  top: 45px;

  right: 13%;
  left: 13%;

  height: 1px;

  background: linear-gradient(
    to left,
    transparent,
    var(--border-dark),
    transparent
  );

  z-index: 0;
}

/* =========================
   STEP CARD
========================= */

.step-card {
  position: relative;

  z-index: 1;

  min-height: 420px;

  padding: 28px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);

  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-6px);

  border-color: var(--border-dark);

  box-shadow: var(--shadow-md);
}

/* =========================
   STEP NUMBER
========================= */

.step-number {
  position: absolute;

  top: 24px;
  right: 24px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-muted);

  background: var(--surface-secondary);

  border-radius: 12px;

  font-size: 0.72rem;

  font-weight: 800;
}

.step-active .step-number {
  color: var(--primary);

  background: var(--primary-light);
}

/* =========================
   STEP ICON
========================= */

.step-icon {
  width: 72px;
  height: 72px;

  margin-top: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--primary);

  background: var(--primary-light);

  border: 1px solid rgba(217, 45, 32, 0.08);

  border-radius: 20px;
}

.step-icon svg {
  width: 31px;
  height: 31px;

  stroke-width: 1.7;
}

/* =========================
   STEP CONTENT
========================= */

.step-content {
  margin-top: 30px;
}

.step-label {
  color: var(--text-muted);

  font-size: 0.72rem;

  font-weight: 700;
}

.step-content h3 {
  margin-top: 6px;

  color: var(--dark);

  font-size: 1.5rem;

  font-weight: 800;
}

.step-content p {
  margin-top: 12px;

  color: var(--text-light);

  font-size: 0.82rem;

  line-height: 2;
}

/* =========================
   STEP LINK
========================= */

.step-link {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  margin-top: 22px;

  color: var(--primary);

  font-size: 0.78rem;

  font-weight: 700;
}

.step-link svg {
  width: 15px;
  height: 15px;

  transition: transform var(--transition-normal);
}

.step-link:hover svg {
  transform: translateX(-4px);
}

/* =========================
   LINE ELEMENT
========================= */

.step-line {
  display: none;
}

/* ==================================================
   MY PREPAREDNESS
================================================== */

.preparedness-section {
  position: relative;

  padding: 110px 0;

  background: var(--surface);
}

/* =========================
   MAIN PANEL
========================= */

.preparedness-panel {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(350px, 0.75fr);

  align-items: center;

  gap: 70px;

  padding: 55px;

  overflow: hidden;

  background: linear-gradient(135deg, #fff 0%, #fff8f7 100%);

  border: 1px solid rgba(217, 45, 32, 0.1);

  border-radius: 28px;

  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.07);
}

/* decorative circle */

.preparedness-panel::before {
  content: "";

  position: absolute;

  width: 400px;
  height: 400px;

  left: -180px;
  bottom: -230px;

  border-radius: 50%;

  background: rgba(217, 45, 32, 0.035);
}

.preparedness-panel::after {
  content: "";

  position: absolute;

  width: 250px;
  height: 250px;

  right: -120px;
  top: -150px;

  border-radius: 50%;

  border: 1px solid rgba(217, 45, 32, 0.08);
}

/* =========================
   CONTENT
========================= */

.preparedness-content {
  position: relative;

  z-index: 2;
}

.preparedness-title {
  max-width: 600px;

  margin-top: 20px;

  color: var(--dark);

  font-size: clamp(2rem, 4vw, 3.1rem);

  line-height: 1.35;

  font-weight: 800;

  letter-spacing: -0.8px;
}

.preparedness-title span {
  color: var(--primary);
}

.preparedness-description {
  max-width: 540px;

  margin-top: 18px;

  color: var(--text-light);

  font-size: 0.9rem;

  line-height: 2;
}

.preparedness-start-btn {
  margin-top: 28px;

  min-height: 50px;
}

.preparedness-start-btn svg {
  width: 17px;
  height: 17px;
}

/* =========================
   MOBILE SCORE
========================= */

.preparedness-score-mobile {
  display: none;
}

/* =========================
   DASHBOARD
========================= */

.preparedness-dashboard {
  position: relative;

  z-index: 2;

  padding: 28px;

  background: rgba(255, 255, 255, 0.92);

  border: 1px solid var(--border);

  border-radius: 22px;

  box-shadow: 0 16px 45px rgba(16, 24, 40, 0.08);
}

.dashboard-top {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.dashboard-top > div:first-child {
  display: flex;

  flex-direction: column;
}

.dashboard-label {
  color: var(--text-muted);

  font-size: 0.7rem;

  font-weight: 600;
}

.dashboard-status {
  margin-top: 5px;

  color: var(--primary);

  font-size: 0.85rem;
}

.dashboard-icon {
  width: 46px;
  height: 46px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--primary);

  background: var(--primary-light);

  border-radius: 13px;
}

.dashboard-icon svg {
  width: 22px;
  height: 22px;
}

.dashboard-score {
  display: flex;

  align-items: baseline;

  gap: 9px;

  margin-top: 30px;
}

.dashboard-score strong {
  color: var(--dark);

  font-size: 4rem;

  line-height: 1;

  font-weight: 800;

  letter-spacing: -2px;
}

.dashboard-score span {
  color: var(--text-muted);

  font-size: 0.75rem;
}

.dashboard-progress {
  height: 10px;

  margin-top: 25px;

  overflow: hidden;

  background: var(--surface-secondary);

  border-radius: 50px;
}

.dashboard-progress span {
  display: block;

  height: 100%;

  width: 0;

  background: linear-gradient(90deg, var(--primary), #f04438);

  border-radius: inherit;

  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-top: 18px;

  padding-top: 18px;

  border-top: 1px solid var(--border);

  color: var(--text-muted);

  font-size: 0.7rem;
}

.dashboard-footer span {
  display: flex;

  align-items: center;

  gap: 5px;
}

.dashboard-footer svg {
  width: 14px;
  height: 14px;

  color: var(--success);
}

.dashboard-footer strong {
  color: var(--dark);
}

/* =========================
   CHECKLIST
========================= */

.preparedness-checklist {
  margin-top: 28px;

  padding: 32px;

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);
}

.checklist-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 28px;
}

.checklist-header h3 {
  margin-top: 10px;

  color: var(--dark);

  font-size: 1.25rem;

  font-weight: 800;
}

.reset-checklist {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 9px 12px;

  color: var(--text-light);

  background: var(--surface-secondary);

  border: 1px solid var(--border);

  border-radius: 9px;

  font-size: 0.72rem;

  font-weight: 600;

  transition:
    color var(--transition-normal),
    background var(--transition-normal);
}

.reset-checklist:hover {
  color: var(--primary);

  background: var(--primary-light);
}

.reset-checklist svg {
  width: 15px;
  height: 15px;
}

/* =========================
   CHECKLIST GRID
========================= */

.checklist-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;
}

/* =========================
   CHECK ITEM
========================= */

.check-item {
  position: relative;

  display: flex;

  align-items: center;

  gap: 14px;

  min-height: 82px;

  padding: 15px 17px;

  cursor: pointer;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 14px;

  transition:
    border-color var(--transition-normal),
    background var(--transition-normal),
    transform var(--transition-normal);
}

.check-item:hover {
  border-color: var(--border-dark);

  transform: translateY(-2px);
}

.check-item input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.custom-checkbox {
  width: 25px;
  height: 25px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  color: transparent;

  background: var(--background);

  border: 1.5px solid #d0d5dd;

  border-radius: 8px;

  transition:
    color var(--transition-normal),
    background var(--transition-normal),
    border-color var(--transition-normal);
}

.custom-checkbox svg {
  width: 15px;
  height: 15px;

  stroke-width: 3;
}

.check-item-content {
  display: flex;

  flex-direction: column;
}

.check-item-content strong {
  color: var(--dark);

  font-size: 0.82rem;
}

.check-item-content small {
  margin-top: 4px;

  color: var(--text-muted);

  font-size: 0.68rem;
}

/* checked */

.check-item:has(input:checked) {
  background: var(--primary-light);

  border-color: rgba(217, 45, 32, 0.18);
}

.check-item:has(input:checked) .custom-checkbox {
  color: #fff;

  background: var(--primary);

  border-color: var(--primary);
}

.check-item:has(input:checked) .check-item-content strong {
  color: var(--primary);
}

/* =========================
   COMPLETE
========================= */

.preparedness-complete {
  display: none;

  align-items: center;

  gap: 14px;

  margin-top: 20px;

  padding: 18px;

  background: var(--success-light);

  border: 1px solid rgba(18, 183, 106, 0.15);

  border-radius: 14px;
}

.preparedness-complete.is-visible {
  display: flex;

  animation: fadeUp 0.4s ease both;
}

.complete-icon {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--success);

  background: #fff;

  border-radius: 11px;
}

.complete-icon svg {
  width: 22px;
  height: 22px;
}

.preparedness-complete div:last-child {
  display: flex;

  flex-direction: column;
}

.preparedness-complete strong {
  color: #067647;

  font-size: 0.82rem;
}

.preparedness-complete span {
  margin-top: 4px;

  color: #067647;

  font-size: 0.7rem;
}

/* ==================================================
   PREPAREDNESS RESPONSIVE
================================================== */

@media (max-width: 1050px) {
  .preparedness-panel {
    grid-template-columns:
      1fr
      0.8fr;

    gap: 35px;

    padding: 40px;
  }
}

@media (max-width: 768px) {
  .preparedness-section {
    padding: 80px 0;
  }

  .preparedness-panel {
    grid-template-columns: 1fr;

    gap: 30px;

    padding: 30px 22px;

    border-radius: 22px;
  }

  .preparedness-title {
    font-size: 2rem;
  }

  .preparedness-description {
    font-size: 0.82rem;
  }

  .preparedness-dashboard {
    padding: 22px;
  }

  .dashboard-score strong {
    font-size: 3.2rem;
  }

  .preparedness-checklist {
    padding: 22px;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .preparedness-section {
    padding: 65px 0;
  }

  .preparedness-panel {
    padding: 25px 18px;
  }

  .preparedness-title {
    font-size: 1.75rem;
  }

  .preparedness-start-btn {
    width: 100%;

    justify-content: center;
  }

  .checklist-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .reset-checklist {
    align-self: flex-start;
  }

  .preparedness-checklist {
    padding: 18px;

    border-radius: 18px;
  }

  .check-item {
    min-height: 75px;

    padding: 13px;
  }
}

/* ==================================================
   QUICK GUIDE
================================================== */

.quick-guide-section {
  position: relative;

  padding: 110px 0;

  background: var(--background);
}

/* =========================
   HEADER
========================= */

.quick-guide-header {
  max-width: 700px;
}

.quick-guide-header .section-title span {
  color: var(--primary);
}

/* =========================
   APPLICATION
========================= */

.quick-guide-app {
  display: grid;

  grid-template-columns:
    260px
    minmax(0, 1fr);

  min-height: 560px;

  margin-top: 50px;

  overflow: hidden;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 24px;

  box-shadow: 0 15px 50px rgba(16, 24, 40, 0.06);
}

/* =========================
   SIDEBAR
========================= */

.guide-sidebar {
  padding: 22px 14px;

  background: var(--surface-secondary);

  border-left: 1px solid var(--border);
}

.guide-sidebar-title {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 4px 10px 15px;
}

.guide-sidebar-title span {
  color: var(--dark);

  font-size: 0.78rem;

  font-weight: 800;
}

.guide-sidebar-title small {
  color: var(--text-muted);

  font-size: 0.65rem;
}

/* =========================
   TABS
========================= */

.guide-tabs {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.guide-tab {
  position: relative;

  width: 100%;

  min-height: 58px;

  display: flex;

  align-items: center;

  gap: 11px;

  padding: 8px 10px;

  color: var(--text-light);

  background: transparent;

  border: 1px solid transparent;

  border-radius: 12px;

  text-align: right;

  font-family: inherit;

  font-size: 0.78rem;

  font-weight: 700;

  transition:
    color var(--transition-normal),
    background var(--transition-normal),
    border-color var(--transition-normal);
}

.guide-tab:hover {
  color: var(--dark);

  background: var(--surface);
}

.guide-tab.active {
  color: var(--primary);

  background: var(--surface);

  border-color: rgba(217, 45, 32, 0.1);

  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
}

.guide-tab-icon {
  width: 38px;

  height: 38px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 10px;
}

.guide-tab-icon svg {
  width: 18px;
  height: 18px;
}

/* tab colors */

.guide-tab-icon.earthquake {
  color: #d92d20;

  background: #fef3f2;
}

.guide-tab-icon.fire {
  color: #f04438;

  background: #fef3f2;
}

.guide-tab-icon.flood {
  color: #1570ef;

  background: #eff8ff;
}

.guide-tab-icon.gas {
  color: #7a5af8;

  background: #f4f3ff;
}

.guide-tab-icon.electric {
  color: #f79009;

  background: #fffaeb;
}

.guide-tab-icon.accident {
  color: #475467;

  background: #f2f4f7;
}

.guide-tab-arrow {
  width: 15px;
  height: 15px;

  margin-right: auto;

  opacity: 0;

  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
}

.guide-tab:hover .guide-tab-arrow,
.guide-tab.active .guide-tab-arrow {
  opacity: 1;
}

.guide-tab.active .guide-tab-arrow {
  transform: translateX(-2px);
}

/* =========================
   CONTENT
========================= */

.guide-content {
  display: flex;

  flex-direction: column;

  min-width: 0;

  padding: 35px 40px;
}

.guide-content-header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;
}

.guide-content-kicker {
  color: var(--primary);

  font-size: 0.72rem;

  font-weight: 700;
}

.guide-content-header h3 {
  margin-top: 7px;

  color: var(--dark);

  font-size: 1.65rem;

  font-weight: 800;
}

.guide-level {
  padding: 5px 10px;

  color: #b54708;

  background: #fffaeb;

  border: 1px solid #fedf89;

  border-radius: 50px;

  font-size: 0.65rem;

  font-weight: 700;
}

/* =========================
   ALERT
========================= */

.guide-alert {
  display: flex;

  align-items: flex-start;

  gap: 11px;

  margin-top: 25px;

  padding: 15px 17px;

  color: #7a271a;

  background: #fef3f2;

  border: 1px solid #fecdca;

  border-radius: 12px;

  font-size: 0.76rem;

  line-height: 1.8;
}

.guide-alert > svg {
  width: 19px;
  height: 19px;

  flex-shrink: 0;

  margin-top: 2px;
}

.guide-alert div {
  display: flex;

  flex-direction: column;
}

.guide-alert strong {
  font-weight: 800;
}

/* =========================
   STEPS
========================= */

.guide-steps {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;

  margin-top: 28px;
}

/* generated step */

.quick-step {
  position: relative;

  display: flex;

  align-items: flex-start;

  gap: 13px;

  min-height: 110px;

  padding: 18px;

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: 14px;

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal);
}

.quick-step:hover {
  transform: translateY(-2px);

  border-color: var(--border-dark);
}

.quick-step-number {
  width: 30px;

  height: 30px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--primary);

  background: var(--primary-light);

  border-radius: 9px;

  font-size: 0.7rem;

  font-weight: 800;
}

.quick-step-body {
  display: flex;

  flex-direction: column;
}

.quick-step-body strong {
  color: var(--dark);

  font-size: 0.78rem;

  font-weight: 800;
}

.quick-step-body span {
  margin-top: 6px;

  color: var(--text-light);

  font-size: 0.7rem;

  line-height: 1.8;
}

/* =========================
   FOOTER
========================= */

.guide-content-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-top: auto;

  padding-top: 25px;

  border-top: 1px solid var(--border);
}

.guide-content-footer > span {
  display: flex;

  align-items: center;

  gap: 6px;

  color: var(--text-muted);

  font-size: 0.68rem;
}

.guide-content-footer svg {
  width: 15px;
  height: 15px;
}

.guide-full-link {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: var(--primary);

  font-size: 0.72rem;

  font-weight: 700;
}

.guide-full-link svg {
  width: 15px;
  height: 15px;

  transition: transform var(--transition-normal);
}

.guide-full-link:hover svg {
  transform: translateX(-4px);
}

/* ==================================================
   EMERGENCY TOOLS
================================================== */

.emergency-tools-section {
  padding: 110px 0;

  background: var(--surface);
}

.emergency-tools-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 13px;

  margin-top: 45px;
}

.emergency-tool-card {
  position: relative;

  display: flex;

  align-items: center;

  gap: 14px;

  width: 100%;

  padding: 20px;

  text-align: right;

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: 16px;

  font-family: inherit;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.emergency-tool-card:hover {
  transform: translateY(-4px);

  border-color: rgba(217, 45, 32, 0.25);

  box-shadow: 0 15px 35px rgba(16, 24, 40, 0.07);
}

.emergency-tool-icon {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--primary);

  background: var(--primary-light);

  border-radius: 13px;
}

.emergency-tool-icon svg {
  width: 22px;
  height: 22px;
}

.emergency-tool-content {
  display: flex;

  flex-direction: column;

  min-width: 0;
}

.emergency-tool-content strong {
  color: var(--dark);

  font-size: 0.76rem;

  font-weight: 850;
}

.emergency-tool-content small {
  margin-top: 4px;

  color: var(--text-muted);

  font-size: 0.6rem;
}

.emergency-tool-arrow {
  position: absolute;

  top: 14px;

  left: 14px;

  width: 15px;
  height: 15px;

  color: var(--text-muted);
}

.emergency-tool-danger {
  color: #fff;

  background: linear-gradient(135deg, #d92d20, #b42318);

  border-color: transparent;
}

.emergency-tool-danger .emergency-tool-content strong {
  color: #fff;
}

.emergency-tool-danger .emergency-tool-content small {
  color: rgba(255, 255, 255, 0.65);
}

.emergency-tool-danger .emergency-tool-icon {
  color: #fff;

  background: rgba(255, 255, 255, 0.12);
}

.emergency-tool-danger .emergency-tool-arrow {
  color: rgba(255, 255, 255, 0.65);
}

/* ==================================================
   TOOL MODAL
================================================== */

.tool-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;
}

.tool-modal.active {
  display: flex;
}

.tool-modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(3, 7, 18, 0.72);

  backdrop-filter: blur(8px);
}

.tool-modal-box {
  position: relative;

  z-index: 2;

  width: min(550px, 100%);

  max-height: min(720px, 90vh);

  overflow-y: auto;

  padding: 28px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 22px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);

  animation: toolModalIn 0.25s ease;
}

@keyframes toolModalIn {
  from {
    opacity: 0;

    transform: translateY(15px) scale(0.97);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

.tool-modal-close {
  position: absolute;

  top: 15px;
  left: 15px;

  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--text-muted);

  background: var(--surface-secondary);

  border: 1px solid var(--border);

  border-radius: 9px;

  cursor: pointer;
}

.tool-modal-close:hover {
  color: var(--primary);
}

.tool-modal-close svg {
  width: 17px;
  height: 17px;
}

/* ==================================================
   MODAL CONTENT
================================================== */

.tool-modal-title {
  padding-left: 45px;

  color: var(--dark);

  font-size: 1.15rem;

  font-weight: 900;
}

.tool-modal-description {
  margin-top: 7px;

  color: var(--text-muted);

  font-size: 0.68rem;

  line-height: 1.8;
}

/* TIMER */

.emergency-timer {
  margin-top: 30px;

  text-align: center;
}

.emergency-timer-display {
  color: var(--dark);

  font-size: 4rem;

  line-height: 1;

  font-weight: 900;

  direction: ltr;
}

.emergency-timer-inputs {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;

  margin-top: 25px;
}

.emergency-timer-inputs input {
  width: 100%;

  padding: 13px;

  color: var(--dark);

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: 10px;

  font-family: inherit;

  text-align: center;

  outline: none;
}

.emergency-timer-inputs input:focus {
  border-color: var(--primary);
}

.tool-action-buttons {
  display: flex;

  gap: 8px;

  margin-top: 15px;
}

.tool-action-button {
  flex: 1;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  padding: 12px;

  color: #fff;

  background: var(--primary);

  border: 0;

  border-radius: 10px;

  font-family: inherit;

  font-size: 0.68rem;

  font-weight: 800;

  cursor: pointer;
}

.tool-action-button.secondary {
  color: var(--dark);

  background: var(--surface-secondary);

  border: 1px solid var(--border);
}

.tool-action-button svg {
  width: 15px;
  height: 15px;
}

/* CHECKLIST */

.quick-checklist {
  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-top: 25px;
}

.quick-check-item {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 13px;

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: 10px;

  cursor: pointer;
}

.quick-check-item input {
  accent-color: var(--primary);
}

.quick-check-item span {
  color: var(--dark);

  font-size: 0.68rem;
}

/* CONTACTS */

.emergency-contacts {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;

  margin-top: 25px;
}

.emergency-contact {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  padding: 15px;

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: 12px;
}

.emergency-contact-info strong {
  display: block;

  color: var(--dark);

  font-size: 0.7rem;
}

.emergency-contact-info span {
  display: block;

  margin-top: 3px;

  color: var(--text-muted);

  font-size: 0.56rem;
}

.emergency-contact-call {
  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #fff;

  background: #12b76a;

  border-radius: 9px;
}

.emergency-contact-call svg {
  width: 16px;
  height: 16px;
}

/* LOCATION */

.location-result {
  margin-top: 25px;

  padding: 18px;

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: 12px;
}

.location-result strong {
  display: block;

  color: var(--dark);

  font-size: 0.7rem;
}

.location-result p {
  margin-top: 8px;

  color: var(--text-muted);

  font-size: 0.62rem;

  line-height: 1.8;

  word-break: break-word;
}

.location-copy {
  margin-top: 10px;
}

/* EMERGENCY MODE */

.emergency-mode-content {
  text-align: center;
}

.emergency-mode-icon {
  width: 70px;
  height: 70px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin: 25px auto 15px;

  color: #fff;

  background: var(--primary);

  border-radius: 20px;
}

.emergency-mode-icon svg {
  width: 32px;
  height: 32px;
}

.emergency-mode-content h3 {
  color: var(--dark);

  font-size: 1.2rem;

  font-weight: 900;
}

.emergency-mode-content p {
  margin-top: 8px;

  color: var(--text-muted);

  font-size: 0.68rem;

  line-height: 1.9;
}

/* ==================================================
   CRISIS CENTER
================================================== */

.crisis-center-section {
  position: relative;

  padding: 110px 0;

  background: var(--background);
}

.crisis-center-header {
  max-width: 750px;
}

.crisis-center-header .section-title span {
  color: var(--primary);
}

/* =========================
   FILTER
========================= */

.crisis-filter {
  display: flex;

  align-items: center;

  gap: 7px;

  margin-top: 35px;

  padding: 5px;

  width: max-content;

  max-width: 100%;

  overflow-x: auto;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 12px;
}

.crisis-filter-btn {
  white-space: nowrap;

  padding: 9px 14px;

  color: var(--text-light);

  background: transparent;

  border: 0;

  border-radius: 8px;

  font-family: inherit;

  font-size: 0.7rem;

  font-weight: 700;

  cursor: pointer;

  transition:
    color var(--transition-normal),
    background var(--transition-normal);
}

.crisis-filter-btn:hover {
  color: var(--dark);
}

.crisis-filter-btn.active {
  color: #fff;

  background: var(--primary);
}

/* =========================
   GRID
========================= */

.crisis-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-top: 25px;
}

/* =========================
   CARD
========================= */

.crisis-card {
  overflow: hidden;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 20px;

  box-shadow: 0 4px 15px rgba(16, 24, 40, 0.025);

  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    opacity 0.25s ease;
}

.crisis-card:hover {
  transform: translateY(-5px);

  border-color: var(--border-dark);

  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

.crisis-card.is-hidden {
  display: none;
}

/* =========================
   VISUAL
========================= */

.crisis-card-visual {
  position: relative;

  height: 185px;

  overflow: hidden;

  border-radius: 20px;
}

.crisis-card-visual.earthquake {
  background: linear-gradient(135deg, #f04438, #b42318);
}

.crisis-card-visual.fire {
  background: linear-gradient(135deg, #f79009, #d92d20);
}

.crisis-card-visual.flood {
  background: linear-gradient(135deg, #2e90fa, #175cd3);
}

.crisis-card-visual.gas {
  background: linear-gradient(135deg, #7a5af8, #5925dc);
}

.crisis-card-visual.electric {
  background: linear-gradient(135deg, #fdb022, #dc6803);
}

.crisis-card-visual.accident {
  background: linear-gradient(135deg, #667085, #344054);
}

/* =========================
   PATTERN
========================= */

.crisis-card-pattern {
  position: absolute;

  inset: 0;

  opacity: 0.15;

  background-image:
    radial-gradient(circle at 20% 20%, #fff 0, transparent 32%),
    radial-gradient(circle at 80% 70%, #fff 0, transparent 28%);
}

.crisis-card-visual::after {
  content: "";

  position: absolute;

  width: 190px;

  height: 190px;

  right: -60px;

  bottom: -100px;

  border: 35px solid rgba(255, 255, 255, 0.1);

  border-radius: 50%;
}

/* =========================
   ICON
========================= */

.crisis-card-icon {
  position: absolute;

  z-index: 2;

  top: 50%;
  left: 50%;

  width: 75px;
  height: 75px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #fff;

  background: rgba(255, 255, 255, 0.14);

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 20px;

  transform: translate(-50%, -50%);

  backdrop-filter: blur(8px);
}

.crisis-card-icon svg {
  width: 34px;
  height: 34px;
}

/* =========================
   LABEL
========================= */

.crisis-card-label {
  position: absolute;

  z-index: 3;

  top: 15px;
  right: 15px;

  padding: 6px 10px;

  color: #fff;

  background: rgba(16, 24, 40, 0.18);

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 50px;

  font-size: 0.6rem;

  font-weight: 800;

  backdrop-filter: blur(8px);
}

/* =========================
   BODY
========================= */

.crisis-card-body {
  padding: 22px;
}

.crisis-card-meta {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;
}

.crisis-card-meta span {
  color: var(--text-muted);

  font-size: 0.6rem;

  font-weight: 600;
}

.crisis-card-body h3 {
  margin-top: 12px;

  color: var(--dark);

  font-size: 1.05rem;

  font-weight: 800;
}

.crisis-card-body p {
  min-height: 55px;

  margin-top: 8px;

  color: var(--text-light);

  font-size: 0.7rem;

  line-height: 1.9;
}

/* =========================
   LINK
========================= */

.crisis-card-link {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  margin-top: 17px;

  color: var(--primary);

  font-size: 0.7rem;

  font-weight: 800;
}

.crisis-card-link svg {
  width: 15px;
  height: 15px;

  transition: transform var(--transition-normal);
}

.crisis-card-link:hover svg {
  transform: translateX(-4px);
}

/* =========================
   FOOTER
========================= */

.crisis-center-footer {
  display: flex;

  justify-content: center;

  margin-top: 45px;
}

.crisis-all-link {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  color: var(--dark);

  font-size: 0.75rem;

  font-weight: 800;
}

.crisis-all-link span {
  width: 34px;
  height: 34px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #fff;

  background: var(--primary);

  border-radius: 9px;
}

.crisis-all-link svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   GUIDE PAGE
========================================================= */

.guide-page-hero {
  position: relative;

  padding: 34px 0 90px;

  background:
    radial-gradient(
      circle at 8% 20%,
      rgba(217, 45, 32, 0.055),
      transparent 28%
    ),
    radial-gradient(circle at 92% 0%, rgba(15, 23, 42, 0.045), transparent 25%),
    var(--background);

  overflow: hidden;
}

/* =========================================================
   DECORATIVE HERO BACKGROUND
========================================================= */

.guide-page-hero::before {
  content: "";

  position: absolute;

  width: 430px;
  height: 430px;

  top: -250px;
  right: -170px;

  background: rgba(217, 45, 32, 0.045);

  border-radius: 50%;

  pointer-events: none;
}

.guide-page-hero::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  bottom: -190px;
  left: -120px;

  background: rgba(15, 23, 42, 0.035);

  border-radius: 50%;

  pointer-events: none;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.guide-breadcrumb {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;

  gap: 9px;

  width: fit-content;

  color: var(--text-muted);

  font-size: 0.68rem;
  font-weight: 600;

  line-height: 1;
}

.guide-breadcrumb a {
  display: inline-flex;
  align-items: center;

  color: var(--text-muted);

  transition:
    color var(--transition-normal),
    transform var(--transition-normal);
}

.guide-breadcrumb a:hover {
  color: var(--primary);

  transform: translateY(-1px);
}

.guide-breadcrumb svg {
  width: 13px;
  height: 13px;

  color: var(--border-dark);

  flex-shrink: 0;
}

.guide-breadcrumb > span:last-child {
  color: var(--dark);

  font-weight: 800;
}

/* =========================================================
   HERO GRID
========================================================= */

.guide-hero-grid {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(360px, 0.95fr);

  align-items: center;

  gap: clamp(45px, 6vw, 90px);

  margin-top: 52px;
}

/* =========================================================
   HERO CONTENT
========================================================= */

.guide-hero-content {
  max-width: 690px;
}

/* =========================================================
   HERO BADGE
========================================================= */

.guide-hero-badge {
  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 8px 13px;

  color: var(--primary);

  background: linear-gradient(
    135deg,
    rgba(217, 45, 32, 0.075),
    rgba(217, 45, 32, 0.025)
  );

  border: 1px solid rgba(217, 45, 32, 0.14);

  border-radius: 100px;

  font-size: 0.67rem;
  font-weight: 800;

  box-shadow: 0 5px 18px rgba(217, 45, 32, 0.055);

  backdrop-filter: blur(8px);
}

.guide-hero-badge::before {
  content: "";

  width: 6px;
  height: 6px;

  background: var(--primary);

  border-radius: 50%;

  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.08);
}

.guide-hero-badge svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   HERO TITLE
========================================================= */

.guide-hero-content h1 {
  max-width: 760px;

  margin-top: 22px;

  color: var(--dark);

  font-size: clamp(2.55rem, 4.8vw, 4.45rem);

  line-height: 1.2;

  font-weight: 950;

  letter-spacing: -1.8px;
}

.guide-hero-content h1 span {
  position: relative;

  display: inline-block;

  color: var(--primary);
}

.guide-hero-content h1 span::after {
  content: "";

  position: absolute;

  right: 0;
  bottom: -8px;

  width: 72%;

  height: 4px;

  background: linear-gradient(90deg, var(--primary), rgba(217, 45, 32, 0.08));

  border-radius: 100px;
}

/* =========================================================
   HERO DESCRIPTION
========================================================= */

.guide-hero-content > p {
  max-width: 620px;

  margin-top: 27px;

  color: var(--text-light);

  font-size: 0.86rem;

  line-height: 2.15;

  font-weight: 500;
}

/* =========================================================
   HERO META
========================================================= */

.guide-hero-meta {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 9px;

  margin-top: 31px;
}

.guide-hero-meta span {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  min-height: 40px;

  padding: 0 13px;

  color: var(--text-muted);

  background: rgba(255, 255, 255, 0.72);

  border: 1px solid rgba(15, 23, 42, 0.075);

  border-radius: 11px;

  font-size: 0.64rem;
  font-weight: 700;

  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.guide-hero-meta span:hover {
  transform: translateY(-3px);

  border-color: rgba(217, 45, 32, 0.16);

  box-shadow: 0 9px 25px rgba(15, 23, 42, 0.07);
}

.guide-hero-meta svg {
  width: 15px;
  height: 15px;

  color: var(--primary);

  flex-shrink: 0;
}

/* =========================================================
   HERO VISUAL
========================================================= */

.guide-hero-visual {
  position: relative;

  height: 420px;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 32px;

  isolation: isolate;

  box-shadow:
    0 28px 70px rgba(122, 39, 26, 0.2),
    0 8px 25px rgba(122, 39, 26, 0.1);
}

/* =========================================================
   EARTHQUAKE VISUAL
========================================================= */

.guide-hero-visual.earthquake {
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.1),
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.12),
      transparent 30%
    ),
    linear-gradient(145deg, #ef3b2f 0%, #d92d20 42%, #8e261c 100%);
}

/* =========================================================
   FIRE VISUAL
========================================================= */

.guide-hero-visual.fire {
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.1),
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.12),
      transparent 30%
    ),
    linear-gradient(145deg, #ff8a12 0%, #f45112 45%, #e53220 100%);

  box-shadow:
    0 28px 70px rgba(238, 76, 28, 0.2),
    0 8px 25px rgba(238, 76, 28, 0.1);
}

/* =========================================================
   ACCIDENT VISUAL
========================================================= */

.guide-hero-visual.accident {
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.09),
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.11),
      transparent 30%
    ),
    linear-gradient(145deg, #7b8498 0%, #5b667c 45%, #354157 100%);

  box-shadow:
    0 28px 70px rgba(53, 65, 87, 0.2),
    0 8px 25px rgba(53, 65, 87, 0.1);
}

/* =========================================================
   ELECTRICAL VISUAL
========================================================= */

.guide-hero-visual.electric {
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.1),
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.13),
      transparent 30%
    ),
    linear-gradient(145deg, #ffb52e 0%, #f89a12 45%, #e86b0c 100%);

  box-shadow:
    0 28px 70px rgba(238, 137, 18, 0.2),
    0 8px 25px rgba(238, 137, 18, 0.1);
}

/* =========================================================
   GAS VISUAL
========================================================= */

.guide-hero-visual.gas {
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.1),
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.13),
      transparent 30%
    ),
    linear-gradient(145deg, #805cf0 0%, #673de0 45%, #5425c7 100%);

  box-shadow:
    0 28px 70px rgba(99, 58, 226, 0.2),
    0 8px 25px rgba(99, 58, 226, 0.1);
}

/* =========================================================
   FLOOD VISUAL
========================================================= */

.guide-hero-visual.flood {
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.1),
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.13),
      transparent 30%
    ),
    linear-gradient(145deg, #3d91f0 0%, #2878df 45%, #145bc2 100%);

  box-shadow:
    0 28px 70px rgba(35, 117, 224, 0.2),
    0 8px 25px rgba(35, 117, 224, 0.1);
}

/* =========================================================
   VISUAL LIGHT
========================================================= */

.guide-hero-visual::before {
  content: "";

  position: absolute;

  width: 250px;
  height: 250px;

  top: -110px;
  right: -70px;

  background: rgba(255, 255, 255, 0.09);

  border-radius: 50%;
}

.guide-hero-visual::after {
  content: "";

  position: absolute;

  width: 230px;
  height: 230px;

  bottom: -150px;
  left: -80px;

  background: rgba(0, 0, 0, 0.09);

  border-radius: 50%;
}

/* =========================================================
   ORBITS
========================================================= */

.guide-hero-orbit {
  position: absolute;

  border: 1px solid rgba(255, 255, 255, 0.16);

  border-radius: 50%;

  pointer-events: none;
}

.orbit-one {
  width: 265px;
  height: 265px;

  box-shadow: 0 0 35px rgba(255, 255, 255, 0.025);
}

.orbit-two {
  width: 425px;
  height: 425px;

  border-color: rgba(255, 255, 255, 0.115);
}

/* =========================================================
   ORBIT DECORATIVE DOTS
========================================================= */

.guide-hero-visual .orbit-one::before,
.guide-hero-visual .orbit-one::after {
  content: "";

  position: absolute;

  width: 7px;
  height: 7px;

  background: rgba(255, 255, 255, 0.75);

  border-radius: 50%;

  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.guide-hero-visual .orbit-one::before {
  top: 25px;
  right: 30px;
}

.guide-hero-visual .orbit-one::after {
  bottom: 42px;
  left: 18px;

  width: 5px;
  height: 5px;

  opacity: 0.6;
}

/* =========================================================
   CENTER ICON
========================================================= */

.guide-hero-visual-icon {
  position: relative;
  z-index: 5;

  width: 132px;
  height: 132px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #fff;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.19),
    rgba(255, 255, 255, 0.055)
  );

  border: 1px solid rgba(255, 255, 255, 0.3);

  border-radius: 32px;

  box-shadow:
    0 18px 45px rgba(70, 15, 10, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);

  backdrop-filter: blur(18px);
}

.guide-hero-visual-icon::before {
  content: "";

  position: absolute;

  inset: 9px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 25px;
}

.guide-hero-visual-icon svg {
  position: relative;
  z-index: 2;

  width: 61px;
  height: 61px;

  stroke-width: 1.6;

  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.12));
}

/* =========================================================
   VISUAL LABEL
========================================================= */

.guide-visual-label {
  position: absolute;

  z-index: 8;

  right: 24px;
  bottom: 24px;

  min-width: 125px;

  display: flex;

  flex-direction: column;

  padding: 12px 15px;

  color: rgba(255, 255, 255, 0.68);

  background: rgba(70, 15, 10, 0.22);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 13px;

  font-size: 0.61rem;

  backdrop-filter: blur(10px);
}

.guide-visual-label strong {
  margin-top: 3px;

  color: #fff;

  font-size: 0.84rem;

  font-weight: 850;
}

/* =========================================================
   GUIDE NAVIGATION
========================================================= */

.guide-navigation-section {
  position: sticky;

  top: 78px;

  z-index: 900;

  width: 100%;

  background: rgba(255, 255, 255, 0.82);

  border-top: 1px solid rgba(15, 23, 42, 0.055);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);

  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.035);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* =========================================================
   SECTION NAV
========================================================= */

.guide-section-nav {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 4px;

  overflow-x: auto;

  scrollbar-width: none;
}

.guide-section-nav::-webkit-scrollbar {
  display: none;
}

.guide-section-nav a {
  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  min-height: 58px;

  padding: 0 19px;

  color: var(--text-muted);

  white-space: nowrap;

  font-size: 0.67rem;
  font-weight: 750;

  transition:
    color var(--transition-normal),
    background var(--transition-normal);
}

.guide-section-nav a::after {
  content: "";

  position: absolute;

  right: 50%;
  bottom: -1px;

  width: 0;
  height: 3px;

  background: var(--primary);

  border-radius: 10px 10px 0 0;

  transform: translateX(50%);

  transition: width var(--transition-normal);
}

.guide-section-nav a:hover {
  color: var(--dark);

  background: rgba(15, 23, 42, 0.025);
}

.guide-section-nav a.active {
  color: var(--primary);

  background: rgba(217, 45, 32, 0.035);
}

.guide-section-nav a.active::after {
  width: 30px;
}

.guide-section-nav a span {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 19px;
  height: 19px;

  padding: 0 5px;

  color: var(--text-muted);

  background: var(--surface-secondary);

  border-radius: 6px;

  font-size: 0.55rem;

  transition:
    color var(--transition-normal),
    background var(--transition-normal);
}

.guide-section-nav a.active span {
  color: var(--primary);

  background: rgba(217, 45, 32, 0.09);
}

/* =========================================================
   IMPORTANT SECTION
========================================================= */

.guide-important-section {
  padding: 45px 0 25px;

  background: var(--background);
}

.guide-important-box {
  position: relative;

  display: flex;

  align-items: flex-start;

  gap: 17px;

  padding: 22px 24px;

  color: #7a271a;

  background: linear-gradient(135deg, #fff8f7, #fef3f2);

  border: 1px solid #fecdca;

  border-radius: 18px;

  box-shadow: 0 10px 30px rgba(217, 45, 32, 0.045);

  overflow: hidden;
}

.guide-important-box::before {
  content: "";

  position: absolute;

  top: 0;
  right: 0;

  width: 4px;
  height: 100%;

  background: var(--primary);
}

.guide-important-icon {
  width: 44px;
  height: 44px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--primary);

  background: #fff;

  border: 1px solid rgba(217, 45, 32, 0.1);

  border-radius: 12px;

  box-shadow: 0 5px 15px rgba(217, 45, 32, 0.06);
}

.guide-important-icon svg {
  width: 21px;
  height: 21px;
}

.guide-important-box strong {
  display: block;

  color: #7a271a;

  font-size: 0.8rem;

  font-weight: 850;
}

.guide-important-box p {
  max-width: 950px;

  margin-top: 6px;

  color: #92544b;

  font-size: 0.7rem;

  line-height: 1.95;
}

/* =========================================================
   CONTENT
========================================================= */

.guide-content-section {
  position: relative;

  padding: 105px 0;
}

.guide-content-gray {
  background: linear-gradient(
    180deg,
    var(--surface-secondary),
    var(--surface-secondary)
  );
}

/* =========================================================
   CONTENT GRID
========================================================= */

.guide-content-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    285px;

  align-items: start;

  gap: clamp(45px, 6vw, 75px);
}

.guide-main-content {
  width: 100%;

  max-width: 780px;
}

/* =========================================================
   SECTION HEADING
========================================================= */

.guide-section-heading > span {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: var(--primary);

  font-size: 0.67rem;

  font-weight: 850;

  letter-spacing: 0.1px;
}

.guide-section-heading > span::before {
  content: "";

  width: 22px;
  height: 2px;

  background: var(--primary);

  border-radius: 10px;
}

.guide-section-heading h2 {
  margin-top: 11px;

  color: var(--dark);

  font-size: clamp(1.7rem, 3vw, 2.2rem);

  line-height: 1.35;

  font-weight: 950;

  letter-spacing: -0.7px;
}

.guide-section-heading p {
  max-width: 650px;

  margin-top: 12px;

  color: var(--text-light);

  font-size: 0.76rem;

  line-height: 2;
}

.guide-section-heading.centered {
  max-width: 680px;

  margin-inline: auto;

  text-align: center;
}

.guide-section-heading.centered > span {
  justify-content: center;
}

/* =========================================================
   ACTION TIMELINE
========================================================= */

.guide-action {
  position: relative;

  display: grid;

  grid-template-columns: 48px minmax(0, 1fr);

  gap: 17px;

  padding: 26px 0;

  border-bottom: 1px solid var(--border);
}

.guide-action:first-of-type {
  margin-top: 27px;
}

.guide-action:last-child {
  border-bottom: 0;
}

.guide-action-number {
  position: relative;
  z-index: 2;

  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--primary);

  background: linear-gradient(
    145deg,
    rgba(217, 45, 32, 0.1),
    rgba(217, 45, 32, 0.045)
  );

  border: 1px solid rgba(217, 45, 32, 0.12);

  border-radius: 12px;

  font-size: 0.65rem;

  font-weight: 900;

  box-shadow: 0 5px 16px rgba(217, 45, 32, 0.045);
}

.guide-action h3 {
  color: var(--dark);

  font-size: 0.91rem;

  line-height: 1.5;

  font-weight: 850;
}

.guide-action p {
  max-width: 690px;

  margin-top: 7px;

  color: var(--text-light);

  font-size: 0.72rem;

  line-height: 2;
}

/* =========================================================
   SIDEBAR
========================================================= */

.guide-sidebar-card {
  position: sticky;

  top: 85px;

  padding: 22px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 250, 252, 0.92)
  );

  border: 1px solid var(--border);

  border-radius: 19px;

  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.055);

  overflow: hidden;
}

.guide-sidebar-card::before {
  content: "";

  position: absolute;

  top: 0;
  right: 0;

  width: 100%;
  height: 3px;

  background: linear-gradient(90deg, transparent, var(--primary), transparent);

  opacity: 0.75;
}

.guide-sidebar-card-header {
  display: flex;

  align-items: center;

  gap: 9px;

  color: var(--primary);
}

.guide-sidebar-card-header svg {
  width: 18px;
  height: 18px;

  flex-shrink: 0;
}

.guide-sidebar-card-header strong {
  color: var(--dark);

  font-size: 0.78rem;

  font-weight: 850;
}

.guide-sidebar-card p {
  margin-top: 14px;

  color: var(--text-light);

  font-size: 0.7rem;

  line-height: 2;
}

.guide-sidebar-card.danger {
  color: #b42318;

  background: linear-gradient(145deg, #fff9f8, #fef3f2);

  border-color: #fecdca;

  box-shadow: 0 12px 35px rgba(217, 45, 32, 0.055);
}

.guide-sidebar-card.danger::before {
  background: linear-gradient(90deg, transparent, #f04438, transparent);
}

.guide-sidebar-card.danger .guide-sidebar-card-header {
  color: #b42318;
}

.guide-sidebar-card.danger .guide-sidebar-card-header strong {
  color: #8f1d15;
}

/* =========================================================
   DURING GRID
========================================================= */

.during-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 17px;

  margin-top: 46px;
}

.during-card {
  position: relative;

  min-height: 190px;

  padding: 26px 24px;

  background: linear-gradient(
    145deg,
    var(--surface),
    rgba(255, 255, 255, 0.78)
  );

  border: 1px solid var(--border);

  border-radius: 18px;

  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.035);

  overflow: hidden;

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.during-card::after {
  content: "";

  position: absolute;

  width: 90px;
  height: 90px;

  right: -40px;
  bottom: -45px;

  background: rgba(217, 45, 32, 0.045);

  border-radius: 50%;

  transition: transform var(--transition-normal);
}

.during-card:hover {
  transform: translateY(-6px);

  border-color: rgba(217, 45, 32, 0.14);

  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.075);
}

.during-card:hover::after {
  transform: scale(1.35);
}

.during-card > span {
  position: absolute;

  top: 20px;
  left: 20px;

  color: var(--text-muted);

  font-size: 0.58rem;

  font-weight: 850;
}

.during-card > svg {
  position: relative;
  z-index: 2;

  width: 28px;
  height: 28px;

  color: var(--primary);

  stroke-width: 1.8;
}

.during-card h3 {
  position: relative;
  z-index: 2;

  margin-top: 23px;

  color: var(--dark);

  font-size: 0.9rem;

  line-height: 1.5;

  font-weight: 850;
}

.during-card p {
  position: relative;
  z-index: 2;

  margin-top: 8px;

  color: var(--text-light);

  font-size: 0.7rem;

  line-height: 1.95;
}

/* =========================================================
   DO / DON'T
========================================================= */

.guide-dos-donts {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 17px;

  margin-top: 27px;
}

.guide-do-box,
.guide-dont-box {
  position: relative;

  padding: 24px;

  border-radius: 18px;

  overflow: hidden;
}

.guide-do-box {
  background: linear-gradient(145deg, #f4fff8, #ecfdf3);

  border: 1px solid #abefc6;
}

.guide-dont-box {
  background: linear-gradient(145deg, #fff9f8, #fef3f2);

  border: 1px solid #fecdca;
}

.guide-do-box::before,
.guide-dont-box::before {
  content: "";

  position: absolute;

  top: 0;
  right: 0;

  width: 100%;
  height: 3px;
}

.guide-do-box::before {
  background: #12b76a;
}

.guide-dont-box::before {
  background: #f04438;
}

.guide-do-header,
.guide-dont-header {
  display: flex;

  align-items: center;

  gap: 9px;

  font-size: 0.79rem;

  font-weight: 850;
}

.guide-do-header {
  color: #067647;
}

.guide-dont-header {
  color: #b42318;
}

.guide-do-header svg,
.guide-dont-header svg {
  width: 18px;
  height: 18px;
}

.guide-dos-donts ul {
  display: flex;

  flex-direction: column;

  gap: 11px;

  margin-top: 19px;
}

.guide-dos-donts li {
  display: flex;

  align-items: flex-start;

  gap: 8px;

  color: var(--text-light);

  font-size: 0.68rem;

  line-height: 1.85;
}

.guide-dos-donts li svg {
  flex-shrink: 0;

  width: 14px;
  height: 14px;

  margin-top: 4px;
}

.guide-do-box li svg {
  color: #12b76a;
}

.guide-dont-box li svg {
  color: #f04438;
}

/* =========================================================
   CHECKLIST
========================================================= */

.guide-checklist-section {
  position: relative;

  padding: 105px 0;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(217, 45, 32, 0.035),
      transparent 32%
    ),
    var(--surface);
}

.earthquake-checklist {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 11px;

  max-width: 900px;

  margin: 46px auto 0;
}

.guide-check-item {
  position: relative;

  display: flex;

  align-items: center;

  gap: 12px;

  min-height: 58px;

  padding: 15px 17px;

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: 14px;

  cursor: pointer;

  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.025);

  transition:
    border-color var(--transition-normal),
    background var(--transition-normal),
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.guide-check-item:hover {
  transform: translateY(-2px);

  border-color: rgba(217, 45, 32, 0.18);

  background: #fff;

  box-shadow: 0 9px 24px rgba(15, 23, 42, 0.055);
}

.guide-check-item input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.custom-checkbox {
  width: 23px;
  height: 23px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #fff;

  background: transparent;

  border: 1.5px solid var(--border-dark);

  border-radius: 7px;

  transition:
    background var(--transition-normal),
    border-color var(--transition-normal),
    transform var(--transition-normal);
}

.custom-checkbox svg {
  width: 14px;
  height: 14px;

  opacity: 0;

  transform: scale(0.7);

  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
}

.guide-check-item input:checked ~ .custom-checkbox {
  background: var(--primary);

  border-color: var(--primary);

  transform: scale(1.03);
}

.guide-check-item input:checked ~ .custom-checkbox svg {
  opacity: 1;

  transform: scale(1);
}

.guide-check-item input:checked ~ span:last-child {
  color: var(--text-muted);

  text-decoration: line-through;

  text-decoration-color: rgba(217, 45, 32, 0.45);

  text-decoration-thickness: 1px;
}

.guide-check-item > span:last-child {
  color: var(--dark);

  font-size: 0.72rem;

  line-height: 1.7;

  font-weight: 700;

  transition: color var(--transition-normal);
}

/* =========================================================
   SOURCE
========================================================= */

.guide-source-section {
  padding: 30px 0 75px;

  background: var(--surface);
}

.guide-source-box {
  position: relative;

  display: flex;

  align-items: flex-start;

  gap: 15px;

  padding: 20px 21px;

  background: linear-gradient(
    145deg,
    var(--surface-secondary),
    rgba(248, 250, 252, 0.75)
  );

  border: 1px solid var(--border);

  border-radius: 16px;

  box-shadow: 0 7px 22px rgba(15, 23, 42, 0.025);
}

.guide-source-box > div:first-child {
  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  color: var(--text-muted);

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 10px;
}

.guide-source-box svg {
  width: 18px;
  height: 18px;
}

.guide-source-box strong {
  display: block;

  color: var(--dark);

  font-size: 0.73rem;

  font-weight: 800;
}

.guide-source-box p {
  max-width: 950px;

  margin-top: 5px;

  color: var(--text-muted);

  font-size: 0.65rem;

  line-height: 1.9;
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {
  .guide-hero-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(320px, 0.85fr);

    gap: 45px;
  }

  .guide-hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.7rem);
  }

  .guide-hero-visual {
    height: 370px;
  }

  .guide-content-grid {
    grid-template-columns:
      minmax(0, 1fr)
      250px;

    gap: 40px;
  }

  .during-card {
    padding: 22px;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE / TABLET
========================================================= */

@media (max-width: 850px) {
  .guide-page-hero {
    padding: 27px 0 65px;
  }

  .guide-hero-grid {
    grid-template-columns: 1fr;

    gap: 38px;

    margin-top: 42px;
  }

  .guide-hero-content {
    max-width: 100%;

    text-align: center;
  }

  .guide-hero-badge {
    margin-inline: auto;
  }

  .guide-hero-content h1 {
    font-size: clamp(2.35rem, 9vw, 3.5rem);
  }

  .guide-hero-content > p {
    margin-inline: auto;
  }

  .guide-hero-meta {
    justify-content: center;
  }

  .guide-hero-visual {
    width: min(100%, 580px);

    height: 360px;

    margin-inline: auto;
  }

  .guide-content-section {
    padding: 75px 0;
  }

  .guide-content-grid {
    grid-template-columns: 1fr;
  }

  .guide-main-content {
    max-width: 100%;
  }

  .guide-sidebar-card {
    position: relative;

    top: auto;

    width: 100%;
  }

  .during-grid {
    grid-template-columns: 1fr;
  }

  .during-card {
    min-height: auto;
  }

  .guide-checklist-section {
    padding: 75px 0;
  }

  .earthquake-checklist {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {
  .guide-page-hero {
    padding-bottom: 52px;
  }

  .guide-breadcrumb {
    font-size: 0.61rem;
  }

  .guide-hero-grid {
    margin-top: 34px;

    gap: 32px;
  }

  .guide-hero-content h1 {
    margin-top: 18px;

    font-size: clamp(2rem, 11vw, 2.8rem);

    line-height: 1.3;

    letter-spacing: -1px;
  }

  .guide-hero-content h1 span::after {
    bottom: -5px;

    height: 3px;
  }

  .guide-hero-content > p {
    margin-top: 22px;

    font-size: 0.76rem;

    line-height: 2;
  }

  .guide-hero-meta {
    gap: 7px;

    margin-top: 25px;
  }

  .guide-hero-meta span {
    min-height: 37px;

    padding: 0 10px;

    font-size: 0.58rem;
  }

  .guide-hero-meta svg {
    width: 14px;
    height: 14px;
  }

  .guide-hero-visual {
    height: 300px;

    border-radius: 24px;
  }

  .orbit-one {
    width: 205px;
    height: 205px;
  }

  .orbit-two {
    width: 315px;
    height: 315px;
  }

  .guide-hero-visual-icon {
    width: 102px;
    height: 102px;

    border-radius: 25px;
  }

  .guide-hero-visual-icon svg {
    width: 48px;
    height: 48px;
  }

  .guide-visual-label {
    right: 15px;
    bottom: 15px;

    min-width: 105px;

    padding: 9px 11px;

    font-size: 0.55rem;
  }

  .guide-visual-label strong {
    font-size: 0.73rem;
  }

  /* NAV */

  .guide-section-nav {
    justify-content: flex-start;
  }

  .guide-section-nav a {
    min-height: 53px;

    padding: 0 14px;

    font-size: 0.61rem;
  }

  /* IMPORTANT */

  .guide-important-section {
    padding: 30px 0 15px;
  }

  .guide-important-box {
    gap: 12px;

    padding: 17px;

    border-radius: 15px;
  }

  .guide-important-icon {
    width: 38px;
    height: 38px;

    border-radius: 10px;
  }

  .guide-important-icon svg {
    width: 18px;
    height: 18px;
  }

  .guide-important-box strong {
    font-size: 0.73rem;
  }

  .guide-important-box p {
    font-size: 0.64rem;

    line-height: 1.9;
  }

  /* CONTENT */

  .guide-content-section {
    padding: 62px 0;
  }

  .guide-section-heading h2 {
    font-size: 1.6rem;
  }

  .guide-section-heading p {
    font-size: 0.69rem;
  }

  /* ACTION */

  .guide-action {
    grid-template-columns: 39px minmax(0, 1fr);

    gap: 13px;

    padding: 21px 0;
  }

  .guide-action-number {
    width: 36px;
    height: 36px;

    border-radius: 10px;

    font-size: 0.58rem;
  }

  .guide-action h3 {
    font-size: 0.79rem;
  }

  .guide-action p {
    font-size: 0.66rem;

    line-height: 1.9;
  }

  /* SIDEBAR */

  .guide-sidebar-card {
    padding: 18px;

    border-radius: 16px;
  }

  .guide-sidebar-card-header strong {
    font-size: 0.73rem;
  }

  .guide-sidebar-card p {
    font-size: 0.65rem;
  }

  /* DURING */

  .during-grid {
    gap: 12px;

    margin-top: 32px;
  }

  .during-card {
    padding: 20px;

    border-radius: 15px;
  }

  .during-card h3 {
    margin-top: 18px;

    font-size: 0.8rem;
  }

  .during-card p {
    font-size: 0.66rem;
  }

  /* DO / DON'T */

  .guide-dos-donts {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .guide-do-box,
  .guide-dont-box {
    padding: 19px;

    border-radius: 15px;
  }

  .guide-do-header,
  .guide-dont-header {
    font-size: 0.72rem;
  }

  .guide-dos-donts ul {
    gap: 9px;

    margin-top: 15px;
  }

  .guide-dos-donts li {
    font-size: 0.64rem;
  }

  /* CHECKLIST */

  .guide-checklist-section {
    padding: 62px 0;
  }

  .earthquake-checklist {
    margin-top: 32px;
  }

  .guide-check-item {
    min-height: 53px;

    padding: 13px 14px;

    border-radius: 12px;
  }

  .custom-checkbox {
    width: 21px;
    height: 21px;
  }

  .guide-check-item > span:last-child {
    font-size: 0.66rem;
  }

  /* SOURCE */

  .guide-source-section {
    padding: 20px 0 55px;
  }

  .guide-source-box {
    gap: 11px;

    padding: 16px;

    border-radius: 14px;
  }

  .guide-source-box > div:first-child {
    width: 32px;
    height: 32px;

    border-radius: 8px;
  }

  .guide-source-box svg {
    width: 16px;
    height: 16px;
  }

  .guide-source-box strong {
    font-size: 0.67rem;
  }

  .guide-source-box p {
    font-size: 0.59rem;

    line-height: 1.85;
  }
}

/* ==================================================
   FOOTER
================================================== */

.site-footer {
  position: relative;

  color: var(--text);

  background: #101828;

  overflow: hidden;
}

/* ==================================================
   FOOTER DECORATION
================================================== */

.site-footer::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  top: -280px;
  right: -180px;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(217, 45, 32, 0.13), transparent 68%);

  pointer-events: none;
}

.site-footer::after {
  content: "";

  position: absolute;

  width: 400px;
  height: 400px;

  bottom: -280px;
  left: -180px;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(217, 45, 32, 0.08), transparent 70%);

  pointer-events: none;
}

/* ==================================================
   FOOTER MAIN
================================================== */

.footer-main {
  position: relative;

  z-index: 1;

  padding: 75px 0 65px;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.5fr
    0.85fr
    0.95fr
    1.1fr;

  gap: 60px;
}

/* ==================================================
   FOOTER BRAND
================================================== */

.footer-brand {
  max-width: 360px;
}

/* ==================================================
   FOOTER LOGO
================================================== */

.footer-logo {
  display: inline-flex;

  align-items: center;

  gap: 13px;
}

.footer-logo-icon {
  width: 50px;
  height: 50px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: var(--primary);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 14px;

  box-shadow: 0 8px 25px rgba(217, 45, 32, 0.28);
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.footer-logo-content {
  display: flex;

  flex-direction: column;
}

.footer-logo-content strong {
  color: #fff;

  font-size: 1.05rem;

  font-weight: 800;

  line-height: 1.4;
}

.footer-logo-content small {
  margin-top: 3px;

  color: rgba(255, 255, 255, 0.48);

  font-size: 0.65rem;

  font-weight: 500;
}

/* ==================================================
   DESCRIPTION
================================================== */

.footer-description {
  max-width: 340px;

  margin-top: 22px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 0.76rem;

  line-height: 2.15;
}

/* ==================================================
   STATUS
================================================== */

.footer-status {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin-top: 18px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 0.65rem;

  font-weight: 500;
}

.footer-status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #12b76a;

  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
}

/* ==================================================
   FOOTER EMERGENCY BUTTON
================================================== */

.footer-emergency-btn {
  position: relative;

  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: 25px;

  padding: 13px 14px;

  width: 100%;

  color: #fff;

  background: linear-gradient(
    135deg,
    rgba(217, 45, 32, 0.18),
    rgba(217, 45, 32, 0.07)
  );

  border: 1px solid rgba(217, 45, 32, 0.25);

  border-radius: 14px;

  transition:
    transform var(--transition-normal),
    background var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.footer-emergency-btn:hover {
  transform: translateY(-3px);

  background: linear-gradient(
    135deg,
    rgba(217, 45, 32, 0.28),
    rgba(217, 45, 32, 0.12)
  );

  border-color: rgba(217, 45, 32, 0.4);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.footer-emergency-icon {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #fff;

  background: var(--primary);

  border-radius: 11px;

  box-shadow: 0 6px 16px rgba(217, 45, 32, 0.25);
}

.footer-emergency-icon svg {
  width: 19px;
  height: 19px;
}

.footer-emergency-content {
  display: flex;

  flex-direction: column;

  min-width: 0;
}

.footer-emergency-content strong {
  font-size: 0.74rem;

  font-weight: 800;
}

.footer-emergency-content small {
  margin-top: 3px;

  color: rgba(255, 255, 255, 0.48);

  font-size: 0.58rem;
}

.footer-emergency-arrow {
  width: 16px;
  height: 16px;

  margin-right: auto;

  color: rgba(255, 255, 255, 0.4);

  transition:
    transform var(--transition-normal),
    color var(--transition-normal);
}

.footer-emergency-btn:hover .footer-emergency-arrow {
  color: #fff;

  transform: translateX(-3px);
}

/* ==================================================
   FOOTER COLUMNS
================================================== */

.footer-column {
  min-width: 0;
}

.footer-column-title {
  display: flex;

  align-items: center;

  justify-content: space-between;

  width: 100%;

  margin-bottom: 20px;

  padding: 0;

  color: #fff;

  background: transparent;

  font-family: inherit;

  font-size: 0.8rem;

  font-weight: 800;

  text-align: right;

  cursor: default;
}

.footer-column-title svg {
  display: none;

  width: 17px;
  height: 17px;

  color: rgba(255, 255, 255, 0.5);

  transition: transform var(--transition-normal);
}

/* ==================================================
   FOOTER LINKS
================================================== */

.footer-links {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.footer-links a {
  position: relative;

  display: flex;

  align-items: center;

  gap: 9px;

  min-height: 35px;

  padding: 0 2px;

  color: rgba(255, 255, 255, 0.48);

  font-size: 0.7rem;

  font-weight: 500;

  transition:
    color var(--transition-normal),
    transform var(--transition-normal);
}

.footer-links a:hover {
  color: #fff;

  transform: translateX(-4px);
}

.footer-links a svg {
  width: 15px;
  height: 15px;

  color: rgba(255, 255, 255, 0.3);

  transition: color var(--transition-normal);
}

.footer-links a:hover svg {
  color: var(--primary);
}

/* ==================================================
   CRISIS DOTS
================================================== */

.footer-link-dot {
  width: 7px;
  height: 7px;

  flex-shrink: 0;

  border-radius: 50%;
}

.footer-link-dot.earthquake {
  background: #d92d20;
}

.footer-link-dot.fire {
  background: #f79009;
}

.footer-link-dot.flood {
  background: #2e90fa;
}

.footer-link-dot.gas {
  background: #7a5af8;
}

.footer-link-dot.electric {
  background: #fdb022;
}

.footer-link-dot.accident {
  background: #98a2b3;
}

/* ==================================================
   EMERGENCY NUMBERS
================================================== */

.footer-emergency-numbers {
  margin-top: 24px;

  padding-top: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-numbers-label {
  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.38);

  font-size: 0.6rem;

  font-weight: 600;
}

.footer-number-list {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.footer-number {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  padding: 7px 9px;

  color: rgba(255, 255, 255, 0.5);

  background: rgba(255, 255, 255, 0.025);

  border: 1px solid rgba(255, 255, 255, 0.04);

  border-radius: 8px;

  transition:
    background var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal);
}

.footer-number:hover {
  color: #fff;

  background: rgba(255, 255, 255, 0.055);

  border-color: rgba(255, 255, 255, 0.08);
}

.footer-number span {
  font-size: 0.6rem;
}

.footer-number strong {
  direction: ltr;

  color: #fff;

  font-size: 0.7rem;

  font-weight: 800;
}

/* ==================================================
   DIVIDER
================================================== */

.footer-divider {
  position: relative;

  z-index: 1;
}

.footer-divider .container span {
  display: block;

  width: 100%;

  height: 1px;

  background: linear-gradient(
    to left,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

/* ==================================================
   FOOTER BOTTOM
================================================== */

.footer-bottom {
  position: relative;

  z-index: 1;

  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.38);

  font-size: 0.62rem;

  line-height: 1.8;
}

.footer-copyright #footerYear {
  color: rgba(255, 255, 255, 0.55);
}

/* ==================================================
   BOTTOM LINKS
================================================== */

.footer-bottom-links {
  display: flex;

  align-items: center;

  gap: 22px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);

  font-size: 0.62rem;

  transition: color var(--transition-normal);
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ==================================================
   BACK TO TOP
================================================== */

.back-to-top {
  width: 38px;
  height: 38px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color: rgba(255, 255, 255, 0.65);

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 10px;

  cursor: pointer;

  opacity: 0;

  visibility: hidden;

  transform: translateY(8px);

  transition:
    opacity var(--transition-normal),
    visibility var(--transition-normal),
    transform var(--transition-normal),
    background var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal);
}

.back-to-top.is-visible {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.back-to-top:hover {
  color: #fff;

  background: var(--primary);

  border-color: var(--primary);

  transform: translateY(-3px);
}

.back-to-top svg {
  width: 17px;
  height: 17px;
}

/* ==================================================
   FOOTER RESPONSIVE
================================================== */

@media (max-width: 1050px) {
  .footer-grid {
    grid-template-columns:
      1.3fr
      1fr
      1fr;

    gap: 45px;
  }

  .footer-brand {
    grid-column: 1 / -1;

    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 55px 0 40px;
  }

  .footer-grid {
    display: flex;

    flex-direction: column;

    gap: 0;
  }

  .footer-brand {
    max-width: none;

    padding-bottom: 30px;

    margin-bottom: 5px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-description {
    max-width: 520px;
  }

  .footer-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-column-title {
    min-height: 58px;

    margin: 0;

    cursor: pointer;
  }

  .footer-column-title svg {
    display: block;
  }

  .footer-column-title[aria-expanded="false"] svg {
    transform: rotate(180deg);
  }

  .footer-links {
    max-height: 500px;

    overflow: hidden;

    padding-bottom: 20px;

    transition:
      max-height 0.35s ease,
      padding 0.35s ease;
  }

  .footer-column-title[aria-expanded="false"] + .footer-links {
    max-height: 0;

    padding-bottom: 0;
  }

  .footer-emergency-numbers {
    margin-bottom: 20px;
  }

  .footer-bottom-inner {
    flex-wrap: wrap;
  }

  .footer-copyright {
    order: 2;
  }

  .footer-bottom-links {
    order: 1;

    width: 100%;

    justify-content: center;

    padding-bottom: 15px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .back-to-top {
    order: 3;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 45px 0 30px;
  }

  .footer-logo-icon {
    width: 46px;
    height: 46px;

    border-radius: 12px;
  }

  .footer-logo-content strong {
    font-size: 0.95rem;
  }

  .footer-description {
    font-size: 0.7rem;

    line-height: 2;
  }

  .footer-status {
    font-size: 0.6rem;
  }

  .footer-emergency-btn {
    padding: 11px;

    border-radius: 12px;
  }

  .footer-emergency-icon {
    width: 37px;
    height: 37px;
  }

  .footer-emergency-content small {
    font-size: 0.54rem;
  }

  .footer-bottom-links {
    gap: 13px;

    justify-content: flex-start;

    overflow-x: auto;

    white-space: nowrap;

    padding-bottom: 13px;
  }

  .footer-bottom-links a {
    font-size: 0.58rem;
  }

  .footer-copyright {
    font-size: 0.56rem;
  }

  .back-to-top {
    width: 36px;
    height: 36px;
  }
}

/* =========================================================
   FOOTER — APP DOWNLOAD
========================================================= */

.footer-app-download {
  padding: 34px 0;
}

.footer-app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  padding: 26px 28px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.035);

  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.footer-app-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}


/* APP INFO */

.footer-app-info {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.footer-app-icon {
  width: 58px;
  height: 58px;

  flex: 0 0 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.07);

  color: var(--footer-accent, #d9784a);
}

.footer-app-icon svg {
  width: 28px;
  height: 28px;
}


.footer-app-text {
  min-width: 0;
}

.footer-app-label {
  display: block;

  margin-bottom: 5px;

  font-size: 12px;
  font-weight: 700;

  color: var(--footer-accent, #d9784a);
}

.footer-app-text h3 {
  margin: 0;

  font-size: 18px;
  font-weight: 800;

  line-height: 1.7;

  color: #fff;
}

.footer-app-text p {
  margin: 4px 0 0;

  max-width: 620px;

  font-size: 13px;
  line-height: 1.8;

  color: rgba(255, 255, 255, 0.58);
}


/* DOWNLOAD BUTTONS */

.footer-app-actions {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;
}


.footer-store-btn {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 155px;

  padding: 11px 13px;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;

  background: rgba(255, 255, 255, 0.045);

  color: inherit;
  text-decoration: none;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.footer-store-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);

  transform: translateY(-2px);
}


.footer-store-icon {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: rgba(255, 255, 255, 0.07);
}

.footer-store-icon svg {
  width: 17px;
  height: 17px;
}


.footer-store-content {
  display: flex;
  flex-direction: column;

  line-height: 1.4;
}

.footer-store-content small {
  font-size: 10px;

  color: rgba(255, 255, 255, 0.48);
}

.footer-store-content strong {
  font-size: 13px;

  color: #fff;
}


.footer-store-arrow {
  width: 14px;
  height: 14px;

  margin-right: auto;

  color: rgba(255, 255, 255, 0.4);
}


/* DIRECT APK */

.footer-direct-download {
  border-color: rgba(217, 120, 74, 0.28);
}

.footer-direct-download .footer-store-icon {
  color: var(--footer-accent, #d9784a);

  background: rgba(217, 120, 74, 0.09);
}

.footer-direct-download:hover {
  border-color: rgba(217, 120, 74, 0.45);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

  .footer-app-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-app-actions {
    width: 100%;
  }

  .footer-store-btn {
    flex: 1;
  }

}


@media (max-width: 650px) {

  .footer-app-download {
    padding: 24px 0;
  }

  .footer-app-card {
    padding: 22px 18px;

    border-radius: 16px;
  }

  .footer-app-info {
    align-items: flex-start;
  }

  .footer-app-icon {
    width: 48px;
    height: 48px;

    flex-basis: 48px;

    border-radius: 13px;
  }

  .footer-app-icon svg {
    width: 23px;
    height: 23px;
  }

  .footer-app-text h3 {
    font-size: 16px;
  }

  .footer-app-text p {
    font-size: 12px;
  }

  .footer-app-actions {
    flex-direction: column;
    width: 100%;
  }

  .footer-store-btn {
    width: 100%;
    min-width: 0;
  }

}

.footer-store-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}