/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --bg:        #07070f;
  --surface:   #111120;
  --surface2:  #1a1a2e;
  --gold:      #C9A84C;
  --gold-dim:  rgba(201,168,76,0.25);
  --crimson:   #7a1528;
  --crimson2:  rgba(122,21,40,0.6);
  --text:      #F0EBE0;
  --muted:     #8a8580;
  --border:    rgba(201,168,76,0.2);
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Raleway', sans-serif;
}

/* ===== СБРОС / БАЗА ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== НАВИГАЦИЯ ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav--scrolled {
  background: rgba(7,7,15,0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Театральный занавес */
.hero-curtain-left,
.hero-curtain-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 18%;
  z-index: 1;
  pointer-events: none;
}
.hero-curtain-left {
  left: 0;
  background: linear-gradient(to right, var(--crimson2) 0%, transparent 100%);
}
.hero-curtain-right {
  right: 0;
  background: linear-gradient(to left, var(--crimson2) 0%, transparent 100%);
}

/* Золотая плёнка сверху и снизу */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  z-index: 2;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  z-index: 2;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.25;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  animation: heroFadeIn 1.4s ease both;
}

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

.hero-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.hero-name-first {
  font-style: italic;
  color: var(--text);
}
.hero-name-last {
  color: var(--gold);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.05em;
}
.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto;
  opacity: 0.6;
}
.hero-stats {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  color: var(--muted);
  transition: color 0.3s;
}
.hero-scroll:hover { color: var(--gold); }
.hero-scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: currentColor;
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */
.section {
  padding: 7rem 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto 0;
  opacity: 0.5;
}

/* ===== REVEAL АНИМАЦИЯ ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== О СЕБЕ ===== */
.about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}
.about-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}
.param {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.param:nth-child(2n) { border-right: none; }
.param:nth-last-child(-n+2) { border-bottom: none; }
.param-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.param-value {
  font-size: 0.95rem;
  color: var(--text);
}

.about-edu {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  margin-left: 1rem;
}
.edu-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:last-child { border-bottom: none; }
.edu-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  min-width: 70px;
  line-height: 1;
}
.edu-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.edu-info strong {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.edu-info span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== ФИЛЬМОГРАФИЯ ===== */
.filmography { background: var(--bg); }

.film-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.film-item {
  display: grid;
  grid-template-columns: 80px 1px 1fr;
  gap: 0 2rem;
  align-items: center;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  cursor: default;
}
.film-item:last-child { border-bottom: none; }
.film-item:hover { background: var(--surface); }
.film-item:hover .film-year { color: var(--gold); }

.film-year {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--muted);
  text-align: right;
  transition: color 0.3s;
  line-height: 1;
}
.film-line {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.film-info {
  padding-left: 1rem;
}
.film-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.2;
}
.film-role {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== ТЕАТР ===== */
.theater {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.theater::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent, var(--crimson), transparent);
}
.theater::after {
  content: '"';
  position: absolute;
  right: 3rem;
  top: 4rem;
  font-family: var(--font-display);
  font-size: 18rem;
  color: rgba(201,168,76,0.04);
  line-height: 1;
  pointer-events: none;
}

.theater-card {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3rem;
  position: relative;
}
.theater-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--crimson), var(--gold), var(--crimson));
}

.theater-years {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  white-space: nowrap;
  min-width: 120px;
  padding-top: 0.3rem;
}
.theater-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.theater-place {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.theater-play {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.1;
}
.theater-author {
  font-size: 0.85rem;
  color: var(--muted);
}
.theater-role-block {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold);
}
.theater-role-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.theater-role-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text);
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery { background: var(--bg); }

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
  min-height: 200px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,15,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 4rem;
}
.loading-dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: loadPulse 1.2s ease-in-out infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
.gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}
.gallery-empty p { margin-bottom: 0.5rem; }
.gallery-hint { font-size: 0.85rem; }
.gallery-hint code {
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--gold);
  font-family: monospace;
}

/* ===== КОНТАКТЫ ===== */
.contacts { background: var(--surface); }

.contacts-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
  min-width: 280px;
  justify-content: center;
}
.contact-item:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.contact-icon {
  font-size: 1.2rem;
  color: var(--gold);
}
.contact-text {
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.contacts-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.8;
}

/* ===== ФУТЕР ===== */
.footer {
  background: #04040a;
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.footer p {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.footer-email {
  color: var(--gold) !important;
  opacity: 0.7;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { columns: 2; }
  .theater-card { flex-direction: column; gap: 1rem; padding: 2rem; }
  .theater::after { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: 70%; background: rgba(7,7,15,0.97); padding: 5rem 2rem 2rem; gap: 2rem; }
  .nav-links--open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .gallery-grid { columns: 1; }
  .film-item { grid-template-columns: 60px 1px 1fr; gap: 0 1rem; }
  .film-year { font-size: 1.6rem; }
  .film-title { font-size: 1.2rem; }
  .about-params { grid-template-columns: 1fr; }
  .param:nth-child(2n) { border-right: 1px solid var(--border); }
  .param { border-right: none !important; }
}
