.divider-subreel,
.divider-football {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* ===== STICKY NAV ===== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 56px;
  background: rgba(232, 233, 238, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(61,61,180,0.25);
  box-shadow: 0 1px 0 rgba(61,61,180,0.06);
  transition: background 0.3s ease;
}

.nav-logo {
  font-size: 1rem;
  font-style: italic;
  color: #3d3db4;
  text-decoration: none;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: #3d3db4;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.nav-contact-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.nav-link:hover {
  opacity: 1;
}

.nav-lang {
  display: flex;
  gap: 0.6rem;
}

.lang-switch-nav {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #3d3db4;
  opacity: 0.4;
  padding: 0;
  transition: opacity 0.2s ease;
}

.lang-switch-nav.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-lang {
    display: none;
  }
  .sticky-nav {
    padding: 0 1.2rem;
  }
}

/* ===== HERO TEXT ===== */
.hero-text {
  max-width: 780px;
  margin: 7rem auto 5rem;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  color: #3d3db4;
  line-height: 1.2;
  margin: 0 0 2.5rem;
  letter-spacing: 0.02em;
}

.hero-body {
  border-left: 1px solid rgba(61,61,180,0.2);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-para {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 300;
  color: #3d3db4;
  opacity: 0.7;
  line-height: 1.75;
  margin: 0;
  font-style: italic;
}

.hero-cta {
  opacity: 1;
  font-style: normal;
  margin-top: 0.5rem;
}

.hero-contact-link {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(61,61,180,0.35);
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  color: #3d3db4;
  text-decoration: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.hero-contact-link:hover {
  border-color: #3d3db4;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .hero-text {
    margin: 5rem auto 3rem;
  }
  .hero-body {
    padding-left: 1.2rem;
  }
}


html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #e8e9ee;
  color: #3d3db4;
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ===== FILM GRAIN (tuned for light background) ===== */
body::before {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: 999;
  pointer-events: none;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.025) 0px,
      rgba(0,0,0,0.025) 1px,
      rgba(0,0,0,0.025) 2px,
      rgba(0,0,0,0.025) 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      rgba(0,0,0,0.02) 2px,
      rgba(0,0,0,0.02) 3px
    );

  opacity: 0.32;
  animation: grain 0.8s steps(2) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-0.6%, 0.4%); }
  50%  { transform: translate(0.4%, -0.6%); }
  75%  { transform: translate(-0.4%, -0.4%); }
  100% { transform: translate(0.6%, 0.6%); }
}

/* ===== TAGLINE ===== */
.tagline {
  max-width: 1200px;
  margin: 2rem auto 2.5rem;
  padding: 0 2rem;
  font-size: clamp(2.4rem, 2.5vw, 6rem);
  font-style: italic;
  font-weight: 300;
  opacity: 0.65;
  transition: opacity 0.5s ease;
}

.tagline-mobile {
  font-style: italic;
  font-weight: 300;
}

/* ===== SHOWREEL ===== */
.showreel{
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  border-radius: 26px;
}

.showreel-desktop,
.showreel-mobile {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: blur(1.4px) contrast(0.9) saturate(0.85);
  animation: gate 6s infinite linear;
  transition: filter 0.9s ease;
}

.showreel-mobile {
  display: none;
}

.showreel-desktop {
  display: block;
}

@media (max-width: 768px) {
  .showreel-desktop { display: none; }
  .showreel-mobile  { display: block; }
}

