/* ========== ОСНОВНЫЕ СТИЛИ (ТЁМНАЯ ТЕАТРАЛЬНАЯ ТЕМА) ========== */
:root {
  --bg-dark: #0A0A0A;
  --bg-velvet: #1A0A0A;
  --gold: #C5A572;
  --gold-light: #D4AF37;
  --gold-dark: #8B7355;
  --red-velvet: #8B0000;
  --red-dark: #5A0000;
  --text-light: #F5F5F5;
  --text-dim: #AAAAAA;
  --border-gold: rgba(197, 165, 114, 0.3);
  
  --card-width: 320px;
  --card-height: 280px;
  --card-padding: 3rem 2.5rem;
  --card-border: 3px solid var(--gold);
  --card-radius: 8px;
  --card-title-size: 2.4rem;
  --card-subtitle-size: 1.1rem;
  --card-icon-size: 2.5rem;
  
  --container-padding: 4vw;
  --cards-gap: 200px;
  --center-label-top: -200px;
  --center-label-size: 5rem;
  --cards-to-title: 180px;
  --cards-top-margin: 60px;
  
  --ease-slow: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-theatrical: cubic-bezier(0.8, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =====================================================
   ТИПОГРАФИЯ
===================================================== */
h1, h2, h3, h4, .logo, .play-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  position: relative;
  margin-bottom: 3rem;
}
h2:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
}
p {
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
  color: var(--text-light);
  line-height: 1.8;
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  letter-spacing: 0.02em;
}

