/* ═══════════ TOKENS ═══════════ */
:root {
  /* BASE */
  --bg: rgb(68, 56, 66);
  --bg-2: rgb(59, 49, 57);

  /* PANELS — тёплый пурпурный подтон, согласован с фоном */
  --panel: #1e1a1e;
  --panel-2: #271f27;
  --panel-3: #322931;

  /* TEXT */
  --text: rgb(238, 233, 203);
  --muted: rgba(238, 233, 203, 0.8);

  /* ACCENT */
  --accent: rgb(199, 34, 33);
  --accent-light: #d93d3c;
  --accent-glow: rgba(68, 56, 66, 0.28);
  --accent-soft: rgba(68, 56, 66, 0.12);

  /* BORDERS */
  --border: rgba(238, 233, 203, 0.10);
  --border-2: rgba(238, 233, 203, 0.18);

  /* UI */
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);

  /* FONTS */
--font-display: "Unbounded", sans-serif;  /* жирные заголовки */
--font-body: "Montserrat", sans-serif;     /* нейтральный текст */

  /* MOTION */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hidden { display: none !important; }

/* ═══════════ LOADER ═══════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #100d10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__cinema {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader__word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(42px, 10vw, 80px);
  letter-spacing: 0.18em;
  color: var(--text);
  opacity: 0;
  transform: translateY(30px);
  animation: loaderWordIn 0.9s var(--ease) forwards;
}

.loader__word--top { animation-delay: 0.3s; }
.loader__word--bottom { animation-delay: 0.8s; }

.loader__and {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 6vw, 48px);
  letter-spacing: 0.3em;
  color: var(--accent-light);
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  animation: loaderAndIn 0.7s var(--ease) 0.55s forwards;
}

.loader__line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  margin-top: 24px;
  animation: loaderLineIn 1.2s var(--ease) 1.2s forwards;
}

.loader__tagline {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
  opacity: 0;
  animation: loaderFade 0.6s var(--ease) 1.6s forwards;
}

@keyframes loaderWordIn { to { opacity: 1; transform: translateY(0); } }
@keyframes loaderAndIn { to { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes loaderLineIn { to { width: 200px; } }
@keyframes loaderFade { to { opacity: 0.6; } }

/* ═══════════ HEADER ═══════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(24, 18, 23, 0.80);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.header.visible { transform: translateY(0); opacity: 1; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.logo__and {
  font-style: italic;
  color: var(--accent-light);
  font-size: 18px;
}

.nav { display: flex; gap: 32px; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width 0.3s var(--ease);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════ HERO + PARALLAX ═══════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; }

.hero__parallax-layer {
  position: absolute;
  inset: -60px;
  will-change: transform;
}

.hero__parallax-layer--1 {
  background: radial-gradient(ellipse at 30% 40%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.5;
}

.hero__parallax-layer--2 {
  background: radial-gradient(ellipse at 70% 60%, rgba(88, 56, 66, 0.18) 0%, transparent 50%);
  opacity: 0.6;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0;
}

.hero__title-wrap { overflow: hidden; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  margin: 0;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
}

.hero__line--1 {
  font-size: clamp(48px, 12vw, 120px);
  letter-spacing: 0.14em;
}

.hero__line--and {
  font-size: clamp(24px, 5vw, 48px);
  letter-spacing: 0.35em;
  font-style: italic;
  color: var(--accent-light);
  margin: 8px 0;
}

.hero__line--2 {
  font-size: clamp(48px, 12vw, 120px);
  letter-spacing: 0.14em;
}

.hero.animate .hero__line { animation: heroLineIn 1s var(--ease) forwards; }
.hero.animate .hero__line--1 { animation-delay: 0s; }
.hero.animate .hero__line--and { animation-delay: 0.2s; }
.hero.animate .hero__line--2 { animation-delay: 0.4s; }

@keyframes heroLineIn { to { opacity: 1; transform: translateY(0); } }

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(13px, 2vw, 16px);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 28px;
  opacity: 0;
}

.hero.animate .hero__subtitle { animation: fadeUp 0.8s var(--ease) 0.7s forwards; }

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.hero.animate .hero__scroll { animation: fadeUp 0.6s var(--ease) 1.2s forwards; }

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ HERO BUTTON ═══════════ */
.hero__button {
  margin-top: 32px;
  opacity: 0;
}

.hero.animate .hero__button {
  animation: fadeUp 0.8s var(--ease) 0.9s forwards;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  border: 1px solid var(--accent-light);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 60px;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(199, 34, 33, 0.3);
}

