﻿:root {
  --bg-top: #eef6fc;
  --bg-bottom: #f8fcff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #102f45;
  --muted: #4f6a7d;
  --line: #c9ddea;
  --brand-navy: #0f3350;
  --brand-blue: #15577f;
  --brand-cyan: #25c5d4;
  --brand-amber: #f0a645;
  --ok: #1f9d63;
  --warn: #c78622;
  --danger: #c04d42;
  --shadow-soft: 0 12px 24px rgba(15, 64, 98, 0.08);
  --shadow-card: 0 18px 34px rgba(11, 60, 94, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(37, 197, 212, 0.14), transparent 27%),
    radial-gradient(circle at 94% 8%, rgba(240, 166, 69, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 56%, #ffffff 100%);
  background-attachment: fixed;
}

.hero {
  color: #f5fbff;
  padding: 54px 20px 46px;
  position: relative;
  overflow: hidden;
  --hero-image: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 197, 212, 0.24), transparent 35%),
    radial-gradient(circle at 88% 14%, rgba(240, 166, 69, 0.22), transparent 33%),
    linear-gradient(130deg, rgba(10, 43, 70, 0.95) 0%, rgba(16, 70, 107, 0.88) 56%, rgba(23, 107, 143, 0.86) 100%),
    var(--hero-image) center / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -150px;
  top: -130px;
  background: rgba(255, 255, 255, 0.12);
}

.hero::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: -130px;
  background: rgba(240, 166, 69, 0.2);
}

.hero-control {
  padding-top: 44px;
  padding-bottom: 36px;
}

.hero-inner {
  max-width: 1260px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b6dcf4;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.2px;
}

.hero p {
  margin: 12px 0 0;
  max-width: 980px;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.45;
  color: #d7ebfa;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.container {
  max-width: 1260px;
  margin: -30px auto 0;
  padding: 0 18px 40px;
}

.block {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(176, 205, 223, 0.74);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(5px);
  animation: riseIn 0.56s ease both;
}

.block h2 {
  margin: 0 0 12px;
  font-size: 29px;
  line-height: 1.12;
  color: #113f62;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #c7dceb;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 197, 212, 0.2), transparent 42%),
    linear-gradient(165deg, #ffffff 0%, #edf7fd 100%);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(11, 60, 94, 0.18);
}

.metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #25c5d4, #2c8fb8, #f0a645);
}

.metric-card b {
  display: block;
  font-size: 31px;
  color: #0f4f76;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 6px;
  color: #49667b;
  font-size: 14px;
}

.stage-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.stage-card {
  --stage-accent: #2cc8d6;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #d0e2ee;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--stage-accent) 22%, white), transparent 38%),
    linear-gradient(160deg, #ffffff 0%, #f1f8fc 100%);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px rgba(11, 60, 94, 0.2);
  border-color: color-mix(in srgb, var(--stage-accent) 50%, #a7bfd2);
}

.stage-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--stage-accent) 82%, white), var(--stage-accent));
}

.stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-code {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #0f3552;
  background: color-mix(in srgb, var(--stage-accent) 18%, white);
  border: 1px solid color-mix(in srgb, var(--stage-accent) 58%, white);
}

.stage-period {
  font-size: 12px;
  color: #4c687c;
  font-weight: 700;
}

.stage-card h3 {
  margin: 10px 0 8px;
  line-height: 1.22;
  font-size: 20px;
  color: #133f60;
}

.stage-media {
  margin: 10px 0 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--stage-accent) 45%, #b3cde0);
  background: #dcebf6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.stage-photo {
  display: block;
  width: 100%;
  height: clamp(170px, 22vw, 245px);
  object-fit: cover;
}

.stage-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #36576d;
}

.progress-line {
  margin-top: 12px;
}

.progress-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #3f5d72;
  margin-bottom: 5px;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #d8e7f2;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--stage-accent) 85%, white), #0f6f9a);
}

.fold {
  margin-top: 10px;
  border-top: 1px dashed #c9dce9;
  padding-top: 8px;
}

