/* ============================================================
   Кинокомпания «Ленферно» — style.css
   Тёмная кинематографичная тема, золото под фирменный логотип.
   ============================================================ */

:root {
  --bg: #0e0c08;
  --bg-2: #14100a;
  --panel: #1a150d;
  --panel-2: #201a10;
  --line: rgba(201, 158, 62, .18);
  --gold: #c99e3e;
  --gold-bright: #e7c877;
  --gold-deep: #9a7523;
  --text: #f0e9da;
  --muted: #a99f8a;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --radius: 14px;
  --header-h: 72px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-bright); text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .5em; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(201, 158, 62, .35); }

/* ---------- Kicker / section base ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }

.section-dark {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}

/* Фон и blur — на псевдоэлементе: backdrop-filter на самой шапке
   сделал бы её containing block для fixed-меню и сломал бы оверлей */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 12, 8, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .35s ease;
}

.site-header.is-scrolled::before { opacity: 1; }

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark { width: 44px; height: 44px; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-display);
  color: var(--gold-bright);
  letter-spacing: .22em;
  font-size: 1.02rem;
}

.brand-sub {
  color: var(--muted);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .34em;
}

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }

.site-nav a {
  color: var(--text);
  font-size: .92rem;
  position: relative;
  padding: 6px 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: right .3s ease;
}

.site-nav a:hover::after { right: 0; }

.site-nav a.nav-cta {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 7px 18px;
  color: var(--gold-bright);
}

.site-nav a.nav-cta:hover { background: rgba(201, 158, 62, .12); }
.site-nav a.nav-cta::after { display: none; }

.burger {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-bright);
  transition: transform .3s ease, opacity .3s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: calc(var(--header-h) + 32px) 0 72px;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(201, 158, 62, .16), transparent 65%),
    radial-gradient(1200px 700px at 50% 115%, rgba(201, 158, 62, .07), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.hero-logo {
  width: clamp(180px, 26vw, 260px);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(201, 158, 62, .25));
  margin-bottom: 10px;
}

.hero-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .55em;
  text-indent: .55em;
  font-size: .74rem;
  margin-bottom: clamp(22px, 3.5vw, 34px);
}

.hero-title {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: .95rem;
  letter-spacing: .04em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #191305;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(201, 158, 62, .28);
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(201, 158, 62, .4); }

.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}

.btn-ghost:hover { background: rgba(201, 158, 62, .12); transform: translateY(-2px); }

.hero-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: .95rem;
}

.hero-contacts a { color: var(--muted); transition: color .2s; }
.hero-contacts a:hover { color: var(--gold-bright); }

.hero-contacts .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid rgba(201, 158, 62, .5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}

.scroll-hint span {
  width: 3px; height: 8px;
  background: var(--gold-bright);
  border-radius: 2px;
  margin-top: 8px;
  animation: scrollhint 1.8s ease-in-out infinite;
}

@keyframes scrollhint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   О компании
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.about-text p { color: var(--muted); max-width: 60ch; }

.stats {
  list-style: none;
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 34px;
  flex-wrap: wrap;
}

.stats li { display: flex; flex-direction: column; max-width: 180px; }

.stats b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 8px;
}

.stats span { color: var(--muted); font-size: .85rem; line-height: 1.45; }

.ceo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ceo-photo {
  aspect-ratio: 4 / 3;
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), #120e07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder .watermark {
  width: 42%;
  opacity: .16;
}

.photo-note {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
}

.ceo-info { padding: 18px 20px 20px; }

.ceo-name { font-family: var(--font-display); font-size: 1.12rem; }

.ceo-role {
  color: var(--gold);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-top: 4px;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.service {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  transition: transform .3s ease, border-color .3s ease;
}

.service:hover { transform: translateY(-4px); border-color: rgba(201, 158, 62, .45); }

.service-icon {
  width: 46px; height: 46px;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(201, 158, 62, .07);
}

.service-icon svg { width: 24px; height: 24px; }

.service h3 { font-size: 1.15rem; margin-bottom: 10px; }

.service p { color: var(--muted); font-size: .93rem; }

/* ============================================================
   Фильмы
   ============================================================ */
.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.film-card { display: flex; flex-direction: column; }

.film-poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  position: relative;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}

