:root {
  --red: #E8292A;
  --red-dark: #B51E1F;
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --text: #f0f0f8;
  --muted: #7a7a95;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

a { text-decoration: none; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: linear-gradient(to bottom, rgba(10,10,15,0.98) 0%, rgba(10,10,15,0) 100%);
  backdrop-filter: blur(2px);
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo span { color: var(--red); }

nav ul { display: flex; gap: 2rem; list-style: none; }

nav ul a {
  color: var(--muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover, nav ul a.active { color: var(--text); }

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

.btn-ghost {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  color: var(--text); padding: 8px 20px;
  border-radius: 6px; font-family: 'Manrope', sans-serif;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }

.btn-red {
  background: var(--red); border: none;
  color: #fff; padding: 8px 22px;
  border-radius: 6px; font-family: 'Manrope', sans-serif;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}

.btn-red:hover { background: var(--red-dark); }

.btn-big-red {
  background: var(--red); color: #fff;
  border: none; border-radius: 8px;
  padding: 15px 32px; font-family: 'Manrope', sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex; align-items: center; gap: 10px;
}

.btn-big-red:hover { background: var(--red-dark); }

.btn-big-ghost {
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  padding: 15px 32px; font-family: 'Manrope', sans-serif;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}

.btn-big-ghost:hover { background: rgba(255,255,255,0.1); }

/* PAGE HEADER (for inner pages) */
.page-head {
  padding: 140px 5vw 40px;
}

.page-head h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900; letter-spacing: -0.02em;
}

.page-head p { color: var(--muted); margin-top: 0.8rem; max-width: 560px; }

/* CATEGORIES */
.cats {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 0 5vw; margin-bottom: 40px;
}

.cat-pill {
  background: var(--bg3); border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted); padding: 8px 20px;
  border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--red); border-color: var(--red);
  color: #fff;
}

/* SEARCH BAR */
.search-bar {
  display: flex; align-items: center;
  background: var(--bg3); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 0 16px;
  margin: 0 5vw 32px; max-width: 480px;
}

.search-bar:focus-within { border-color: rgba(232,41,42,0.5); }

.search-bar input {
  background: none; border: none; outline: none;
  color: var(--text); font-family: 'Manrope', sans-serif;
  font-size: 0.9rem; padding: 12px 12px 12px 0;
  flex: 1;
}

.search-bar input::placeholder { color: var(--muted); }

/* SECTION */
.section { padding: 40px 5vw 80px; }

.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.02em;
}

.section-all {
  color: var(--red); font-size: 0.85rem;
  font-weight: 600; text-decoration: none;
  cursor: pointer; transition: opacity 0.2s;
}

.section-all:hover { opacity: 0.7; }

/* GRID */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.grid-card {
  border-radius: 10px; overflow: hidden;
  cursor: pointer; position: relative;
  transition: transform 0.2s;
  background: var(--bg3);
}

.grid-card:hover { transform: scale(1.04); }

.grid-card-poster {
  width: 100%; aspect-ratio: 2/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.grid-card-poster .glyph { opacity: 0.25; }

.grid-card-info { padding: 10px 12px 12px; }

.grid-card-title {
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 3px; line-height: 1.3;
}

.grid-card-meta {
  font-size: 0.72rem; color: var(--muted);
  display: flex; gap: 6px; align-items: center;
}

.dot { color: var(--muted); }

.new-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--red); color: #fff;
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.05em; z-index: 2;
}

.rating-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.7);
  border-radius: 4px; padding: 3px 7px;
  font-size: 0.7rem; font-weight: 700; color: #ffd700; z-index: 2;
}

/* PROMO BANNER */
.promo {
  margin: 0 5vw 80px;
  border-radius: 16px;
  background: linear-gradient(120deg, #1a0010 0%, #1a0505 40%, #0a0520 100%);
  border: 1px solid rgba(232,41,42,0.2);
  padding: 48px 5%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden;
}

.promo-tag {
  font-size: 0.75rem; font-weight: 700;
  color: var(--red); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.8rem;
}

.promo h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 1rem;
}

.promo p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 420px; }

.promo-price { text-align: center; flex-shrink: 0; }

.price-amount {
  font-family: 'Unbounded', sans-serif;
  font-size: 3.5rem; font-weight: 900;
  color: var(--text); line-height: 1;
}

.price-amount sup { font-size: 1.2rem; vertical-align: super; }
.price-period { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

.price-trial {
  background: rgba(232,41,42,0.12); border: 1px solid rgba(232,41,42,0.3);
  color: #f88; font-size: 0.8rem; font-weight: 600;
  padding: 4px 14px; border-radius: 100px;
  display: inline-block; margin-bottom: 1.2rem;
}

/* FEATURES */
.features {
  padding: 0 5vw 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feat-card {
  background: var(--bg3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 28px 24px;
}

.feat-icon {
  width: 44px; height: 44px;
  background: rgba(232,41,42,0.12);
  border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.3rem;
}

.feat-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  margin-bottom: 0.6rem; letter-spacing: -0.01em;
}

.feat-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; padding: 0 5vw 100px;
}

.price-card {
  background: var(--bg3); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 36px 28px;
  display: flex; flex-direction: column;
}

.price-card.featured {
  border-color: var(--red);
  background: linear-gradient(160deg, #1a0510 0%, var(--bg3) 60%);
  position: relative;
}

.price-card.featured::before {
  content: 'Популярный'; position: absolute; top: -12px; left: 28px;
  background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em;
}

.price-card h3 {
  font-family: 'Unbounded', sans-serif; font-size: 1.1rem; margin-bottom: 0.5rem;
}

.price-card .amount {
  font-family: 'Unbounded', sans-serif; font-size: 2.4rem; font-weight: 900;
  margin: 0.8rem 0;
}

.price-card .amount span { font-size: 1rem; color: var(--muted); font-weight: 500; }

.price-card ul { list-style: none; margin: 1.5rem 0; flex: 1; }

.price-card li {
  font-size: 0.85rem; color: var(--muted);
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 8px;
}

.price-card li::before { content: '✓'; color: var(--red); font-weight: 700; }

/* FOOTER */
footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 48px 5vw;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 2rem;
}

.footer-logo { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 1.2rem; }
.footer-logo span { color: var(--red); }

.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--muted); font-size: 0.8rem; width: 100%; }

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

@media (max-width: 900px) {
  nav ul { display: none; }
}
