:root {
  --bg: #0b0a12;
  --bg-2: #13111d;
  --ink: #f4f1fa;
  --ink-2: #b9b3c9;
  --ink-3: #7d7690;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(22, 19, 34, .62);
  --amber: #ffb347;
  --coral: #ff5e62;
  --violet: #b44cff;
  --ok: #4ade80;
  --bad: #f87171;
  --grad: linear-gradient(115deg, #ff3b3b, #ff4fa3);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "locl" 0;
}
h1, h2, .brand, .num, .stats strong { font-feature-settings: "locl" 1; }
a { color: inherit; }
h1, h2, h3 { font-family: "Unbounded", "Manrope", sans-serif; letter-spacing: -.02em; line-height: 1.1; margin: 0; }

/* ---------- постерна стена ---------- */
.wall {
  position: fixed; inset: -10vh -10vw; z-index: -2; overflow: hidden;
  transform: rotate(-8deg) scale(1.15);
}
.wall-track {
  display: grid;
  grid-template-columns: repeat(var(--cols, 10), 1fr);
  gap: 14px;
  animation: drift 160s linear infinite;
}
.wall-track img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px;
  opacity: 0; transition: opacity 1.2s ease;
  background: var(--bg-2);
}
.wall-track img.on { opacity: .9; }
@keyframes drift { to { transform: translateY(-50%); } }

.veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(255, 59, 59, .16), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(255, 79, 163, .13), transparent 60%),
    linear-gradient(90deg, rgba(11, 10, 18, .94) 0%, rgba(11, 10, 18, .82) 40%, rgba(11, 10, 18, .5) 100%),
    linear-gradient(180deg, rgba(11, 10, 18, .2) 0%, rgba(11, 10, 18, .55) 100%);
}

/* ---------- горна лента ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(11, 10, 18, .7), rgba(11, 10, 18, .25));
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px "Unbounded", sans-serif; }
.brand b { font-weight: 500; color: var(--ink-3); }
.top nav { display: flex; gap: clamp(12px, 2.5vw, 28px); }
.top nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: color .2s; }
.top nav a:hover { color: var(--ink); }

main { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 14vh, 150px) 0 clamp(48px, 8vh, 90px); max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 6px 14px 6px 12px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.2s infinite; }
.eyebrow.down .pulse { background: var(--bad); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

h1 { font-size: clamp(44px, 8.5vw, 104px); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); max-width: 600px; margin: 26px 0 0; }

.stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px); margin: 40px 0 0; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font: 700 clamp(28px, 4vw, 42px) "Unbounded", sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-3); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 99px; text-decoration: none;
  font-weight: 700; font-size: 16px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn.primary { background: var(--grad); color: #160d14; box-shadow: 0 10px 40px -10px rgba(255, 64, 120, .7); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(255, 64, 120, .85); }
.btn.ghost { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---------- карти ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 90px; }
.card {
  --c: var(--amber);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; min-height: 270px; border-radius: var(--radius);
  text-decoration: none; overflow: hidden; isolation: isolate;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1;
  border-radius: 50%; background: var(--c); opacity: .16; filter: blur(60px); z-index: -1;
  transition: opacity .35s, transform .35s;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.card:hover::before { opacity: .32; transform: scale(1.15); }
.card.plex { --c: var(--amber); }
.card.seerr { --c: var(--coral); }
.card.photos { --c: var(--violet); }

.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card.plex .icon svg { fill: var(--c); stroke: none; }
.state { font-size: 13px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.state.ok { color: var(--ok); } .state.ok::before { background: var(--ok); }
.state.bad { color: var(--bad); } .state.bad::before { background: var(--bad); }

.card h2 { font-size: 30px; margin-top: 28px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.host { margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--c); }
.host i { font-style: normal; display: inline-block; transition: transform .25s; }
.card:hover .host i { transform: translateX(5px); }

/* ---------- наскоро добавени ---------- */
.recent { padding-bottom: 100px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-head h2, .start > h2 { font-size: clamp(26px, 3.5vw, 38px); }
.arrows { display: flex; gap: 8px; }
.arrows button {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink);
  font-size: 24px; line-height: 1; transition: background .2s;
}
.arrows button:hover { background: rgba(255, 255, 255, .1); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 16vw, 180px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 18px; margin: 0 -2px; scrollbar-width: none; outline: none;
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.rail::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; }
.tile .pic {
  position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.tile:hover .pic { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(11, 10, 18, .75); backdrop-filter: blur(6px); color: var(--ink);
}
.badge.show { color: var(--amber); }
.tile h3 { font: 600 14px/1.35 "Manrope", sans-serif; letter-spacing: 0; margin: 10px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile small { color: var(--ink-3); font-size: 13px; }
.skeleton .pic { animation: shimmer 1.6s infinite; background: linear-gradient(100deg, var(--bg-2) 30%, #1d1a2a 50%, var(--bg-2) 70%); background-size: 300% 100%; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- как да започна ---------- */
.start { padding-bottom: 90px; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad); color: #160d14; font: 800 16px "Unbounded", sans-serif; margin-bottom: 18px;
}
.steps h3 { font-size: 18px; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.steps a, .tips a { color: var(--amber); text-underline-offset: 3px; }

.tips { margin-top: 34px; display: grid; gap: 10px; max-width: 820px; }
details { border-radius: 16px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 22px "Unbounded", sans-serif; color: var(--ink-3); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); color: var(--coral); }
details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- футър ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px var(--gutter) 46px; text-align: center; color: var(--ink-3); font-size: 15px; }
.foot p { margin: 4px 0; }
.foot .small { font-size: 13px; opacity: .7; }

/* ---------- адаптивност ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr 1fr; }
  .card.photos { grid-column: span 2; min-height: 220px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav a:not(:last-child) { display: none; }
  .services, .steps { grid-template-columns: 1fr; }
  .card.photos { grid-column: auto; }
  .card { min-height: 0; }
  .card h2 { margin-top: 22px; }
  .arrows { display: none; }
  .btn { flex: 1 1 auto; }
  .wall-track { --cols: 5 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-track, .pulse, .skeleton .pic { animation: none; }
  html { scroll-behavior: auto; }
  .card, .tile .pic, .btn { transition: none; }
}
