:root {
  --bg: #050506;
  --bg-soft: #111116;
  --panel: #18181f;
  --panel-light: #22222c;
  --text: #ffffff;
  --muted: #b8b8c7;
  --accent: #e5092f;
  --accent-dark: #9f061f;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header.translucent {
  background: rgba(5, 5, 6, 0.68);
}

.logo {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  color: var(--text);
  white-space: nowrap;
}

.logo img {
  height: 80px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  transition: color 180ms ease;
}

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

.search-form {
  justify-self: end;
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.search-form input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  padding: 12px 16px;
  min-width: 110px;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search-form button,
.register-link,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.search-form button {
  color: var(--text);
  background: var(--accent);
  padding: 12px 18px;
}

.search-form button:hover,
.primary-btn:hover,
.register-link:hover {
  background: #ff173e;
  transform: translateY(-1px);
}

.register-link {
  color: var(--text);
  background: var(--accent);
  padding: 12px 20px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.25rem;
}


.hero {
  position: relative;
  min-height: calc(86vh - var(--header-height));
  display: flex;
  align-items: flex-end;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 76px);
  background: linear-gradient(90deg, #08080b 0%, rgba(8, 8, 11, 0.75) 34%, rgba(8, 8, 11, 0.15) 100%), var(--hero-bg, url("https://picsum.photos/seed/crimson-horizon-backdrop/1600/900"));
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(transparent, var(--bg));
}

.hero-content,
.details-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-content {
  width: min(100%, 760px);
}

.hero-content {
  display: grid;
  align-content: start;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero.is-changing .hero-content {
  opacity: 0;
  transform: translateY(18px);
}

.hero-slider-controls {
  position: absolute;
  right: clamp(20px, 6vw, 76px);
  bottom: clamp(26px, 5vw, 58px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(229, 9, 47, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(150%);
}

.hero-slider-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  outline: none;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-slider-button span {
  display: block;
  margin-top: -4px;
  font-size: 1.95rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-slider-button:hover,
.hero-slider-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, #ff1747, var(--accent));
  box-shadow: 0 14px 34px rgba(229, 9, 47, 0.38), 0 0 0 4px rgba(229, 9, 47, 0.14);
  transform: translateY(-2px) scale(1.04);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 4px;
}

.hero-dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.34);
  opacity: 0.8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: width 220ms ease, transform 180ms ease, background 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
  transform: scale(1.18);
}

.hero-dot.active {
  width: 40px;
  background: rgba(229, 9, 47, 0.18);
  opacity: 1;
  transform: none;
  box-shadow: 0 0 0 1px rgba(229, 9, 47, 0.32), 0 0 20px rgba(229, 9, 47, 0.28);
}

.hero-dot.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff3d67, var(--accent));
}

.hero-slider-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 48px;
  padding-left: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.hero.has-single-slide .hero-slider-controls {
  display: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1,
.details-content h1,
.register-card h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.9vw, 5.35rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-meta,
.details-meta {
  color: #f1f1f6;
  font-weight: 800;
  margin: 16px 0 10px;
}

.hero-description,
.details-description {
  max-width: 640px;
  color: #e1e1ea;
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
  margin-bottom: 24px;
}

 

.hero-meta {
  min-height: var(--hero-meta-min-height, auto);
}

.hero-description {
  min-height: var(--hero-description-min-height, auto);
}

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

.primary-btn,
.secondary-btn {
  padding: 14px 24px;
  color: var(--text);
}

.primary-btn {
  background: var(--accent);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}



.page-intro {
  padding: clamp(42px, 7vw, 84px) clamp(20px, 5vw, 64px) 20px;
  background: radial-gradient(circle at top right, rgba(229, 9, 47, 0.22), transparent 32%), linear-gradient(180deg, #121217, var(--bg));
}

.page-intro p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.content-section {
  padding: 24px clamp(16px, 4vw, 56px) 28px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 220px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px 4px 24px;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.title-card {
  position: relative;
  min-height: 335px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.title-card:hover,
.title-card:focus-visible {
  transform: scale(1.045);
  border-color: rgba(229, 9, 47, 0.7);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
  outline: none;
}

.title-card img {
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
  background: #25252e;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 900;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 220ms ease;
}

.title-card:hover .card-overlay,
.title-card:focus-visible .card-overlay {
  opacity: 1;
}

.card-info {
  position: relative;
  z-index: 2;
  padding: 12px 13px 14px;
  background: linear-gradient(180deg, rgba(24, 24, 31, 0.92), var(--panel));
}

.card-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.2;
}

.card-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffd772;
  background: rgba(255, 215, 114, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}


.details-body {
  background: #020204;
}

.details-page {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 76px);
  background: linear-gradient(90deg, rgba(2, 2, 4, 0.96), rgba(2, 2, 4, 0.68), rgba(2, 2, 4, 0.25)), var(--details-bg, #050506);
  background-size: cover;
  background-position: center;
}

.details-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(229, 9, 47, 0.2), transparent 38%), linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.details-content h1 {
  max-width: 900px;
}

.details-description {
  color: #f3f3f8;
}


.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1050px, 96vw);
  background: #000;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: visible;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.68);
  font-size: 2rem;
  line-height: 1;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}

