/* ============================================================
   ВЫШЕ FM — Стили
   Концепция: sacred soft — тёплый кремовый фон, глубокий синий,
   золотые акценты, элегантная типографика
   ============================================================ */

:root {
  /* Цвета */
  --bg: #f7f3ec;
  --bg-2: #efe7d8;
  --bg-3: #e8dcc6;
  --paper: #fbf8f2;
  --ink: #0e2540;
  --ink-2: #1a3a5f;
  --ink-soft: #4a5b75;
  --muted: #8a8473;
  --line: rgba(14, 37, 64, 0.12);
  --line-2: rgba(14, 37, 64, 0.06);

  --blue: #1d4d8c;
  --blue-deep: #0e2540;
  --blue-light: #4a82c4;
  --gold: #c79a3a;
  --gold-light: #e6c97a;
  --gold-deep: #9a7424;

  --accent: var(--gold);
  --shadow-sm: 0 2px 8px rgba(14, 37, 64, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 37, 64, 0.08);
  --shadow-lg: 0 30px 60px rgba(14, 37, 64, 0.15);

  /* Шрифты */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Размеры */
  --topbar-h: 78px;
  --container: 1240px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--topbar-h);
  position: relative;
}

/* Декоративный фон-зерно */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 0 0.2 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   ВЕРХНЯЯ ПАНЕЛЬ С ПЛЕЕРОМ
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.topbar-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(14, 37, 64, 0.15);
  border: 2px solid var(--paper);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 2px;
}

/* Плеер */
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 100px;
  min-width: 0;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}

.play-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 16px rgba(29, 77, 140, 0.35);
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(29, 77, 140, 0.45);
}

.play-btn svg {
  width: 18px;
  height: 18px;
}

.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }

.play-btn.playing::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulse 1.8s ease-out infinite;
}

/* Состояние загрузки */
.play-btn.loading .icon-play,
.play-btn.loading .icon-pause { display: none; }
.play-btn.loading .icon-loading { display: block; animation: spin 1s linear infinite; }
.play-btn:not(.loading) .icon-loading { display: none; }
.play-btn.loading {
  opacity: 0.8;
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c44;
  box-shadow: 0 0 0 0 rgba(204, 68, 68, 0.6);
  animation: live 1.5s infinite;
}

.play-btn.playing ~ .player-info .live-dot {
  background: #2a9d52;
  animation: live 1.5s infinite;
}

@keyframes live {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 6px transparent; opacity: 0.6; }
}

.player-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.player-artist {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vol-icon {
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: none;
}

/* Кнопки топ-бара */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 37, 64, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: white;
  box-shadow: 0 6px 18px rgba(199, 154, 58, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(199, 154, 58, 0.5);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-bg::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(199, 154, 58, 0.18), transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-bg::after {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29, 77, 140, 0.13), transparent 70%);
  bottom: -200px;
  left: -150px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  background: rgba(199, 154, 58, 0.08);
}

.hero-eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 154, 58, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 6px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0.5;
}

.hero-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 12px;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
}

.hero-slogan-ref {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-left: 26px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 520 / 590;
  max-width: 440px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 110%;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.35;
  animation: spin-slow 60s linear infinite;
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  border: 1px dashed var(--blue);
  border-radius: 50%;
  opacity: 0.2;
  animation: spin-slow 90s linear infinite reverse;
  pointer-events: none;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero-logo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(14, 37, 64, 0.18));
}

.hero-badge {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.hero-badge-top {
  top: 30px;
  right: -20px;
  animation: floaty 4s ease-in-out infinite;
}
.hero-badge-bot {
  bottom: 50px;
  left: -30px;
  animation: floaty 5s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a9d52;
  box-shadow: 0 0 0 3px rgba(42, 157, 82, 0.2);
}

/* ============================================================
   SECTIONS GENERIC
   ============================================================ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  margin-bottom: 24px;
  position: relative;
  padding-left: 40px;
}

.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 28px;
}

.section-title em {
  font-style: italic;
  color: var(--blue);
}

.section-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 700px;
  margin-bottom: 50px;
}

.section-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 680px;
  white-space: pre-line;
}

/* About */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--paper) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(199, 154, 58, 0.2), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.about-image-inner {
  width: 65%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.06) 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05) 1px, transparent 2px);
  background-size: 90px 90px, 130px 130px, 170px 170px;
  pointer-events: none;
}