.showreel:hover .showreel-desktop,
.showreel:hover .showreel-mobile {
  filter: blur(0px) contrast(1) saturate(1);
}
/* HIDE TAGLINE + CONTACT WHEN SHOWREEL HOVERED */
body:has(.showreel:hover) .tagline,
body:has(.showreel:hover) .contact-widget {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* GATE WEAVE */
@keyframes gate {
  0%   { transform: scale(1) translate(0,0); }
  25%  { transform: scale(1.002) translate(-0.25%, 0.2%); }
  50%  { transform: scale(1.001) translate(0.2%, -0.25%); }
  75%  { transform: scale(1.002) translate(-0.2%, -0.1%); }
  100% { transform: scale(1) translate(0,0); }
}




/* ===== SECTIONS ===== */
section {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

h2 {
  font-weight: 20;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  margin-bottom: 3rem;
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  position: relative;
}
h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 12px;
  background: currentColor;
  opacity: 0.35;
}
.youtube h2 {
  opacity: 0.75;
  letter-spacing: 0.12em;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ===== FILM CARD ===== */
.film {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== VIDEO LINKS ===== */
.video-link {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: block;

  border: 2px solid rgba(23,65,122,0.25); /* dark blue frame */
  background: #d0d1da;

  transition: transform 0.35s ease, filter 0.35s ease;
}

.video-link:hover {
  transform: translateY(-4px) scale(1.015);
  filter: brightness(1.03);
}

.video-link {
  aspect-ratio: 16 / 9;
}

.video-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: contrast(0.9) saturate(0.85);
}

/* MONTAGE HOVER */
.video-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #17417a;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.video-link:hover::after {
  opacity: 0.15;
}

/* ===== PLAY ICON ===== */
.play {
  position: absolute;
  inset: 0;

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

  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;

  color: #fcba03; /* muted apricot */
  background: rgba(0,0,0,0.18);

  opacity: 0;
  transition: opacity 0.35s ease;

  pointer-events: none;
}
.video-link:hover .play {
  opacity: 1;
}

/* ===== FEATURED SINGLE VIDEO ===== */
.film-featured {
  /* sits in the normal .grid — takes exactly one grid cell, same size as siblings */
}

.film-desc {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.6;
  font-style: italic;
}

/* ===== STRATOPLAN EXAMPLES LABEL ===== */
.strato-examples-label {
  font-size: 0.85rem;
  opacity: 0.5;
  font-style: italic;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

/* ===== FILM TITLES ===== */
.film-title {
  margin-top: 0.9rem;
  font-size: 1.35rem;
  font-weight: 400;
  text-align: center;
  color: #3d3db4;
  letter-spacing: 0.03em;
}


/* ===== FOOTER ===== */
footer {
  text-align: center;
  margin: 6rem 0 3rem;
  opacity: 0.45;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.6rem;
}

.footer-socials .icon {
  width: 28px;
  height: 28px;
  color: #3d3db4;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 8px;
  margin: -8px;
  box-sizing: content-box;
}

.footer-socials .icon:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* ===== FADE ===== */
.fade {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  /* фолбэк: если JS не сработал — показать через 2с */
  animation: fadeFailsafe 0s 2s forwards;
}

@keyframes fadeFailsafe {
  to { opacity: 1; transform: translateY(0); }
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .showreel {
    height: 50vh;
    margin-top: 0;
    border-radius: 14px;
  }

  .showreel video {
    border-radius: 14px;
  }

  .tagline {
    font-size: 1.25rem;
    line-height: 1.45;
    padding: 0 20px;
    margin: 1.2rem auto 1.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .video-link {
    aspect-ratio: 16 / 9;
  }

  .video-link img {
    height: 100%;
    object-fit: cover;
  }

  .youtube .video-link.single {
    max-width: 100%;
  }

  .film-title {
    font-size: 1.1rem;
    margin-top: 0.6rem;
  }

  section {
    margin-bottom: 3.5rem;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 1.4rem;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .lang-switch {
    top: 16px;
    right: 16px;
  }
}
/* SHOWREEL ARROW */
.showreel {
  position: relative;
}

.showreel-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: -3.5rem auto 0;

  text-decoration: none;
  color: #3d3db4;
  width: fit-content;
  position: relative;
  z-index: 10;

  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.showreel-arrow:hover {
  opacity: 1;
  transform: translateY(4px);
}

.showreel-arrow span {
  font-size: 2rem;
  line-height: 1;
}

.showreel-arrow small {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3d3db4;
}
/* EXPERIMENTAL FILM GRAIN LAYER */
body::after {
  content: "";
  position: fixed;
  inset: -100%;
  pointer-events: none;
  z-index: 998;

  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'>\
<filter id='n'>\
<feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/>\
</filter>\
<rect width='100%' height='100%' filter='url(%23n)' opacity='0.2'/>\
</svg>");

  mix-blend-mode: normal;
  opacity: 0.6;
  animation: grainMove 1.5s steps(2) infinite;
}



body::before,
body::after {
  pointer-events: none;
}

.lang-switch {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 1000;
}

.lang-switch button {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: #17417a;
  opacity: 0.4;
  cursor: pointer;
  letter-spacing: 0.08em;
}

.lang-switch button.active {
  opacity: 1;
  text-decoration: underline;
}
.lang-fade {
  transition: opacity 0.35s ease;
}

.lang-fade.hidden {
  opacity: 0;
}
.icon.kinopoisk {
  width: 28px;
  height: 28px;
  background: #f5b400; /* kinopoisk yellow */
  color: #111;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon.kinopoisk:hover {
  transform: scale(1.2);
  opacity: 0.85;
}
.media{
  position: relative;
  overflow: hidden;
}

.media img{
  transition: transform .6s ease, filter .6s ease;
}

.media:hover img{
  transform: scale(1.05);
  filter: brightness(0.75);
}

.media .play{
  opacity: 0;
  transition: opacity .4s ease;
}

.media:hover .play{
  opacity: 1;
}
.grid .media{
  display:block;
  border-radius:10px;
  overflow:hidden;

  box-shadow:0 10px 26px rgba(0,0,0,0.22);

  transition: transform .35s ease, box-shadow .35s ease;
}

.grid .media:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 46px rgba(0,0,0,0.35);
}

.grid .media img{
  width:100%;
  display:block;
  transition: transform .45s ease, filter .45s ease;
}

.grid .media:hover img{
  transform:scale(1.04);
  filter:brightness(.85);
}

.media:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 46px rgba(0,0,0,0.35);
}
.media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.showreel::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.25) 100%
  );
}
.details-btn{
  margin-left:12px;
  padding:4px 10px;

  font-size:0.8rem;
  letter-spacing:0.5px;

  border:1px solid rgba(255,255,255,0.3);
  background:transparent;
  color:#aaa;

  border-radius:999px;
  cursor:pointer;

  transition:all .25s ease;
}