.btn-download:hover {
  background: transparent;
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(199, 34, 33, 0.5);
}

.btn-download__icon {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.btn-download:hover .btn-download__icon {
  transform: translateY(2px);
}

/* ═══════════ УМЕНЬШЕНИЕ ЗАГОЛОВКА НА ДЕСКТОПЕ ═══════════ */
@media (min-width: 1200px) {
  .hero__line--1,
  .hero__line--2 {
    font-size: clamp(48px, 8vw, 90px);
    letter-spacing: 0.1em;
  }
  
  .hero__line--and {
    font-size: clamp(24px, 4vw, 38px);
  }
  
  .hero__subtitle {
    font-size: 14px;
    letter-spacing: 0.1em;
  }
  
  .hero__content {
    padding: 60px 0;
  }
}

/* Дополнительно для очень высоких экранов */
@media (min-width: 1400px) and (min-height: 900px) {
  .hero__line--1,
  .hero__line--2 {
    font-size: 100px;
  }
  
  .hero__line--and {
    font-size: 42px;
  }
  
  .hero__subtitle {
    font-size: 16px;
  }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .hero__button {
    margin-top: 24px;
  }
  
  .btn-download {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 100px 0; }

.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate="fade-up"].in-view { opacity: 1; transform: translateY(0); }

/* ═══════════ FILTERS ═══════════ */
.filters {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  align-items: end;
}

.filter-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-group select {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.filter-group select:focus { outline: none; border-color: var(--accent-light); }

.search-box { position: relative; }

.search-box input {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px 12px 40px;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input::placeholder { color: var(--muted); opacity: 0.6; }

.search-box input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

.range-box { display: flex; flex-direction: column; gap: 12px; }
.range-values { display: flex; justify-content: space-between; }

.range-tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--muted);
}

.range-tag strong { color: var(--text); }

.range-slider { position: relative; height: 32px; }

.range-slider__track,
.range-slider__fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  border-radius: 999px;
}

.range-slider__track { left: 0; right: 0; background: var(--panel-2); }

.range-slider__fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  left: 0;
  width: 100%;
}

.range-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  appearance: none;
  pointer-events: none;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: transparent; }

.range-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--text);
  margin-top: -8.5px;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px var(--accent-glow);
}

.range-slider input[type="range"]::-moz-range-track { height: 3px; background: transparent; }

.range-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--text);
  pointer-events: auto;
  cursor: pointer;
}

/* ═══════════ EMPTY STATE ═══════════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  background: rgba(238, 233, 203, 0.01);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
  animation: emptyPulse 3s ease-in-out infinite;
}

@keyframes emptyPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.empty-state__text {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
}

/* ═══════════ FACES GRID ═══════════ */
.faces-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.face-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
}

.face-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.face-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent);
}

.face-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.face-card__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 14, 19, 0.65) 0%, transparent 50%);
  pointer-events: none;
}

.face-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.face-card:hover img { transform: scale(1.05); }

.face-card__name {
  padding: 16px;
  text-align: center;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
}

/* ═══════════ CONTACTS ═══════════ */
.section--contacts { border-top: 1px solid var(--border); }

.contacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.contacts__item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.contacts__item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.contacts__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts__item a,
.contacts__item span {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.contacts__item a:hover { color: var(--accent-light); }

/* ═══════════ FOOTER ═══════════ */
.footer {
  text-align: center;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ═══════════ MODAL ═══════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 10, 0.86);
  backdrop-filter: blur(12px);
}

.modal__content {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal__content::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
}

.modal__close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ═══════════ SIMS CARD ═══════════ */
.sims {
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--border-2);
  box-shadow:
    0 0 0 1px rgba(199, 34, 33, 0.07),
    0 0 40px rgba(199, 34, 33, 0.05),
    0 40px 100px rgba(0, 0, 0, 0.6);
  padding: 0;
  opacity: 0;
  transform: scale(0.9) translateY(30px);
  animation: simsOpen 0.6s var(--ease) forwards;
}

@keyframes simsOpen {
  0% { opacity: 0; transform: scale(0.9) translateY(30px); }
  50% { opacity: 1; transform: scale(1.02) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.sims__topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
}

.sims__topbar-diamond {
  width: 10px;
  height: 10px;
  background: var(--accent-light);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

.sims__topbar-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: center;
}

.sims__body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  padding: 28px;
}

.sims__left {
  position: sticky;
  top: 28px;
  align-self: start;
}

.sims__portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-2);
  box-shadow: 0 0 30px var(--accent-glow);
}

