:root {
  --bg: #eef1f5;
  --bg2: #e3e8ee;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --text: #11161d;
  --muted: #606a78;
  --line: #d8dee7;
  --brand: #d3122a;
  --brand-dark: #8f0819;
  --ink: #1a222d;
  --ink-soft: #273446;
  --ok: #0f9f65;
  --shadow: 0 14px 28px rgba(14, 20, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 8% -10%, rgba(211, 18, 42, 0.14), transparent 40%),
    radial-gradient(circle at 95% 12%, rgba(26, 34, 45, 0.14), transparent 36%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a {
  color: #be1025;
}

a:hover {
  color: #880717;
}

.container {
  width: min(1140px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #0f151d;
  color: #ecf1f7;
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 10px 24px rgba(4, 8, 13, 0.35);
}

.header-shell {
  position: relative;
}

.header-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background: repeating-linear-gradient(
    120deg,
    transparent 0,
    transparent 9px,
    rgba(255, 255, 255, 0.03) 9px,
    rgba(255, 255, 255, 0.03) 11px
  );
}

.brand-row {
  padding: 14px 0 8px;
  position: relative;
}

.brand-title {
  margin: 0;
  text-decoration: none;
  display: inline-block;
  color: #fff;
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: clamp(1.7rem, 2.9vw, 2.4rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(211, 18, 42, 0.4);
}

.brand-subtitle {
  margin: 4px 0 0;
  color: #b8c2d1;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.nav {
  border-top: 1px solid #202d3e;
  padding: 10px 0 14px;
  position: relative;
}

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.nav a {
  text-decoration: none;
  color: #dce4ef;
  border: 1px solid #2d3a4b;
  border-radius: 999px;
  padding: 7px 13px;
  display: inline-block;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  transform: translateY(-1px);
  background: #1d2938;
  border-color: #46556a;
}

.nav a.active {
  border-color: var(--brand);
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 9px 18px rgba(211, 18, 42, 0.34);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 28px 0 14px;
}

.hero-gradient {
  position: absolute;
  inset: -120px -90px auto -90px;
  height: 280px;
  background:
    radial-gradient(circle at 15% 22%, rgba(211, 18, 42, 0.25), transparent 46%),
    radial-gradient(circle at 85% 8%, rgba(20, 30, 42, 0.28), transparent 44%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 18px;
  position: relative;
}

.hero-grid.hero-grid-single {
  grid-template-columns: 1fr;
}

.hero-copy,
.hero-panel,
.section-card,
.feature-card,
.cta-banner,
.content,
.sidebar .widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.65s ease forwards;
}

.hero-panel {
  animation-delay: 0.12s;
}

.hero-copy {
  padding: clamp(20px, 3vw, 30px);
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 20px solid rgba(211, 18, 42, 0.1);
  transform: rotate(18deg);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.75rem;
}

.hero-copy h1 {
  margin: 10px 0 12px;
  font-family: "Impact", "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  color: #0e1520;
}

.hero-copy p {
  margin: 0 0 14px;
  max-width: none;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(211, 18, 42, 0.3);
  animation: pulse 3s ease-in-out infinite;
}

.btn-secondary {
  background: #fff;
  color: #1c2633;
  border-color: #ced7e4;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.kpi {
  padding: 10px;
  border-radius: 11px;
  border: 1px solid #dde3ec;
  background: var(--surface-soft);
  text-align: center;
}

.kpi strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #0f1b2a;
}

.kpi span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-panel {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.panel-topline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), #111722, #0ea86a);
}

.hero-panel h3 {
  margin: 8px 0 8px;
  font-family: "Impact", "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
}

.notice {
  color: var(--muted);
  font-size: 0.93rem;
}

.calendar-box {
  margin-top: 12px;
  border-top: 1px solid #e0e6ef;
  padding-top: 10px;
}

.feature-grid {
  margin-top: 8px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 16px;
  animation-delay: 0.15s;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: "Impact", "Arial Black", sans-serif;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.section-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.secondary-grid {
  margin-top: 0;
}

.section-card {
  padding: 18px;
}

.news-block {
  margin-top: 16px;
  margin-bottom: 20px;
  animation-delay: 0.24s;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-family: "Impact", "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #111926;
  font-size: 1.35rem;
}

.section-head a {
  font-size: 0.9rem;
}

.stack-list,
.post-list {
  display: grid;
  gap: 10px;
}

.stack-item,
.post,
.card {
  background: var(--surface-soft);
  border: 1px solid #dce3ee;
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stack-item:hover,
.post:hover,
.card:hover,
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(17, 25, 38, 0.12);
}

.post h3,
.stack-item h3 {
  margin: 0 0 6px;
}

.info-post {
  cursor: pointer;
}

.info-post:hover {
  border-color: #c7d2e2;
}

.info-note-preview {
  display: none;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #d4ddea;
  color: #324965;
  font-size: 0.86rem;
}

.info-note-preview.visible {
  display: block;
}

.info-note-bubble {
  position: absolute;
  z-index: 140;
  border: 1px solid #cdd8e8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(16, 24, 34, 0.22);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.info-note-bubble.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.info-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.info-note-close {
  border: 1px solid #ccd6e3;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  line-height: 1;
  padding: 0;
}

.info-note-input {
  width: 100%;
  resize: vertical;
  margin: 0 0 8px;
}

.info-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.post h3 {
  font-size: 1.16rem;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.benefits-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #29374a;
}

.cta-banner {
  margin-top: 0;
  margin-bottom: 28px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  animation-delay: 0.3s;
}

.cta-banner h2 {
  margin: 4px 0 8px;
  font-family: "Impact", "Arial Black", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cta-banner p {
  margin: 0;
}

.cta-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  padding: 24px 0 38px;
}

.content {
  padding: 20px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.widget {
  padding: 14px;
}

.widget h4 {
  margin: 0 0 8px;
  color: #111b2a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-title {
  margin: 0 0 12px;
  color: #111b2a;
  font-family: "Impact", "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-intro {
  margin: 0 0 14px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.label {
  font-size: 0.79rem;
  color: #192433;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #dfe6ef;
  padding: 9px;
  text-align: left;
}

th {
  color: #1a2738;
  cursor: pointer;
}

.calendar-box table,
#calendarWidget table {
  min-width: 0;
  width: 100%;
}

#calendarWidget th {
  cursor: default;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.input,
select,
textarea,
button {
  border: 1px solid #ccd6e3;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}

.input,
select {
  min-height: 38px;
}

button {
  cursor: pointer;
}

button.btn-primary {
  border-radius: 10px;
  color: #fff;
  border-color: #951323;
}

.btn-danger {
  border-color: #e2b0b7;
  color: #951323;
  background: #fff3f5;
}

.site-footer {
  border-top: 1px solid #cfd8e5;
  background: #131c28;
  color: #b4c2d6;
  padding: 18px 0;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  margin-bottom: 14px;
}

.location-copy {
  background: #192537;
  border: 1px solid #2b3c54;
  border-radius: 12px;
  padding: 14px;
}

.footer-title {
  margin: 0 0 6px;
  font-family: "Impact", "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #e7eef9;
}

.location-copy p {
  margin: 0 0 8px;
}

.location-copy p:last-child {
  margin-bottom: 0;
}

.location-map-wrap {
  border: 1px solid #2b3c54;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
}

.location-map {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-grid p {
  margin: 0;
}

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

.social-links a {
  color: #d7e2f1;
  text-decoration: none;
  border: 1px solid #33445c;
  background: #1a2638;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  background: #273751;
  border-color: #4b6284;
  color: #fff;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 10px 20px rgba(211, 18, 42, 0.22);
  }

  50% {
    box-shadow: 0 12px 24px rgba(211, 18, 42, 0.36);
  }

  100% {
    box-shadow: 0 10px 20px rgba(211, 18, 42, 0.22);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .hero-grid,
  .feature-grid,
  .section-grid,
  .layout,
  .kpis,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .nav {
    overflow-x: auto;
  }

  .nav ul {
    flex-wrap: nowrap;
    width: max-content;
    padding-bottom: 2px;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-note-bubble {
    position: fixed;
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: 12px;
    width: auto !important;
    max-height: 72vh;
    overflow: auto;
  }

  .location-section {
    grid-template-columns: 1fr;
  }

  .location-map-wrap,
  .location-map {
    min-height: 200px;
  }

  .brand-title,
  .hero-copy h1,
  .section-head h2,
  .hero-panel h3,
  .page-title,
  .cta-banner h2 {
    letter-spacing: 0.02em;
  }
}

.auth-panel {
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
  margin-top: 12px;
}

.auth-panel h2,
.auth-panel h3 {
  margin-top: 0;
}

.nav-auth-item {
  margin-left: auto;
}

.toolbar-right {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .nav-auth-item {
    margin-left: 0;
  }
}
