:root {
  --navy-950: #071b45;
  --navy-900: #0a2f70;
  --navy-800: #123f8f;
  --gray-950: #1e293b;
  --gray-700: #475569;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --red: #e30613;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(10, 47, 112, 0.08) 0, rgba(248, 250, 252, 0) 310px),
    var(--gray-50);
  color: var(--gray-950);
  direction: rtl;
  text-align: right;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(640px, 62vw);
  max-height: 74px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  position: absolute;
  left: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--navy-800);
  box-shadow: 0 10px 22px rgba(10, 47, 112, 0.18);
  transform: translateY(-1px);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.hero {
  padding: 34px 0 28px;
}

.hero > .eyebrow {
  font-size: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
}

h1,
h2 {
  margin: 0;
  color: var(--navy-950);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 38px;
  line-height: 1.25;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
}

.hero__lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.8;
}

.update-card {
  min-height: 112px;
  padding: 22px;
  border: 1px solid rgba(10, 47, 112, 0.12);
  border-right: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.update-card__label {
  display: block;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.update-card strong {
  color: var(--navy-900);
  font-size: 22px;
  line-height: 1.2;
}

.schedule-panel {
  padding: 26px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
}

select,
button {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius);
  font: inherit;
}

select {
  padding: 0 14px 0 44px;
  border: 1px solid var(--gray-300);
  background:
    linear-gradient(45deg, transparent 50%, var(--navy-900) 50%),
    linear-gradient(135deg, var(--navy-900) 50%, transparent 50%),
    var(--white);
  background-position:
    20px 21px,
    14px 21px,
    0 0;
  background-size: 6px 6px, 6px 6px, 100%;
  background-repeat: no-repeat;
  color: var(--gray-950);
  appearance: none;
  cursor: pointer;
  outline: none;
}

select:focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 4px rgba(18, 63, 143, 0.12);
}

.download-button {
  min-width: 210px;
  padding: 0 20px;
  border: 0;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.download-button:hover:not(:disabled),
.download-button:focus-visible:not(:disabled) {
  background: var(--navy-800);
  box-shadow: 0 12px 24px rgba(10, 47, 112, 0.22);
  transform: translateY(-1px);
}

.download-button:disabled {
  background: var(--gray-300);
  color: var(--gray-700);
  cursor: not-allowed;
}

.viewer-frame {
  position: relative;
  min-height: 70vh;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: 76vh;
  border: 0;
  background: var(--white);
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--gray-500);
}

.empty-state strong {
  color: var(--navy-900);
  font-size: 20px;
}

.empty-state[hidden] {
  display: none;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--gray-500);
  font-size: 13px;
}

@media (max-width: 840px) {
  .site-header__inner {
    min-height: 76px;
  }

  .brand img {
    width: min(560px, 62vw);
  }

  .hero__content,
  .controls {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }

  .download-button {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    width: min(100% - 22px, 1180px);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  .brand {
    justify-content: center;
  }

  .brand img {
    width: 100%;
    max-height: 56px;
  }

  .main-nav {
    position: static;
  }

  .main-nav a {
    width: 100%;
    justify-content: center;
  }

  .page-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 18px;
  }

  .hero {
    padding: 22px 0;
  }

  h1 {
    font-size: 26px;
  }

  .hero__lead {
    font-size: 15px;
  }

  .schedule-panel {
    padding: 18px;
  }

  .panel-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-frame {
    min-height: 60vh;
  }

  .pdf-viewer {
    height: 64vh;
  }
}