/* Vision */
.vision {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(199, 154, 58, 0.15), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(74, 130, 196, 0.18), transparent 50%);
  pointer-events: none;
}

.vision .section-eyebrow {
  color: var(--gold-light);
}

.vision .section-title {
  color: var(--paper);
}

.vision .section-title em {
  color: var(--gold-light);
}

.vision .section-lead {
  color: rgba(247, 243, 236, 0.85);
}

.vision .section-text {
  color: rgba(247, 243, 236, 0.7);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.vision-quote {
  position: relative;
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}

.vision-quote-mark {
  position: absolute;
  top: -20px;
  left: 30px;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.9;
}

.vision-quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
  color: var(--paper);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.vision-quote-author {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  font-weight: 600;
}

/* Goals */
.goals {
  background: var(--paper);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.goal-card {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.goal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.goal-card:hover::before {
  transform: scaleX(1);
}

.goal-icon {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.goal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.goal-text {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 15px;
}

/* Strategy */
.strategy {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
}

.strategy-steps {
  margin-top: 70px;
  display: grid;
  gap: 4px;
}

.strategy-step {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 36px 40px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
}

.strategy-step:hover {
  border-color: var(--gold);
  transform: translateX(8px);
}

.strategy-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.strategy-content h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.strategy-content p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 600px;
}

.strategy-arrow {
  font-size: 28px;
  color: var(--line);
  transition: color 0.3s, transform 0.3s;
}

.strategy-step:hover .strategy-arrow {
  color: var(--gold);
  transform: translateX(8px);
}

/* Schedule */
.schedule {
  background: var(--paper);
}

.schedule-tabs {
  display: flex;
  gap: 6px;
  margin-top: 50px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.schedule-tab {
  padding: 12px 22px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  transition: all 0.2s;
  position: relative;
  border: 1px solid transparent;
}

.schedule-tab:hover {
  color: var(--ink);
}

.schedule-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.schedule-list {
  display: grid;
  gap: 2px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
}

.schedule-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 22px 32px;
  background: var(--paper);
  transition: background 0.2s;
}

.schedule-item:hover {
  background: var(--bg-2);
}

.schedule-item.current {
  background: linear-gradient(90deg, rgba(199, 154, 58, 0.08), transparent);
  border-left: 3px solid var(--gold);
}

.schedule-empty {
  padding: 60px 32px;
  text-align: center;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}

.schedule-time {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
}

.schedule-info h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.schedule-info span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.schedule-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(42, 157, 82, 0.1);
  color: #2a7d42;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.schedule-now::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a9d52;
  animation: live 1.5s infinite;
}

/* CTA */
.cta {
  padding: 120px 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(199, 154, 58, 0.25), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(29, 77, 140, 0.35), transparent 50%);
}

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

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.cta-title em {
  font-style: italic;
  color: var(--gold-light);
}

.cta-text {
  font-size: 18px;
  color: rgba(247, 243, 236, 0.75);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: var(--blue-deep);
  color: rgba(247, 243, 236, 0.75);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--paper);
}

.footer-about {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(247, 243, 236, 0.65);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(247, 243, 236, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   АДМИН ПАНЕЛЬ
   ============================================================ */
.admin-body {
  background: #f4f5f7;
  padding-top: 0;
  font-family: var(--font-body);
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--blue-deep);
  color: var(--paper);
  padding: 30px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
}

.admin-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.admin-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.admin-brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  display: block;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(247, 243, 236, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--paper);
}

.admin-nav a.active {
  background: var(--gold);
  color: var(--blue-deep);
  font-weight: 600;
}

.admin-logout {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  color: rgba(247, 243, 236, 0.7);
  display: block;
  transition: all 0.2s;
}

.admin-logout:hover {
  background: rgba(204, 68, 68, 0.2);
  color: white;
  border-color: rgba(204, 68, 68, 0.5);
}

.admin-main {
  padding: 40px 50px;
  background: #f4f5f7;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--ink);
}

.admin-header p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 4px;
}

