/* ── Reset & Base ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--dark);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg, var(--dark, #0A0A0A));
  background-image:
    /* spotlight from top */
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(var(--accent-rgb), 0.14) 0%, transparent 70%),
    /* warm glow from bottom-right */
    radial-gradient(ellipse 80% 40% at 80% 100%, rgba(var(--accent-rgb), 0.10) 0%, transparent 60%),
    /* stage light from left */
    radial-gradient(ellipse 60% 50% at 10% 60%, rgba(255,255,255,0.04) 0%, transparent 50%),
    /* dot grid small */
    radial-gradient(circle, rgba(var(--accent-rgb), 0.09) 1px, transparent 1.4px),
    /* dot grid large */
    radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 1.5px, transparent 2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 100px 100px;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--gold);
  color: var(--dark);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; touch-action: manipulation; }

input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 16px !important;
}

/* ── Variables ───────────────────────────────────────── */
:root {
  --dark: #0A0A0A;
  --dark-card: #111111;
  --dark-surface: #1A1A1A;
  --dark-border: #222222;
  --gold: #FFD700;
  --gold-hover: #FFC000;
  --accent-rgb: 255, 215, 0;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --heading: 'Playfair Display', serif;
  --body: 'Inter', sans-serif;
}

/* ── Utility ─────────────────────────────────────────── */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.gold { color: var(--gold); }

.text-gradient {
  background: linear-gradient(var(--grad-angle, 90deg), var(--grad-from, var(--gold)), var(--grad-to, var(--grad-from, var(--gold))));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-word,
.sty-word {
  display: inline-block;
}

/* ── Section ─────────────────────────────────────────── */
.section {
  padding: 4rem 1rem;
}

@media (min-width: 640px) { .section { padding: 5rem 1.5rem; } }
@media (min-width: 1024px) { .section { padding: 6rem 2rem; } }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) { .section-header { margin-bottom: 4rem; } }

.section-tag {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.section-title {
  font-family: var(--heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0.75rem;
}

@media (min-width: 480px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-400);
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) { .section-subtitle { font-size: 1.25rem; } }

.join-list {
  list-style: none;
  margin: 1.25rem auto 0;
  max-width: 42rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.join-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--gray-300);
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) { .join-list li { font-size: 1.125rem; } }

.join-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  border-radius: 9999px;
}

.gold-line {
  width: 5rem;
  height: 0.25rem;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
}

.btn-primary:hover {
  background: var(--gold-hover);
  box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.2);
}

.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline:active { transform: scale(0.97); }

.btn-lg { font-size: 1rem; padding: 1rem 2rem; }

@media (min-width: 640px) { .btn-lg { font-size: 1.125rem; padding: 0.875rem 2.25rem; } }

.btn-full { width: 100%; }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(var(--accent-rgb),0.3);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb),0.05);
  transform: translateY(-4px);
}

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s;
  padding: env(safe-area-inset-top) 0 0;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

@media (min-width: 768px) { .nav-inner { height: 5rem; } }

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) { .logo { gap: 0.75rem; } }

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--gold);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .logo-icon { transform: rotate(-25deg) scale(1.1); }

@media (min-width: 768px) {
  .logo-icon { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
}

.logo-text {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) { .logo-text { font-size: 1.5rem; } }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.05);
}

.nav-cta { margin-left: 1rem; }

.burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 2.5rem;
  height: 2.5rem;
}

@media (min-width: 768px) { .burger { display: none; } }

.burger span {
  width: 1.5rem;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

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

.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--dark-border);
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu.open {
  max-height: 24rem;
  opacity: 1;
}

@media (min-width: 768px) { .mobile-menu { display: none !important; } }

