/* ==========================================================================
   Алые Паруса — Мега Выпускной бал
   Статическая версия (перенос из Next.js / Tailwind)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark: #8b6914;
  --bg: #0a0a0a;
  --card: #141414;
  --border: #2a2a2a;
  --warm-white: #f5f0e8;
  --warm-gray: #9a9590;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 80rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--warm-white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--warm-white);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page > main {
  flex: 1;
}

.section {
  position: relative;
  padding: 6rem 0;
}
@media (min-width: 640px) {
  .section {
    padding: 8rem 0;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}
.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.15;
  color: var(--warm-white);
}
@media (min-width: 640px) {
  .h2 {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .h2 {
    font-size: 3rem;
  }
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.icon-sm {
  width: 1rem;
  height: 1rem;
}
.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-xl {
  width: 2rem;
  height: 2rem;
}

/* ---------- Text utilities ---------- */
.text-gold {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.3), 0 0 16px rgba(201, 168, 76, 0.15);
}
.text-warm-white {
  color: var(--warm-white);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}
.text-warm-gray {
  color: var(--warm-gray);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.3);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #e8d5a3 0%, #c9a84c 40%, #8b6914 70%, #c9a84c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.text-gold-shimmer {
  background: linear-gradient(90deg, #c9a84c 0%, #e8d5a3 25%, #fff8e7 50%, #e8d5a3 75%, #c9a84c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ---------- Effects ---------- */
@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.4);
  }
}
.glow-gold {
  animation: pulse-gold 3s ease-in-out infinite;
}

.glass {
  background: rgba(20, 20, 20, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.15);
}
.glass-strong {
  background: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.noise-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-line--top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.gold-line--bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.gold-line--soft {
  opacity: 0.3;
}

@keyframes gentle-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.float-gentle {
  animation: gentle-float 6s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
.star {
  position: absolute;
  border-radius: 50%;
  background: rgba(232, 213, 163, 0.4);
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Buttons */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  transition: all 0.4s ease;
}
.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-gold:hover::before {
  opacity: 1;
}
.btn-gold > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  font-size: 1rem;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(201, 168, 76, 0.1);
}

/* Card with gradient border */
.review-card {
  position: relative;
  background: var(--card);
  border-radius: 1rem;
}
.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), transparent, rgba(201, 168, 76, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal="left"] {
  transform: translateX(-40px);
}
[data-reveal="right"] {
  transform: translateX(40px);
}
[data-reveal="scale"] {
  transform: scale(0.92);
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .text-gold-shimmer,
  .glow-gold,
  .float-gentle,
  .star,
  .float-contact {
    animation: none;
  }
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  background: transparent;
  transition: all 0.5s ease;
  transform: translateY(-100px);
  animation: header-in 0.8s var(--ease) forwards;
}
@keyframes header-in {
  to {
    transform: translateY(0);
  }
}
.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav a {
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--warm-gray);
  transition: color 0.3s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav a:hover {
  color: var(--gold);
}
.nav a:hover::after {
  width: 100%;
}
.header__phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--warm-gray);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.header__phone:hover {
  color: var(--gold);
}
.header__burger {
  display: inline-flex;
  padding: 0.5rem;
  color: var(--warm-white);
}
.header__burger .icon-close {
  display: none;
}
body.menu-open .header__burger .icon-menu {
  display: none;
}
body.menu-open .header__burger .icon-close {
  display: block;
}
@media (min-width: 1024px) {
  .nav,
  .header__phone {
    display: flex;
  }
  .header__burger {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(10, 10, 10, 0.98);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}
body.menu-open {
  overflow: hidden;
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--warm-white);
  transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}
body.menu-open .mobile-menu a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.mobile-menu a:hover {
  color: var(--gold);
}
.mobile-menu__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--gold) !important;
  font-family: var(--font-sans) !important;
  font-size: 1.125rem !important;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translateZ(0);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__glow--1 {
  top: 25%;
  right: 25%;
  width: 600px;
  height: 600px;
  background: rgba(201, 168, 76, 0.05);
  filter: blur(120px);
}
.hero__glow--2 {
  bottom: 25%;
  left: 25%;
  width: 400px;
  height: 400px;
  background: rgba(139, 105, 20, 0.05);
  filter: blur(100px);
}
.hero__stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 64rem;
  margin: 0 auto;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero__kicker::before,