.film-poster img:not(.watermark) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.film-card:hover .film-poster img:not(.watermark) { transform: scale(1.05); }

.poster-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(201, 158, 62, .14), transparent 60%),
    linear-gradient(165deg, var(--panel-2), #120e07);
}

.poster-placeholder .watermark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58%;
  height: auto;
  opacity: .14;
}

.poster-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: .06em;
  line-height: 1.3;
  padding: 0 14px;
  text-transform: uppercase;
}

.film-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 4px 0;
}

.film-meta h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; line-height: 1.35; }

.film-year { color: var(--muted); font-size: .82rem; }

/* ============================================================
   В производстве
   ============================================================ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: clamp(16px, 2.5vw, 26px);
}

.prod-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 170px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}

.prod-card:hover { transform: translateY(-4px); border-color: rgba(201, 158, 62, .45); }

.prod-card h3 { font-size: 1.25rem; }

.prod-year { color: var(--muted); font-size: .88rem; }

.badge {
  align-self: flex-start;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 158, 62, .5);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: auto;
  background: rgba(14, 12, 8, .55);
}

.prod-card-img {
  grid-row: span 2;
  padding: 0;
  min-height: 340px;
}

.prod-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .5s ease;
}

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

.prod-overlay {
  position: relative;
  z-index: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 8, 5, .92) 0%, rgba(10, 8, 5, .35) 45%, transparent 70%);
}

.prod-overlay .prod-year { color: #d8cfbc; }

/* ============================================================
   Команда
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.member-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .5s ease;
  filter: saturate(.92);
}

.member:hover .member-photo img { transform: scale(1.05); }

.member-name {
  margin-top: 12px;
  font-weight: 600;
  font-size: .95rem;
}

.member-role {
  color: var(--muted);
  font-size: .8rem;
  margin-top: 2px;
}

/* Заглушки имён — заметный пунктир, чтобы легко найти и заменить */
.is-placeholder {
  opacity: .55;
  border-bottom: 1px dashed rgba(201, 158, 62, .45);
  display: block;
  width: fit-content;
  line-height: 1.3;
}

/* ============================================================
   Партнёры
   ============================================================ */
.partners {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 10px;
}

.partners li {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: .95rem;
  letter-spacing: .03em;
  transition: border-color .25s ease, color .25s ease;
}

.partners li:hover { border-color: rgba(201, 158, 62, .55); color: var(--gold-bright); }

/* ============================================================
   Контакты
   ============================================================ */
.section-contacts {
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(201, 158, 62, .12), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
  margin-top: 10px;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .3s ease, border-color .3s ease;
}

.contact-card:hover { transform: translateY(-4px); border-color: rgba(201, 158, 62, .5); }

.contact-label {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--gold-bright);
  word-break: break-word;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 48px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

.footer-mark { width: 56px; height: 56px; object-fit: contain; opacity: .9; }

.footer-note { font-size: .8rem; opacity: .7; }

/* ============================================================
   Reveal-анимации
   ============================================================ */
/* Скрытие включается только при работающем JS:
   класс .js на <html> ставит js/main.js. Без JS контент виден сразу. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .ceo-card { max-width: 420px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service:last-child { grid-column: 1 / -1; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .burger { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 6, .97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
    overflow-y: auto;
    padding: calc(var(--header-h) + 16px) 24px 32px;
    font-size: 1.15rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 105;
  }

  /* центрирование при свободном месте + прокрутка при нехватке высоты */
  .site-nav a:first-child { margin-top: auto; }
  .site-nav a:last-child { margin-bottom: auto; }

  .site-nav.is-open { opacity: 1; visibility: visible; }

  .site-nav a { font-size: 1.2rem; }

  .films-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .services { grid-template-columns: 1fr; }
  .service:last-child { grid-column: auto; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-card-img { grid-row: auto; min-height: 380px; }
  .stats { gap: 24px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-actions { width: 100%; max-width: 320px; }
}