/* =====================================================
   НАВИГАЦИЯ
===================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem var(--container-padding);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  transition: all 0.4s var(--ease-slow);
}
header.scrolled {
  padding: 1rem var(--container-padding);
  background: rgba(10, 10, 10, 0.95);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  z-index: 1001;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s var(--ease-theatrical);
}
.logo:hover {
  color: var(--gold-light);
  transform: scale(1.05);
}
.logo:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-theatrical);
}
.logo:hover:after {
  transform: scaleX(1);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}
.nav-links a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-slow);
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a:hover:before {
  width: 100%;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* =====================================================
   ГЛАВНЫЙ ЭКРАН
===================================================== */
.main-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 var(--container-padding);
  isolation: isolate;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.8)),
    url('../photo_2026-01-24_18-29-11.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #1A0A0A;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
}
.cards-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: var(--cards-top-margin) auto var(--cards-to-title);
  padding: 14px clamp(2rem, 8vw, 12rem);
}
@media (max-width: 1600px) {
  .cards-flex-container { padding: 14px clamp(2rem, 7vw, 10rem); }
}
@media (max-width: 1400px) {
  .cards-flex-container { padding: 14px clamp(2rem, 5vw, 6rem); }
}
@media (max-width: 1200px) {
  .cards-flex-container { padding: 14px 2rem; }
  :root {
    --card-width: 280px;
    --card-height: 240px;
    --card-title-size: 2rem;
    --card-padding: 2.5rem 2rem;
  }
}
@media (max-width: 992px) {
  .cards-flex-container {
    justify-content: center;
    padding: 14px 1rem;
    gap: 2.5rem;
    flex-direction: column;
  }
  :root {
    --card-width: 100%;
    --card-height: auto;
    --card-padding: 2rem 1.5rem;
    --card-title-size: 1.8rem;
  }
}
.card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-decoration: none;
  transition: all 0.6s var(--ease-theatrical);
  z-index: 2;
  flex: 0 0 auto;
}
.hero-card {
  width: var(--card-width);
  height: var(--card-height);
  background: rgb(26 10 10 / 50%);
  border: var(--card-border);
  padding: var(--card-padding);
  text-align: center;
  backdrop-filter: blur(15px);
  transition: all 0.6s var(--ease-slow);
  position: relative;
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: var(--card-radius);
  cursor: pointer;
}
.card-wrapper:hover .hero-card {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 
    0 25px 60px rgba(197, 165, 114, 0.5),
    0 0 0 2px rgba(197, 165, 114, 0.3);
  border-color: var(--gold-light);
}
.hero-card-title {
  font-size: var(--card-title-size);
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 1rem;
}
.hero-card-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.4s var(--ease-slow);
}
.card-wrapper:hover .hero-card-title:after {
  width: 100px;
}
.hero-card-subtitle {
  font-size: var(--card-subtitle-size);
  color: var(--text-light);
  margin-bottom: 1.8rem;
  line-height: 1.6;
  transition: color 0.4s var(--ease-slow);
}
.card-wrapper:hover .hero-card-subtitle {
  color: var(--gold-light);
}
.card-icon {
  font-size: var(--card-icon-size);
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition: all 0.4s var(--ease-theatrical);
}
.card-wrapper:hover .card-icon {
  transform: scale(1.3);
  color: var(--gold-light);
}
.card-more {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.2rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s var(--ease-slow);
}
.card-wrapper:hover .card-more {
  opacity: 1;
  transform: translateY(0);
}
.card-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.card-corner {
  position: absolute;
  width: 20px;
  height: 20px;
}
.card-corner-tl {
  top: 15px;
  left: 15px;
  border-top: 2px solid var(--border-gold);
  border-left: 2px solid var(--border-gold);
}
.card-corner-tr {
  top: 15px;
  right: 15px;
  border-top: 2px solid var(--border-gold);
  border-right: 2px solid var(--border-gold);
}
.card-corner-bl {
  bottom: 15px;
  left: 15px;
  border-bottom: 2px solid var(--border-gold);
  border-left: 2px solid var(--border-gold);
}
.card-corner-br {
  bottom: 15px;
  right: 15px;
  border-bottom: 2px solid var(--border-gold);
  border-right: 2px solid var(--border-gold);
}
.bottom-gold-title {
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.gold-title-single {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 4.5rem);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
  position: relative;
  display: inline-block;
  padding: 0 1.5rem;
}
.gold-title-single:before,
.gold-title-single:after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.gold-title-single:before {
  right: 100%;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-title-single:after {
  left: 100%;
  background: linear-gradient(90deg, var(--gold), transparent);
}
@keyframes goldGlow {
  0%, 100% {
    text-shadow: 
      0 0 15px rgba(197, 165, 114, 0.5),
      0 0 25px rgba(197, 165, 114, 0.3),
      0 0 35px rgba(197, 165, 114, 0.2);
  }
  50% {
    text-shadow: 
      0 0 25px rgba(197, 165, 114, 0.8),
      0 0 45px rgba(197, 165, 114, 0.5),
      0 0 60px rgba(197, 165, 114, 0.3);
  }
}
.gold-title-single {
  animation: goldGlow 3s ease-in-out infinite;
}
.title-underline {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* =====================================================
   СЕКЦИЯ "О НАС"
===================================================== */
.about-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--bg-velvet) 0%, #0F0505 100%);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(197, 165, 114, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
  z-index: 1;
}
.section-header {
  margin-bottom: 3rem;
  padding: 0 var(--container-padding);
  text-align: center;
  position: relative;
  z-index: 2;
}
.section-header .lead {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  font-size: 1.15rem;
}
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1550px;
  margin: 3rem auto 0;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}
.feature-card {
  background: rgba(26, 10, 10, 0.7);
  border: 1px solid var(--border-gold);
  padding: 3rem 2rem;
  border-radius: 8px;
  transition: all 0.4s var(--ease-slow);
  text-align: center;
  backdrop-filter: blur(5px);
}
.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.feature-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.feature-card h4 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* =====================================================
   СЕКЦИЯ КОНТАКТОВ (НОВЫЙ СОВРЕМЕННЫЙ ДИЗАЙН)
