@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg-1: #091618;
  --bg-2: #0d1f23;
  --bg-3: #111e22;
  --color-beige: #E8D8C3;
  --color-orange: #C96B3B;
  --color-teal: #2F5D62;
  --color-amber: #F4C95D;
  --color-blue: #7FA7C2;
  --text-primary: #E8D8C3;
  --text-muted: #8A7A6A;
  --font-head: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --header-h: 80px;
  --radius: 14px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.fixed { overflow: hidden; }

img { max-width: 100%; display: block; }

a { text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  color: var(--color-amber);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-title.centered { text-align: center; }

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-1);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader img { width: 64px; height: 64px; }

html.hide .preloader { display: none; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 201;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

header.scrolled {
  background: rgba(9, 22, 24, 0.93);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 64px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: var(--color-beige);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--color-amber);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--color-amber); }
.nav-link:hover::after { width: 100%; }

.burger-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-beige);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.act span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
#mobile-menu {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 22, 24, 0.97);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-list .nav-link {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--color-beige);
}

.mobile-nav-list .nav-link:hover { color: var(--color-amber); }

/* Hero */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero bg.webp') center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9,22,24,0.95) 0%, rgba(9,22,24,0.78) 55%, rgba(9,22,24,0.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--color-amber);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-beige);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.65;
}

.hero-text {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.hero-tagline {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--color-beige);
  font-size: 1.05rem;
  margin: 28px 0 36px;
  padding-left: 18px;
  border-left: 3px solid var(--color-orange);
  line-height: 1.65;
}

.btn-cta {
  display: inline-block;
  padding: 16px 44px;
  background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-orange) 100%);
  color: #091618;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 60px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 32px rgba(244, 201, 93, 0.28);
  animation: btn-pulse 2.2s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(244, 201, 93, 0.28); }
  50% { transform: scale(1.06); box-shadow: 0 14px 44px rgba(244, 201, 93, 0.42); }
}

.btn-cta:hover {
  animation-play-state: paused;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-character {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 24px 60px rgba(244, 201, 93, 0.18));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-22px); }
}

/* About */
#about {
  background: var(--bg-2);
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(47, 93, 98, 0.35);
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.about-content p:last-child { margin-bottom: 0; }

/* Gallery */
#gallery {
  background: var(--bg-3);
  padding: 100px 0;
}

.gallery-grid {
  display: flex;
  justify-content: center;
}

.gallery-scenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 700px;
  width: 100%;
}

.scene-card {
  background: rgba(47, 93, 98, 0.12);
  border: 1px solid rgba(47, 93, 98, 0.28);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.scene-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 201, 93, 0.45);
  box-shadow: 0 12px 40px rgba(244, 201, 93, 0.07);
}

.scene-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  color: #091618;
  font-size: 1.1rem;
}

.scene-card p {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.gallery-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery-screens img:first-child { grid-column: span 2; }

.gallery-screens img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(47, 93, 98, 0.3);
  transition: transform 0.3s ease;
}

.gallery-screens img:hover { transform: scale(1.02); }

.gallery-footer {
  margin-top: 48px;
  text-align: center;
}

.gallery-footer p {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.98rem;
  max-width: 700px;
  margin: 0 auto 10px;
}

/* Calm / Relax */
#relax {
  background: var(--bg-1);
  padding: 100px 0;
  position: relative;
}

#relax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(127, 167, 194, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.relax-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.relax-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.relax-content p:last-child { margin-bottom: 0; }

.relax-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(127, 167, 194, 0.22);
}

/* Share */
#share {
  background: var(--bg-2);
  padding: 100px 0;
}

.share-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.share-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(47, 93, 98, 0.35);
}

.share-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.share-content p:last-child { margin-bottom: 0; }

/* FAQ */
#faq {
  background: var(--bg-3);
  padding: 100px 0;
}

.faq-list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  background: rgba(47, 93, 98, 0.1);
  border: 1px solid rgba(47, 93, 98, 0.25);
  border-radius: var(--radius);
  padding: 32px 36px 32px 28px;
  transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: rgba(244, 201, 93, 0.35); }

.faq-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-amber);
  opacity: 0.7;
  line-height: 1;
  padding-top: 4px;
}

.faq-question {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--color-beige);
  margin-bottom: 12px;
  line-height: 1.4;
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.95rem;
}

/* Footer */
footer {
  position: relative;
  padding: 60px 0 40px;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: url('../img/footer bg.webp') center / cover no-repeat;
  z-index: 0;
}

.footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 22, 24, 0.93);
}

.footer-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-logo img { height: 80px; width: auto; margin: 0 auto; }

.footer-copy { color: var(--text-muted); font-size: 0.88rem; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}

.footer-meta span { color: var(--text-muted); font-size: 0.8rem; opacity: 0.7; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: var(--color-beige);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--color-amber); }

.footer-sep { color: var(--text-muted); font-size: 0.8rem; }

.footer-contact a {
  color: var(--color-blue);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-contact a:hover { color: var(--color-amber); }


/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--bg-2);
  min-height: 100vh;
}

.legal-content { max-width: 800px; margin: 0 auto; }

.legal-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--color-amber);
  margin-bottom: 8px;
}

.legal-content .date {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: var(--font-head);
  color: var(--color-beige);
  font-size: 1.2rem;
  margin: 32px 0 14px;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.legal-content ul {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
  font-size: 0.95rem;
}

.legal-content li { margin-bottom: 6px; list-style: disc; }

.legal-content strong {
  color: var(--color-beige);
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.legal-content a { color: var(--color-amber); }

.legal-content .name,
.legal-content .domain,
.legal-content .app-domain { color: var(--color-amber); }

/* Responsive 1024px */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .about-inner, .relax-inner, .share-inner { gap: 50px; }
  .gallery-grid { gap: 40px; }
}

/* Responsive 768px */
@media (max-width: 768px) {
  nav { display: none; }
  .burger-btn { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-tagline { text-align: left; }
  .hero-visual { order: -1; }
  .hero-character { max-width: 300px; }

  .about-inner,
  .relax-inner,
  .share-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .share-image { order: -1; }

  .gallery-grid { grid-template-columns: 1fr; gap: 40px; }

  .faq-item {
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  #about, #gallery, #relax, #share, #faq { padding: 70px 0; }
}

/* Responsive 640px */
@media (max-width: 640px) {
  .gallery-scenes { grid-template-columns: 1fr; }

  .gallery-screens { grid-template-columns: 1fr; }
  .gallery-screens img:first-child { grid-column: span 1; }

  .faq-item { grid-template-columns: 1fr; gap: 10px; }
  .faq-number { font-size: 1.6rem; }

#about, #gallery, #relax, #share, #faq { padding: 60px 0; }
}