.mobile-menu-inner {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--dark-border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-link {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--gray-300);
  border-radius: 0.75rem;
  transition: all 0.3s;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-link:hover,
.mobile-link:active {
  color: var(--gold);
  background: rgba(255,255,255,0.05);
}

.mobile-cta { margin-top: 0.5rem; text-align: center; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #141414;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) { .hero-subtitle { font-size: 0.8rem; letter-spacing: 0.25em; } }
@media (min-width: 768px) { .hero-subtitle { font-size: 1rem; letter-spacing: 0.3em; margin-bottom: 1.5rem; } }

.hero-title {
  font-family: var(--heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
  text-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

@media (min-width: 480px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 5rem; margin-bottom: 1.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }

.hero-desc {
  font-size: 1rem;
  color: var(--gray-200);
  margin-bottom: 2rem;
  max-width: 42rem;
  text-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

@media (min-width: 480px) { .hero-desc { font-size: 1.125rem; } }
@media (min-width: 768px) { .hero-desc { font-size: 1.5rem; margin-bottom: 2.5rem; } }

.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-phone {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.hero-phone:hover { opacity: 0.8; }

@media (min-width: 768px) {
  .hero-phone { font-size: 1.25rem; }
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
  max-width: 20rem;
}

@media (min-width: 480px) { .hero-btns { flex-direction: row; max-width: none; gap: 1rem; } }

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

@media (min-width: 768px) { .hero-dots { bottom: 2rem; } }

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  background: var(--gold);
  width: 2rem;
}

/* ── News & Team Carousel ────────────────────────────── */
.news-carousel,
.team-carousel,
.gallery-carousel {
  margin: 0 -1rem;
  padding: 0 1rem;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}
.carousel-track::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.carousel-track > * {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
}

.gallery-carousel .carousel-track {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .news-carousel {
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .news-carousel .carousel-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 48rem;
    margin: 0 auto;
    overflow: visible;
    scroll-snap-type: none;
    gap: 1.5rem;
    padding: 0;
  }

  .news-carousel .carousel-track > * {
    flex: none;
    scroll-snap-align: auto;
  }

  .team-carousel {
    position: relative;
    padding: 0 3.5rem;
  }

  .team-carousel .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 0.5rem 0 1rem;
    max-width: none;
    margin: 0;
  }


  .team-carousel .carousel-track > * {
    flex: 0 0 22rem;
    scroll-snap-align: start;
  }

  .gallery-carousel {
    overflow: visible;
    margin: 0 -3.5rem;
    padding: 0 3.5rem;
  }

  .gallery-carousel .carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    max-width: none;
    margin: 0;
    padding: 0.5rem 0 1rem;
  }


  .gallery-carousel .carousel-track > * {
    flex: none;
    max-width: 80vw;
    scroll-snap-align: center;
  }

  .team-scroll {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .news-carousel .carousel-track {
    grid-template-columns: repeat(3, 1fr);
    max-width: 72rem;
  }

}

/* ── Gallery Scroll Buttons ──────────────────────────── */
.scroll-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  min-height: 3rem;
  border-radius: 9999px;
  background: rgba(10,10,10,0.7);
  color: var(--gold);
  border: 1px solid rgba(var(--accent-rgb),0.3);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s;
}

.scroll-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: block;
}

.scroll-btn:hover {
  background: rgba(10,10,10,0.9);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.2);
}

.scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.scroll-prev { left: 1rem; }
.scroll-next { right: 1rem; }

.team-scroll.scroll-prev { left: 1rem; }
.team-scroll.scroll-next { right: 1rem; }

.gallery-carousel { position: relative; }

@media (min-width: 768px) {
  .scroll-btn {
    display: flex;
    animation: fadeInScrollBtn 0.5s ease-out 0.3s forwards;
  }
}

@keyframes fadeInScrollBtn {
  from { opacity: 0; transform: translateY(-50%) scale(0.8); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 26rem;
}

.news-card .card-img { height: 12rem; flex-shrink: 0; }

@media (min-width: 480px) { .news-card .card-img { height: 14rem; } }

.news-card .card-body {
  padding: 1rem;
}

@media (min-width: 480px) {
  .news-card .card-body { padding: 1.5rem; }
}

.news-date {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.news-card h3 {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
  transition: color 0.3s;
}

.news-card:hover h3 { color: var(--gold); }

.news-card .card-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .read-more {
  margin-top: auto;
  align-self: flex-start;
  margin-left: 1rem;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(var(--accent-rgb),0.3);
  border-radius: 0.5rem;
  background: rgba(var(--accent-rgb),0.08);
  cursor: pointer;
  transition: all 0.25s;
}

.news-card .read-more:hover {
  background: rgba(var(--accent-rgb),0.18);
  border-color: var(--gold);
  color: var(--gold);
}

@media (min-width: 480px) {
  .news-card .read-more {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
  }
}

.category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(var(--accent-rgb),0.9);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* ── Card image ──────────────────────────────────────── */
.card-img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--dark-surface);
  overflow: hidden;
  transition: transform 0.7s;
}

.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--dark-card), transparent);
}