===================================================== */
.contacts-main-section {
  padding: 8rem var(--container-padding);
  background: linear-gradient(to bottom, #0F0505 0%, var(--bg-dark) 100%);
  position: relative;
}
.contacts-main-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contacts-modern-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.contacts-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.contacts-header h3 {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.contacts-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  opacity: 0.9;
}
.contacts-header .btn-primary {
  padding: 1rem 2.8rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}
.contact-card {
  background: rgba(26, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.5s var(--ease-slow);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-slow);
}
.contact-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-light);
  box-shadow: 0 25px 40px rgba(197, 165, 114, 0.2);
}
.contact-card:hover::before {
  transform: scaleX(1);
}
.contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.8rem;
  background: rgba(197, 165, 114, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--gold);
  transition: all 0.4s;
}
.contact-card:hover .contact-icon {
  background: var(--gold);
  color: var(--bg-dark);
  transform: scale(1.05);
}
.contact-card h4 {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.contact-card .contact-value {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-light);
  word-break: break-word;
}
.contact-card .contact-value a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-card .contact-value a:hover {
  color: var(--gold);
  text-decoration: underline;
}
.contact-card .small-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 1rem;
  display: block;
}

.work-hours-modern {
  background: rgba(26, 10, 10, 0.6);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border-gold);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.work-hours-modern h4 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.work-hours-modern h4 i {
  font-size: 1.8rem;
}
.hours-list-modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}
.hour-item-modern {
  background: rgba(0,0,0,0.3);
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  font-size: 1rem;
  border: 1px solid rgba(197, 165, 114, 0.2);
}
.hour-day {
  font-weight: 500;
  color: var(--gold);
  margin-right: 0.8rem;
}
.hour-time {
  color: var(--text-light);
}

.quick-contact {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-gold);
}
.quick-contact p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: var(--text-dim);
}
.social-links-compact {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.social-link-compact {
  width: 48px;
  height: 48px;
  background: rgba(197, 165, 114, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  transition: all 0.4s;
  text-decoration: none;
}
.social-link-compact:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(197, 165, 114, 0.3);
}

@media (max-width: 992px) {
  .contacts-modern-container { gap: 3rem; }
  .contacts-header h3 { font-size: 2.2rem; }
  .contacts-header p { font-size: 1rem; }
  .contact-card { padding: 2rem 1.5rem; }
  .contact-icon { width: 70px; height: 70px; font-size: 2rem; }
  .contact-card h4 { font-size: 1.4rem; }
  .work-hours-modern { padding: 1.5rem; }
  .hours-list-modern { gap: 1rem; }
  .hour-item-modern { padding: 0.5rem 1rem; font-size: 0.9rem; }
}
@media (max-width: 768px) {
  .contacts-main-section { padding: 4rem 1.5rem; }
  .contacts-header .btn-primary { padding: 0.8rem 2rem; font-size: 0.9rem; }
  .contacts-grid { gap: 1.5rem; }
  .contact-card { padding: 1.8rem 1rem; }
  .work-hours-modern h4 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .contacts-header h3 { font-size: 1.8rem; }
  .contact-icon { width: 60px; height: 60px; font-size: 1.6rem; margin-bottom: 1rem; }
  .hour-item-modern { width: 100%; text-align: center; }
}

/* =====================================================
   КНОПКИ
===================================================== */
.btn {
  position: relative;
  padding: 0.9rem 1.8rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--ease-slow);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-weight: 500;
  border-radius: 2px;
}
.btn:hover {
  color: var(--bg-dark);
  background: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(197, 165, 114, 0.2);
}
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--gold);
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 10px 30px rgba(197, 165, 114, 0.3);
}
.btn-primary:active {
  background: var(--gold-dark);
  transform: translateY(0);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.3);
}
.btn-block {
  display: block;
  width: 100%;
}
.social-link:focus,
.social-link-main:focus,
.footer-docs-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--gold);
}
.social-link:focus-visible,
.social-link-main:focus-visible,
.footer-docs-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =====================================================
   МОБИЛЬНОЕ МЕНЮ
