:root {
  --blue: #2CA9D6;
  --blue-dark: #1C7EA6;
  --orange: #F2994A;
  --navy: #16213E;
  --navy-light: #1E2C4F;
  --text: #2B2B2B;
  --text-light: #6B7280;
  --light-bg: #F7FAFC;
  --white: #FFFFFF;
  --hero-dark: #142219;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroZoomIn {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes tickPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); color: var(--blue); }
  100% { transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.features .reveal:nth-child(1) { transition-delay: 0s; }
.features .reveal:nth-child(2) { transition-delay: 0.12s; }
.features .reveal:nth-child(3) { transition-delay: 0.24s; }

.gallery-grid .reveal:nth-child(1) { transition-delay: 0s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.06s; }
.gallery-grid .reveal:nth-child(7) { transition-delay: 0.12s; }
.gallery-grid .reveal:nth-child(8) { transition-delay: 0.18s; }
.gallery-grid .reveal:nth-child(9) { transition-delay: 0.24s; }
.gallery-grid .reveal:nth-child(10) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: 'Libre Franklin', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3 {
  font-family: 'Libre Franklin', Arial, Helvetica, sans-serif;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

p { line-height: 1.6; }

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 0 0 0;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 8px;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
  animation: fadeIn 0.7s ease both;
}

.lang-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
  animation: fadeIn 0.7s ease 0.15s both;
  transition: transform 0.25s ease;
}

.lang-badge:hover {
  transform: scale(1.08);
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  padding-top: 116px;
  padding-bottom: 28px;
  background: var(--hero-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 58% 15%;
  animation: heroZoomIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 30, 22, 0.3) 0%, rgba(15, 30, 22, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.hero-text {
  max-width: 560px;
}

.hero-text h1 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-text .hero-lead {
  font-weight: 600;
  margin-bottom: 6px;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-text p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 12px;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-text p:nth-of-type(2) {
  animation-delay: 0.5s;
}

/* Countdown card */
.countdown-card {
  background: rgba(22, 33, 62, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 24px 22px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(4px);
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.countdown-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.countdown-value {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 30px;
  font-weight: 800;
  display: inline-block;
}

.countdown-value.tick {
  animation: tickPulse 0.5s ease;
}

.countdown-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.countdown-sep {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.35);
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscribe-form-row {
  display: flex;
  gap: 8px;
}

.message-input {
  width: 100%;
  resize: vertical;
  min-height: 64px;
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.message-input,
.email-input {
  transition: box-shadow 0.2s ease;
}

.message-input:focus,
.email-input:focus {
  box-shadow: 0 0 0 3px rgba(44, 169, 214, 0.5);
}

.email-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 30px;
  padding: 14px 18px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.subscribe-form button {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 169, 214, 0.45);
}

.subscribe-form button:active { transform: translateY(0); }

.form-messages {
  min-height: 18px;
  margin-bottom: 10px;
}

.form-message {
  font-size: 12px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 8px;
}

.form-message--success { background: rgba(76, 187, 120, 0.2); color: #b7f5cc; }
.form-message--error { background: rgba(220, 90, 90, 0.25); color: #ffd1d1; }
.form-message--info { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Contact + social row under hero */
.hero-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 32px;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-footer p {
  font-size: 14px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
}

.social-block { text-align: right; }

.icon-row {
  display: flex;
  gap: 14px;
}

.social-block .icon-row { justify-content: flex-end; }

.icon-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.icon-btn .icon {
  width: 38px;
  height: 38px;
}

/* Mission section */
.mission {
  background: var(--light-bg);
  padding: 64px 0;
  text-align: center;
}

.mission h2 {
  font-size: 30px;
  font-weight: 600;
  max-width: 950px;
  margin: 0 auto 20px;
}

.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }

.mission-sub {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 48px;
}

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

.feature {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature:hover {
  transform: translateY(-8px);
}

.feature-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #E4F4FA;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.feature:hover .feature-icon {
  transform: scale(1.1);
  background: #d5edf8;
}

.feature-icon .icon {
  width: 34px;
  height: 34px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature p {
  font-size: 15px;
  color: var(--text-light);
}

/* Gallery */
.gallery {
  padding: 56px 0 72px;
}

.gallery-title {
  text-align: center;
  color: var(--blue);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 36px;
}

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

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #E5E7EB;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.09);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 12, 18, 0.92);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease both;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  width: min(70vw, 640px);
  height: 65vh;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 720px) {
  .lightbox-img { width: 82vw; height: 55vh; }
  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 22px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--blue);
  color: var(--white);
  padding-top: 28px;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 18px;
  background:
    radial-gradient(circle at 10px 0, transparent 12px, var(--blue) 13px) 0 -6px / 24px 24px repeat-x;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px 26px;
  font-size: 14px;
  font-weight: 600;
}

.footer-inner .icon-row { gap: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .logo img { height: 72px; }
  .hero { padding-top: 104px; padding-bottom: 20px; }
  .hero-bg { background-position: 58% 12%; }
  .hero-inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .hero-text { max-width: none; text-align: left; padding: 0 20px; }
  .hero-text h1 { font-size: 24px; margin-bottom: 10px; }
  .hero-text .hero-lead { margin-bottom: 4px; }
  .hero-text p { font-size: 14px; line-height: 1.42; margin: 0 0 8px; }
  .countdown-card { max-width: none; margin: 16px 20px 0; width: auto; padding: 14px; }
  .countdown-numbers { gap: 8px; margin-bottom: 12px; }
  .countdown-unit { min-width: 46px; }
  .countdown-value { font-size: 22px; }
  .countdown-label { font-size: 10px; }
  .countdown-sep { font-size: 18px; }
  .hero-footer { flex-direction: column; align-items: center; text-align: center; margin-top: 18px; padding: 0 20px; gap: 16px; }
  .hero-footer p { text-align: center; font-size: 12.5px; margin-bottom: 8px; }
  .icon-btn { width: 46px; height: 46px; }
  .icon-btn .icon { width: 32px; height: 32px; }
  .social-block { text-align: center; }
  .social-block .icon-row { justify-content: center; }
  .mission { padding: 48px 0; }
  .mission h2 { font-size: 24px; padding: 0 8px; }
  .gallery-grid { gap: 8px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
