/* ═══════════════════════════════
   RESET & TOKENS
═══════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --or: #ff6b00;
  --or-a: rgba(255, 107, 0, 0.12);
  --bk: #090909;
  --dk: #0f0f0f;
  --dkr: #0c0c0c;
  --tx: #e0e0e0;
  --txd: #5e5e5e;
  --bdr: rgba(255, 107, 0, 0.1);
  --m1: "Courier Prime", monospace;
  --m2: "Share Tech Mono", monospace;
  --hh: 68px;
  --pad: clamp(14px, 4vw, 52px);

  /* course palette */
  --cse303-bg: rgba(255, 107, 0, 0.18);
  --cse303-bdr: rgba(255, 107, 0, 0.6);
  --cse303-tx: #ff6b00;

  --cse305-bg: rgba(66, 200, 140, 0.15);
  --cse305-bdr: rgba(66, 200, 140, 0.6);
  --cse305-tx: #42c88c;

  --cse307-bg: rgba(100, 160, 255, 0.15);
  --cse307-bdr: rgba(100, 160, 255, 0.6);
  --cse307-tx: #64a0ff;

  --cse309-bg: rgba(220, 100, 255, 0.15);
  --cse309-bdr: rgba(220, 100, 255, 0.6);
  --cse309-tx: #dc64ff;

  --cse311-bg: rgba(255, 200, 60, 0.15);
  --cse311-bdr: rgba(255, 200, 60, 0.6);
  --cse311-tx: #ffc83c;

  --lab-bg: rgba(255, 80, 80, 0.15);
  --lab-bdr: rgba(255, 80, 80, 0.6);
  --lab-tx: #ff5050;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bk);
  color: var(--tx);
  font-family: var(--m1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}

/* scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.018) 2px,
    rgba(0, 0, 0, 0.018) 4px
  );
}

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

/* skip */
.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 9999;
  background: var(--or);
  color: #000;
  font-family: var(--m2);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 8px 20px;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s;
}
.skip:focus {
  top: 14px;
}

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--hh);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 clamp(12px, 3vw, 32px);
  gap: clamp(8px, 2vw, 18px);
  background: rgba(9, 9, 9, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.18);
  transition: box-shadow 0.3s;
}

.hd-ju {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ju-box {
  width: 44px;
  height: 44px;
  border: 2px solid var(--or);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: background 0.2s;
}
.hd-ju {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ju-box {
  width: 44px;
  height: 44px;
  border: 2px solid var(--or);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.ju-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px; /* Prevents touching the border */
  display: block;
}
.hd-ju:hover .ju-box {
  background: transparent;
}
.hd-ju:hover .ju-t,
.hd-ju:hover .ju-s {
  color: #000;
}
.ju-lbl {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--txd);
  text-transform: uppercase;
  line-height: 1.55;
}
.ju-lbl strong {
  display: block;
  color: var(--tx);
  font-size: 11px;
}
nav.desk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}
nav.desk a {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--txd);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 2px;
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
nav.desk a:hover {
  color: var(--or);
  background: var(--or-a);
}
nav.desk a.cur {
  color: var(--or);
}
.hd-bt {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
  text-decoration: none;
  flex-shrink: 0;
}
.bt-box {
  width: 44px;
  height: 44px;
  border: 2px solid var(--or);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.bt-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px; /* Prevents touching the border */
  display: block;
}
.hd-bt:hover .bt-box {
  background: transparent;
}

.bt-lbl {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--txd);
  text-align: right;
  line-height: 1.55;
  text-transform: uppercase;
}
.bt-lbl strong {
  display: block;
  color: var(--or);
  font-size: 13px;
  letter-spacing: 3px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--or);
  border-radius: 1px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav.mob {
  display: none;
  position: fixed;
  top: var(--hh);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 9, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 490;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
nav.mob.open {
  display: flex;
}
nav.mob a {
  font-family: var(--m2);
  font-size: 20px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--txd);
  text-decoration: none;
  padding: 14px 32px;
  width: 100%;
  text-align: center;
  transition: color 0.2s;
}
nav.mob a:hover {
  color: var(--or);
}