.admin-card {
  background: white;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.admin-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: all 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(29, 77, 140, 0.1);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.6;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-save {
  background: var(--blue);
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-save:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.btn-danger {
  background: #c44;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
}

.btn-danger:hover { background: #a33; }

.btn-add {
  background: var(--gold);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.btn-add:hover { background: var(--gold-deep); }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid;
}
.alert-success {
  background: #dcfce7;
  color: #14532d;
  border-color: #86efac;
}
.alert-error {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #fca5a5;
}

/* Список goals/strategy в админке */
.item-block {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  position: relative;
}

.item-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.item-block-num {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-deep);
  font-weight: 600;
}

/* Login page */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(199, 154, 58, 0.2), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(29, 77, 140, 0.25), transparent 50%),
    var(--blue-deep);
  padding: 24px;
}

.login-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 50px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  text-align: center;
}

.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 24px;
  border: 3px solid var(--gold);
  object-fit: cover;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.login-card .sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 36px;
}

.login-card .field {
  text-align: left;
}

.login-card .btn-save {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-soft);
}

.back-link:hover { color: var(--blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-visual { margin: 0 auto; max-width: 360px; }
  .goals-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .admin-shell { grid-template-columns: 220px 1fr; }
  .admin-main { padding: 30px; }
}

@media (max-width: 820px) {
  :root { --topbar-h: 130px; }

  .topbar-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand { order: 1; }
  .topbar-actions { order: 2; }
  .player {
    order: 3;
    grid-column: 1 / -1;
    max-width: none;
    padding: 6px 14px 6px 6px;
  }

  .player-volume { display: none; }
  .brand-sub { display: none; }
  .brand-name { font-size: 22px; }
  .brand-logo { width: 42px; height: 42px; }

  .section { padding: 70px 0; }
  .hero { padding: 50px 0 80px; }
  .container { padding: 0 20px; }

  .strategy-step {
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 24px;
  }
  .strategy-step:hover { transform: none; }
  .strategy-arrow { display: none; }
  .strategy-num { font-size: 44px; }
  .strategy-content h3 { font-size: 22px; }

  .hero-badge-top { right: 10px; top: 10px; font-size: 11px; padding: 8px 14px; }
  .hero-badge-bot { left: 10px; bottom: 30px; font-size: 11px; padding: 8px 14px; }

  .schedule-item {
    grid-template-columns: 80px 1fr;
    padding: 18px 20px;
    gap: 16px;
  }
  .schedule-time { font-size: 20px; }
  .schedule-info h4 { font-size: 18px; }
  .schedule-now { grid-column: 2; justify-self: start; margin-top: 6px; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: relative;
    height: auto;
    padding: 20px;
  }
  .admin-nav {
    grid-auto-flow: column;
    overflow-x: auto;
  }
  .admin-nav a { white-space: nowrap; }
  .admin-logout { position: relative; bottom: auto; left: auto; right: auto; margin-top: 20px; }
  .admin-main { padding: 24px 20px; }

  .field-row { grid-template-columns: 1fr; }

  .btn span.btn-label { display: none; }
}

/* Анимации появления при скролле */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   АДМИН: ДАШБОРД И ВСПОМОГАТЕЛЬНЫЕ ЭЛЕМЕНТЫ
   ============================================================ */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.stat-value-sm {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

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

.quick-card {
  display: block;
  padding: 22px 22px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}

.quick-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.quick-icon {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
}

.quick-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.quick-sub {
  font-size: 13px;
  color: var(--ink-soft);
}

.info-grid {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.info-row {
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  border-left: 3px solid var(--blue);
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 4px;
}

.info-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
}

@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 28px; }
  .quick-grid { grid-template-columns: 1fr; }
}

/* ============ Новости — таблица источников ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead th {
  text-align: left;
  padding: 10px 12px;
  background: #f9fafb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a5b75;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
}
.data-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.data-table tbody tr:hover {
  background: #fafbfd;
}

.type-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  background: #f3f4f6;
  color: #4a5b75;
  white-space: nowrap;
}
.type-pill-website  { background: #dbeafe; color: #1e40af; }
.type-pill-telegram { background: #cffafe; color: #155e75; }
.type-pill-vk       { background: #e0e7ff; color: #3730a3; }
.type-pill-ok       { background: #fef3c7; color: #92400e; }
.type-pill-twitter  { background: #f5f5f5; color: #1f2937; }
.type-pill-facebook { background: #dbeafe; color: #1e3a8a; }

.src-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.src-toggle:hover { border-color: #0e2540; }

/* Сетка общих настроек */
.news-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.news-settings-col .field:not(:last-child) { margin-bottom: 14px; }

@media (max-width: 820px) {
  .news-settings-grid { grid-template-columns: 1fr; }
}

