:root {
  --bg-top: #e6f4ff;
  --bg-bottom: #cfe9ff;
  --primary: #0b6cf7;
  --primary-dark: #084bb0;
  --text: #0f2745;
  --muted: #4b627d;
  --card-bg: #ffffff;
  --shadow: 0 10px 25px rgba(15, 39, 69, 0.15);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(20px 20px at 10% 15%, rgba(255,255,255,0.6) 0, rgba(255,255,255,0) 70%),
    radial-gradient(16px 16px at 85% 30%, rgba(255,255,255,0.6) 0, rgba(255,255,255,0) 70%),
    radial-gradient(14px 14px at 30% 85%, rgba(255,255,255,0.6) 0, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.hero {
  position: relative;
  padding: 88px 20px 112px;
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(255,255,255,0.6) 0, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #d9f0ff 0%, #bfe3ff 60%, #b3ddff 100%);
}

.hero-counter {
  position: absolute;
  right: max(12px, calc((100vw - 1100px) / 2));
  bottom: 86px;
}

.counter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(11,108,247,0.12);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.counter-label {
  color: var(--muted);
  font-weight: 700;
}

.counter-number {
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 22px;
}

@media (max-width: 900px) {
  .hero-counter {
    right: 16px;
    transform: none;
    bottom: 90px;
  }
}
.hero-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.1;
  color: var(--primary-dark);
  letter-spacing: 0.2px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 2px 12px rgba(11,108,247,0.14);
}

.subtitle {
  margin: 0;
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--muted);
}

.hero-tags {
  margin-top: 18px;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tags span {
  padding: 10px 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--primary-dark);
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-tags span:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 39, 69, 0.18);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background:
    radial-gradient(50% 100% at 50% 100%, rgba(11,108,247,0.12) 0, rgba(11,108,247,0) 70%),
    linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.7) 100%);
  mask-image: linear-gradient(to bottom, transparent, black 40%, black);
}

.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -40px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.05) 70%);
  border-radius: 50%;
  animation: rise 9s ease-in infinite;
  animation-delay: var(--d);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.08));
}

@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  70% { transform: translateY(-70vh) scale(1.06); opacity: 1; }
  100% { transform: translateY(-90vh) scale(1.1); opacity: 0; }
}

.theme {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.theme-title, .section-title {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 16px;
  color: var(--primary-dark);
  text-shadow: 0 3px 12px rgba(11,108,247,0.15);
}

.theme-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.75));
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 22px 24px;
  border: 1px solid rgba(11,108,247,0.12);
}

.theme-list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 12px;
}

.theme-list li {
  color: var(--text);
  position: relative;
  padding-left: 28px;
}

.theme-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #0f98ff, #0b6cf7);
  box-shadow: 0 4px 10px rgba(11,108,247,0.3);
}

main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

.media-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.media-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.media-block .section-title {
  text-align: center;
  width: 100%;
  margin-bottom: 6px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-single {
  grid-template-columns: minmax(260px, 480px);
  justify-content: center;
}

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateZ(0);
  margin: 0;
}

.card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease, opacity 300ms ease;
  opacity: 0;
  filter: saturate(0.85);
}

.card.loaded img {
  opacity: 1;
  filter: saturate(1);
}

.card:hover img {
  transform: scale(1.03);
}

.card .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: var(--shadow);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 24, 48, 0.75);
  display: grid;
  place-items: center;
  z-index: 50;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.lightbox img,
.lightbox video {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background: #fff;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.9);
  border: none;
  color: var(--primary-dark);
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.thumbs {
  display: flex;
  gap: 8px;
  padding: 6px;
  max-width: min(92vw, 1200px);
  overflow-x: auto;
}

.thumb-item {
  width: 84px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  flex: 0 0 auto;
}

.thumb-item img,
.thumb-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-item.selected {
  border-color: var(--primary);
}

.thumb-item .thumb-label {
  position: absolute;
  left: 6px;
  bottom: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
}

.site-footer {
  margin-top: 24px;
  background: linear-gradient(180deg, #cfe9ff 0%, #bfe3ff 60%, #b0ddff 100%);
  border-top: 1px solid rgba(11,108,247,0.12);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 22px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-title {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: clamp(18px, 2.2vw, 22px);
}

.footer-sub {
  color: var(--muted);
  font-size: 14px;
}

.footer-contact {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.contact-item .icon {
  font-size: 16px;
}

.footer-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding-top: 6px;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact {
    justify-content: center;
  }
}

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.video {
  width: 100%;
  height: auto;
  background: #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  outline: none;
}

@media (max-width: 900px) {
  .media-sections {
    grid-template-columns: 1fr;
  }
  .gallery-single {
    grid-template-columns: minmax(240px, 1fr);
  }
}