.hero__kicker::after {
  content: "";
  width: 3rem;
  height: 1px;
}
.hero__kicker::before {
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__kicker::after {
  background: linear-gradient(270deg, transparent, var(--gold));
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 0.95;
  margin-bottom: 2rem;
}
.hero__title span {
  display: block;
}
.hero__title span + span {
  margin-top: 0.5rem;
}
@media (min-width: 640px) {
  .hero__title {
    font-size: 2.25rem;
  }
}
@media (min-width: 768px) {
  .hero__title {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.75rem;
  }
}
.hero__subtitle {
  color: var(--warm-gray);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}
@media (min-width: 640px) {
  .hero__subtitle {
    font-size: 1.25rem;
  }
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}
.hero__stats {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
@media (min-width: 640px) {
  .hero__stats {
    gap: 3rem;
  }
}
.hero__stat {
  text-align: center;
}
.hero__stat-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
}
@media (min-width: 640px) {
  .hero__stat-num {
    font-size: 1.875rem;
  }
}
.hero__stat-label {
  color: var(--warm-gray);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(201, 168, 76, 0.6);
  animation: bounce-y 2s ease-in-out infinite;
}
@keyframes bounce-y {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* Hero entrance animations */
.hero .fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 1s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  overflow: hidden;
}
.about__accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(270deg, rgba(201, 168, 76, 0.02), transparent);
  pointer-events: none;
}
.about__grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* Фото-блок 3:4 для раздела "О нас" — вставьте фото в assets/about.jpg */
.about__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card), #1a1510, var(--card));
  border: 1px solid rgba(201, 168, 76, 0.15);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.about__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.4), transparent 50%);
  pointer-events: none;
}
.about__photo-placeholder {
  position: absolute;
  inset: 0;
  display: none; /* Скрыта по умолчанию, показывается только при ошибке загрузки */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  color: rgba(201, 168, 76, 0.5);
  display: flex;
}
.about__photo-placeholder .icon {
  width: 3rem;
  height: 3rem;
  stroke: currentColor;
}
.about__photo-text {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-serif);
  line-height: 1.5;
}
@media (max-width: 1023px) {
  .about__photo {
    max-width: 360px;
    margin-bottom: 1rem;
  }
}

.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card), #1a1510, var(--card));
}
.about__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.8), transparent 50%);
}
.about__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.about__ring--1 {
  top: 2rem;
  left: 2rem;
  width: 5rem;
  height: 5rem;
}
.about__ring--2 {
  bottom: 3rem;
  right: 2rem;
  width: 8rem;
  height: 8rem;
  border-color: rgba(201, 168, 76, 0.1);
}
.about__emblem {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}
.about__emblem-circle {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(139, 105, 20, 0.2));
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
}
.about__emblem-title {
  font-family: var(--font-serif);
  color: rgba(201, 168, 76, 0.6);
  font-size: 1.125rem;
  letter-spacing: 0.025em;
}
.about__emblem-sub {
  color: var(--warm-gray);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.about__content .eyebrow {
  text-align: left;
}
.about__content .h2 {
  margin-bottom: 1.5rem;
}
.about__text p {
  color: var(--warm-gray);
  font-size: 1rem;
  line-height: 1.65;
}
.about__text p + p {
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .about__text p {
    font-size: 1.125rem;
  }
}
.about__text {
  margin-bottom: 2rem;
}
.about__h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.about__list {
  margin-bottom: 2rem;
}
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--warm-gray);
  font-size: 0.875rem;
  line-height: 1.65;
}
.about__list li + li {
  margin-top: 0.75rem;
}
.about__list .icon {
  color: var(--gold);
  margin-top: 2px;
}
@media (min-width: 640px) {
  .about__list li {
    font-size: 1rem;
  }
}
.about__extra {
  margin-bottom: 2rem;
}
.about__extra p {
  color: var(--warm-gray);
  font-size: 0.875rem;
  line-height: 1.65;
  padding-left: 2rem;
  border-left: 2px solid rgba(201, 168, 76, 0.3);
}
.about__extra p + p {
  margin-top: 0.75rem;
}
@media (min-width: 640px) {
  .about__extra p {
    font-size: 1rem;
  }
}
.about__quote {
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.about__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
}
@media (min-width: 640px) {
  .about__quote p {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Program
   ========================================================================== */
.program__line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  opacity: 0.3;
}
.program__head {
  margin-bottom: 4rem;
}
@media (min-width: 640px) {
  .program__head {
    margin-bottom: 5rem;
  }
}
.features {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature {
  padding: 1.5rem;
  transition: background 0.5s ease;
  cursor: default;
}
@media (min-width: 640px) {
  .feature {
    padding: 1.75rem;
  }
}
.feature:hover {
  background: rgba(20, 20, 20, 0.6);
}
.feature__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(139, 105, 20, 0.1));
  color: var(--gold);
  transition: background 0.3s ease;
}
.feature:hover .feature__icon {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), rgba(139, 105, 20, 0.2));
}
.feature__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}
.feature:hover .feature__icon .icon {
  transform: scale(1.1);
}
.feature h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.feature:hover h3 {
  color: var(--gold);
}
.feature p {
  color: var(--warm-gray);
  font-size: 0.875rem;
  line-height: 1.65;
}
.program__cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .gallery-grid {
    gap: 1rem;
  }
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: var(--aspect, 1);
}
.gallery-item__bg {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: var(--grad);
  transition: transform 0.7s var(--ease);
}
.gallery-item:hover .gallery-item__bg {
  transform: scale(1.05);
}
.gallery-item__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(10, 10, 10, 0);
  color: var(--warm-white);
  transition: background 0.3s ease;
}
.gallery-item__hover .icon {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item__hover {
  background: rgba(10, 10, 10, 0.4);
}
.gallery-item:hover .gallery-item__hover .icon {
  opacity: 1;
}
.gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
  border-radius: 0 0 0.75rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}