.modal-panel.has-watch-popup>.modal-close {
  display: none;
}

.modal video {
  width: 100%;
  max-height: 72vh;
  display: block;
  background: #000;
  border-radius: inherit;
}

.custom-video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.video-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.video-control-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.video-progress {
  flex: 1;
  accent-color: #fff;
  cursor: pointer;
}

#previewVideo::-webkit-media-controls-current-time-display,
#previewVideo::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

.watch-popup {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 4vw, 32px) max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.74);
}

.popup-card,
.register-card {
  width: min(470px, 100%);
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(34, 34, 44, 0.96), rgba(15, 15, 19, 0.96));
  box-shadow: var(--shadow);
}

.popup-card {
  position: relative;
  margin: auto 0;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.55);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.popup-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}


.register-page {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 44px 20px;
  background: radial-gradient(circle at 15% 15%, rgba(229, 9, 47, 0.3), transparent 28%), linear-gradient(135deg, #08080b, #17171f 55%, #050506);
}

.register-card h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin-bottom: 12px;
}

.safe-note {
  color: var(--muted);
  margin: 0 0 22px;
}

.registration-form {
  display: grid;
  gap: 14px;
}

.registration-form.compact {
  gap: 10px;
}

.registration-form label {
  display: grid;
  gap: 7px;
  color: #e9e9ef;
  font-weight: 800;
  font-size: 0.92rem;
}

.registration-form input,
.registration-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.registration-form input:focus,
.registration-form select:focus {
  border-color: rgba(229, 9, 47, 0.75);
  box-shadow: 0 0 0 4px rgba(229, 9, 47, 0.14);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #ff9a9a;
  font-weight: 800;
}

.form-message.success {
  color: #7bf0b2;
}

.registration-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #f6f6fb;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.registration-loading[hidden] {
  display: none;
}

.registration-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: registration-spin 0.8s linear infinite;
}

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

.registration-price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #f6f6fb;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.registration-result {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(123, 240, 178, 0.3);
  border-radius: 18px;
  background: rgba(123, 240, 178, 0.08);
}

.registration-result[hidden],
.registration-form[hidden] {
  display: none;
}

.registration-result p {
  margin: 0;
  font-weight: 800;
}

.result-thanks {
  color: #7bf0b2;
}

.country-message {
  color: #ffdf8b;
}



.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 86px) clamp(18px, 4vw, 56px) 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.2) 0%, rgba(5, 5, 6, 0.92) 24%, #030304 100%),
    radial-gradient(circle at 18% 18%, rgba(229, 9, 47, 0.28), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.08), transparent 26%),
    #050506;
}

.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(229, 9, 47, 0.16), transparent 28%, transparent 72%, rgba(229, 9, 47, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 110px);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 72%, transparent);
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(1, minmax(130px, 0.55fr)) minmax(260px, 0.95fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  margin-bottom: 50px;
}

