:root {
  --bg: #060b14;
  --bg2: #0c1526;
  --card: rgba(18, 28, 44, 0.82);
  --card-border: rgba(129, 167, 242, 0.22);
  --text: #f1efe9;
  --muted: #b4b6c8;
  --accent: #7bb1ff;
  --accent2: #78e7c1;
  --warm-accent: #e7b784;
  --warm-accent-soft: #f0d7b3;
  --focus: #a8f2d9;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 420px at 86% -10%, rgba(107, 212, 255, 0.16), transparent 60%),
    radial-gradient(860px 360px at 10% 0%, rgba(120, 231, 193, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, #070d18 100%);
  line-height: 1.55;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(8, 12, 20, 0.74);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(131, 166, 235, 0.2);
}

.brand { font-weight: 700; letter-spacing: 0.3px; color: #dfeaff; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section { max-width: 1060px; margin: 0 auto; padding: 56px 22px; }

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
  padding-top: 64px;
}

.logo {
  width: min(220px, 48vw);
  height: auto;
  display: block;
  margin: 4px 0 18px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.32));
}

.hero h1 {
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  line-height: 1.1;
  margin: 8px 0 14px;
  letter-spacing: -0.01em;
}

.eyebrow {
  color: var(--accent2);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.72; max-width: 780px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.hero-visual {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 24px;
}

.hero-carousel {
  overflow: hidden;
  width: 100%;
}

.hero-carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.hero-carousel-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(8, 16, 30, 0.55);
  opacity: 0;
  transform: scale(1);
  transition: opacity 4s ease-in-out, transform 14s ease-out;
}

.hero-carousel-image.is-active {
  opacity: 1;
}

.hero-carousel-image.is-fading-out {
  opacity: 0.2;
}

.hero-carousel-image.is-zoomed {
  transform: scale(1.035);
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.hero-carousel-dot.is-active {
  background: rgba(143, 231, 255, 0.95);
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(120deg, #73a9ff 0%, #8fe7ff 100%);
  color: #031625;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 10px 24px rgba(73, 130, 230, 0.35);
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-ghost { background: rgba(12, 19, 32, 0.62); color: var(--text); border: 1px solid rgba(123, 177, 255, 0.52); box-shadow: none; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-top: 2px; }
.card li, .story p, .muted, .links a, label, .telegram-note { color: var(--muted); }

.story { background: linear-gradient(180deg, rgba(15, 23, 38, 0.72) 0%, rgba(13, 22, 34, 0.62) 100%); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
h2 { margin-top: 0; letter-spacing: -0.01em; }
.links { padding-left: 18px; }
.links li { margin-bottom: 8px; }
.links a { text-decoration: none; }
.links a:hover { color: var(--text); text-decoration: underline; }

.form-wrap { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--shadow); }
form { display: grid; gap: 12px; margin-top: 14px; }
label { display: grid; gap: 6px; font-size: 0.95rem; }
input, textarea, select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(140, 172, 235, 0.34);
  background: rgba(8, 14, 24, 0.78);
  color: var(--text);
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
input:focus, textarea:focus, select:focus, .btn:focus-visible, .btn-ghost:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(168, 242, 217, 0.2);
}

.footer { text-align: center; color: #879bc2; padding: 30px 16px 44px; }

.publication-hero { padding-top: 64px; padding-bottom: 10px; }
.publication-section { padding-top: 34px; }
.section-head { margin-bottom: 18px; }

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

.publication-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.publication-card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}

.publication-card-expanded {
  padding: 20px;
}

.publication-card-expanded p:last-of-type {
  color: #d5e4ff;
  line-height: 1.72;
}

.publication-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 12px;
}

.publication-card h3 {
  margin: 0 0 10px;
  line-height: 1.35;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.publication-card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.publication-card .eyebrow {
  margin-bottom: 10px;
}

.article-meta {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #9fb2d7;
  margin: 0 0 12px;
}

.medium-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #9fb2d7;
  text-decoration: none;
}

.medium-badge:hover {
  text-decoration: underline;
}

.publication-card a,
.publication-list a {
  color: #cfe0ff;
  text-decoration: none;
}

.publication-card a:hover,
.publication-list a:hover {
  text-decoration: underline;
}

.publication-card.featured {
  border-color: rgba(120, 231, 193, 0.45);
}

.badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #05211c;
  background: linear-gradient(120deg, #78e7c1, #8fe7ff);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.publication-list {
  margin: 0;
  padding-left: 20px;
}

.publication-list li {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 1.02rem;
}

.reading {
  max-width: 860px;
}

.reading-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.reading-card h1 {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.15;
}

.reading-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.reading-card h3 {
  margin-top: 22px;
  margin-bottom: 8px;
}

.reading-card p,
.reading-card li {
  color: #dbe7ff;
  line-height: 1.75;
  font-size: 1.03rem;
}

.reading-article-image {
  width: 100%;
  display: block;
  margin: 22px 0 28px;
  border-radius: 16px;
  border: 1px solid rgba(140, 182, 255, 0.18);
  box-shadow: var(--shadow);
}

.reading-article-image-hero {
  margin-top: 6px;
  margin-bottom: 28px;
}

.reading-article-image-cta {
  margin-top: 30px;
}

.reading-card ul {
  padding-left: 20px;
}

.reading-premium {
  max-width: 780px;
  padding-top: 70px;
}

.reading-card-premium {
  position: relative;
  padding: 44px 52px 38px;
  border-radius: 26px;
  background:
    radial-gradient(560px 180px at 88% 0%, rgba(231, 183, 132, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(18, 28, 44, 0.94) 0%, rgba(11, 19, 31, 0.92) 100%),
    radial-gradient(700px 220px at 0% 0%, rgba(123, 177, 255, 0.08), transparent 60%);
  border: 1px solid rgba(140, 182, 255, 0.2);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.reading-card-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(143, 231, 255, 0.03), transparent 22%);
}

.article-header {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.article-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(120, 231, 193, 0.92), rgba(231, 183, 132, 0.62), rgba(123, 177, 255, 0.18));
}