@media (min-width: 640px) {
  .gallery-item__caption {
    padding: 1rem;
  }
}

/* Gallery gradients (перенос tailwind-градиентов) */
.grad-1 { --grad: linear-gradient(135deg, rgba(120, 53, 15, 0.6), rgba(113, 63, 18, 0.4), rgba(124, 45, 18, 0.3)); }
.grad-2 { --grad: linear-gradient(135deg, rgba(69, 10, 10, 0.7), rgba(67, 20, 7, 0.5), rgba(66, 32, 6, 0.3)); }
.grad-3 { --grad: linear-gradient(135deg, rgba(41, 37, 36, 0.6), rgba(120, 53, 15, 0.4), rgba(28, 25, 23, 0.3)); }
.grad-4 { --grad: linear-gradient(135deg, rgba(76, 5, 25, 0.5), rgba(80, 7, 36, 0.3), rgba(59, 7, 100, 0.2)); }
.grad-5 { --grad: linear-gradient(135deg, rgba(30, 27, 75, 0.6), rgba(23, 37, 84, 0.4), rgba(46, 16, 101, 0.3)); }
.grad-6 { --grad: linear-gradient(135deg, rgba(4, 47, 46, 0.5), rgba(8, 51, 68, 0.3), rgba(2, 44, 34, 0.2)); }
.grad-7 { --grad: linear-gradient(135deg, rgba(74, 4, 78, 0.6), rgba(59, 7, 100, 0.4), rgba(80, 7, 36, 0.3)); }
.grad-8 { --grad: linear-gradient(135deg, rgba(67, 20, 7, 0.5), rgba(69, 26, 3, 0.4), rgba(66, 32, 6, 0.3)); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--warm-white);
  transition: color 0.3s ease;
  z-index: 10;
}
.lightbox__close:hover {
  color: var(--gold);
}
.lightbox__body {
  width: 100%;
  max-width: 56rem;
  max-height: 80vh;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  background: var(--grad, var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.lightbox__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .lightbox__title {
    font-size: 1.875rem;
  }
}
.lightbox__sub {
  color: var(--warm-gray);
}

/* ==========================================================================
   Location
   ========================================================================== */
.location__head {
  margin-bottom: 3rem;
}
.address-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
}
@media (min-width: 640px) {
  .address-card {
    flex-direction: row;
    align-items: center;
    padding: 1.5rem;
  }
}
.address-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.address-card__title {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
}
.address-card__text {
  color: var(--warm-gray);
  font-size: 0.875rem;
  line-height: 1.65;
}
/* Mobile-first: 1 колонка по умолчанию → 2 на планшете (≥640px) → 3 на десктопе */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .venue-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .venue-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.venue {
  padding: 1.5rem;
  transition: background 0.3s ease;
}
.venue:hover {
  background: rgba(20, 20, 20, 0.8);
}
.venue .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}
.venue:hover .icon {
  transform: scale(1.1);
}
.venue h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.venue p {
  color: var(--warm-gray);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews {
  overflow: hidden;
}
.carousel {
  position: relative;
}
.carousel__viewport {
  overflow: hidden;
  border-radius: 1rem;
}
.review {
  display: none;
  padding: 2rem;
}
.review.active {
  display: block;
  animation: slide-in 0.5s var(--ease);
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 640px) {
  .review {
    padding: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .review {
    padding: 3.5rem;
  }
}
.review__quote {
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(201, 168, 76, 0.3);
  margin-bottom: 1.5rem;
}
.review__text {
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .review__text {
    font-size: 1.25rem;
  }
}
.review__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .review__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.review__author {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
}
.review__school {
  color: var(--warm-gray);
  font-size: 0.875rem;
}
.review__stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gold);
}
.review__stars .icon {
  width: 1rem;
  height: 1rem;
  fill: var(--gold);
}
.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background 0.3s ease;
}
.carousel__btn:hover {
  background: rgba(201, 168, 76, 0.1);
}
.carousel__dots {
  display: flex;
  gap: 0.5rem;
}
.carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(154, 149, 144, 0.3);
  transition: all 0.3s ease;
}
.carousel__dot:hover {
  background: rgba(154, 149, 144, 0.5);
}
.carousel__dot.active {
  width: 1.5rem;
  background: var(--gold);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  scroll-margin-top: 5rem;
}
.contact__glow {
  position: absolute;
  top: 33%;
  left: 0;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.03);
  filter: blur(100px);
  pointer-events: none;
}
.contact__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 3.5rem;
  }
  .contact__info {
    grid-column: span 2;
  }
  .contact__form-wrap {
    grid-column: span 3;
  }
}
.contact__info > * + * {
  margin-top: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.3s ease;
}
a.contact-item:hover .contact-item__icon {
  background: rgba(201, 168, 76, 0.2);
}
.contact-item__label {
  color: var(--warm-gray);
  font-size: 0.875rem;
}
.contact-item__value {
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.3s ease;
}
a.contact-item:hover .contact-item__value {
  color: var(--gold);
}
.contact-item__note {
  color: var(--gold);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.contact-item--address {
  padding-top: 1rem;
}

/* Form */
.form {
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .form {
    padding: 2rem;
  }
}
.form > * + * {
  margin-top: 1.25rem;
}
.form__row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.form label.form__label {
  display: block;
  color: var(--warm-gray);
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}
.form__label .req {
  color: var(--gold);
}
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--warm-white);
  font: inherit;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}