/* Список собранных новостей */
.news-row {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  align-items: flex-start;
}
@media (max-width: 600px) {
  .news-row { flex-direction: column; }
  .news-row > img,
  .news-row > div:first-child { width: 100% !important; height: auto !important; max-height: 200px; }
}

/* Расписание — пилюли источника */
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
  margin-right: 8px;
}
.source-pill.active {
  background: #0e2540;
  color: white;
  border-color: #0e2540;
}

/* Алерты типа warn */
.alert.alert-warn {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d;
}

/* Подменю в админ-сайдбаре */
.admin-nav-submenu {
  display: flex;
  flex-direction: column;
  margin-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 6px;
}
.admin-nav-sub {
  font-size: 13px !important;
  opacity: 0.7;
  padding: 6px 8px !important;
}
.admin-nav-sub:hover, .admin-nav-sub.active {
  opacity: 1;
}

/* Карточки выбора источника расписания */
.schedule-source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 6px;
}
.schedule-source-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.schedule-source-card:hover {
  border-color: #4a5b75;
  background: #fafbfd;
}
.schedule-source-card.active {
  border-color: #0e2540;
  background: #f5f8fc;
  box-shadow: 0 0 0 1px #0e2540 inset;
}
.schedule-source-card input[type="radio"] {
  margin: 0;
  flex-shrink: 0;
}
.schedule-source-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.schedule-source-title {
  font-weight: 700;
  font-size: 15px;
  color: #0e2540;
  margin-bottom: 2px;
}
.schedule-source-desc {
  font-size: 12px;
  color: #4a5b75;
  line-height: 1.4;
}

/* Информационная сетка */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  align-items: center;
}
.info-row .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a5b75;
  font-weight: 700;
  margin: 0;
}
.info-row .info-value {
  font-size: 13px;
  color: #0e2540;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  word-break: break-all;
}

@media (max-width: 700px) {
  .schedule-source-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============ Новости — выровненные общие настройки ============ */
.news-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}
.news-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.news-field-inline {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.news-field-label {
  display: inline-block;
  min-width: 180px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a5b75;
  text-align: left;
}
.news-field-input {
  width: 120px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}
.news-field-value {
  font-size: 13px;
  color: #0e2540;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.news-field-checkbox,
.news-field-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #0e2540;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.news-field-checkbox input,
.news-field-radio input {
  margin: 0;
  flex-shrink: 0;
}
.news-field-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
}

@media (max-width: 600px) {
  .news-field-inline { flex-direction: column; align-items: flex-start; gap: 6px; }
  .news-field-label { min-width: 0; }
}

/* ============ Плеер: обложка + спектр + эквалайзер ============ */
.player-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  display: none; /* показывается через JS только если есть обложка */
  align-items: center;
  justify-content: center;
}
.player-cover.has-image { display: flex; }
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-viz {
  width: 120px;
  height: 32px;
  display: none;        /* появляется когда плеер воспроизводит */
  align-self: center;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
}
.player-viz.active { display: block; }

@media (max-width: 900px) {
  .player-viz { display: none !important; }
  .player-cover { width: 36px; height: 36px; }
}

.eq-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.eq-btn:hover { background: rgba(255,255,255,0.08); }
.eq-btn[aria-expanded="true"] {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}
.eq-btn svg { width: 18px; height: 18px; }

.eq-panel {
  position: absolute;
  top: 100%;
  right: 16px;
  margin-top: 8px;
  background: #0e2540;
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  z-index: 50;
  min-width: 320px;
  max-width: calc(100vw - 32px);
}
.eq-panel[hidden] { display: none; }
.eq-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.eq-preset-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-right: 4px;
}
.eq-preset {
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid transparent;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.eq-preset:hover { background: rgba(255,255,255,0.15); }
.eq-preset.active {
  background: #d4a017;
  color: #0e2540;
  font-weight: 500;
}
.eq-sliders {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.eq-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.eq-slider input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 90px;
  width: 4px;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
}
.eq-slider .eq-freq {
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  opacity: 0.85;
}
.eq-slider .eq-gain {
  font-size: 10px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

/* ============ Подвкладки (subtabs) ============ */
.subtabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 4px;
}
.subtab {
  padding: 10px 16px;
  font-size: 13px;
  color: #4a5b75;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  position: relative;
  bottom: -1px;
  transition: all 0.15s;
}
.subtab:hover {
  color: #0e2540;
  background: #fafbfd;
}
.subtab.active {
  color: #0e2540;
  background: #fff;
  border-color: #e5e7eb;
  font-weight: 500;
}
.subtab-badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  margin-left: 6px;
  font-size: 11px;
  background: #f3f4f6;
  color: #4a5b75;
  border-radius: 9px;
  text-align: center;
}
.subtab.active .subtab-badge {
  background: #0e2540;
  color: #fff;
}