/* ── Card body ───────────────────────────────────────── */
.card-body {
  position: relative;
  z-index: 1;
}

.card-name {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.3s;
}

.team-card:hover .card-name { color: var(--gold); }

.card-role {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.card-desc {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* ── Team ────────────────────────────────────────────── */
.team-card { text-align: center; }

.team-card .card-img { height: 14rem; }

@media (min-width: 480px) { .team-card .card-img { height: 16rem; } }
@media (min-width: 768px) { .team-card .card-img { height: 18rem; } }

.team-card .card-body {
  padding: 1rem;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 480px) {
  .team-card .card-body { padding: 1.5rem; margin-top: -3rem; }
}

/* ── Lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: pointer;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.5rem;
  cursor: default;
}
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  border: none;
  background: none;
  touch-action: manipulation;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  border: none;
  background: none;
  touch-action: manipulation;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 767px) {
  .lightbox-nav { font-size: 1.5rem; width: 2.5rem; height: 2.5rem; }
  .lightbox-close { font-size: 1.5rem; top: 0.5rem; right: 0.75rem; }
}

/* ── Photo Gallery ───────────────────────────────────── */
.photo-card {
  height: 12rem;
  background: var(--dark-surface);
  overflow: hidden;
  border-radius: 0.625rem;
}

@media (min-width: 480px) { .photo-card { height: 14rem; } }
@media (min-width: 768px) { .photo-card { height: 16rem; } }
@media (min-width: 1024px) { .photo-card { height: 18rem; } }

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-orientation: from-image;
}

.photo-portrait { aspect-ratio: 3 / 4; }
.photo-landscape { aspect-ratio: 16 / 9; }



/* ── Video ───────────────────────────────────────────── */
.video-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.video-bg {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.15);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.25);
  pointer-events: none;
}

.video-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.25rem;
}



/* ── Join / Contact ──────────────────────────────────── */
.form-success {
  max-width: 48rem;
  margin: 0 auto 2rem;
  background: rgba(var(--accent-rgb),0.1);
  border: 1px solid rgba(var(--accent-rgb),0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.form-success p {
  color: var(--gold);
  font-weight: 500;
  font-size: 1rem;
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) { .join-grid { grid-template-columns: 2fr 3fr; gap: 2.5rem; } }
@media (min-width: 1024px) { .form-col { align-self: start; margin-top: 3.75rem; } }

.contacts-heading {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .contacts-heading { margin-bottom: 1.5rem; } }

.contacts-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) { .contacts-col { gap: 1rem; } }

.contact-card {
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 768px) { .contact-card { padding: 1.25rem; } }

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(var(--accent-rgb),0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-label {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.contact-text {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.contact-phone {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.3s;
}

.contact-phone:hover { opacity: 0.8; }

.footer-phone {
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.footer-phone:hover { text-decoration: underline; }

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ── Form ────────────────────────────────────────────── */
.form-card {
  padding: 1.25rem;
  margin-top: 22px;
}

@media (min-width: 768px) { .form-card { padding: 2rem; } }
@media (min-width: 1024px) { .form-card { padding: 2.5rem; } }

.form-title {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) { .form-title { font-size: 1.5rem; } }

.form-subtitle {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.input {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  width: 100%;
  transition: all 0.3s;
  font-family: var(--body);
  min-height: 48px;
}

@media (min-width: 768px) { .input { padding: 0.875rem 1.25rem; } }

.input::placeholder { color: var(--gray-500); }

.input:focus {
  border-color: rgba(var(--accent-rgb),0.5);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb),0.1);
}

.textarea {
  resize: none;
}

/* ── Map ─────────────────────────────────────────────── */
.map-wrapper { position: relative; }

.map-card { overflow: hidden; position: relative; }

.map-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 1;
}

.yandex-map {
  width: 100%;
  height: 300px;
  background: #141414;
}

.yandex-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 480px) { .yandex-map { height: 400px; } }
@media (min-width: 768px) { .yandex-map { height: 500px; } }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--dark-border);
  background: var(--dark-card);
}

