:root {
  --bg: #031632;
  --surface: transparent;
  --surface-strong: transparent;
  --text: #ffffff;
  --muted: #d7deec;
  --accent: #ff002f;
  --accent-soft: #ff3048;
  --line: rgba(255, 255, 255, 0.28);
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% -28%, #123a78 0, #0a2d5f 38%, #041428 100%);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(4, 22, 52, 0.76);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

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

.brand-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.05em;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.brand-subtitle {
  margin-top: 0.2rem;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  color: var(--accent-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.6rem);
}

.nav-link {
  font-weight: 700;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  width: min(1400px, 96vw);
  margin: 1rem auto 0;
  flex: 1;
}

.home-page main {
  width: 100%;
  margin: 0;
}

.landing {
  position: relative;
  display: block;
}

.hero {
  position: relative;
  min-height: 84vh;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}

.home-page .hero {
  min-height: calc(100vh - 88px);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.05);
  filter: saturate(0.92) contrast(1.08);
}

.hero-video-local {
  object-fit: cover;
  z-index: 1;
}

.hero-video-youtube {
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 12, 30, 0.22) 0%, rgba(6, 21, 45, 0.46) 40%, rgba(5, 15, 34, 0.78) 100%),
    linear-gradient(120deg, rgba(255, 0, 47, 0.22) 0%, rgba(255, 0, 47, 0) 45%);
}

.hero-content {
  position: absolute;
  inset: auto 0 3.2rem;
  z-index: 2;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.eyebrow {
  margin: 0;
  color: var(--accent-soft);
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.hero-title {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.5rem, 3.8vw, 3rem);
}

.hero-quote {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  max-width: 50ch;
}

.news-card {
  position: absolute;
  bottom: 3.9rem;
  right: 1rem;
  width: min(360px, 34vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
  min-height: auto;
  z-index: 5;
  backdrop-filter: none;
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.news-card.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.news-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.close-instagram-card {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.news-copy {
  color: var(--muted);
  margin: 0.7rem 0 0.9rem;
}

.hero-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(1, 14, 36, 0.78);
}

.hero-ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding: 0.65rem 1rem;
  animation: ticker-scroll 22s linear infinite;
}

.hero-ticker-track span {
  white-space: nowrap;
  font-weight: 700;
  color: #ffffff;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.33%);
  }
}

.news-card h2,
.section-card h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.8rem;
}

.news-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.metrics {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric {
  background: var(--surface);
  border: 0;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}

.metric strong {
  display: block;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  letter-spacing: 0.03em;
  color: var(--accent);
}

.metric span {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.9rem;
}

.clients {
  margin-top: 0.55rem;
  background: var(--surface);
  border: 0;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}

.clients h2 {
  width: 100%;
  margin: 0 0 1rem;
  text-align: center !important;
}

.footer-rights-block {
  display: inline;
  margin-left: 0.35rem;
}

.logo-row {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-chip {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
  color: var(--muted);
}

.page-hero {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  background: linear-gradient(130deg, rgba(255, 0, 47, 0.24), rgba(8, 29, 63, 0.54));
}

.page-hero.plain-hero {
  border: 0;
  background: transparent;
}

.page-hero h1 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.page-hero p {
  margin: 0.9rem 0 0;
  max-width: 60ch;
  color: var(--muted);
}

.sections-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.film-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.film-bubble {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 290px;
  background: #000;
}

.film-bubble video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-bubble-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 44, 0.08), rgba(6, 20, 44, 0.72));
}

.film-bubble-label {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 2;
}

.film-bubble-label h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
}

.about-layout {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-video,
.about-cv-frame {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: rgba(4, 13, 30, 0.82);
}

.about-video {
  min-height: 260px;
}

.about-cv-card,
.about-video-card {
  grid-column: 1 / -1;
}

.about-cv-frame {
  min-height: 640px;
  border: 0;
}

.about-cv-mobile-link {
  display: none;
  margin-top: 0.9rem;
}

.section-card.about-contact-card,
.section-card.about-cv-card {
  border: 0;
}

.section-card.about-video-card,
.section-card.about-portraits-card {
  border: 0;
}

.about-portraits-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-portraits-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  border: 0;
}

.press-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.press-tile {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.press-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.54);
}

.press-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 0, 47, 0.86);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.press-tile h2 {
  margin: 0.7rem 0 0.4rem;
  font-size: 1.25rem;
}

.press-tile p {
  margin: 0;
  color: var(--muted);
}

.section-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.2rem;
}

.section-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.8);
  margin-top: 2.4rem;
}

.footer-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-email {
  color: var(--accent-soft);
  font-weight: 700;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

@media (max-width: 980px) {
  .landing {
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-card {
    display: none !important;
  }

  .hero {
    min-height: 62vh;
  }

  .home-page .hero {
    min-height: 72vh;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sections-grid {
    grid-template-columns: 1fr;
  }

  .film-grid,
  .about-layout,
  .press-grid,
  .about-portraits-grid {
    grid-template-columns: 1fr;
  }

  .about-cv-frame {
    min-height: 520px;
    display: none;
  }

  .about-cv-mobile-link {
    display: inline-flex;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-email {
    width: 100%;
    text-align: center;
  }

  .mobile-center-title .page-hero h1 {
    text-align: center !important;
  }

  .footer-rights-block {
    display: block;
    margin-left: 0;
  }
}

@media (min-width: 981px) {
  .about-cv-card h2 {
    text-align: center;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  .main-nav.is-open {
    max-height: 60vh;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0 0.8rem;
  }

  .nav-link {
    font-size: 1rem;
  }
}

@media (max-width: 540px) {
  .brand-title {
    font-size: 2.2rem;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  main {
    margin-top: 1.2rem;
  }

  .hero {
    border-radius: 18px;
  }

  .hero-video {
    transform: scale(1.28);
  }

  .hero-ticker-track {
    padding: 0.6rem 0.8rem;
    animation-duration: 16s;
  }

  .news-card {
    display: none !important;
  }

  .metrics {
    grid-template-columns: 1fr;
  }
}