/* ═══════════════════════════════
   PAGE BANNER
═══════════════════════════════ */
.page-banner {
  position: relative;
  z-index: 1;
  background: var(--dkr);
  padding: calc(var(--hh) + 40px) var(--pad) 32px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.12);
}
.pb-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.pb-eye {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: up 0.6s 0.1s forwards;
}
.pb-eye::before {
  content: "//";
  opacity: 0.4;
}
.pb-h {
  font-family: var(--m2);
  font-size: clamp(28px, 6vw, 60px);
  line-height: 0.95;
  color: #fff;
  opacity: 0;
  animation: up 0.7s 0.2s forwards;
}
.pb-h span {
  color: var(--or);
}
.pb-sub {
  font-family: var(--m1);
  font-size: 13px;
  color: var(--txd);
  letter-spacing: 1px;
  margin-top: 8px;
  opacity: 0;
  animation: up 0.7s 0.3s forwards;
}

.live-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 107, 0, 0.07);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 3px;
  padding: 10px 18px;
  opacity: 0;
  animation: up 0.7s 0.4s forwards;
  white-space: nowrap;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--or);
  animation: pd 1.5s infinite;
}
@keyframes rt-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pd {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.6);
  }
}
.live-clock {
  font-family: var(--m2);
  font-size: 14px;
  color: var(--or);
  letter-spacing: 2px;
}
.live-day {
  font-family: var(--m2);
  font-size: 10px;
  color: var(--txd);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════════════════════════
   TIMETABLE CHART
═══════════════════════════════ */
.chart-wrap {
  position: relative;
  z-index: 1;
  background: var(--dk);
  padding: clamp(24px, 4vw, 52px) var(--pad);
}
.cw-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* Section heading */
.sec-hd {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.sec-tag {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--or);
  white-space: nowrap;
}
.sec-ln {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.25), transparent);
}

/* current-class banner */
.now-banner {
  display: none;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 18px;
  margin-bottom: 22px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 3px;
  animation: glow 2s ease-in-out infinite alternate;
}
.now-banner.show {
  display: flex;
}
@keyframes glow {
  from {
    border-color: rgba(255, 107, 0, 0.3);
  }
  to {
    border-color: rgba(255, 107, 0, 0.65);
  }
}
.nb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--or);
  animation: pd 1.5s infinite;
  flex-shrink: 0;
}
.nb-label {
  font-family: var(--m2);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
}
.nb-info {
  font-family: var(--m2);
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.5px;
}
.nb-badge {
  margin-left: auto;
  background: var(--or);
  color: #000;
  font-family: var(--m2);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ── scroll shell ── */
.timetable-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 107, 0, 0.12);
  border-radius: 6px;
  background: var(--dkr);
}
.timetable-scroll::-webkit-scrollbar {
  height: 5px;
}
.timetable-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.timetable-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 0, 0.35);
  border-radius: 3px;
}

/* ── grid ── */
.timetable {
  display: grid;
  /* col 0 = time labels, cols 1-5 = days */
  grid-template-columns: 90px repeat(5, 1fr);
  min-width: 780px;
  position: relative;
}

/* header row — day names */
.tt-day-header {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-bottom: 2px solid rgba(255, 107, 0, 0.2);
  border-right: 1px solid var(--bdr);
  background: rgba(255, 107, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}
.tt-day-header:first-child {
  /* time col header */
  border-right: 2px solid rgba(255, 107, 0, 0.25);
  background: rgba(255, 107, 0, 0.03);
}
.tt-day-name {
  font-family: var(--m2);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tx);
}
.tt-day-name.today-name {
  color: var(--or);
}
.tt-date-sub {
  font-family: var(--m2);
  font-size: 9px;
  color: var(--txd);
  letter-spacing: 1px;
}
.today-bar {
  width: 100%;
  height: 2px;
  background: var(--or);
  border-radius: 1px;
  margin-top: 4px;
  animation: glow 2s alternate infinite;
}

/* time slot rows */
.tt-row {
  display: contents;
}

/* time label cell */
.tt-time {
  padding: 0 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  border-right: 2px solid rgba(255, 107, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--dkr);
  position: relative;
}
.tt-time-inner {
  font-family: var(--m2);
  font-size: 10px;
  color: var(--txd);
  letter-spacing: 0.5px;
  padding-top: 10px;
  white-space: nowrap;
  text-align: right;
  line-height: 1.4;
}
.tt-time-inner .hr {
  font-size: 11px;
  color: rgba(255, 107, 0, 0.5);
}

