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

html, body {
  overflow-x: hidden;
}

:root {
  --content-width: 1240px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111;
  background: url("../images/fon.jpg") center top no-repeat;
  background-size: cover;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../images/fon.jpg") center top no-repeat;
  background-size: 108%;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.08) 15%,
    rgba(255,255,255,0.08) 85%,
    rgba(255,255,255,0.08) 100%
  );
  z-index: -1;
  pointer-events: none;
}

.site-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  background: #ffffffbc;
  min-height: 100vh;
  box-shadow: 0 0 80px rgba(0,0,0,0.25);
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  height: 60px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.header__inner {
  position: relative;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__left {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 60px;
  transition: height 0.3s ease;
}

/* уменьшаем лого при скролле */
.header.scrolled .header__logo img {
  height: 45px;
}

/* =========================
   ЦЕНТРАЛЬНАЯ НАВИГАЦИЯ
========================= */

.header__nav {
  position: absolute;
  left: 33%;
  transform: translateX(-50%);
  display: flex;
  gap: 50px;
}

.header__nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
  position: relative;
  transition: color 0.3s ease;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header.scrolled .header__nav a {
  color: #111;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* СОЦСЕТИ */
.header__socials {
  display: flex;
  gap: 12px;
}

.header__socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.25s ease;
}

.header__socials svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: transform 0.25s ease, fill 0.25s ease;
}

.header__socials a:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.header__socials a:hover svg {
  transform: scale(1.1);
}

.header.scrolled .header__socials a {
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.03);
}

.header.scrolled .header__socials svg {
  fill: #111;
}

.header__socials a.vk svg {
  transform: translateY(-0.5px);
}

/* =========================
   ЯЗЫК
========================= */

.header__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
}

.lang {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
  color: inherit;
}

.lang.active {
  opacity: 1;
}

.lang:hover {
  opacity: 1;
}

.header.scrolled .header__lang {
  color: #111;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 6s ease;
  transform: scale(1.05);
}

.hero__slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.3)
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 30%,rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(6px);
}

.hero-arrow:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow--left {
  left: 30px;
}

.hero-arrow--right {
  right: 30px;
}

/* POPULAR */
.popular {
  padding: 55px 0;
}

.popular__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  object-fit: cover;
}

.card__info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
}

/* ==========
    YOUTUBE 
   ========== */
.youtube-block {
  padding: 45px 0;
}

.youtube-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.youtube-btn {
  background: #ff0000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  text-decoration: none;
}

.youtube-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  flex: 1;
  align-items: stretch;
}

.youtube-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.youtube-main .video {
  aspect-ratio: auto;
  height: calc(100%); 
}

.youtube-side .video {
  flex: 1;
}

.video iframe {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: none;
}

.youtube-block .container {
  border-radius: 20px;
  padding: 32px;
  background: #ffffff;
  border: 2px solid #ddd;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.youtube-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.youtube-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,0,0,0.4);
}

@media (max-width: 768px) {
  .youtube-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CAROUSEL SECTION
   ========================= */
.carousel-section {
  padding: 60px 0;
}

.carousel-section .container {
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 32px;
  background: #ffffff;
}

.carousel-wrapper {
  position: relative;
}

.carousel {
  overflow: hidden;
  max-width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  will-change: transform;
}

.carousel-card {
  flex: 0 0 200px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer; 
}

.carousel-card:hover {
  transform: scale(1.06);
  z-index: 2;
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: block;
}

.card-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: #fff5edde;
  color: #111111c6;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 18px;
  text-align: center;
  font-size: 12px;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-card.active .card-overlay {
  opacity: 1;
}

/* ==================================== */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.5);
  color: #ffffff;

  font-size: 14px;
  cursor: pointer;

  z-index: 5;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: -22px;
}

.carousel-btn.next {
  right: -22px;
}

.carousel-card,
.popular-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.carousel-card:hover,
.popular-card:hover {
  transform: scale(1.06);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

 /* =========================
   PARTNERS CAROUSEL
========================= */
.partners-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.partners {
  padding: 30px 0 60px;
}

.partners-carousel {
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}

.partners-track {
  display: flex;
  gap: 20px;
  align-items: center;
  will-change: transform;
}

.partner {
  flex: 0 0 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.8;
  transition: 0.3s ease;
}

.partner img:hover {
  opacity: 1;
  transform: scale(1.05);
}
/* ===========
     FOOTER
  ============ */

.site-footer {
  position: relative;
  z-index: 2;
  background: #fcfcfc;
  padding: 40px 0 20px;
  border-top: 1px solid #e0e0e0;
}

.site-footer .container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid; 
  grid-template-columns: 1fr 1fr 1.2fr; 
  gap: 50px; 

  padding: 20px 0 10px; 
  border-bottom: 1px solid #e0e0e0; 

  align-items: start; 
  position: relative;
}

.footer-col {
  position: relative;
}

.footer-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 1px;
  height: 100px; 
  background: #e0e0e0;
}

/* =========================
   ЗАГОЛОВКИ
   ========================= */
.footer-col h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: 0; 
  color: #444;
}

.footer-col a {
  display: block;
  font-size: 16px;
  margin-bottom: 14px;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #000;
}

.footer-contacts .address {
  font-size: 16px;
  margin-bottom: 14px;
  color: #1a1a1a;
}

.footer-contacts p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #333;
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  font-size: 14px;
  color: #666;
  padding-right: 0;
}

/* =========================
   SCROLL ANIMATION SYSTEM
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   MOVIES PAGE
   ===================================================== */