/* ============ WYSIWYG-редактор (наставление) ============ */
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  align-items: center;
}
.wysiwyg-toolbar button {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #0e2540;
  transition: all 0.1s;
}
.wysiwyg-toolbar button:hover {
  background: #0e2540;
  color: #fff;
  border-color: #0e2540;
}
.wysiwyg-sep {
  width: 1px;
  height: 22px;
  background: #d1d5db;
  margin: 0 4px;
}
.wysiwyg-editor {
  min-height: 280px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 0 0 8px 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  outline: none;
}
.wysiwyg-editor:focus {
  border-color: #0e2540;
  box-shadow: 0 0 0 3px rgba(14, 37, 64, 0.1);
}
.wysiwyg-editor h2, .wysiwyg-editor h3 {
  margin: 1em 0 0.5em;
  font-weight: 500;
}
.wysiwyg-editor blockquote {
  border-left: 3px solid #d4a017;
  margin: 0.8em 0;
  padding: 0.4em 0 0.4em 16px;
  color: #4a5b75;
  font-style: italic;
}
.wysiwyg-editor img {
  max-width: 100%;
  height: auto;
}
.wysiwyg-editor a {
  color: #0e2540;
  text-decoration: underline;
}

/* ============ Медиа-список ============ */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.media-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.media-icon {
  font-size: 24px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.media-info {
  flex: 1;
  min-width: 0;
}
.media-title {
  font-weight: 500;
  color: #0e2540;
  text-decoration: none;
  display: block;
  word-break: break-all;
}
.media-title:hover { text-decoration: underline; }
.media-meta {
  font-size: 11px;
  color: #8a8473;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: inherit;
  text-decoration: none;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.15s;
}
.footer-social a:hover { background: rgba(212,160,23,0.4); }

/* ============ Группы токенов парсеров (вкладка Общие настройки) ============ */
.parser-token-group {
  margin: 12px 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafbfd;
}
.parser-token-group > summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: #0e2540;
  user-select: none;
  list-style: none;
}
.parser-token-group > summary::-webkit-details-marker { display: none; }
.parser-token-group > summary::before {
  content: '▸';
  display: inline-block;
  width: 14px;
  transition: transform 0.15s;
  color: #4a5b75;
}
.parser-token-group[open] > summary::before { transform: rotate(90deg); }
.parser-token-body {
  padding: 0 14px 14px;
  border-top: 1px solid #e5e7eb;
}
.parser-token-body .field small {
  display: block;
  margin-top: 4px;
  color: #8a8473;
  font-size: 12px;
  line-height: 1.5;
}