/* day cells (empty background) */
.tt-cell {
  border-right: 1px solid var(--bdr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--dkr);
  position: relative;
  min-height: 54px;
}
.tt-cell.today-col {
  background: rgba(255, 107, 0, 0.025);
}
.tt-cell:last-child {
  border-right: none;
}

/* half-hour dashed line */
.tt-cell::after,
.tt-time::after {
  content: "";
  position: absolute;
  bottom: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

/* ── CLASS BLOCK ── */
.class-block {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 4px;
  border-left: 3px solid;
  padding: 7px 8px 6px;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  z-index: 5;
}
.class-block:hover {
  transform: scale(1.025);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.cb-code {
  font-family: var(--m2);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.cb-name {
  font-family: var(--m1);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
}
.cb-teacher {
  font-family: var(--m2);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
  margin-bottom: 4px;
}
.cb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.cb-time {
  font-family: var(--m2);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}
.cb-room {
  font-family: var(--m2);
  font-size: 9px;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  padding: 2px 7px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.cb-type {
  font-family: var(--m2);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 700;
}
.cb-type.lab {
  background: rgba(0, 0, 0, 0.3);
  color: inherit;
}

/* LIVE highlight on current block */
.class-block.is-now {
  animation: block-pulse 2s ease-in-out infinite alternate;
}
@keyframes block-pulse {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.25);
  }
}

/* ── LEGEND ── */
.legend {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
.leg-ttl {
  font-family: var(--m2);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--txd);
  margin-right: 4px;
  white-space: nowrap;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 0.5px;
}
.l-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border-left: 3px solid;
  flex-shrink: 0;
}

/* ═══════════════════════════════
   CALENDAR SECTION
═══════════════════════════════ */
.cal-section {
  position: relative;
  z-index: 1;
  background: var(--bk);
  border-top: 2px solid rgba(255, 107, 0, 0.15);
  padding: clamp(28px, 5vw, 64px) var(--pad);
}
.cs-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.cal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cal-h {
  font-family: var(--m2);
  font-size: clamp(20px, 4vw, 36px);
  color: #fff;
  margin-bottom: 6px;
}
.cal-h span {
  color: var(--or);
}
.cal-sub {
  font-family: var(--m1);
  font-size: 13px;
  color: var(--txd);
}
.cal-note {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--txd);
  padding: 12px 16px;
  background: rgba(255, 107, 0, 0.05);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 3px;
  max-width: 300px;
  line-height: 1.8;
}
.cal-note strong {
  display: block;
  color: var(--or);
  font-size: 11px;
  margin-bottom: 4px;
}

/* iframe */
.cal-frame {
  position: relative;
  width: 100%;
  background: #050505;
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 6px;
  overflow: hidden;
}
.cal-frame iframe {
  display: block;
  width: 100%;
  height: 700px;
  border: none;
}
.cal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #050505;
  z-index: 2;
  transition: opacity 0.5s;
}
.cal-loader.gone {
  opacity: 0;
  pointer-events: none;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 107, 0, 0.2);
  border-top-color: var(--or);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spin-txt {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--txd);
}

/* drive bar / info bar */
.drive-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 3px;
}
.db-txt {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--txd);
  line-height: 1.7;
}
.db-txt strong {
  display: block;
  color: var(--tx);
  font-size: 11px;
  margin-bottom: 2px;
}

/* open-in-new-tab button */
.cal-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--or);
  text-decoration: none;
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 10px 20px;
  border-radius: 3px;
  background: rgba(255, 107, 0, 0.06);
  transition:
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.cal-open-btn:hover {
  background: rgba(255, 107, 0, 0.14);
  border-color: rgba(255, 107, 0, 0.6);
}

/* blocked fallback */
.cal-blocked {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(9, 9, 9, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px clamp(16px, 5vw, 60px);
  gap: 16px;
}
.cal-blocked.show {
  display: flex;
}
.cal-blocked-ico {
  font-size: 48px;
  margin-bottom: 4px;
}
.cal-blocked-title {
  font-family: var(--m2);
  font-size: clamp(14px, 2.5vw, 18px);
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.cal-blocked-sub {
  font-family: var(--m1);
  font-size: 13px;
  color: var(--txd);
  line-height: 1.8;
  max-width: 480px;
}
.cal-ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--m2);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  background: var(--or);
  padding: 14px 32px;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s;
}
.cal-ext-btn:hover {
  opacity: 0.88;
}