.article-kicker {
  margin: 0 0 12px;
  color: var(--accent2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-meta-premium {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 16px;
  color: #b6b1bb;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-meta-premium span {
  opacity: 0.45;
}

.article-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: balance;
}

.article-dek {
  margin: 18px 0 0;
  max-width: 42rem;
  color: #d8d1c9;
  font-size: 1.18rem;
  line-height: 1.7;
}

.article-byline {
  margin: 12px 0 0;
  color: #8ef0cc;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.article-share-label {
  color: rgba(120, 231, 193, 0.86);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(123, 177, 255, 0.3);
  background: rgba(11, 18, 30, 0.72);
  color: #dce9ff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 231, 193, 0.42);
  background: rgba(16, 26, 29, 0.88);
}

.share-link {
  color: #dce9ff;
}

.article-figure {
  margin: 28px 0 34px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(140, 182, 255, 0.16);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.article-figure {
  position: relative;
}

.article-figure::after {
  content: "⌕";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 24, 0.72);
  border: 1px solid rgba(120, 231, 193, 0.28);
  color: #e8f7f0;
  font-size: 1rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.article-figure img {
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.article-figure:hover img {
  transform: translateY(-2px);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(120, 231, 193, 0.14);
  border-color: rgba(120, 231, 193, 0.34);
}

.article-hero-figure {
  margin-top: 26px;
  margin-bottom: 34px;
}

.article-inline-figure,
.article-cta-figure {
  margin-top: 36px;
}

.article-figure-link {
  margin-top: 12px;
  text-align: center;
}

.article-figure-link a {
  color: rgba(120, 231, 193, 0.92);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.article-figure-link a:hover {
  color: var(--warm-accent-soft);
  text-decoration: underline;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 14, 0.82);
  backdrop-filter: blur(10px);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
}

.image-lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 84px);
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(143, 231, 255, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  background: rgba(10, 16, 27, 0.96);
}

.image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(120, 231, 193, 0.28);
  background: rgba(7, 12, 21, 0.78);
  color: #effaf5;
  font-size: 1.3rem;
  cursor: pointer;
}

.image-lightbox-close:hover {
  border-color: rgba(120, 231, 193, 0.48);
}

.article-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(140, 182, 255, 0.14);
}

.article-nav-card {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(123, 177, 255, 0.22);
  background: rgba(10, 17, 28, 0.68);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.article-nav-card:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 231, 193, 0.34);
  background: rgba(14, 25, 28, 0.86);
}

.article-nav-card strong {
  display: block;
  margin-top: 6px;
  color: #e6f0ff;
  font-size: 1rem;
  line-height: 1.4;
}

.article-nav-label {
  color: rgba(120, 231, 193, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-nav-card-disabled {
  cursor: default;
  opacity: 0.68;
}

.article-nav-card-disabled:hover {
  transform: none;
  border-color: rgba(123, 177, 255, 0.22);
  background: rgba(10, 17, 28, 0.68);
}

.reading-card-premium h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.44rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.reading-card-premium h3 {
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.reading-card-premium p,
.reading-card-premium li {
  color: #deebff;
  font-size: 1.11rem;
  line-height: 1.9;
}

.reading-card-premium p + p {
  margin-top: 1em;
}

.reading-card-premium ul {
  padding-left: 22px;
}

.reading-back {
  margin-top: 16px;
}

.reading-back a {
  color: #cfe0ff;
  text-decoration: none;
}

.reading-back a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; }
}

@media (max-width: 640px) {
  .section { padding-top: 42px; padding-bottom: 42px; }
  .nav {
    padding: 10px 12px;
    align-items: flex-start;
    gap: 10px;
  }
  .brand {
    font-size: 0.88rem;
    line-height: 1.2;
  }
  .nav-actions {
    gap: 8px;
    justify-content: flex-end;
  }
  .nav-actions .btn {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
  }
  .hero {
    gap: 24px;
    padding-top: 44px;
  }
  .eyebrow {
    margin-top: 0;
    margin-bottom: 6px;
  }
  .logo {
    width: min(180px, 44vw);
    margin: 0 0 12px;
  }
  .hero h1 {
    margin: 4px 0 12px;
  }
  .lead {
    font-size: 1rem;
    line-height: 1.66;
  }
  .cta-row .btn { width: 100%; text-align: center; }
  .reading-premium { padding-top: 46px; }
  .reading-card-premium { padding: 28px 22px 26px; border-radius: 20px; }
  .article-title { max-width: none; font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .article-dek { font-size: 1.04rem; }
  .article-meta-premium { gap: 8px; font-size: 0.75rem; }
  .article-share { align-items: stretch; }
  .share-btn { width: 100%; }
  .article-pagination { grid-template-columns: 1fr; }
  .image-lightbox { padding: 14px; }
  .image-lightbox-img { border-radius: 16px; max-height: calc(100vh - 40px); }
}