.fold summary {
  cursor: pointer;
  color: #1a5378;
  font-weight: 700;
}

.fold ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #38586f;
  line-height: 1.38;
}

.pub-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pub-item {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px;
  align-items: start;
}

.status-chip {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #b7d6e8;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: #eef7fd;
  color: #21587d;
}

.status-sent {
  background: #e7f4ff;
  border-color: #8fc5ec;
  color: #165b88;
}

.status-reviewed {
  background: #edf7ed;
  border-color: #95caa1;
  color: #2f7443;
}

.status-annot {
  background: #f2f7ff;
  border-color: #b8caef;
  color: #3f5e9f;
}

.status-inprogress {
  background: #fff6e8;
  border-color: #efc680;
  color: #91601d;
}

.status-planned {
  background: #f5f6fa;
  border-color: #d0d7e1;
  color: #556273;
}

.status-done {
  background: #eaf9f3;
  border-color: #8fdfb9;
  color: #1d7d4f;
}

.calendar {
  border-radius: 14px;
  border: 1px solid #cfe0ec;
  background: linear-gradient(180deg, #fafdff, #f5fbff);
  padding: 10px;
}

.calendar-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.calendar-head span {
  text-align: center;
  font-size: 12px;
  color: #4a657a;
  padding: 4px 2px;
  border-radius: 8px;
  background: #eef6fb;
}

.timeline-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.timeline-label {
  color: #1a4f74;
  font-size: 14px;
  line-height: 1.32;
}

.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(158, 188, 208, 0.18) 0,
      rgba(158, 188, 208, 0.18) calc(8.333% - 1px),
      transparent calc(8.333% - 1px),
      transparent 8.333%
    ),
    linear-gradient(180deg, #eff6fb, #ebf2f8);
  border-radius: 10px;
  border: 1px solid #d0dfea;
  min-height: 34px;
  padding: 5px;
}

.timeline-bar {
  --stage-accent: #2cc8d6;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--stage-accent), #1e769f);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  border: 1px solid #d2e1eb;
  padding: 8px;
  vertical-align: top;
  text-align: left;
}

.data-table th {
  background: linear-gradient(180deg, #eaf4fb, #e4eff8);
  color: #1a4d6d;
}

.data-table tbody tr:nth-child(even) {
  background: #fbfeff;
}

.stage-chip-inline {
  --stage-accent: #2cc8d6;
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: #103a58;
  background: color-mix(in srgb, var(--stage-accent) 20%, white);
  border: 1px solid color-mix(in srgb, var(--stage-accent) 62%, white);
}

.stage-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stage-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #b9d3e4;
  box-shadow: 0 3px 6px rgba(17, 67, 103, 0.12);
  flex: 0 0 auto;
}

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

.filters select,
.filters input,
.row-slider,
.row-number,
.pub-select {
  border: 1px solid #c1d6e6;
  border-radius: 10px;
  background: #fff;
  color: #1a4665;
}

.filters select,
.filters input,
.pub-select {
  padding: 8px 10px;
  font-size: 14px;
}

.row-slider {
  width: 220px;
  accent-color: var(--stage-accent, #1f88ac);
}

.row-number {
  width: 80px;
  padding: 6px 8px;
}

.control-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.row-progress {
  min-width: 54px;
  font-weight: 700;
  color: #194d72;
}

.actions-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #b9d2e4;
  background: #ffffff;
  color: #1c4c6f;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(17, 80, 122, 0.16);
  background: #eff7fd;
}

.btn-primary {
  border-color: #0f7392;
  background: linear-gradient(130deg, #1597b6, #0c6488);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(130deg, #128aaa, #0b5d80);
}

@media (max-width: 940px) {
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .timeline-label {
    font-size: 13px;
  }

  .stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .block {
    padding: 14px;
  }

  .block h2 {
    font-size: 24px;
  }

  .row-slider {
    width: 100%;
  }

  .hero {
    padding-top: 46px;
  }
}