.details-btn:hover{
  color:white;
  border-color:white;
}
/* MODAL */

.modal{
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.7);

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

  opacity: 0;
  pointer-events: none;

  transition: opacity .3s ease;

  z-index: 3000;
}

.modal.active{
  opacity: 1;
  pointer-events: auto;
}

.modal-content{
  position: relative;

  background: #111;
  padding: 32px;
  border-radius: 16px;

  max-width: 420px;
  width: 90%;

  color: white;

  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.modal-close{
  position: absolute;
  top: 12px;
  right: 16px;

  font-size: 22px;
  cursor: pointer;

  color: #aaa;
}

.modal-close:hover{
  color: white;
}
.subsection-header{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.details-btn{
  margin-left:12px;
  padding:6px 14px;

  font-size:0.82rem;

  background:transparent;
  color:#17417a;

  border:1px solid #17417a;   /* ВОТ ЭТА СТРОКА */

  border-radius:999px;
  cursor:pointer;

  transition:all .25s ease;
}

.details-btn:hover{
  background:#17417a;
  color:white;
}
/* ===== CONTACT WIDGET ===== */
.contact-widget {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.contact-toggle {
  background: #3d3db4;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.contact-menu {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.contact-mail-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-email {
  font-size: 0.75rem;
  color: #3d3db4;
  opacity: 0.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: right;
}

.contact-menu a,
.contact-mail-btn {
  background: #fff;
  border: 1.5px solid rgba(23,65,122,0.2);
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #3d3db4;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-menu a:hover,
.contact-mail-btn:hover {
  transform: translateY(-2px);
  background: #fcba03;
  color: #fff;
  border-color: transparent;
}




/* ============================================
   MOBILE REDESIGN
   ============================================ */

@media (max-width: 768px) {

  /* Скрыть десктопные элементы */
  .lang-switch       { display: none; }
  .contact-widget    { display: none; }
  .tagline           { display: none; }
  .showreel-arrow    { display: none; }

  /* SHOWREEL — полный экран */
  .showreel {
    height: 100svh;
    border-radius: 0;
    margin-top: 0;
  }

  /* TAGLINE поверх видео */
  .tagline-mobile {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 0 24px;
    margin: 0;
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    color: #3d3db4;
    opacity: 0.85;
    line-height: 1.4;
    z-index: 10;
    pointer-events: none;
  }

  /* СТРЕЛКА внутри showreel снизу */
  .showreel-arrow-mobile {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fcba03;
    text-decoration: none;
    z-index: 10;
    opacity: 0.9;
    transition: transform 0.3s ease;
  }
  .showreel-arrow-mobile span { font-size: 1.6rem; line-height: 1; }
  .showreel-arrow-mobile small {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .showreel-arrow-mobile:hover { transform: translateX(-50%) translateY(4px); }

  /* ГАМБУРГЕР */
  .hamburger {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2000;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    transition: opacity 0.2s ease;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e8e9ee;
    border-radius: 2px;
    transition: background 0.3s ease;
  }

  /* Скрыть гамбургер когда меню открыто */
  .hamburger.menu-open { opacity: 0; pointer-events: none; }

  /* Когда страница проскролена — гамбургер тёмный */
  .hamburger.scrolled span { background: #3d3db4; }

  /* OVERLAY МЕНЮ */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #e8e9ee;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 32px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #3d3db4;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 8px;
  }
  .mobile-menu-close:hover { opacity: 1; }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .mobile-menu-link {
    font-size: clamp(2rem, 8vw, 2.8rem);
    color: #3d3db4;
    text-decoration: none;
    opacity: 0.85;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
  }
  .mobile-menu-link:hover { opacity: 1; }

  .mobile-menu-contacts {
    display: flex;
    gap: 16px;
    margin-top: 1rem;
  }

  .mobile-menu-contact {
    background: none;
    border: 1.5px solid rgba(61,61,180,0.3);
    color: #3d3db4;
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    padding: 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: inline-block;
  }
  .mobile-menu-contact:hover {
    background: rgba(61,61,180,0.08);
    border-color: #3d3db4;
  }

  .mobile-menu-lang {
    display: flex;
    gap: 12px;
    margin-top: 0.5rem;
  }
  .lang-switch-mobile {
    background: none;
    border: none;
    color: #3d3db4;
    font-family: inherit;
    font-size: 0.9rem;
    opacity: 0.4;
    cursor: pointer;
    letter-spacing: 0.08em;
    padding: 0;
  }
  .lang-switch-mobile.active {
    opacity: 1;
    text-decoration: underline;
  }

  /* GRID — одна колонка, по центру */
  .grid {
    grid-template-columns: 1fr;
  }

  .film {
    width: 100%;
    align-items: center;
  }

  .video-link {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  /* Центрировать секции */
  section {
    padding: 0 1.2rem;
  }

  .grid,
  .film,
  .video-link,
  .film-title {
    text-align: center;
  }

  /* MY ROLE — кнопка сразу под заголовком */
  .subsection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
  }

  .subsection-title {
    margin: 0;
  }

  .details-btn {
    margin-left: 0;
  }

}

/* Скрыть мобильные элементы на десктопе */
@media (min-width: 769px) {
  .hamburger            { display: none; }
  .mobile-menu-overlay  { display: none; }
  .tagline-mobile       { display: none; }
  .showreel-arrow-mobile { display: none; }
}

/* ===== DECORATIVE SECTION ICON ===== */
.works {
  position: relative;
}

.section-deco-icon {
  position: absolute;
  top: -10px;
  right: -20px;
  width: 160px;
  height: 160px;
  object-fit: contain;
  opacity: 0.07;
  pointer-events: none;
  filter: grayscale(1);
  transform: rotate(12deg);
  user-select: none;
}

@media (max-width: 768px) {
  .section-deco-icon {
    width: 100px;
    height: 100px;
    top: -5px;
    right: -10px;
    opacity: 0.06;
  }
}

/* ===== SECTION LABELS (01 / 02 / 03) ===== */
h2[data-label]::before {
  content: attr(data-label);
  display: block;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.3em;
  opacity: 0.3;
  margin-bottom: 0.5rem;
  color: #3d3db4;
}

/* ===== VARIED SECTION SPACING ===== */
#short-films {
  margin-bottom: 8rem;
}

.youtube {
  margin-bottom: 10rem;
}

/* ===== BACKGROUND ZONE ACCENTS ===== */
#short-films {
  position: relative;
  overflow: hidden;
}
#short-films::before {
  content: "";
  position: absolute;
  inset: -3rem -100vw;
  background: rgba(255,255,255,0.02);
  pointer-events: none;
  z-index: -1;
}

.youtube {
  position: relative;
  overflow: hidden;
}
.youtube::before {
  content: "";
  position: absolute;
  inset: -3rem -100vw;
  background: rgba(61,61,180,0.04);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  #short-films::before,
  .youtube::before {
    inset: -1rem -20px;
  }
}

/* ===== STRATOPLAN TEXT CARD ===== */
.stratoplan-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem 2rem;
  text-align: center;
  gap: 1rem;
}

.stratoplan-card-logo {
  width: 55%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  opacity: 0.65;
  transition: opacity 0.3s ease;
  margin-top: 1rem;
}

.stratoplan-card-link:hover .stratoplan-card-logo {
  opacity: 0.9;
}

.stratoplan-card-cta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #3d3db4;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.stratoplan-text-card .stratoplan-card-link {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  border: 1px solid rgba(61,61,180,0.15);
  text-decoration: none;
  background: rgba(61,61,180,0.04);
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.stratoplan-text-card .stratoplan-card-link:hover {
  background: rgba(61,61,180,0.08);
  border-color: rgba(61,61,180,0.3);
}

.stratoplan-card-link:hover .stratoplan-card-cta {
  opacity: 0.75;
}

/* ===== ROLE ICON BUTTON ===== */
.role-icon-btn {
  background: none;
  border: 1px solid rgba(61,61,180,0.3);
  border-radius: 999px;
  cursor: pointer;
  color: #3d3db4;
  padding: 4px 10px 4px 8px;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  animation: roleGlow 2.4s ease-in-out infinite;
}

.role-btn-label {
  pointer-events: none;
}

@keyframes roleGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(61,61,180,0);
    border-color: rgba(61,61,180,0.3);
  }
  50% {
    box-shadow: 0 0 8px 3px rgba(61,61,180,0.18);
    border-color: rgba(61,61,180,0.6);
  }
}