.form textarea {
  resize: none;
}
.form input::placeholder,
.form textarea::placeholder {
  color: rgba(154, 149, 144, 0.4);
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form__consent input {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.form__consent span {
  color: var(--warm-gray);
  font-size: 0.75rem;
  line-height: 1.6;
}
.form__consent a {
  color: var(--gold);
}
.form__consent a:hover {
  text-decoration: underline;
}
.form__error {
  color: #f87171;
  font-size: 0.875rem;
  display: none;
}
.form.has-error .form__error {
  display: block;
}
.form__submit {
  width: 100%;
  border-radius: 0.75rem;
  padding: 1rem;
}
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(10, 10, 10, 0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form__submit .state-sending {
  display: none;
}
.form.sending .form__submit .state-idle {
  display: none;
}
.form.sending .form__submit .state-sending {
  display: inline-flex;
}

.form-success {
  display: none;
  padding: 2rem;
  text-align: center;
}
.form-success.show {
  display: block;
}
@media (min-width: 640px) {
  .form-success {
    padding: 2.5rem;
  }
}
.form-success .icon {
  width: 4rem;
  height: 4rem;
  color: var(--gold);
  margin: 0 auto 1rem;
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--warm-gray);
}
.form-success button {
  margin-top: 1.5rem;
  color: var(--gold);
  font-size: 0.875rem;
}
.form-success button:hover {
  text-decoration: underline;
}

.map-wrap {
  margin-top: 3.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
}
.footer__main {
  padding: 4rem 0;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__brand {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer__brand {
    grid-column: span 1;
  }
}
.footer__brand img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.footer__brand p {
  color: var(--warm-gray);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.footer h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer__links li + li {
  margin-top: 0.625rem;
}
.footer__contacts li + li {
  margin-top: 0.75rem;
}
.footer a {
  color: var(--warm-gray);
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer a:hover {
  color: var(--gold);
}
.footer__addr {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--warm-gray);
  font-size: 0.875rem;
  line-height: 1.65;
}
.footer__addr .icon {
  color: var(--gold);
  margin-top: 2px;
}
.footer__venue {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.75rem;
}
.footer__bottom {
  border-top: 1px solid var(--border);
}
.footer__bottom .container {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer__bottom .container {
    flex-direction: row;
  }
}
.footer__copy,
.footer__made {
  color: var(--warm-gray);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.footer__made .icon {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--gold);
  fill: var(--gold);
}
.footer__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.to-top {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray);
  transition: all 0.3s ease;
}
.to-top:hover {
  color: var(--gold);
  border-color: rgba(201, 168, 76, 0.3);
}

/* ==========================================================================
   Floating contacts
   ========================================================================== */
.floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.floating__toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  transform: scale(0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.floating.visible .floating__toggle {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}
.floating.visible .floating__toggle:not(.is-open) {
  animation: pulse-gold 3s ease-in-out infinite;
}
.floating__toggle.is-open {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--warm-white);
}
.floating__toggle .icon-x {
  display: none;
}
.floating__toggle.is-open .icon-x {
  display: block;
}
.floating__toggle.is-open .icon-chat {
  display: none;
}
.floating__item {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.5) translateY(20px);
  visibility: hidden;
  transition: all 0.3s ease;
}
.floating.expanded .floating__item {
  opacity: 1;
  transform: none;
  visibility: visible;
  animation: float-contact 3s ease-in-out infinite;
}
.floating__item--phone {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.floating__item--wa {
  background: linear-gradient(135deg, #34d399, #22c55e);
  transition-delay: 0.05s;
}
@keyframes float-contact {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
  }
}

/* Accessibility */
.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;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Venue card with link (Наутилус)
   ========================================================================== */
.venue--link {
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.venue--link:hover {
  background: rgba(201, 168, 76, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.12);
}
.venue__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.venue__cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  transition: letter-spacing 0.3s ease;
}
.venue--link:hover .venue__cta {
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Nautilus page — photo carousel
   ========================================================================== */
.nautilus-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.nautilus-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #06102a 0%, #0a1a3a 50%, #06102a 100%);
}
.nautilus-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}
.nautilus-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4rem 0 5rem;
}
.nautilus-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.nautilus-hero__back:hover { opacity: 1; }
.nautilus-hero__back .icon { width: 1rem; height: 1rem; }
.nautilus-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.nautilus-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.nautilus-hero__sub {
  color: var(--warm-gray);
  font-size: 1.125rem;
  max-width: 40ch;
}

/* Photo carousel */
.nautilus-carousel {
  position: relative;
  background: var(--card);
  overflow: hidden;
}
.nautilus-carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.nautilus-carousel__slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.nautilus-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.nautilus-carousel__slide.active img {
  transform: scale(1.03);
}
.nautilus-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(10,10,10,0.6);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nautilus-carousel__btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
}
.nautilus-carousel__btn--prev { left: 1rem; }
.nautilus-carousel__btn--next { right: 1rem; }
@media (min-width: 640px) {
  .nautilus-carousel__btn--prev { left: 1.5rem; }
  .nautilus-carousel__btn--next { right: 1.5rem; }
}
.nautilus-carousel__btn .icon { width: 1.25rem; height: 1.25rem; }
.nautilus-carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}
.nautilus-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.35);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.nautilus-carousel__dot.active {
  width: 1.5rem;
  background: var(--gold);
}
.nautilus-carousel__counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(10,10,10,0.5);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Nautilus description section */
.nautilus-desc {
  padding: 5rem 0;
}
.nautilus-desc__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .nautilus-desc__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}
.nautilus-desc__text {
  color: var(--warm-gray);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.nautilus-desc__text p + p {
  margin-top: 1.25rem;
}
.nautilus-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.nautilus-feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  transition: border-color 0.3s ease;
}
.nautilus-feature:hover {
  border-color: rgba(201,168,76,0.3);
}
.nautilus-feature .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.nautilus-feature__label {
  font-size: 0.75rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.nautilus-feature__value {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Back-to-top & CTA block */
.nautilus-cta {
  padding: 4rem 0 6rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.nautilus-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.nautilus-cta__sub {
  color: var(--warm-gray);
  margin-bottom: 2.5rem;
}


/* ==========================================================================
   About — highlight block (перенесённый текст после "Наши плюсы")
   ========================================================================== */
.about__highlight {
  position: relative;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  border-radius: 0.75rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 168, 76, 0.06);
}
.about__highlight::before {
  content: "\201C";
  position: absolute;
  top: 0.25rem;
  left: 0.75rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: rgba(201, 168, 76, 0.25);
  pointer-events: none;
}
.about__highlight p {
  color: var(--warm-white);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-style: italic;
  font-weight: 300;
  margin: 0;
}
@media (min-width: 640px) {
  .about__highlight p { font-size: 1.125rem; }
}

/* About emblem — photo variant */
.about__emblem-circle--photo {
  overflow: hidden;
  padding: 0;
  background: none;
  border: 2px solid rgba(201, 168, 76, 0.4);
  box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.08), 0 8px 32px rgba(0,0,0,0.5);
}
.about__emblem-circle--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Видео-слоты для разделов «Наша площадка» и «Программа» ===== */
.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card), #1a1510, var(--card));
  border: 1px solid rgba(201, 168, 76, 0.15);
  min-height: 120px;
}
.video-slot__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 2;
}
.video-slot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  color: rgba(201, 168, 76, 0.5);
  z-index: 1;
  padding: 1rem;
}
.video-slot__placeholder .icon {
  width: 2.5rem;
  height: 2.5rem;
  stroke: currentColor;
  fill: none;
}
.video-slot__text {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-serif);
  line-height: 1.5;
}
.video-slot--feature {
  margin-top: 1.25rem;
}
@media (max-width: 639px) {
  .video-slot {
    min-height: 100px;
  }
  .video-slot__placeholder .icon {
    width: 2rem;
    height: 2rem;
  }
}


