/* Landing page for Марина в огне v2.0b3
 * Steam-style cinematic hero + thumbnail gallery.
 * MPL-2.0
 */

:root {
  --bg: #0a0e14;
  --bg-2: #111821;
  --panel: #17212b;
  --fg: #ffffff;
  --muted: #a1b5c8;
  --subtle: #6c7d90;
  --accent: #ff6b3d;
  --accent-2: #ff8052;
  --ok: #65c77e;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 107, 61, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(87, 163, 255, 0.08) 0%, transparent 60%),
    var(--bg);
  color: var(--fg);
  font-family: -apple-system, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

/* ===== Hero section ===== */

.hero {
  position: relative;
  width: 100%;
  min-height: min(720px, 90vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-image: url("../img/hero/hero_main.webp");
  filter: saturate(1.1) contrast(1.05);
  will-change: transform;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 14, 20, 0.2) 0%,
      rgba(10, 14, 20, 0.35) 40%,
      rgba(10, 14, 20, 0.85) 80%,
      rgba(10, 14, 20, 1) 100%),
    linear-gradient(90deg,
      rgba(10, 14, 20, 0.6) 0%,
      rgba(10, 14, 20, 0.1) 50%,
      rgba(10, 14, 20, 0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 60px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 11px;
  background: rgba(255, 107, 61, 0.15);
  border: 1px solid rgba(255, 107, 61, 0.4);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.7);
  color: #fff;
}

.hero-title .fire {
  display: inline-block;
  margin-right: 8px;
  filter: drop-shadow(0 0 18px rgba(255, 107, 61, 0.6));
}

.hero-tagline {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--muted);
  font-weight: 400;
  max-width: 560px;
  margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 4px 0 22px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero-meta .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--accent) 0%, #e14f1f 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 8px 32px rgba(255, 107, 61, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(255, 107, 61, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cta-btn:active { transform: translateY(0); }

.cta-btn .arrow { font-size: 19px; transition: transform 160ms; }
.cta-btn:hover .arrow { transform: translateX(3px); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 22px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 160ms, border-color 160ms;
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ===== Gallery thumbnails strip ===== */

.gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 28px 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 240ms ease, border-color 240ms;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 240ms;
  filter: saturate(1.08);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0) 60%, rgba(10, 14, 20, 0.7) 100%);
  pointer-events: none;
}

.gallery-item:hover {
  border-color: rgba(255, 107, 61, 0.5);
  transform: translateY(-2px);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.2) brightness(1.05);
}

.gallery-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== Content section ===== */

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 28px 60px;
}

.content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.content p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.65;
}

.content p b {
  color: var(--accent-2);
  font-weight: 600;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0 10px;
}

.feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 18px 16px;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 6px;
}

.feature-desc {
  font-size: 12.5px;
  color: var(--subtle);
  line-height: 1.5;
  margin: 0;
}

/* ===== Footer / meta ===== */

.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 28px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  border-bottom: 1px dotted var(--subtle);
  transition: color 140ms, border-color 140ms;
}

.site-footer a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.site-footer .author { margin: 6px 0 4px; }
.site-footer .license { margin-top: 6px; font-size: 11px; opacity: 0.8; }

/* ===== Mobile ===== */

@media (max-width: 768px) {
  .hero { min-height: 620px; }
  .hero-inner { padding: 48px 20px 36px; }
  .hero-title { font-size: clamp(36px, 11vw, 56px); }
  .gallery { padding: 20px 20px 4px; }
  .gallery-grid { gap: 8px; }
  .gallery-caption { font-size: 11px; left: 10px; bottom: 8px; }
  .content { padding: 32px 20px 48px; }
  /* .feature-row handled below in SPRINT 21 new rules */
  .cta-btn { padding: 14px 24px; font-size: 15.5px; width: 100%; justify-content: center; }
  .cta-ghost { width: 100%; justify-content: center; padding: 13px 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(3) { grid-column: 1 / -1; }
}

/* SPRINT 21 — Sticky nav */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(14, 22, 33, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 107, 61, 0.25);
}
.sticky-nav .nav-brand {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.sticky-nav .nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.sticky-nav .nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 140ms;
}
.sticky-nav .nav-links a:hover {
  color: #fff;
}
.sticky-nav .nav-cta {
  background: linear-gradient(135deg, #ff6b3d 0%, #e14f1f 100%);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .sticky-nav { padding: 10px 14px; }
  .sticky-nav .nav-links { gap: 10px; }
  .sticky-nav .nav-links a:not(.nav-cta) { display: none; }
}

/* SPRINT 21 — Characters grid */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.char-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 107, 61, 0.15);
  border-radius: 12px;
  padding: 16px;
  transition: transform 160ms, border-color 160ms;
}
.char-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 61, 0.45);
}
.char-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b3d, #8f1a05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.char-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}
.char-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}
.char-card p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 900px) {
  .characters-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .characters-grid { grid-template-columns: 1fr; }
}

/* SPRINT 21 — FAQ */
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-item h3 {
  font-size: 15px;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 600;
}
.faq-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Feature row grows to 6 cards */
.feature-row {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feature-row { grid-template-columns: 1fr; }
}