.role-icon-btn:hover {
  border-color: #3d3db4;
  box-shadow: 0 0 10px 4px rgba(61,61,180,0.22);
  animation: none;
}



































































































  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  color: #3d3db4;
}

@media (max-width: 768px) {
  .divider {
    padding: 0 1.2rem;
    margin-bottom: 2rem;
  }
}

/* ===== OWN CHANNEL ACCORDION ===== */
.own-channel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 3rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  gap: 12px;
}

.own-channel-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.own-channel-heading {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  font-weight: 400;
  color: #3d3db4;
  margin: 0;
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  position: relative;
}

.own-channel-heading::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 12px;
  background: currentColor;
  opacity: 0.35;
}

.own-channel-hint {
  font-size: 0.8rem;
  color: #fff;
  background: #3d3db4;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
  align-self: flex-start;
  margin-top: 6px;
}

.own-channel-toggle:hover .own-channel-hint {
  background: #2e2e9a;
  transform: translateY(2px);
}

.own-channel-toggle.open .own-channel-hint {
  background: #12126b;
}

/* PANEL */
.own-channel-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s ease;
}

.own-channel-panel.open {
  max-height: 700px;
}

.own-channel-inner {
  background: #1e1e6a;
  border-radius: 18px;
  padding: 2.5rem 3rem;
  margin-top: 1rem;
}