/* Скрываем стандартные элементы управления видео (зацикленное авто-воспроизведение) */
.video-slot__player::-webkit-media-controls {
  display: none !important;
}
.video-slot__player::-webkit-media-controls-enclosure {
  display: none !important;
}
.video-slot__player::--webkit-media-controls-panel {
  display: none !important;
}
/* Видео всегда видимо при автозапуске */
.video-slot__player[autoplay] {
  display: block !important;
  z-index: 2;
}
.video-slot:has(.video-slot__player.is-ready) .video-slot__placeholder {
  display: none !important;
}

/* ==========================================================================
   Reviews Grid (исправленная версия)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Показываем все отзывы */
.reviews-grid .review {
  display: block !important;
  padding: 2rem;
}
.reviews-grid .review.active {
  animation: none;
}

/* ==========================================================================
   Gallery CTA (кнопка перехода в галерею)
   ========================================================================== */
.gallery-cta {
  text-align: center;
  padding: 2rem 0;
}
.gallery-cta .btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   Видео раздел
   ========================================================================== */
.video-section {
  scroll-margin-top: 5rem;
}
.video-section__content {
  max-width: 900px;
  margin: 0 auto;
}
.video-slot--main {
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
}


/* ==========================================================================
   Reviews Carousel (исправленная карусель)
   ========================================================================== */
