/* ===== Ярко — киностудия ===== */
:root {
  --bg: #0d0d0d;
  --bg-soft: #141414;
  --text: #f2f0ec;
  --muted: #8a8a86;
  --accent: #ffd400; /* «ярко» */
  --border: #262626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #000; }
.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; }

/* Прелоадер */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity .6s ease, visibility .6s ease; }
#loader.done { opacity: 0; visibility: hidden; }
#loaderPercent { font-size: clamp(3rem, 10vw, 7rem); font-weight: 300; letter-spacing: -0.05em; color: var(--muted); }

/* Шапка */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; transition: transform .35s ease; }
header.hidden { transform: translateY(-110%); }
.logo { color: var(--text); text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
nav ul { display: flex; gap: 32px; list-style: none; }
nav a { color: var(--text); text-decoration: none; font-size: 14px; opacity: .75; transition: opacity .2s, color .2s; }
nav a:hover { opacity: 1; color: var(--accent); }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 28px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: .3s; }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { bottom: 0; }
.burger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { bottom: 9px; transform: rotate(-45deg); }

/* Hero — кинопродакшен-композиция */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; }

.hero-grid { position: absolute; inset: 0; }
.hero-shot { position: absolute; overflow: hidden; background: var(--bg-soft); will-change: transform; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.08); transition: filter .5s ease; }
.hero-shot:hover img { filter: grayscale(.2) contrast(1.05); }
.hero-shot figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(242,240,236,.85); background: rgba(13,13,13,.55); padding: 3px 8px; }

.hs-1 { left: 4vw;  top: 12vh;  width: 24vw; height: 44vh; z-index: 1; }
.hs-2 { left: 30vw; top: 6vh;   width: 17vw; height: 26vh; z-index: 2; }
.hs-3 { left: 33vw; bottom: 8vh; width: 21vw; height: 30vh; z-index: 1; }
.hs-4 { right: 4vw; top: 16vh;  width: 26vw; height: 62vh; z-index: 3; }
.hs-4::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,212,0,.35); pointer-events: none; }

/* Типографика поверх сетки */
.hero-type { position: relative; z-index: 5; padding: 0 4vw; width: 100%; pointer-events: none; }
.hero-type a { pointer-events: auto; }
.hero-title { font-weight: 800; letter-spacing: -0.04em; line-height: .92; font-size: clamp(5.5rem, 21vw, 19rem); color: var(--text); mix-blend-mode: normal; }
.hero-title .mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title .ltr { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.19,1,.22,1); }
.hero-title .dot { color: var(--accent); }
.hero.in .hero-title .ltr { transform: translateY(0); }
.hero.in .hero-title .mask:nth-child(2) .ltr { transition-delay: .06s; }
.hero.in .hero-title .mask:nth-child(3) .ltr { transition-delay: .12s; }
.hero.in .hero-title .mask:nth-child(4) .ltr { transition-delay: .18s; }
.hero.in .hero-title .mask:nth-child(5) .ltr { transition-delay: .24s; }