/* TWO-COLUMN LAYOUT INSIDE PANEL */
.own-channel-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.own-channel-film {
  width: 100%;
}

.own-channel-film-title {
  color: #3d3db4 !important;
}

.own-channel-film .video-link {
  background: #d0d1da;
  border-color: rgba(196,134,10,0.2);
}

/* BRANDING RIGHT */
.own-channel-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
}

.own-channel-pitch {
  width: 180px;
  height: 180px;
  object-fit: contain;
  opacity: 0.75;
}

.own-channel-name {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  color: #3d3db4;
  letter-spacing: 0.06em;
  margin: 0;
  text-align: center;
}

.own-channel-sub {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3d3db4;
  opacity: 0.45;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .own-channel-layout {
    grid-template-columns: 1fr;
  }
  .own-channel-brand {
    padding: 0.5rem 0 0;
    gap: 0.8rem;
  }
  .own-channel-pitch {
    width: 110px;
    height: 110px;
  }
  .own-channel-inner {
    padding: 1.2rem;
  }
}

/* ===== OWN CHANNEL BADGE ===== */
.own-channel-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3d3db4;
  border: 1px solid #3d3db4;
  border-radius: 999px;
  opacity: 0.8;
  vertical-align: middle;
  animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 0.4; }
}

.own-channel-film {
  max-width: 560px;
}

