/* BukovinaLife — home v1 (BBC-структура, буковинское золото, тёмная тема) */
:root {
  --bg: #0f0f14;
  --panel: #16161d;
  --card: #1b1b23;
  --line: #26262f;
  --gold: #d4a950;
  --gold-soft: rgba(212, 169, 80, 0.14);
  --text: #eceae4;
  --text-2: #b9b7bd;
  --muted: #8b8992;
  --tricolor: #002f9e, #fcd116, #d0021b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

/* ── шапка ── */
.pay-banner {
  background: var(--gold); color: #14120a; text-align: center;
  padding: 7px 12px; font-weight: 700; font-size: 13.5px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; }
.tricolor { display: inline-flex; gap: 3px; }
.tricolor i { width: 4px; height: 20px; border-radius: 1px; display: block; }
.tricolor i:nth-child(1) { background: #002f9e; }
.tricolor i:nth-child(2) { background: #fcd116; }
.tricolor i:nth-child(3) { background: #d0021b; }
.logo-text { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.logo-text em { color: var(--gold); font-style: normal; }
.nav-cats { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav-cats a {
  padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--text-2);
}
.nav-cats a:hover { color: var(--gold); background: var(--gold-soft); }
.nav-cats a.active { color: var(--gold); background: var(--gold-soft); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.search-box input {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; width: 170px; outline: none;
}
.search-box input:focus { border-color: var(--gold); }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a {
  font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 6px 8px; border-radius: 6px;
}
.lang-switch a.active { color: #14120a; background: var(--gold); }

/* ── тикер «Буковина — одна» ── */
.ticker {
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--panel);
}
.ticker-label {
  flex-shrink: 0; padding: 6px 14px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: #14120a; background: var(--gold);
}
.ticker-track {
  display: flex; gap: 34px; padding: 6px 0; white-space: nowrap;
  animation: tick 36s linear infinite; font-size: 13px; color: var(--text-2); font-weight: 600;
}
.ticker-track span::after { content: "·"; margin-left: 34px; color: var(--gold); }
.ticker-track span:last-child::after { content: ""; }
.ticker-gold { color: var(--gold); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ── hero ── */
.home-main { max-width: 1280px; margin: 0 auto; padding: 22px 20px 50px; }
.hero {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 430px;
  display: flex; align-items: flex-end;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  border: 1px solid var(--line);
  margin-bottom: 34px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04);
}
.hero-slide.active { opacity: 1; animation: kb 9s ease-out forwards; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.0); } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,14,0.02) 0%, rgba(10,10,14,0.48) 55%, rgba(10,10,14,0.86) 100%),
              linear-gradient(90deg, rgba(10,10,14,0.45) 0%, rgba(10,10,14,0.08) 55%);
}
.hero-grid {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px;
  padding: 26px 28px; align-items: end;
}
.hero-lead h1 {
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.5px; margin: 10px 0 12px; text-wrap: balance;
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
.hero-lead-text { color: #d9d7dd; font-size: 16.5px; max-width: 640px; }
.card-badge {
  display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,0.45); border: 1px solid var(--line); color: var(--text-2);
}
.card-badge.gold { background: var(--gold); color: #14120a; border-color: transparent; }
.hero-cta {
  display: inline-block; margin-top: 14px; font-weight: 800; color: var(--gold); font-size: 15px;
}
.hero-cta b { transition: margin-left 0.2s; }
.hero-lead:hover .hero-cta b { margin-left: 6px; }
.hero-meta { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-side-item {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px;
  background: rgba(16, 16, 22, 0.78); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 12px;
}
.hero-side-item:hover { border-color: var(--gold); }
.hero-side-item img { width: 86px; height: 58px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.hero-side-text h3 { font-size: 14.5px; line-height: 1.3; font-weight: 700; color: #eceae4; }
.side-kicker { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gold); }
.side-meta { font-size: 12px; color: var(--muted); }
.hero-dots { position: absolute; z-index: 2; right: 26px; top: 18px; display: flex; gap: 9px; }
.hero-dots i {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.35); cursor: pointer; display: block; transition: all 0.25s;
}
.hero-dots i:hover { background: rgba(255,255,255,0.75); }
.hero-dots i.on { background: var(--gold); border-color: var(--gold); transform: scale(1.3); box-shadow: 0 0 8px rgba(212,169,80,0.6); }

/* ── ленты категорий ── */
.rail { margin-bottom: 34px; }
.rail-head {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px;
  border-bottom: 2px solid var(--line); padding-bottom: 8px;
}
.rail-head h2 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.3px;
}
.rail-head h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 6px;
  background: var(--gold); border-radius: 2px;
}
.rail-more { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.rail-more:hover { color: var(--gold); }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 272px; gap: 16px;
  overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory;
}
.rail-track::-webkit-scrollbar { height: 8px; }
.rail-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.rail-track::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.rail-card {
  scroll-snap-align: start; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.rail-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.rail-img { aspect-ratio: 16/9; background: linear-gradient(135deg, #1f1f28, #16161d); }
.rail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-body { padding: 13px 15px 15px; }
.rail-body h3 { font-size: 15.5px; line-height: 1.32; font-weight: 700; }
.rail-meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: block; }

/* ── сабмит + футер ── */
.ok-banner {
  background: #1f3d2b; color: #9fe3b8; padding: 14px; border-radius: 10px;
  margin-bottom: 20px; text-align: center; font-weight: 700;
}
.submit-widget {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; margin-top: 10px;
}
.submit-widget h3 { margin-bottom: 14px; font-size: 18px; }
.submit-widget form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.submit-widget textarea { grid-column: 1 / -1; }
.submit-widget input, .submit-widget textarea {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: 14.5px; outline: none; font-family: inherit;
}
.submit-widget input:focus, .submit-widget textarea:focus { border-color: var(--gold); }
.submit-widget button {
  grid-column: 1 / -1; justify-self: start;
  background: var(--gold); color: #14120a; font-weight: 800; font-size: 15px;
  border: 0; border-radius: 10px; padding: 12px 26px; cursor: pointer;
}
.submit-widget button:hover { filter: brightness(1.08); }
footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: 20px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 30px 20px; text-align: center;
  color: var(--muted); font-size: 14px;
}
.footer-logo { display: flex; gap: 10px; justify-content: center; align-items: center; font-size: 18px; font-weight: 800; color: var(--text-2); margin-bottom: 8px; }
.footer-email { color: var(--gold); }

/* ── адаптив ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .nav-cats { order: 3; width: 100%; }
  .ticker-track { animation-duration: 26s; }
}
@media (max-width: 620px) {
  .header-tools { width: 100%; justify-content: space-between; }
  .search-box input { width: 130px; }
  .hero { min-height: 360px; }
  .rail-track { grid-auto-columns: 232px; }
  .submit-widget form { grid-template-columns: 1fr; }
}
