@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --brand: #38bdf8;
  --brand-dark: #0284c7;
  --surface: #1e293b;
  --border: #334155;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-logo {
  width: 32px;
  height: 32px;
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
}
.main-nav a:hover {
  color: #fff;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  gap: 4px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav ul {
  list-style: none;
  padding: 8px 16px 16px;
  margin: 0;
  display: grid;
  gap: 8px;
}
.mobile-nav a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #fff;
  border-radius: 8px;
}
.mobile-nav a:hover {
  background: var(--surface);
}
body.nav-open .mobile-nav {
  display: block;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: grid;
  align-items: center;
  background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--brand);
  filter: blur(180px);
  opacity: 0.15;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding: 80px 0;
}
.hero-content h1 {
  margin: 0 0 20px;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
}
.hero-content .lead + .lead {
  margin-top: 10px;
}
.hero-media {
  min-height: 400px;
  border-radius: 24px;
  background-image: url("../img/hero-bg.webp");
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
/* Parallax effect simulated via transform */
.hero:hover .hero-media {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

/* Sections */
.section {
  padding: 100px 0;
}
.section h2 {
  margin: 0 0 24px;
  font-size: 40px;
  letter-spacing: -0.5px;
  color: #fff;
}
.section p {
  color: var(--muted);
}

/* Media section */
.section-media .media-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
#promoVideo {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  display: block;
}

/* Buttons */
@keyframes pulse-brand {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.btn {
  appearance: none;
  border: 0;
  background: var(--surface);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: #334155;
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: #fff;
  color: #0f172a;
}
.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}
#playPromoBtn {
  animation: pulse-brand 2s infinite;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transform: scale(1);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(to top, rgba(15,23,42,0.95), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Stats */
.section-stats {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat {
  padding: 40px 20px;
  border-radius: 14px;
  background: transparent;
}
.stat-number {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}
.stat-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}
.contacts-info p {
  margin: 12px 0;
  font-size: 18px;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: var(--surface);
  color: #fff;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.form-success {
  margin-top: 8px;
  padding: 14px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
}

/* Footer */
.site-footer {
  background: #020617;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
.socials {
  display: flex;
  gap: 16px;
}
.legal {
  display: flex;
  gap: 16px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Gallery Loader */
.gallery-loader {
  text-align: center;
  padding: 32px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fake Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;
  background: #1e293b;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.chat-widget.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.chat-header {
  background: var(--surface);
  color: #fff;
  padding: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.chat-header button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}
.chat-header button:hover {
  color: #fff;
}
.chat-body {
  height: 300px;
  padding: 16px;
  overflow-y: auto;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-message.system {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  align-self: flex-start;
  color: #e2e8f0;
}
.chat-message.user {
  background: var(--brand-dark);
  color: #fff;
  align-self: flex-end;
}
.chat-input-area {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 10px;
  background: var(--surface);
}
.chat-input-area input {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  outline: none;
  background: #0f172a;
  color: #fff;
}
.chat-input-area input:focus {
  border-color: var(--brand);
}
.chat-input-area button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.chat-input-area button:hover {
  background: var(--brand-dark);
}
.chat-open-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
  cursor: pointer;
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.chat-open-btn:hover {
  transform: scale(1.1);
}
.chat-open-btn.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .lead {
    margin: 0 auto;
  }
  .hero-media {
    min-height: 300px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 36px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .stats-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .chat-widget {
    width: calc(100% - 40px);
    bottom: 20px;
    right: 20px;
  }
}