.own-channel-film .video-link {
  background: #1e1c18;
  border-color: rgba(196,134,10,0.2);
}

@media (max-width: 768px) {
  .own-channel-film {
    max-width: 100%;
  }
}

/* ===== CHANNEL LINK ===== */
.channel-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(196, 134, 10, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.channel-link:hover {
  text-decoration-color: #3d3db4;
}

/* ===== MOBILE FIXES (new features) ===== */
@media (max-width: 768px) {

  /* Hero — чуть меньше отступ сверху (nav 56px) */
  .hero-text {
    margin-top: 4.5rem;
    padding: 0 1.2rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-para {
    font-size: 0.95rem;
  }

  /* Role button — чуть меньше на мобиле */
  .role-icon-btn {
    font-size: 0.7rem;
    padding: 3px 8px 3px 6px;
    margin-left: 6px;
  }

  /* Stratoplan card — лого немного меньше */
  .stratoplan-card-logo {
    width: 70%;
  }

  .stratoplan-card-cta {
    font-size: 0.65rem;
    bottom: 0.8rem;
  }

  /* subsection-header — не переносить на мобиле */
  .subsection-header {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  /* Section label numbers — меньше на мобиле */
  h2[data-label]::before {
    font-size: 0.6rem;
  }

  /* Film desc — чуть меньше на мобиле */
  .film-desc {
    font-size: 0.85rem;
    margin-top: 0.35rem;
  }

  /* subsection-title с длинным текстом (My own channel...) — разрешаем перенос */
  .subsection-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .subsection-title {
    flex: 1 1 100%;
  }

  .role-icon-btn {
    flex-shrink: 0;
  }
}
