:root {
  --yellow: #ffd54a;
  --yellow-deep: #e8b326;
  --blue: #b8d4f0;
  --blue-deep: #4f86bc;
  --ink: #2b2419;
  --muted: #6a6156;
  --glass: rgba(255, 255, 255, 0.72);
  --font: "Nunito", "Noto Sans SC", sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: linear-gradient(180deg, #dceefc 0%, #f4f8fd 28%, #fff8e8 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
}

button,
.btn {
  font-family: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: linear-gradient(180deg, #ffe56a, #ffd54a);
  color: var(--ink);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe56a, #ffd54a);
  box-shadow: 0 4px 0 #e0a820;
}

.btn:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 #e0a820;
}

.stage {
  padding: 20px 0 28px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  gap: 20px 40px;
  align-items: end;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
}

.intro h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--muted);
}

.lead {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.65;
  justify-self: end;
}

.gallery-shell {
  position: relative;
}

.frame {
  position: relative;
  width: 100%;
  height: min(62vh, 560px);
  border: 8px solid #fff;
  border-radius: 28px;
  overflow: hidden;
  background: #cfe0f0;
  box-shadow: 0 18px 40px rgba(90, 120, 170, 0.18);
}

.slides {
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.slide-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(43, 36, 25, 0.5);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(80, 110, 160, 0.18);
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--ink);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.dots button {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #c5d6ea;
  cursor: pointer;
}

.dots button.is-active {
  width: 22px;
  background: linear-gradient(90deg, #ffd54a, #8bb6de);
}

section {
  padding: 36px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2,
.support-block h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.section-head p,
.support-block p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
}

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

.card {
  background: var(--glass);
  border: 1px solid #fff;
  border-radius: 18px;
  padding: 16px 16px 18px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.support-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(120deg, #fff4c4 0%, #e3f1fc 100%);
  border: 1px solid #fff;
  border-radius: 24px;
}

.support-block .btn {
  margin-top: 16px;
}

.support-grid {
  display: grid;
  gap: 10px;
}

.support-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  background: #fff;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.support-card strong {
  font-size: 0.92rem;
}

.support-card span {
  color: var(--blue-deep);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 28px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 860px) {
  .nav {
    padding: 0 14px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(80, 110, 160, 0.16);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .intro,
  .support-block,
  .features {
    grid-template-columns: 1fr;
  }

  .lead {
    justify-self: start;
  }

  .frame {
    height: min(48vh, 420px);
    border-width: 5px;
    border-radius: 20px;
  }

  .nav-actions .btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .intro h1 {
    font-size: 1.7rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
