:root {
  --bg: #f3f6fb;
  --card: rgba(255, 255, 255, 0.8);
  --text: #19212b;
  --muted: #4f5f73;
  --primary: #4f9df9;
  --secondary: #ff7e37;
  --accent: #7d46d6;
  --shadow: 0 14px 30px rgba(22, 38, 62, 0.14);
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top left, #ffffff 0%, #f6f9ff 38%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}



body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(79, 157, 249, .08), transparent 35%),
    radial-gradient(circle at 75% 20%, rgba(140, 164, 194, .14), transparent 45%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45vh;
  background: linear-gradient(to top, rgba(190, 201, 216, .24), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

.container {
  width: min(1280px, calc(100vw - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 2.5rem 0 1rem;
  position: relative;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 .5rem;
  max-width: 18ch;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 220px;
  gap: 1.5rem;
  padding: 1rem 0 8rem;
}

.timeline {
  position: sticky;
  top: 1rem;
  align-self: start;
  padding: 1rem;
}

.timeline-line {
  width: 92px;
  min-height: 72vh;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(180deg, #69b3ff 0%, #1f88e5 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35), 0 20px 35px rgba(32, 106, 191, 0.3);
  position: relative;
  overflow: hidden;
}

.timeline-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 2px, transparent 3px);
  background-size: 18px 28px;
  opacity: .3;
  animation: flow 8s linear infinite;
}

@keyframes flow {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(28px);
  }
}

.node {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  position: absolute;
  left: 19px;
  color: #1f7fd8;
  box-shadow: var(--shadow);
}

.node:nth-child(1) {
  top: 10%;
  background: #f1f7ff;
}

.node:nth-child(2) {
  top: 25%;
}

.node:nth-child(3) {
  top: 40%;
}

.node:nth-child(4) {
  top: 55%;
  background: #ff7e37;
  color: #2b1202;
}

.node:nth-child(5) {
  top: 70%;
}

.node.active {
  box-shadow: 0 0 0 3px var(--primary), var(--shadow);
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  animation: rise .6s ease forwards;
}

.card:nth-child(2) {
  animation-delay: .1s;
}

.card:nth-child(3) {
  animation-delay: .2s;
}

.card:nth-child(4) {
  animation-delay: .3s;
}

@keyframes rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.media {
  aspect-ratio: 16 / 9;
  background: #0d1626;
}

.post-instagram .media {
  aspect-ratio: auto;
  height: auto;
  background: #fbfdff;
  padding: 1.5rem 0;
}

.media>iframe,
.media>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.pill {
  display: inline-flex;
  padding: .33rem .7rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.pill.tip {
  background: #ffe3d4;
  color: #8a3708;
}

.pill.story {
  background: #ddedff;
  color: #0b4681;
}

.pill.video {
  background: #f9dcff;
  color: #6f158f;
}

.pill.instagram {
  background: #ffe0ef;
  color: #9f1f59;
}

.card h2 {
  margin: .55rem 0 .45rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.card p {
  margin: 0;
  color: #2f3d52;
  line-height: 1.45;
}


.ad-rail {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.ad-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 24px rgba(22, 38, 62, 0.1);
  padding: .75rem;
}

.ad-label {
  margin: 0 0 .5rem;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #63748a;
  font-weight: 700;
}

.ad-slot {
  min-height: 180px;
  border-radius: 10px;
  border: 1px dashed #c8d8ea;
  background: rgba(246, 250, 255, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: .45rem;
  padding: .75rem;
  text-align: center;
}

.ad-slot small {
  color: #6a7a8f;
  font-size: .78rem;
}

.stats-sticky {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(1150px, calc(100vw - 1rem));
  background: rgba(235, 238, 243, .87);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  box-shadow: 0 18px 28px rgba(15, 24, 41, 0.22);
  backdrop-filter: blur(8px);
  z-index: 30;
  padding: .8rem;
}

.stats-title {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 .6rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.stat {
  border-radius: 12px;
  color: #fff;
  padding: .55rem .7rem;
}

.stat.run {
  background: linear-gradient(135deg, #3f93f9, #59b6ff);
}

.stat.walk {
  background: linear-gradient(135deg, #ff7932, #ff9d5e);
}

.stat.stroller {
  background: linear-gradient(135deg, #ff8d3a, #f0aa43);
}

.stat strong {
  display: block;
  font-size: .75rem;
  opacity: .92;
  text-transform: uppercase;
}

.stat span {
  font-size: 1.18rem;
  font-weight: 800;
}

.footer-note {
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-top: .6rem;
  letter-spacing: .03em;
  color: #2e3947;
}

.admin {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.panel {
  width: min(900px, calc(100vw - 2rem));
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 1.2rem;
}

form {
  display: grid;
  gap: .75rem;
}

.row {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c6d2e2;
  border-radius: 10px;
  padding: .6rem .65rem;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 12px;
  padding: .65rem .9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #4f9df9, #397fd6);
  color: #fff;
}

.btn-secondary {
  background: #e8eef7;
  color: #243247;
}

.list {
  margin-top: 1rem;
  display: grid;
  gap: .75rem;
}

.list-item {
  border-radius: 12px;
  background: #f6f9ff;
  border: 1px solid #d8e4f5;
  padding: .75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    position: relative;
    top: 0;
  }

  .timeline {
    position: relative;
    top: 0;
  }

  .timeline-line {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .timeline-line::after {
    animation-duration: 5s;
  }

  .node {
    position: static;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }
}