===================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-velvet);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-theatrical);
  border-right: 1px solid var(--border-gold);
  padding: 2rem;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu .nav-links {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
  width: 100%;
}
.mobile-menu .nav-links a {
  font-size: 1.5rem;
  color: var(--gold);
  padding: 1rem;
  display: block;
}
.mobile-menu .nav-links a:hover {
  background: rgba(197, 165, 114, 0.1);
}
.menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.menu-close:hover {
  background: rgba(197, 165, 114, 0.1);
}

/* =====================================================
   МОДАЛЬНЫЕ ОКНА
===================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s var(--ease-slow);
  padding: 2rem;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.play-modal {
  background: var(--bg-velvet);
  border: 1px solid var(--gold);
  border-radius: 4px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.5s var(--ease-slow);
  opacity: 0;
}
.modal-overlay.active .play-modal {
  transform: translateY(0);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 2px;
}
.modal-close:hover {
  background: rgba(197, 165, 114, 0.1);
}
.docs-modal-content {
  padding: 2.5rem;
}
.docs-list {
  margin: 2rem 0;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 1.5rem;
}
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-gold);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.doc-item:last-child {
  border-bottom: none;
}
.doc-label {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  min-width: 100px;
}
.doc-value {
  font-family: 'Inter', monospace;
  color: var(--text-light);
  word-break: break-word;
  flex: 1;
  font-size: 0.95rem;
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.copy-btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
}
.copy-all-btn {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.8rem;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
}
.copy-all-btn:hover {
  background: var(--gold-light);
}

/* ===== АДАПТАЦИЯ МОДАЛЬНОГО ОКНА РЕКВИЗИТОВ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 1rem;
  }
  .docs-modal-content {
    padding: 1.5rem;
  }
  .docs-modal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  .docs-list {
    padding: 1rem;
    margin: 1rem 0;
  }
  .doc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 0;
  }
  .doc-label {
    min-width: auto;
    font-size: 1rem;
  }
  .doc-value {
    font-size: 0.9rem;
    width: 100%;
    word-break: break-word;
  }
  .copy-btn {
    align-self: flex-end;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }
  .copy-all-btn {
    font-size: 0.9rem;
    padding: 0.7rem;
  }
}
@media (max-width: 480px) {
  .docs-modal-content {
    padding: 1rem;
  }
  .docs-modal-content h2 {
    font-size: 1.4rem;
  }
  .doc-label {
    font-size: 0.9rem;
  }
  .doc-value {
    font-size: 0.85rem;
  }
  .copy-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
  .copy-all-btn {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
  .docs-list {
    padding: 0.8rem;
  }
}

/* ===== ОФОРМЛЕНИЕ ДЛИННЫХ ТЕКСТОВ В МОДАЛЬНЫХ ОКНАХ ===== */
.docs-modal-content {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-light);
}
.docs-modal-content h2,
.docs-modal-content h3,
.docs-modal-content h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 500;
}
.docs-modal-content h2 {
  font-size: 2rem;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  margin-top: 0;
}
.docs-modal-content h3 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 0.5rem;
}
.docs-modal-content h4 {
  font-size: 1.3rem;
  margin-top: 1.2em;
}
.docs-modal-content p {
  margin-bottom: 1em;
  line-height: 1.7;
}
.docs-modal-content ul, 
.docs-modal-content ol {
  margin: 1em 0 1em 1.8rem;
  padding-left: 0;
}
.docs-modal-content li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}
.docs-modal-content a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  transition: all 0.2s;
}
.docs-modal-content a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-light);
}
.docs-modal-content strong, 
.docs-modal-content b {
  color: var(--gold-light);
  font-weight: 600;
}
.docs-modal-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem 0;
}
.play-modal {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-velvet);
}
.play-modal::-webkit-scrollbar {
  width: 8px;
}
.play-modal::-webkit-scrollbar-track {
  background: var(--bg-velvet);
  border-radius: 4px;
}
.play-modal::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

