:root {
  color-scheme: light;
  --blue: #07369f;
  --blue-deep: #06256f;
  --pink: #e6005a;
  --cyan: #00a7c8;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dbe5f5;
  --surface: #ffffff;
  --soft: #f5f8ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(0, 167, 200, 0.14), transparent 28rem),
    radial-gradient(circle at 10% 2%, rgba(230, 0, 90, 0.1), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 54%, #fff8ea 100%);
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 229, 245, 0.85);
  backdrop-filter: blur(14px);
}

.logo-link img {
  width: 154px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 850;
}

.nav a,
.button {
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--surface);
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(7, 54, 159, 0.2);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.button.light {
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.danger {
  min-height: 38px;
  padding: 0 12px;
  background: #b91c1c;
  box-shadow: none;
  font-size: 13px;
}

.page,
.admin-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0 72px;
}

.hero {
  margin-bottom: clamp(34px, 6vw, 64px);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: end;
}

.home-contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 52px rgba(6, 37, 111, 0.08);
}

.home-contact h2 {
  margin-bottom: 12px;
}

.home-contact p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--blue-deep);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.93;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.intro,
.panel > p,
.news-body {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.roadmap {
  position: sticky;
  top: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 52px rgba(6, 37, 111, 0.08);
}

.roadmap h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.roadmap-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list a {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--pink);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--blue-deep);
  background: var(--soft);
  font-weight: 900;
  text-decoration: none;
}

.roadmap-list time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.news-feed {
  display: grid;
  gap: 28px;
}

.news-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 52px rgba(6, 37, 111, 0.08);
}

.news-card {
  overflow: hidden;
}

.news-media img,
.news-media video {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  background: #061a4b;
}

.news-content {
  padding: clamp(22px, 4vw, 34px);
}

.news-meta {
  display: block;
  margin-bottom: 12px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-body {
  white-space: pre-wrap;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
}

.admin-page {
  width: min(1120px, calc(100% - 40px));
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel {
  padding: clamp(22px, 4vw, 34px);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 15px;
  font-weight: 900;
}

input[type="text"],
input[type="file"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

input[type="text"],
input[type="file"],
input[type="password"] {
  min-height: 48px;
  padding: 10px 14px;
}

textarea {
  min-height: 220px;
  resize: vertical;
  padding: 14px;
  line-height: 1.5;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.errors,
.success,
.flash {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 16px 18px;
  font-weight: 800;
}

.errors {
  color: #8a1238;
  background: #fff0f5;
  border: 1px solid #ffc7da;
}

.success,
.flash {
  color: #084f38;
  background: #eafaf3;
  border: 1px solid #a9e5cb;
}

.admin-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.admin-item h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.row-action {
  margin: 0;
}

.hp {
  position: absolute;
  left: -9999px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

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

  .roadmap {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
    padding: 14px 20px;
  }

  .logo-link img {
    width: 126px;
  }

  .page,
  .admin-page {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .admin-head,
  .admin-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}