.sims__portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.sims__portrait-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(199, 34, 33, 0.10) 0%, transparent 40%);
  pointer-events: none;
}

.sims__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.sims__gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sims__gallery img:hover {
  border-color: var(--accent-light);
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--accent-glow);
}

.sims__right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sims__panel {
  background: rgba(238, 233, 203, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  animation: simsPanelIn 0.5s var(--ease) both;
}

.sims__panel:nth-child(1) { animation-delay: 0.1s; }
.sims__panel:nth-child(2) { animation-delay: 0.15s; }
.sims__panel:nth-child(3) { animation-delay: 0.2s; }
.sims__panel:nth-child(4) { animation-delay: 0.25s; }
.sims__panel:nth-child(5) { animation-delay: 0.3s; }
.sims__panel:nth-child(6) { animation-delay: 0.35s; }
.sims__panel:nth-child(7) { animation-delay: 0.4s; }

@keyframes simsPanelIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.sims__panel:hover {
  border-color: var(--border-2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.sims__panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
}

.sims__panel-icon { color: var(--accent-light); font-size: 14px; }

.sims__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-item {
  background: rgba(238, 233, 203, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.25s ease;
}

.stat-item:hover { border-color: var(--border-2); }

.stat-item__label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-item__value { color: var(--text); font-size: 15px; }

.sims__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.sims__tag {
  background: var(--accent-soft);
  border: 1px solid rgba(199, 34, 33, 0.22);
  color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sims__tag:hover {
  background: rgba(199, 34, 33, 0.22);
  border-color: var(--accent-light);
}

.sims__text { color: var(--muted); line-height: 1.7; margin: 0; }

.sims__link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  transition: all 0.25s var(--ease);
}

.sims__link-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 20px var(--accent-glow);
}

.sims__link-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ═══════════ CUSTOM VIDEO PLAYER ═══════════ */
.custom-player {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.custom-player video {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #000;
}

.custom-player__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(10, 7, 10, 0.88) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-player:hover .custom-player__controls { opacity: 1; }

.custom-player__btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.custom-player__btn:hover { background: var(--accent-soft); }

.custom-player__progress {
  flex: 1;
  height: 4px;
  background: rgba(238, 233, 203, 0.15);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.custom-player__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 999px;
  width: 0%;
  transition: width 0.1s linear;
}

.custom-player__time {
  font-size: 12px;
  color: var(--muted);
  min-width: 70px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.custom-player__volume {
  width: 60px;
  height: 4px;
  background: rgba(238, 233, 203, 0.15);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.custom-player__volume-fill {
  height: 100%;
  background: var(--accent-light);
  border-radius: 999px;
  width: 80%;
}

.custom-player__big-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(10, 7, 10, 0.32);
  transition: background 0.3s ease, opacity 0.3s ease;
}

.custom-player__big-play:hover { background: rgba(10, 7, 10, 0.52); }

.custom-player__big-play.hidden-play {
  opacity: 0;
  pointer-events: none;
}

.custom-player__big-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-player__big-play:hover .custom-player__big-play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--accent-glow);
}

.custom-player__big-play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--text);
  margin-left: 3px;
}

/* YouTube embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════ FULLSCREEN VIDEO ═══════════ */
.custom-player.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000 !important;
}

.custom-player.is-fullscreen video {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain;
}

.custom-player.is-fullscreen .custom-player__controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-player.is-fullscreen:hover .custom-player__controls { opacity: 1; }

.custom-player.is-fullscreen .custom-player__big-play {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 7, 10, 0.93);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox.active .lightbox__img { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: rgba(238, 233, 203, 0.07);
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: rgba(238, 233, 203, 0.07);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ═══════════ SCROLLBAR ═══════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .faces-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contacts { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { width: calc(100% - 32px); }
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 99;
  }

  .nav.open { transform: translateX(0); }
  .nav a { font-size: 18px; }
  .filters { grid-template-columns: 1fr; }
  .faces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .contacts { grid-template-columns: 1fr; }
  .sims__body { grid-template-columns: 1fr; }
  .sims__left { position: static; }
  .sims__stats { grid-template-columns: 1fr; }
  .modal__content { padding: 0; }
  .section { padding: 60px 0; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

@media (max-width: 480px) {
  .faces-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero__line--1, .hero__line--2 { letter-spacing: 0.08em; }
  .section__title { margin-bottom: 28px; }
  .sims__body { padding: 16px; gap: 16px; }
  .sims__gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}