.reviews-carousel .review {
  display: none;
}
.reviews-carousel .review.active {
  display: block;
  animation: slide-in 0.5s var(--ease);
}
.reviews-carousel .carousel__viewport {
  overflow: hidden;
  border-radius: 1rem;
}
.reviews-carousel .carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.reviews-carousel .carousel__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(10, 10, 10, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}
.reviews-carousel .carousel__btn:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold);
}
.reviews-carousel .carousel__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
.reviews-carousel .carousel__dots {
  display: flex;
  gap: 0.5rem;
}
.reviews-carousel .carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(154, 149, 144, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.reviews-carousel .carousel__dot:hover {
  background: rgba(154, 149, 144, 0.5);
}
.reviews-carousel .carousel__dot.active {
  width: 1.5rem;
  background: var(--gold);
}


/* ==========================================================================
   Reviews CTA (Форма "Оставить отзыв")
   ========================================================================== */
.reviews-cta {
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.reviews-cta__inner {
  padding: 2.5rem;
  text-align: center;
}
.reviews-cta__title {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.reviews-cta__text {
  color: var(--warm-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.reviews-cta__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.reviews-cta__row {
  display: flex;
  gap: 1rem;
}
.reviews-cta__row input {
  flex: 1;
}
.reviews-cta__form input,
.reviews-cta__form textarea {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}
.reviews-cta__form input:focus,
.reviews-cta__form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.reviews-cta__form input::placeholder,
.reviews-cta__form textarea::placeholder {
  color: rgba(154, 149, 144, 0.5);
}
.reviews-cta__rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
.reviews-cta__rating > span {
  color: var(--warm-gray);
  font-size: 0.9rem;
}
.reviews-cta__stars {
  display: flex;
  gap: 0.25rem;
}
.reviews-cta__stars .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(154, 149, 144, 0.3);
  cursor: pointer;
  transition: color 0.2s ease;
}
.reviews-cta__stars .icon.active,
.reviews-cta__stars .icon:hover {
  color: var(--gold);
  fill: var(--gold);
}
.reviews-cta__form .btn-gold {
  align-self: center;
  margin-top: 0.5rem;
}
@media (max-width: 639px) {
  .reviews-cta__row {
    flex-direction: column;
  }
}


/* scroll-margin-top для всех секций (учёт фиксированного хедера) */
section[id],
.section {
  scroll-margin-top: 6rem;
}

/* ==========================================================================
   Map section (Яндекс.Карта)
   ========================================================================== */
.map-section {
  scroll-margin-top: 5rem;
}
.map-container {
  max-width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.map-container iframe {
  display: block;
  width: 100%;
  filter: invert(0.9) hue-rotate(180deg) brightness(0.9) contrast(0.85);
}
.section-desc {
  color: var(--warm-gray);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1rem;
  text-align: center;
}


/* ==========================================================================
   Map Section (Яндекс.Карта)
   ========================================================================== */
.map-section {
  scroll-margin-top: 6rem;
}
.map-container {
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}
.map-info {
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.section-head__text {
  color: var(--warm-gray);
  font-size: 1rem;
  margin-top: 0.75rem;
  font-weight: 300;
}



/* ===== Яркий текст на главной странице ===== */
.hero__title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(201, 168, 76, 0.3) !important;
  font-weight: 700 !important;
}
.hero__title .text-gold-shimmer {
  filter: brightness(1.3) !important;
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.5), 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}
.hero__title .text-warm-white {
  color: #ffffff !important;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 255, 255, 0.2) !important;
}
.hero__subtitle {
  color: #f5f3f0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 0, 0, 0.7) !important;
  font-weight: 400 !important;
}
.hero__kicker {
  color: #e6c878 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9) !important;
  font-weight: 500 !important;
}
.hero__content {
  opacity: 1 !important;
}
.hero__content * {
  opacity: 1 !important;
}

/* Уменьшить затемнение фона для лучшей читаемости */
.hero__overlay {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.3) 50%, rgba(10, 10, 10, 0.6) 100%) !important;
}



/* ===== Интерактивные звёзды оценки ===== */
.reviews-cta__stars .star-icon {
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  color: rgba(154, 149, 144, 0.3);
  transition: color 0.2s ease, transform 0.2s ease;
}
.reviews-cta__stars .star-icon:hover {
  transform: scale(1.15);
}
.reviews-cta__stars .star-icon.is-active {
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.5));
}
.reviews-cta__stars .star-icon.is-hover {
  color: var(--gold-light);
}
.reviews-cta__stars .star-icon:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Сообщение об успехе */
.reviews-cta__success {
  text-align: center;
  font-size: 0.95rem;
  animation: fade-in 0.5s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   Видео-слоты: постер, пока ролик не залит (исправление «чёрного квадрата»)
   ========================================================================== */
.video-slot__player {
  background: transparent;
}
.video-slot__player:not(.is-ready) {
  /* mp4 ещё нет — вместо чёрного прямоугольника виден постер */
  background: url("../assets/img/video-poster.jpg") center / cover no-repeat #0f0d0a;
}
.video-slot__player.is-empty {
  display: none !important;
}
.video-slot__player.is-ready {
  display: block !important;
  z-index: 2;
}
.video-slot__placeholder {
  z-index: 3;
}

/* Preserve exact filename casing in upload hints. */
#location .video-slot__text { text-transform: none; font-family: var(--font-sans); letter-spacing: 0; overflow-wrap: anywhere; color: var(--warm-gray); }
