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

:root {
  --red: #E8432D;
  --bg: #0A0A0A;
  --bg2: #111111;
  --bg3: #181818;
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --muted2: #444444;
  --border: #1E1E1E;
  --display: 'Oswald', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 64px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img {
  height: 28px;
  width: auto;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 2rem 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Анимированный абстрактный фон */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero-glow.g1 {
  width: 65vw; height: 65vw;
  left: -8vw; top: -12vw;
  background: radial-gradient(circle, rgba(232,67,45,0.20) 0%, transparent 70%);
  animation: heroDrift1 24s ease-in-out infinite alternate;
}

.hero-glow.g2 {
  width: 58vw; height: 58vw;
  right: -12vw; bottom: -14vw;
  background: radial-gradient(circle, rgba(70,82,130,0.18) 0%, transparent 70%);
  animation: heroDrift2 30s ease-in-out infinite alternate;
}

@keyframes heroDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(11vw, 7vw) scale(1.18); }
}
@keyframes heroDrift2 {
  from { transform: translate(0, 0) scale(1.12); }
  to   { transform: translate(-9vw, -6vw) scale(1); }
}

.hero-grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  animation: heroGrain 0.5s steps(1) infinite;
}

@keyframes heroGrain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 4%); }
  40%  { transform: translate(4%, -3%); }
  60%  { transform: translate(-3%, -4%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Фоновое видео и затемнение */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.42) saturate(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.80) 100%),
    linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}

/* Кинолента сверху */
.filmstrip {
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  height: 32px;
  background: #111;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #1a1a1a;
  z-index: 3;
}

.filmstrip-holes {
  display: flex;
  gap: 0;
  animation: filmroll 8s linear infinite;
  white-space: nowrap;
}

@keyframes filmroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.filmstrip-hole {
  width: 18px;
  height: 14px;
  background: var(--bg);
  border-radius: 2px;
  margin: 0 10px;
  flex-shrink: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 2rem;
  position: relative;
  z-index: 3;
}

.hero-label {
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-logo {
  width: 320px;
  max-width: 75vw;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
  margin: 2.5rem 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.8s forwards;
}

.hero-title .red { color: var(--red); }
.page-title .red { color: var(--red); }

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 0.9s ease 1s forwards;
  margin-bottom: 3rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 2.2rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.1s forwards;
}

.hero-cta:hover {
  border-color: var(--red);
  background: rgba(232,67,45,0.08);
}

.hero-cta .arrow {
  color: var(--red);
  font-size: 14px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}

.scroll-dot {
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

.scroll-text {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted2);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── SECTION BASE ── */
.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 4rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  flex-shrink: 0;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── ABOUT ── */
#about { background: var(--bg); }

.about-text-block {
  max-width: 760px;
}

.about-text-block p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.about-text-block p:last-child { margin-bottom: 0; }

.about-text-block a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.about-text-block a:hover { color: var(--red); }

.about-stats-caption {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4rem;
  margin-bottom: 1.25rem;
}

.about-stats-row {
  display: flex;
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.about-stat {
  flex: 1;
  padding: 2rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-stat-num {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0;
}

.about-stat-num sup {
  font-size: 1.2rem;
  color: var(--red);
  font-weight: 700;
}

.about-stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── PROJECTS ── */
#projects { background: var(--bg2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.film-card {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.film-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: brightness(0.65);
}

.film-card:hover .film-poster {
  transform: scale(1.05);
  filter: brightness(0.92);
}

/* Постеры фильмов. Положи файлы рядом с index.html.
   Пока файла нет — показывается градиент-заглушка снизу. */
.p1 { background-color: #120808; background-image: url('poster-pochtar.jpg'),  radial-gradient(ellipse at 40% 30%, #2d0f0f 0%, #080505 70%); }
.p2 { background-color: #080c14; background-image: url('poster-zhenih.jpg'),   radial-gradient(ellipse at 60% 40%, #101a30 0%, #040608 70%); }
.p3 { background-color: #0c0f08; background-image: url('poster-suleyman.jpg'), radial-gradient(ellipse at 50% 60%, #182010 0%, #050608 70%); }

.film-body {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
}

.film-genre {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.film-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.film-year {
  font-size: 11px;
  color: var(--muted);
}

.film-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.film-card:hover .film-desc { max-height: 100px; }

/* подписи раздела и фильмография */
.proj-caption {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.filmography { margin-top: 4rem; max-width: 820px; }

.filmo-list {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
}

.filmo-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.filmo-link:hover { color: var(--red); }

/* ── CONTACT ── */
#contact { background: var(--bg); }

.contact-headline {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0.01em;
  margin-bottom: 3rem;
}

.contact-headline .red { color: var(--red); }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 6rem;
}

.contact-left {
  flex: 1;
}

.contact-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-item:hover { color: var(--red); }

.contact-item-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  width: 80px;
  flex-shrink: 0;
}

.contact-right {
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.contact-logo {
  width: 180px;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}

.contact-logo:hover { opacity: 0.9; filter: grayscale(0); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.05em;
}

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

.footer-right {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.05em;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .section-wrap { padding: 5rem 1.5rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-row { flex-direction: column; gap: 3rem; }
  .contact-right { display: none; }
  .about-stats-row { flex-wrap: wrap; }
  .about-stat { flex: 1 1 50%; }
  footer { flex-direction: column; gap: 0.75rem; padding: 1.5rem; text-align: center; }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .about-stat { flex: 1 1 100%; }
}

@media (max-width: 768px) {
  .hero-video { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; }
  .hero-video { display: none; }
}


/* === About-тизер (главная) === */
.about-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 2.2rem;
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: border-color 0.25s, color 0.25s;
}
.about-more:hover { border-color: var(--red); color: var(--red); }

/* === Внутренняя страница (О компании) === */
.page-head {
  max-width: 1100px;
  margin: 0 auto;
  padding: 11rem 4rem 2.5rem;
}
.page-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-top: 0.6rem;
}
.company-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4rem;
}
.company-section + .company-section { margin-top: 3.5rem; }
.company-lead {
  font-size: 1.2rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
  max-width: 760px;
}
.company-block { max-width: 760px; }
.company-block h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.company-block p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1rem;
}
.company-back {
  display: inline-block;
  margin: 4rem auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.company-back:hover { color: var(--red); }

@media (max-width: 900px) {
  .page-head { padding: 9rem 1.5rem 2rem; }
  .company-section { padding: 0 1.5rem; }
}