.footer-inner {
  padding: 2.5rem 1rem;
}

@media (min-width: 640px) { .footer-inner { padding: 3rem 1.5rem; } }
@media (min-width: 1024px) { .footer-inner { padding: 4rem 2rem; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }

.footer-brand { grid-column: span 1; }

@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }

.footer-desc {
  color: var(--gray-400);
  max-width: 28rem;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s;
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.social-link:hover {
  color: var(--gold);
  border-color: rgba(var(--accent-rgb),0.5);
}

.footer-heading {
  font-family: var(--heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  transition: color 0.3s;
}

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

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-contacts p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contacts svg { color: var(--gold); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Touch devices ──────────────────────────────────── */
@media (hover: none) {
  .card:hover { transform: none; }
  .card:active { transform: scale(0.98); }
  .card:hover .card-img { transform: none; }
  .card:active .card-img { transform: scale(1.05); }
  .team-card:hover .card-name { color: inherit; }
  .news-card:hover h3 { color: inherit; }
}

@media (max-width: 767px) {
  .gallery-carousel .carousel-track > * {
    flex: none;
  }
}


/* ── Секция «О мастерской» (SEO-контент) ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 3rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-text {
  color: var(--gray-300, #D1D5DB);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .about-text { font-size: 1rem; line-height: 1.8; }
}

/* ── Чекбокс согласия (152-ФЗ) ── */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--gray-400, #9CA3AF);
  cursor: pointer;
  user-select: none;
}

.consent-check input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--gold, #FFD700);
  cursor: pointer;
}

.consent-check a {
  color: var(--gold, #FFD700);
  text-decoration: none;
}

.consent-check a:hover { text-decoration: underline; }

/* ── Футер: возрастная маркировка и ссылка на политику ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border: 1px solid var(--gray-600, #4B5563);
  border-radius: 0.35rem;
  color: var(--gray-300, #D1D5DB);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-privacy {
  color: var(--gray-500, #6B7280);
  font-size: 0.82rem;
  transition: color 0.3s;
}

.footer-privacy:hover { color: var(--gold, #FFD700); }

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Cookie-баннер согласия (152-ФЗ) ── */
#amr-cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9000;
  max-width: 42rem;
  margin: 0 auto;
  background: rgba(17, 17, 17, 0.97);
  border: 1px solid var(--dark-border, #222222);
  border-radius: 0.9rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-family: 'Inter', sans-serif;
}

#amr-cookie.show {
  opacity: 1;
  transform: translateY(0);
}

.amr-cookie-text {
  color: var(--gray-300, #D1D5DB);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.amr-cookie-text a {
  color: var(--gold, #FFD700);
  text-decoration: underline;
}

.amr-cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.amr-cookie-btn {
  border: none;
  border-radius: 0.5rem;
  padding: 0.55rem 1.1rem;
  font: 600 0.82rem 'Inter', sans-serif;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s;
}

.amr-cookie-ok {
  background: linear-gradient(135deg, var(--gold, #FFD700), var(--gold-hover, #E6C200));
  color: #0A0A0A;
}

.amr-cookie-no {
  background: transparent;
  border: 1px solid var(--gray-600, #4B5563);
  color: var(--gray-300, #D1D5DB);
}

.amr-cookie-btn:hover { filter: brightness(1.08); }
.amr-cookie-no:hover { background: rgba(255, 255, 255, 0.06); }

/* ── PWA: плавающие кнопки установки и уведомлений ── */
.pwa-fabs {
  position: fixed;
  right: 1.1rem;
  bottom: 5.4rem;
  z-index: 8990;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pwa-fab {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  color: var(--gold, #FFD700);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.pwa-fab:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #242424, #141414);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.pwa-fab svg { display: block; }

@media (max-width: 640px) {
  .pwa-fabs { bottom: 4.9rem; right: 0.85rem; }
  .pwa-fab { width: 2.85rem; height: 2.85rem; }
}