.footer-brand-panel {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.footer-logo {
  width: fit-content;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.footer-brand-panel p,
.footer-newsletter p,
.footer-bottom p,
.footer-newsletter small {
  margin: 0;
  color: var(--muted);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.footer-cta,
.footer-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.footer-cta {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(229, 9, 47, 0.22);
}

.footer-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.footer-cta:hover,
.footer-ghost:hover {
  transform: translateY(-2px);
}

.footer-cta:hover {
  background: #ff173e;
}

.footer-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.footer-column,
.footer-newsletter {
  display: grid;
  gap: 12px;
}

.footer-column h3,
.footer-newsletter h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: var(--muted);
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-column a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.footer-newsletter {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.footer-form {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.footer-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 12px 14px;
  color: var(--text);
  background: transparent;
}

.footer-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.footer-form button {
  border: 0;
  padding: 12px 18px;
  color: var(--text);
  background: var(--accent);
  font-weight: 900;
}

.footer-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(34px, 5vw, 58px) 0 28px;
}

.footer-stats div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.footer-stats strong {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.footer-stats span {
  color: var(--muted);
  font-weight: 800;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}


@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-panel,
  .footer-newsletter {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
  }

  .site-header {
    position: relative;
    grid-template-columns: auto auto 1fr auto;
    gap: 14px;
    height: auto;
    min-height: var(--header-height);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(5, 5, 6, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .search-form {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    order: 5;
  }

  .register-link {
    justify-self: end;
  }

  .hero {
    min-height: 0;
  }

  .hero-slider-controls {
    right: clamp(18px, 4vw, 56px);
    bottom: 24px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 34px;
    padding-block: 42px 22px;
  }

  .footer-main,
  .footer-stats {
    grid-template-columns: 1fr;
  }

  .footer-newsletter {
    padding: 18px;
  }

  .footer-form {
    border-radius: 18px;
    flex-direction: column;
  }

  .footer-form button {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-actions {
    flex-direction: column;
  }

  .footer-cta,
  .footer-ghost {
    width: 100%;
  }

  :root {
    --header-height: 70px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .logo {
    font-size: 1.55rem;
  }

  .menu-toggle {
    grid-column: 2;
  }

  .register-link {
    grid-column: 3;
    padding: 10px 13px;
    font-size: 0.9rem;
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form button {
    padding-inline: 12px;
  }

  .hero {
    align-items: end;
    min-height: 0;
    padding-bottom: 88px;
  }

  .hero-slider-controls {
    left: 18px;
    right: 18px;
    bottom: 22px;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
  }

  .hero-slider-button {
    width: 38px;
    height: 38px;
  }

  .hero-slider-button span {
    font-size: 1.6rem;
  }

  .hero-dots {
    flex: 1;
    justify-content: center;
  }

  .hero-slider-count {
    display: none;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1,
  .page-intro h1,
  .details-content h1 {
    letter-spacing: -0.06em;
  }

  .card-row {
    grid-auto-columns: minmax(155px, 175px);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .title-card {
    min-height: 292px;
    border-radius: 14px;
  }

  .title-card img {
    height: 215px;
  }

  .card-info {
    padding: 10px;
  }

  .card-info h3 {
    font-size: 0.92rem;
  }

  .card-info p,
  .rating-pill {
    font-size: 0.78rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .popup-card,
  .register-card {
    border-radius: 18px;
  }

  .watch-popup {
    padding: 14px;
    padding: max(14px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
  }

  .popup-card {
    width: min(470px, calc(100vw - 28px));
    margin: 0 auto;
    padding: 22px 18px 24px;
  }

  .popup-card h2 {
    padding-right: 42px;
  }

  .popup-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
  }

  .modal {
    padding: 10px;
  }
}

/* Search title suggestions from js/data.js */
.search-form.has-suggestions {
  position: relative;
  overflow: visible;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 12, 16, 0.98);
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
  text-align: left;
  overflow: hidden;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(229, 9, 47, 0.22);
}

.suggestion-title {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .suggestion-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

.legal-content {
  width: 100%;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(215, 224, 234, .8);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(4, 24, 44, .08);
}

.legal-content header {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e6edf5;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content p,
.legal-content ul,
.legal-content ol,
.legal-content address {
  margin-top: 0;
}

.legal-content h1 {
  margin-bottom: 14px;
  color: var(--dark);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.legal-content h2 {
  margin: 34px 0 12px;
  color: var(--dark);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.legal-content h3 {
  margin: 24px 0 10px;
  color: var(--dark);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.25;
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.72;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.35em;
  margin-bottom: 20px;
}

.legal-content li {
  margin-bottom: 9px;
}

.legal-content strong {
  color: var(--dark);
  font-weight: 800;
}

.legal-content a,
.terms-row a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.legal-content a:hover,
.terms-row a:hover {
  text-decoration: underline;
}

.legal-content section {
  scroll-margin-top: 24px;
}

.legal-content address {
  font-style: normal;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dfe8f2;
}

.legal-content address p:last-child,
.legal-content section:last-child p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .legal-site-header {
    min-height: 68px;
    padding: 15px 18px;
  }

  .legal-logo img {
    width: 34px;
    height: 34px;
  }

  .legal-main {
    width: min(100% - 24px, 1040px);
    padding: 24px 0 48px;
  }

  .legal-content {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .legal-content header {
    padding-bottom: 16px;
    margin-bottom: 22px;
  }
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}