.hero-sub { margin-top: 14px; display: flex; gap: 14px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero-sub span:nth-child(odd) { color: var(--text); }
.hero-manifest { margin-top: 22px; max-width: 24ch; font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.35; color: var(--text); border-left: 2px solid var(--accent); padding-left: 16px; }

.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btn { display: inline-block; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .14em; padding: 15px 30px; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.hero-btn.solid { background: var(--accent); color: #000; }
.hero-btn.solid:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,212,0,.3); }
.hero-btn.ghost { border: 1px solid var(--border); color: var(--text); }
.hero-btn.ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Служебные подписи */
.hero-side { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 18px; align-items: flex-end; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.hero-side .rec { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.hero-side .rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.hero-scroll { position: absolute; left: 4vw; bottom: 24px; z-index: 6; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.hero-scroll i { display: block; width: 56px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 40%; background: var(--accent); animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(-100%);} 60%,100% { transform: translateX(250%);} }

/* Вход кадров после интро */
.hero-shot { opacity: 0; transform: translateY(36px) scale(1.04); transition: opacity .8s ease, transform 1s cubic-bezier(.19,1,.22,1); }
.hero.in .hero-shot { opacity: 1; transform: none; }
.hero.in .hs-1 { transition-delay: .15s; }
.hero.in .hs-2 { transition-delay: .3s; }
.hero.in .hs-3 { transition-delay: .45s; }
.hero.in .hs-4 { transition-delay: .6s; }
.hero-sub, .hero-manifest, .hero-cta, .hero-side, .hero-scroll { opacity: 0; transform: translateY(14px); transition: opacity .7s ease .55s, transform .7s ease .55s; }
.hero.in .hero-sub, .hero.in .hero-manifest, .hero.in .hero-cta, .hero.in .hero-side, .hero.in .hero-scroll { opacity: 1; transform: none; }

/* Бегущая строка */
.marquee { border-block: 1px solid var(--border); overflow: hidden; white-space: nowrap; padding: 14px 0; background: var(--bg-soft); }
.marquee-track { display: inline-block; animation: marquee 22s linear infinite; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.marquee-track span { margin-right: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }

section { padding: clamp(64px, 10vw, 130px) 0; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 24px; }

/* О студии */
.about p.big { font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.3; max-width: 26ch; letter-spacing: -0.02em; }
.about .facts { margin-top: 40px; color: var(--muted); font-size: 14px; max-width: 60ch; }

/* Услуги */
.services-list { list-style: none; counter-reset: svc; border-top: 1px solid var(--border); }
.services-list li { counter-increment: svc; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); font-size: clamp(1.3rem, 2.6vw, 2rem); transition: color .25s, padding-left .25s; cursor: default; }
.services-list li:hover { color: var(--accent); padding-left: 16px; }
.services-list li::before { content: "0" counter(svc); font-size: 13px; color: var(--muted); margin-right: 20px; }
.services-list li small { font-size: 13px; color: var(--muted); font-weight: 400; }


/* Проекты */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.project-card { text-decoration: none; color: inherit; }
.project-thumb { aspect-ratio: 4/5; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.55); transition: transform .35s ease, filter .35s ease; }
.project-card:hover .project-thumb { transform: scale(1.015); filter: brightness(1.15); }
.project-card h3 { font-size: 17px; margin-top: 14px; font-weight: 500; }
.project-card p { font-size: 13px; color: var(--muted); }

/* Клиенты */
.tags { display: flex; flex-wrap: wrap; gap: 10px 14px; max-width: 900px; }
.tag { border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--muted); transition: color .2s, border-color .2s; }
.tag:hover { color: var(--text); border-color: var(--accent); }

/* Футер */
footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; }
.cta-title { font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 1.05; max-width: 16ch; }
.btn { display: inline-block; margin-top: 36px; background: var(--accent); color: #000; text-decoration: none; font-weight: 600; font-size: 15px; padding: 16px 36px; border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,212,0,.25); }

.contacts-grid { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.contact-item h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.contact-item p { font-size: 15px; }
.copy-btn { background: none; border: 0; cursor: pointer; padding: 0; color: var(--text); font: inherit; font-size: 16px; transition: color .2s; }
.copy-btn:hover { color: var(--accent); }
.copied { display: block; font-size: 12px; color: var(--accent); opacity: 0; transition: opacity .3s; height: 16px; margin-top: 4px; }
.copied.show { opacity: 1; }

.footer-bottom { margin-top: 56px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 720px) {
  nav ul { position: fixed; inset: 0; z-index: -1; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 28px; font-size: 22px; opacity: 0; pointer-events: none; transition: opacity .3s; }
  nav ul.open { opacity: 1; pointer-events: auto; }
  .burger { display: block; z-index: 1; }

  /* Hero mobile: крупная надпись + компактная сетка кадров */
  .hero { align-items: flex-end; padding-bottom: 76px; }
  .hs-1 { left: -8vw; top: 8vh; width: 52vw; height: 21vh; z-index: 1; }
  .hs-2 { display: none; }
  .hs-3 { left: auto; right: 5vw; bottom: auto; top: 34vh; width: 34vw; height: 15vh; z-index: 2; }
  .hs-4 { right: -6vw; top: 10vh; width: 46vw; height: 20vh; z-index: 3; }
  .hero-type { padding-bottom: 0; }
  .hero-title { font-size: clamp(4.2rem, 23vw, 7rem); }
  .hero-sub { flex-wrap: wrap; gap: 6px; letter-spacing: .16em; font-size: 10px; }
  .hero-manifest { margin-top: 14px; font-size: 1rem; }
  .hero-cta { margin-top: 18px; gap: 10px; }
  .hero-side { display: none; }
  .hero-scroll { left: 24px; bottom: 18px; }
  .hero-cta .hero-btn { padding: 13px 20px; }
}

/* Статичная версия без анимаций */
@media (prefers-reduced-motion: reduce) {
  .hero-title .ltr, .hero-shot, .hero-sub, .hero-manifest, .hero-cta, .hero-side, .hero-scroll { transition: none !important; transform: none !important; opacity: 1 !important; }
  .hero-scroll i::after, .hero-side .rec i { animation: none !important; }
}