/* ═══════════════════════════════
   ACADEMIC CALENDAR SHEET EMBED
═══════════════════════════════ */
.sheet-section {
  position: relative;
  z-index: 1;
  background: var(--dk);
  border-top: 1px solid rgba(255, 107, 0, 0.1);
  padding: clamp(24px, 4vw, 52px) var(--pad);
}
.sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sheet-h {
  font-family: var(--m2);
  font-size: clamp(18px, 3.5vw, 30px);
  color: #fff;
  margin-bottom: 6px;
}
.sheet-h em {
  font-style: normal;
  color: var(--or);
}
.sheet-sub {
  font-family: var(--m1);
  font-size: 13px;
  color: var(--txd);
}
.sheet-wrap {
  position: relative;
  width: 100%;
  background: #050505;
  border: 1px solid rgba(255, 107, 0, 0.18);
  border-radius: 6px;
  overflow: hidden;
}
.sheet-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--or), transparent);
  z-index: 2;
  pointer-events: none;
}
.sheet-wrap iframe {
  display: block;
  width: 100%;
  height: 580px;
  border: none;
}
.sheet-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #050505;
  z-index: 3;
  transition: opacity 0.5s;
}
.sheet-loader.gone {
  opacity: 0;
  pointer-events: none;
}
.sheet-blocked {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 14px;
  padding: 40px 24px;
  text-align: center;
}
.sheet-blocked.show {
  display: flex;
}
.sheet-blocked-ico {
  font-size: 36px;
}
.sheet-blocked-msg {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--txd);
}
.sheet-blocked-sub {
  font-family: var(--m1);
  font-size: 13px;
  color: var(--txd);
  line-height: 1.8;
  max-width: 400px;
}
.sheet-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 18px;
  background: rgba(255, 107, 0, 0.04);
  border: 1px solid rgba(255, 107, 0, 0.1);
  border-radius: 3px;
}
.si-txt {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--txd);
  line-height: 1.7;
}
.si-txt strong {
  display: block;
  color: var(--tx);
  font-size: 11px;
  margin-bottom: 2px;
}
@media (max-width: 600px) {
  .sheet-wrap iframe {
    height: 400px;
  }
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  background: var(--dkr);
  border-top: 1px solid rgba(255, 107, 0, 0.15);
  padding: clamp(36px, 5.5vw, 70px) var(--pad) 28px;
}
.f-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.f-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--txd);
  transition: all 0.2s;
}

.f-icon svg {
  width: 18px;
  height: 18px;
}

.f-icon:hover {
  border-color: var(--or);
  color: var(--or);
  transform: translateY(-2px);
}
.fg {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4.5vw, 64px);
  max-width: 1300px;
  margin: 0 auto 44px;
}
.fb-n {
  font-family: var(--m2);
  font-size: 22px;
  color: var(--or);
  letter-spacing: 5px;
  margin-bottom: 10px;
}
.fb-i {
  font-size: 11.5px;
  color: var(--txd);
  line-height: 1.9;
}
.fct {
  font-family: var(--m2);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 16px;
}
.fl {
  list-style: none;
}
.fl li {
  margin-bottom: 9px;
}
.fl a {
  font-size: 12px;
  color: var(--txd);
  text-decoration: none;
  transition: color 0.2s;
}
.fl a:hover {
  color: var(--or);
}
.fbot {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 107, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.fcpy {
  font-family: var(--m2);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--txd);
}
.fcpy span {
  color: var(--or);
}
.fsoc {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fsoc a {
  font-family: var(--m2);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--txd);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 2px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.fsoc a:hover {
  border-color: var(--or);
  color: var(--or);
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 1100px) {
  nav.desk a {
    font-size: 9px;
    padding: 5px 8px;
    letter-spacing: 1px;
  }
  .ju-lbl,
  .bt-lbl {
    display: none;
  }
}
@media (max-width: 860px) {
  nav.desk {
    display: none;
  }
  .burger {
    display: flex;
  }
  .fg {
    grid-template-columns: 1fr 1fr;
  }
  .cal-frame iframe {
    height: 520px;
  }
  .cal-top {
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .fg {
    grid-template-columns: 1fr;
  }
  .fbot {
    flex-direction: column;
    align-items: flex-start;
  }
  .cal-frame iframe {
    height: 400px;
  }
  .pb-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
