:root {
  --bg: #eff4ff;
  --bg-accent: #d7e5ff;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #162033;
  --muted: #5d6880;
  --line: rgba(22, 32, 51, 0.12);
  --blue: #2166f3;
  --blue-deep: #123f9c;
  --shadow: 0 24px 60px rgba(33, 102, 243, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(33, 102, 243, 0.14), transparent 24%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-accent) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 85%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-header {
  margin-bottom: 18px;
}

.site-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.site-nav,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a,
.site-footer__links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.site-nav a:hover,
.site-footer__links a:hover,
.button:hover,
.filter-chip:hover,
.card:hover {
  transform: translateY(-2px);
}

.site-nav a:hover,
.site-footer__links a:hover {
  background: rgba(255, 255, 255, 0.92);
}

.controls h2,
.board h2 {
  margin: 0;
  line-height: 1.02;
}

.controls p,
.board__top p,
.panel__meta,
.card__date,
.card__cities,
.empty-state p,
.site-footer p,
.content-card p {
  color: var(--muted);
}

.panel,
.controls,
.board,
.card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.panel,
.controls,
.board {
  border-radius: 28px;
}

.panel--summary {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background:
    linear-gradient(160deg, rgba(18, 63, 156, 0.96), rgba(33, 102, 243, 0.9)),
    var(--surface);
  color: #fff;
  margin-bottom: 20px;
}

.panel__label,
.card__zone {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel__time {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
}

.panel__date {
  margin-top: 12px;
  font-size: 1.02rem;
}

.panel__meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.controls,
.board {
  padding: 24px;
}

.controls {
  margin-bottom: 24px;
}

.controls__top,
.board__top,
.card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.controls__top {
  margin-bottom: 18px;
}

.controls h2,
.board h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.controls p,
.board__top p,
.site-footer p {
  margin: 0;
}

.controls__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #3d8cff);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button--ghost {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(18, 63, 156, 0.12);
}

.filters {
  display: grid;
  gap: 18px;
}

.filter-group {
  display: grid;
  gap: 12px;
}

.filter-group__title {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
}

.filter-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  transition: all 0.18s ease;
}

.filter-chip input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: 0 14px 30px rgba(18, 63, 156, 0.22);
}

.board__top {
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.74);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card__title {
  margin: 0;
  font-size: 1.22rem;
}

.card__offset {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(33, 102, 243, 0.1);
  color: var(--blue-deep);
}

.card__time {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.card__date {
  margin-top: 8px;
  font-size: 0.98rem;
}

.card__cities {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 32px;
  text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(18, 63, 156, 0.24);
}

.empty-state h3,
.content-card h1 {
  margin: 0 0 10px;
}

.empty-state h3 {
  font-size: 1.3rem;
}

.empty-state p {
  margin: 0;
  max-width: 42ch;
  line-height: 1.6;
}

.site-footer {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 24px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.content-card {
  padding: 28px;
}

.content-card h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.content-card p {
  margin: 0 0 14px;
  max-width: 66ch;
  line-height: 1.7;
}

.content-card p:last-child {
  margin-bottom: 0;
}

code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(18, 63, 156, 0.08);
  color: var(--blue-deep);
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .panel--summary,
  .controls__top,
  .board__top,
  .card__header {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding: 20px 0 32px;
  }

  .controls,
  .board,
  .panel--summary,
  .content-card,
  .site-footer {
    padding: 18px;
    border-radius: 22px;
  }

  .filter-group__chips {
    gap: 10px;
  }

  .filter-chip,
  .filter-chip span,
  .site-nav a,
  .site-footer__links a,
  .controls__actions,
  .button {
    width: 100%;
  }

  .controls__actions,
  .site-nav,
  .site-footer__links {
    flex-direction: column;
  }
}