/* ========== ФОРМА ОБРАТНОЙ СВЯЗИ ========== */
.contact-form-modal {
  max-width: 560px;
  width: 100%;
  background: #111;
  border: 1px solid rgba(197, 165, 114, 0.3);
  border-radius: 16px;
  padding: 2rem;
}
.contact-form-modal h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.05em;
}
.contact-form-modal .form-group {
  margin-bottom: 1.2rem;
}
.contact-form-modal label {
  display: block;
  margin-bottom: 0.4rem;
  color: #aaa;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}
.contact-form-modal input,
.contact-form-modal textarea {
  width: 100%;
  padding: 0.7rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(197, 165, 114, 0.4);
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  border-radius: 0;
}
.contact-form-modal input:focus,
.contact-form-modal textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.contact-form-modal textarea {
  min-height: 80px;
  resize: vertical;
}
.contact-form-modal .row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form-modal button[type="submit"] {
  width: 100%;
  padding: 0.9rem;
  background: var(--gold);
  color: #111;
  border: none;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 40px;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.contact-form-modal button[type="submit"]:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
@media (max-width: 560px) {
  .contact-form-modal .row-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-form-modal {
    padding: 1.5rem;
  }
}

/* =====================================================
   УВЕДОМЛЕНИЯ (TOAST)
===================================================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #1a1a1a;
  border: 1px solid var(--gold);
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 15000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.toast.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.toast-close {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  pointer-events: auto;
}

/* =====================================================
   ФУТЕР
===================================================== */
footer {
  background: rgb(26 10 10 / 50%);
  padding: 6rem var(--container-padding) 3rem;
  border-top: 1px solid var(--border-gold);
  position: relative;
}
footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5rem;
  margin-bottom: 4rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}
.footer-logo {
  font-size: 2.5rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
  display: inline-block;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-logo:hover {
  color: var(--gold-light);
}
.footer-grid > div > p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: #dddddd;
  max-width: 350px;
}
.footer-grid h4 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.8rem;
}
.footer-grid h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.footer-grid h4:hover::after {
  width: 80px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 1.2rem;
}
.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover {
  color: var(--gold);
  transform: translateX(8px);
  border-bottom-color: var(--gold);
}
.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}
.social-link {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-decoration: none;
  transition: all 0.4s ease;
  border-radius: 50%;
  font-size: 1.3rem;
  background: rgba(26, 10, 10, 0.6);
}
.social-link:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(197, 165, 114, 0.3);
}
.footer-docs-link {
  color: var(--gold);
  cursor: pointer;
  font-size: 1.2rem;
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 2px;
  transition: all 0.3s;
  display: inline-block;
  margin-top: 0.5rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(197, 165, 114, 0.25);
}
.footer-docs-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}
.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid var(--border-gold);
  color: #aaa;
  font-size: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.02em;
}
.footer-bottom p:first-child {
  margin-bottom: 0.5rem;
  color: #ccc;
}