/* ============ Календарь событий ============ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.cal-cell {
  background: #fff;
  min-height: 100px;
  padding: 6px;
  position: relative;
  font-size: 12px;
}
.cal-cell.cal-head {
  background: #f9fafb;
  min-height: auto;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #4a5b75;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cal-cell.cal-empty { background: #fafbfd; min-height: 60px; }
.cal-cell.cal-today { background: #fff7e8; }
.cal-daynum {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cal-daynum a {
  color: #0e2540;
  text-decoration: none;
}
.cal-daynum a:hover {
  background: #0e2540;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
}
.cal-event {
  display: block;
  background: #0e2540;
  color: #fff;
  text-decoration: none;
  padding: 3px 6px;
  margin-bottom: 2px;
  border-radius: 4px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-event:hover { background: #1a3a5f; }
.cal-event.has-chain { background: #4a5b75; }
.cal-time {
  font-weight: 600;
  margin-right: 4px;
  opacity: 0.85;
}
.cal-chain {
  float: right;
  font-size: 10px;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .calendar-grid { gap: 0; }
  .cal-cell { min-height: 60px; padding: 4px; }
  .cal-event { font-size: 9px; padding: 2px 4px; }
}

/* ============ Winamp-стиль плеера (СВЕТЛАЯ ТЕМА) ============ */
.winamp-player {
  background: linear-gradient(180deg, #fafbfd 0%, #e8ebf0 100%);
  border: 1px solid #c8ccd4;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.9),
    inset -1px -1px 0 rgba(180,184,192,0.4),
    0 2px 8px rgba(14, 37, 64, 0.08);
  gap: 10px;
  align-items: center;
  min-height: 60px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  flex-wrap: nowrap;
  min-width: 0;
}

.winamp-play {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #fff 0%, #e6e9ee 100%);
  border: 1px solid #b8bdc6;
  border-radius: 4px;
  color: #b8860b;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.8),
    inset -1px -1px 0 rgba(120,128,140,0.3);
  cursor: pointer;
}
.winamp-play:hover {
  background: linear-gradient(180deg, #fff 0%, #f3f5f8 100%);
  color: #d4a017;
}
.winamp-play:active {
  box-shadow:
    inset 1px 1px 0 rgba(120,128,140,0.3),
    inset -1px -1px 0 rgba(255,255,255,0.4);
}
.winamp-play svg { width: 18px; height: 18px; }

/* LCD-дисплей: бегущая строка СВЕРХУ, анализатор СНИЗУ */
.winamp-display {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f4f6e8; /* классический LCD беж-зелёный */
  border: 1px solid #b8bdc6;
  border-radius: 4px;
  padding: 6px 10px;
  height: 48px;
  box-shadow:
    inset 0 1px 2px rgba(120,128,140,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.6);
  overflow: hidden; /* ВАЖНО — обрезает бегущую строку */
}

/* Бегущая строка — ВЫСОТА УВЕЛИЧЕНА */
.winamp-marquee {
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;            /* было 11px */
  color: #2a6b3a;              /* классический LCD-зелёный для светлой темы */
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  letter-spacing: 0.03em;
  height: 22px;                /* было 14px */
  line-height: 22px;           /* было 14px */
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.winamp-marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: winamp-scroll 30s linear infinite;
}
.winamp-marquee:hover .winamp-marquee-text {
  animation-play-state: paused;
}
@keyframes winamp-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.winamp-viz {
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  min-height: 16px;
  display: block !important;
  background: transparent;
}

.winamp-eq {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #fff 0%, #e6e9ee 100%);
  border: 1px solid #b8bdc6;
  border-radius: 4px;
  color: #4a5b75;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.8),
    inset -1px -1px 0 rgba(120,128,140,0.3);
  cursor: pointer;
}
.winamp-eq svg { width: 18px; height: 18px; }
.winamp-eq[aria-expanded="true"] {
  background: #d4a017;
  color: #fff;
}

.winamp-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a8473;
  flex-shrink: 0;
}
.winamp-vol .vol-icon { width: 18px; height: 18px; }
.winamp-vol .vol-slider {
  width: 80px;
  height: 4px;
  background: linear-gradient(180deg, #d8dce4 0%, #c4c9d1 100%);
  border: 1px solid #b8bdc6;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
}
.winamp-vol .vol-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 16px;
  background: linear-gradient(180deg, #fff 0%, #d8dce4 100%);
  border: 1px solid #8a8f99;
  border-radius: 2px;
  cursor: pointer;
}
.winamp-vol .vol-slider::-moz-range-thumb {
  width: 12px;
  height: 16px;
  background: linear-gradient(180deg, #fff 0%, #d8dce4 100%);
  border: 1px solid #8a8f99;
  border-radius: 2px;
  cursor: pointer;
}

/* ============ Винамп — мобильные правки ============ */
@media (max-width: 820px) {
  .winamp-player {
    min-height: 56px;
    gap: 6px;
    padding: 5px 8px;
  }
  .winamp-play { width: 38px; height: 38px; }
  .winamp-display { height: 44px; padding: 4px 8px; gap: 2px; }
  .winamp-marquee {
    font-size: 13px;
    height: 18px;
    line-height: 18px;
  }
  .winamp-eq { width: 34px; height: 34px; }
  .winamp-vol { display: none; }
}

@media (max-width: 480px) {
  .winamp-player { padding: 4px 6px; gap: 4px; }
  .winamp-play { width: 34px; height: 34px; }
  .winamp-eq { width: 32px; height: 32px; }
  .winamp-display { padding: 3px 6px; height: 42px; }
  .winamp-marquee { font-size: 12px; }
}
