/* ===== Cocodrillas Saga — Тропический остров ===== */
:root {
  --jungle-dark: #0f3d0f;
  --jungle: #1a5c1a;
  --jungle-light: #2d8a2d;
  --palm: #228b22;
  --sand: #f5e6c8;
  --sand-dark: #e8d4a0;
  --water: #20b2aa;
  --water-light: #40e0d0;
  --water-deep: #008b8b;
  --gold: #ffd700;
  --gold-dark: #daa520;
  --coral: #ff6b35;
  --sunset: #ff8c42;
  --sky: #87ceeb;
  --white: #fffef5;
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --shadow: rgba(0, 0, 0, 0.25);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --font-title: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--sand);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(15, 61, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.btn-nav {
  background: linear-gradient(135deg, var(--coral) 0%, var(--sunset) 100%);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--sand);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-body);
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.15);
}

.lang-sep {
  color: var(--sand);
  opacity: 0.7;
  font-size: 0.85rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/hero-bg.jpeg') center center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 61, 15, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(15, 61, 15, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 6rem 1.5rem 4rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  line-height: 1.1;
}

.title-accent {
  display: block;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 3px 3px 6px rgba(0,0,0,0.5), 0 0 30px rgba(255,215,0,0.3);
}

.title-main {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--water-light);
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-desc {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--sand);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.community-label {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sand);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}

.social-links-inline {
  flex-wrap: wrap;
}

.hero-btn-more {
  margin-top: 0.25rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--sunset) 100%);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--jungle-dark);
}

.btn-vk {
  background: linear-gradient(135deg, #2787f5 0%, #1a6bcb 100%);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(39, 135, 245, 0.45);
}

.btn-vk:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(39, 135, 245, 0.55);
}

/* OK: тот же приём, что у VK/RuStore/Пикабу — сплошной градиент; оттенки янтарь→оранж (не коралл как у Пикабу) */
.btn-ok {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(217, 119, 6, 0.45);
}

.btn-ok:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(217, 119, 6, 0.55);
}

.btn-rustore {
  background: linear-gradient(135deg, #00c853 0%, #00a844 100%);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(0, 200, 83, 0.4);
}

.btn-rustore:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 200, 83, 0.5);
}

.btn-pikabu {
  background: linear-gradient(135deg, #ff8c42 0%, #e85d04 100%);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(232, 93, 4, 0.45);
}

.btn-pikabu:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(232, 93, 4, 0.55);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.2rem;
}

.hero-visual {
  flex: 0 1 350px;
  display: flex;
  justify-content: center;
}

.hero-icon {
  max-width: 100%;
  width: 320px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.floating {
  animation: float 4s ease-in-out infinite;
}

.floating-slow {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--sand);
  font-size: 0.9rem;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  margin: 0.5rem auto 0;
  border-right: 3px solid var(--sand);
  border-bottom: 3px solid var(--sand);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== ABOUT ===== */
.about {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-dark) 100%);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--jungle-dark);
}

.section-title-light {
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--sand);
  margin: -1rem 0 2.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 500px;
}

.about-text .lead {
  font-size: 1.2rem;
  color: var(--jungle);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--text-light);
}

.about-image {
  flex: 0 1 300px;
  display: flex;
  justify-content: center;
}

.egg-icon {
  max-width: 100%;
  width: 280px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 50px var(--shadow);
}

/* ===== CHARACTERS ===== */
.characters {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.characters-bg {
  position: absolute;
  inset: 0;
  background: url('assets/about-bg.jpeg') center center / cover no-repeat;
  filter: brightness(0.5);
}

.characters .container {
  position: relative;
  z-index: 1;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--jungle-dark);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 53, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.gallery-item:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ===== VIDEO MODAL ===== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: black;
  border-radius: 12px;
  overflow: hidden;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.video-modal-close:hover {
  color: var(--coral);
}

.video-modal video {
  width: 100%;
  display: block;
}

.gallery-item-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-featured img {
  aspect-ratio: 1;
}

@media (max-width: 600px) {
  .gallery-item-featured {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ===== FEATURES ===== */
.features {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--sand-dark) 0%, var(--sand) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px var(--shadow-light);
  border: 2px solid var(--sand-dark);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow);
  border-color: var(--gold);
}

.feature-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--jungle);
}

.feature-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-dark) 100%);
}

.contact-desc {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin: -0.5rem 0 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--sand-dark);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-input:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-input::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
}

.contact-hint {
  text-align: center;
  font-size: 0.95rem;
  color: var(--jungle);
  margin: 1rem 0 0;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--jungle-dark) 0%, var(--jungle) 50%, var(--water-deep) 100%);
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold);
  margin: 0 0 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.cta-text {
  font-size: 1.15rem;
  color: var(--sand);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 1.5rem;
  background: var(--jungle-dark);
  color: var(--sand-dark);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--water-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-text {
  margin: 0;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-facebook {
  background: #1877f2;
  color: white;
}

.social-telegram {
  background: #0088cc;
  color: white;
}

.social-vk {
  background: #4680c2;
  color: white;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===== ANIMATIONS ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FAQ PAGE ===== */
.faq-main {
  padding-top: 5rem;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-dark) 100%);
}

.faq-section {
  padding: 3rem 0 5rem;
}

.faq-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  color: var(--jungle-dark);
  margin: 0 0 0.5rem;
}

.faq-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0 auto 2.5rem;
  max-width: 560px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px var(--shadow-light);
  border: 2px solid var(--sand-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px var(--shadow);
}

.faq-question {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--jungle);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.faq-answer {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.faq-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-current {
  color: var(--gold) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a:not(.btn-nav) {
    display: none;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  .hero-cta-stack {
    align-items: center;
  }

  .social-links-inline {
    justify-content: center;
  }
  
  .about-content {
    flex-direction: column;
    text-align: center;
  }
}