body.movies-page .header {
  height: 65px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

body.movies-page .header.scrolled {
  height: 60px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

body.movies-page .header__nav a,
body.movies-page .header__lang,
body.movies-page .lang {
  color: #111;
}

body.movies-page .header__socials svg {
  fill: #111;
}

body.movies-page .header__socials a {
  border-color: rgba(0,0,0,0.2);
}

body.movies-page .page-header {
  padding: 130px 0 40px;
}

.page-header h1 {
  font-size: 34px;
  font-weight: 700;
  color: #111;
}

body.movies-page .movies-section {
  padding: 40px 0 100px;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.movie-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.movie-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.movie-info {
  padding: 16px;
  text-align: center;
}

.movie-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

body.movies-page .site-wrapper {
  background: transparent;
  box-shadow: none;
}

body.movies-page .movies-section {
  padding: 40px 0 100px;
}

/* =====================================
   INNER PAGES
===================================== */

body.inner-page {
  color: #1a1a1a;
}

body.inner-page .header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  height: 70px;
  transition: all 0.3s ease;
}

body.inner-page .header.scrolled {
  height: 60px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

body.inner-page .header__nav a,
body.inner-page .header__lang,
body.inner-page .lang {
  color: #111;
}

body.inner-page .header__socials svg {
  fill: #111;
}

body.inner-page .header__socials a {
  border-color: rgba(0,0,0,0.2);
}

/* ================= HERO ================= */

.inner-hero {
  padding: 120px 0 40px;
}

.inner-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
}

.inner-hero p {
  font-size: 18px;
  color: #555;
  max-width: 700px;
}

/* ================= CONTENT ================= */

.inner-content,
.about-content,
.ads-content,
.cooperation {
  padding: 30px 0 80px;
}

.inner-content .container,
.about-content .container,
.ads-content .container {
  max-width: 820px;
}

.inner-content p,
.about-text p,
.ads-text p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 22px;
  color: #333;
}

/* ================= CONTACT BLOCK ================= */

.ads-contacts,
.cooperation-note {
  margin-top: 50px;
  padding: 35px 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.549);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.ads-contacts h3,
.cooperation-note h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.ads-contacts a {
  display: block;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ads-contacts a:hover {
  opacity: 0.7;
}

/* ================= FOOTER FIX ================= */

body.inner-page footer {
  position: relative;
  z-index: 2;
}


/* =====================================================
   COOPERATION 
   ===================================================== */

.cooperation {
  padding: 110px 0 70px;
}
.cooperation-header {
  color: #333;
}
.cooperation-header p{
  font-size: 18px;
}
.timeline {
  margin-top: 40px;
  border-left: 2px solid rgba(0,0,0,0.08);
  padding-left: 30px;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
  color: #333;
}

.timeline-number {
  position: absolute;
  left: -41px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

.timeline-item p {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

.cooperation-contact {
  padding: 10px 0 30px;
}

.contact-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  max-width: 500px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-box p {
  color: #666;
  margin-bottom: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: #ff7a00;
}

.contact-btn {
  margin-top: 10px;
  background: #ff7a00;
  color: #fff;
  border: none;
  display: block;
  margin: 20px auto 0;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,122,0,0.3);
}

/* =====================================================
   RESPONSIVE 
   ===================================================== */

body.menu-open {
  overflow: hidden;
}

/* BURGER */
.burger {
  display: none;
  width: 26px;
  height: 20px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #111;
  transition: 0.3s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }

@media (max-width: 768px) {
  .burger {
    display: block;
  }
}

/* BURGER ANIMATION */
.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* ===============================
   LAPTOP (≤1024px)
================================ */

@media (max-width: 1024px) {

  .container {
    padding: 0 20px;
  }

  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .popular__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .carousel-card {
    flex: 0 0 180px;
  }

}


/* ===============================
   TABLET / MOBILE (≤768px)
================================ */

@media (max-width: 768px) {

  .header {
    position: fixed;
    height: 60px;
    background: #fff;
  }

  .header.scrolled {
  height: 50px;
}

  .header__nav,
  .header__socials,
  .header__lang {
    display: none;
  }
  
  .hero {
    height: 280px;
    margin-top: 50px;
  }

  .hero__slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }


  .header__inner {
    padding: 0 16px;
    justify-content: space-between;
  }

  /* POPULAR */
   .popular__grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .card {
    width: 100%;
  }

  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  /* MOVIES */
  .movies-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }

  /* CAROUSEL */
  .carousel-card {
    flex: 0 0 150px;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

    .contact-box {
    padding: 30px 20px;
  }

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


  .partners-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .partner {
    height: 40px;
  }

  .partner img {
    max-height: 40px;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* третью колонку переносим вниз */
  .footer-col:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .footer-col::after {
    display: none;
  }

}

/* ===============================
   SMALL MOBILE (≤480px)
================================ */

@media (max-width: 480px) {

  .popular__grid,
  .movies-grid {
    grid-template-columns: 1fr;
  }

  .carousel-card {
    flex: 0 0 130px;
  }

  .footer-bottom {
    font-size: 12px;
  }

}

/* OVERLAY */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1400;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.movie-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.movie-card.active .movie-description {
  max-height: 200px;
  padding: 16px;
}


.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  padding: 80px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1500;
}
.mobile-menu__header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.mobile-menu__header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #444;
}
.mobile-menu a {
  text-decoration: none;
  color: #444;
  font-size: 18px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  transition: 0.25s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: #ff7a00;
  padding-left: 6px;
}

.mobile-menu a:hover {
  color: #ff7a00;
  transform: translateX(6px);
}

.mobile-menu.active {
  transform: translateX(0);
}

