:root {
  --bg: #17181c;
  --bg2: #22232a;
  --bg-glass: rgba(34,35,42,0.93);
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --line: rgba(255,255,255,0.07);
  --input-bg: #23242a;
  --input-border: #393a40;
  --input-placeholder: #666;
  --accent: #7aa27f;
  --accent2: #5f8a7c;
  --accent3: #4e6f7a;
  --desc: #a0b0b3;
  --max: 1120px;
  --radius-card: 16px;
  --radius-poster: 18px;
  --radius-btn: 12px;
  --radius-input: 8px;
  --shadow-card: 0 6px 32px rgba(0,0,0,0.18);
  --shadow-sm: 0 8px 24px rgba(0,0,0,0.16);
  --font-main: 'Montserrat', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-align: center;
}

a {
  color: var(--accent2);
  text-decoration-color: rgba(95,138,124,0.15);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

img { max-width: 100%; height: auto; vertical-align: middle; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.section p, .film-desc, .company-desc { color: var(--desc); }

.header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}
.brand {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.logo {
  width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.nav {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
  font-size: 13px;
  z-index: 10;
}
.nav a {
  padding: 6px 8px;
  color: var(--accent2);
}
.nav a:hover {
  color: var(--accent);
  background: rgba(95,138,124,0.10);
  border-radius: 6px;
}

.section { padding: 64px 0; }
.section-alt { background: var(--bg2); }

.film-title-block {
  text-align: center;
  margin-bottom: 18px;
}

.film-title {
  font-size: 2.5em;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 18px 0;
  text-transform: uppercase;

  background: linear-gradient(
    60deg,
    var(--accent3) 0%,
    var(--accent2) 60%,
    var(--accent) 100%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: rgba(255,255,255,0.001);
  color: transparent;

  filter: drop-shadow(0 1px 6px rgba(34,138,124,0.15));

  isolation: isolate;
  will-change: transform;
  transform: translateZ(0);
}

.film-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  padding: 32px 24px;
  background: var(--bg-glass);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.film-top-row {
  display: flex;
  gap: 36px;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 32px;
}

.film-poster-media {
  width: 270px;
  min-width: 140px;
  max-width: 330px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}
.film-poster-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-poster);
  box-shadow: var(--shadow-sm);
  background: #111;
  object-fit: contain;
  max-height: 420px;
}

.film-info-block {
  flex: 1 1 0;
  min-width: 0;
  color: #e2e2e2;
  font-size: 1.07em;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.card-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

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

.card-footer-info { margin-top: 10px; }

.film-director-producer {
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 0.95em;
  font-weight: 400;
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
}
.social-links img {
  width: 22px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.social-links a:hover img {
  opacity: 1;
  filter: drop-shadow(0 0 4px var(--accent3));
}

.list {
  margin: 8px 0 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.95em;
  color: var(--muted);
}
.list li { margin: 0 0 6px 0; }

.film-trailer-row {
  width: 100%;
  margin: 0 auto 48px auto;
  display: flex;
  justify-content: center;
}

/* Contact Form Styles */
.form-container {
  max-width: 520px;
  margin: 0 auto;
}

.form-container .form {
  display: grid;
  gap: 16px;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-input);
  border: none;
  outline: none;
  background: var(--input-bg);
  color: var(--text);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

.form-container input:focus,
.form-container textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--accent2);
  background: #222;
}

.form-container input::placeholder,
.form-container textarea::placeholder {
  color: var(--input-placeholder);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  background: var(--input-bg);
  color: #bbb;
  font-weight: 700;
  font-size: 1.1em;
  border: 0;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.2s, color 0.2s;
}
.button:hover { background: #393a40; color: #eee; }
.button:active { transform: scale(0.98); }

.button.disabled, .button:disabled {
  background: #2a2b30;
  color: #555;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  font-size: 0.95em;
  min-height: 20px;
  text-align: center;
}
.form-message.error {
  color: #d86c6c;
}
.form-message.success {
  color: var(--accent);
}

.g-recaptcha-container {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.accent {
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  font-size: 13px;
  color: var(--muted);
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .film-grid { max-width: 100%; }
  .card { padding: 24px 4vw; }
  .film-title { font-size: 2em; }
  .logo { width: 200px; }
  .film-top-row { gap: 12px; }
  .film-poster-media { width: 140px; max-width: 160px; }
  .film-poster-media img { max-width: 140px; max-height: 220px; }
}

@media (max-width: 700px) {
  .section { padding: 40px 0; }
  .logo { width: 150px; }
  .film-title { font-size: 1.5em; }

  .film-trailer-row {
    margin-bottom: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .film-grid {
    display: block;
    width: 100%;
  }

  .card {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    padding: 0;
    border-radius: 0;
    background: var(--bg-glass);
    box-shadow: none;
    overflow: visible;
  }

  .film-top-row {
    flex-direction: column;
    gap: 0;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
  }

  .film-poster-media {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    margin: 0 auto 24px auto;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .film-poster-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 120px;
    height: auto;
    max-height: 80vh;
    margin: 0 auto;
    object-fit: cover;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }

  .film-info-block {
    padding: 0 24px 32px 24px;
  }
}

@media (max-width: 900px) and (orientation: landscape),
       (max-width: 700px) and (orientation: landscape) {

  .film-top-row {
    flex-direction: column;
    gap: 0;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
  }

  .film-poster-media {
    width: 100%;
    max-width: 100vw;
    justify-content: center;
    margin: 0 auto 18px auto;
  }

  .film-poster-media img {
    width: auto;
    max-width: 98vw;
    height: 92vh;
    max-height: 92vh;
    margin: 0 auto;
  }

  .film-info-block {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 0 2vw;
  }
}