/* ===== АДАПТАЦИЯ ФУТЕРА ===== */
@media (max-width: 1200px) {
  .footer-grid { gap: 3rem; grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr; gap: 4rem; text-align: left; max-width: 600px; margin-left: 0; }
  .footer-grid > div > p { max-width: 100%; font-size: 1.1rem; }
  .social-links { justify-content: flex-start; }
  .footer-bottom { text-align: left; }
  .footer-grid h4::after { left: 0; transform: none; }
  .footer-links a { font-size: 1.1rem; }
}
@media (max-width: 768px) {
  footer { padding: 4rem 2rem 2rem; }
  .footer-logo { font-size: 2.5rem; }
  .footer-grid h4 { font-size: 1.5rem; }
  .footer-links a { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-logo { font-size: 2.2rem; letter-spacing: 0.15em; }
  .footer-grid { text-align: left; }
  .footer-grid h4 { text-align: left; letter-spacing: 0.02em; }
  .footer-grid h4::after { left: 0; transform: none; }
  .social-links { justify-content: flex-start; }
  .footer-docs-link { font-size: 1.3rem; }
  .social-link, .social-link-main { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* =====================================================
   МОБИЛЬНАЯ ВЕРСИЯ (ОСТАЛЬНЫЕ СЕКЦИИ)
===================================================== */
@media (max-width: 1200px) { :root { --container-padding: 2rem; } }
@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .main-hero { min-height: 100vh; padding: 80px 1rem 2rem; display: flex; align-items: center; }
  .hero-content { height: auto; padding: 0; justify-content: center; display: flex; flex-direction: column; }
  .bottom-gold-title { order: -1; position: relative; bottom: auto; margin: 4rem auto 2rem; width: 100%; }
  .cards-flex-container { justify-content: center; flex-direction: column; gap: 2.5rem; margin: 0 auto 3rem; padding: 0 1rem; max-width: 100%; }
  .card-wrapper { width: 100%; max-width: 400px; margin: 0 auto; }
  .hero-card { width: 100%; height: auto; min-height: 180px; padding: 2rem 1.5rem; background: rgb(26 10 10 / 55%); border: 2px solid var(--gold); border-radius: 12px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
  .hero-card.active { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(197, 165, 114, 0.3); }
  .card-icon { font-size: 2rem; margin-bottom: 1rem; transition: transform 0.3s ease; }
  .hero-card-title { font-size: 1.8rem; margin-bottom: 0.8rem; padding-bottom: 0.5rem; }
  .hero-card-title:after { width: 40px; }
  .hero-card-subtitle { font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.5rem; color: var(--text-light); }
  .card-more { opacity: 1; transform: translateY(0); margin-top: 0; font-size: 0.9rem; padding: 0.5rem 1rem; background: rgba(197, 165, 114, 0.1); border-radius: 4px; transition: all 0.3s ease; }
  .hero-card:hover .card-more { background: rgba(197, 165, 114, 0.2); }
  .gold-title-single { font-size: 2rem; letter-spacing: 0.1em; padding: 0; margin-bottom: 1rem; }
  .gold-title-single:before, .gold-title-single:after { display: none; }
  .title-underline { width: 150px; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .about-section { padding: 4rem 0; }
  .section-header { padding: 0 1.5rem; margin-bottom: 2rem; }
  .section-header h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
  .section-header .lead { font-size: 1.1rem; line-height: 1.6; }
  .about-features { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1.5rem; margin-top: 2rem; }
  .feature-card { padding: 2rem 1.5rem; text-align: left; border-radius: 12px; background: rgba(26, 10, 10, 0.8); backdrop-filter: blur(10px); transition: all 0.3s ease; }
  .feature-icon { font-size: 2.2rem; margin-bottom: 1.2rem; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: rgba(197, 165, 114, 0.1); border-radius: 50%; }
  .feature-card h4 { font-size: 1.3rem; margin-bottom: 0.8rem; }
  .feature-card p { font-size: 0.95rem; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
}
@media (max-width: 768px) {
  .main-hero { padding: 70px 1rem 2rem; }
  .hero-card { padding: 1.8rem 1.2rem; min-height: 160px; }
  .hero-card-title { font-size: 1.6rem; }
  .hero-card-subtitle { font-size: 0.9rem; }
  .card-icon { font-size: 1.8rem; }
  .gold-title-single { font-size: 1.8rem; }
  .title-underline { width: 120px; }
  .contacts-main-section { padding: 4rem 1rem; }
  footer { padding: 4rem 2rem 2rem; }
}
@media (max-width: 480px) {
  header { padding: 1rem 1rem; }
  .logo { font-size: 2rem; }
  .main-hero { padding: 60px 0.5rem 1.5rem; }
  .cards-flex-container { padding: 0 0.5rem; gap: 2rem; }
  .hero-card { padding: 1.5rem 1rem; min-height: 140px; }
  .hero-card-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .hero-card-subtitle { font-size: 0.85rem; margin-bottom: 1rem; }
  .card-icon { font-size: 1.5rem; margin-bottom: 0.8rem; }
  .card-more { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
  .gold-title-single { font-size: 1.7rem; }
  .title-underline { width: 100px; }
  .feature-card { padding: 1.5rem 1rem; }
  .feature-icon { font-size: 2rem; width: 50px; height: 50px; }
  .feature-card h4 { font-size: 1.2rem; }
  .contacts-main-section { padding: 3rem 0.5rem; }
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-logo { font-size: 2.2rem; letter-spacing: 0.15em; }
  .footer-grid { text-align: left; }
  .footer-grid h4 { text-align: left; letter-spacing: 0.02em; }
  .footer-grid h4::after { left: 0; transform: none; }
  .social-links { justify-content: flex-start; }
  .footer-docs-link { font-size: 1.3rem; }
  .social-link, .social-link-main { width: 40px; height: 40px; font-size: 1.1rem; }
  .contact-form-modal .row-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.fade-in { animation: fadeIn 1s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardOpen {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.hero-card { animation: cardOpen 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@media (hover: none) and (pointer: coarse) {
  .hero-card { min-height: 160px; }
  .card-more { opacity: 1; transform: translateY(0); }
  .btn, a, button { min-height: 44px; min-width: 44px; }
  .nav-toggle, .menu-close { width: 44px; height: 44px; }
}
@supports (-webkit-touch-callout: none) {
  .main-hero { min-height: -webkit-fill-available; }
  .hero-content { min-height: -webkit-fill-available; }
}
@media (max-width: 992px) {
  p, .contact-details p, .contact-details-main p, .footer-links a, .lead {
    font-size: 1rem; line-height: 1.7;
  }
  h2 { font-size: 2rem; }
  h2:after { bottom: -10px; }
}
@media (min-width: 2000px) {
  :root {
    --card-width: 360px;
    --card-height: 320px;
    --center-label-size: 5.5rem;
  }
}

/* =====================================================
   АДМИН-ПАНЕЛЬ
===================================================== */
#admin-save-bottom {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 15001;
  background: #d4af37;
  color: #000;
  border: none;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#admin-save-bottom:hover {
  background: #e5c158;
  transform: scale(1.02);
}
body.admin-mode #admin-save-bottom {
  display: block;
}
.inline-editor {
  position: fixed;
  background: #2a2a2a;
  border: 2px solid #d4af37;
  border-radius: 8px;
  padding: 12px;
  z-index: 20000;
  display: none;
  gap: 12px;
  flex-direction: column;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.inline-editor .editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.inline-editor label {
  color: #d4af37;
  font-size: 0.8rem;
}
.inline-editor input {
  background: #1a1a1a;
  border: 1px solid #d4af37;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  width: 80px;
}
.inline-editor select {
  background: #1a1a1a;
  border: 1px solid #d4af37;
  color: #fff;
  padding: 4px;
  border-radius: 4px;
}
.inline-editor button {
  background: #d4af37;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
[data-editable] {
  transition: outline 0.1s ease;
  cursor: pointer;
}
[data-editable].editing-active {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  background-color: rgba(197, 165, 114, 0.1);
}
#admin-login-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20001;
}
#admin-login-box {
  background: #1a1a1a;
  border: 2px solid #d4af37;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  border-radius: 8px;
  text-align: center;
}
#admin-login-box h3 {
  color: #d4af37;
  margin-bottom: 1.5rem;
}
#admin-login-box input {
  width: 100%;
  padding: 0.8rem;
  background: #2a1a1a;
  border: 1px solid #d4af37;
  color: #fff;
  margin-bottom: 1rem;
  border-radius: 4px;
}
#admin-login-box button {
  background: #d4af37;
  color: #000;
  border: none;
  padding: 0.8rem 2rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}
#admin-login-error {
  color: #ff6b6b;
  margin-top: 0.5rem;
}
