/* =============================================
   XMedia Monster — Основные стили
   Цветовая схема: Премиум тёмная тема
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary:    #0A0A0A;
  --bg-secondary:  #141414;
  --accent-gold:   #D4AF37;
  --accent-pink:   #FF2D78;
  --text-white:    #FFFFFF;
  --text-gray:     #9A9A9A;
  --border-color:  #2A2A2A;
  --gradient-hero: linear-gradient(135deg, #0A0A0A 0%, #1A0A1A 100%);
  --shadow-gold:   0 0 20px rgba(212,175,55,0.4);
  --shadow-pink:   0 0 20px rgba(255,45,120,0.4);
  --container-max: 1200px;
  --section-pad:   56px; /* 1.5cm */
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', Arial, sans-serif;
  --radius-btn:    5px; /* Strict requirement for 5px radius if not specified otherwise, but checking checklist: button height 60px, width 320px */
  --transition:    0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section --- */
.section {
  padding: var(--section-pad) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-gray);
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 40px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-pink);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(255,45,120,0.3);
}

.btn-primary:hover {
  background: #e0245e;
  box-shadow: var(--shadow-pink);
  transform: translateY(-2px);
  color: var(--text-white);
}

.btn-gold {
  background: var(--accent-gold);
  color: #0A0A0A;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}

.btn-gold:hover {
  background: #c9a227;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  color: #0A0A0A;
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: #0A0A0A;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-outline-white:hover {
  background: var(--text-white);
  color: var(--bg-primary);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 0 48px;
  font-size: 18px;
  height: 60px;
  width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulse animation for CTA buttons */
.btn-pulse {
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,120,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(255,45,120,0); }
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(10,10,10,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 1px;
  flex-shrink: 0;
  transition: all var(--transition);
}

.logo span {
  color: var(--accent-pink);
}

.logo:hover {
  color: var(--accent-gold);
  text-shadow: var(--shadow-gold);
}

/* Two-row navigation */
.nav-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav-row a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  padding: 4px 14px;
  transition: color var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-row a:last-child {
  border-right: none;
}

.nav-row a:hover,
.nav-row a.active {
  color: var(--accent-gold);
}

.header-cta {
  flex-shrink: 0;
}

.header-cta .btn {
  padding: 10px 20px;
  font-size: 13px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: all var(--transition);
}

/* --- Cards --- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Star card */
.star-card {
  position: relative;
  cursor: pointer;
}

.star-card .card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.star-card .card-body {
  padding: 16px;
}

.star-card .star-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.star-card .star-category {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.star-card .star-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.star-card .star-rating i {
  color: var(--accent-gold);
  font-size: 14px;
}

.star-card .star-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.star-card .card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.star-card:hover .card-overlay {
  opacity: 1;
}

/* --- Gold Divider --- */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-pink));
  margin: 16px 0;
  border-radius: 2px;
}

.gold-divider.centered {
  margin-left: auto;
  margin-right: auto;
}

/* --- Stars Rating --- */
.stars {
  display: inline-flex;
  gap: 3px;
}

.stars i {
  color: var(--accent-gold);
  font-size: 16px;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: rgba(212,175,55,0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(212,175,55,0.3);
}

.badge-pink {
  background: rgba(255,45,120,0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(255,45,120,0.3);
}

/* --- Accordion --- */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  transition: color var(--transition);
  gap: 16px;
}

.accordion-header:hover {
  color: var(--accent-gold);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 18px;
  font-weight: 300;
  flex-shrink: 0;
  transition: all var(--transition);
}

.accordion-item.active .accordion-icon {
  background: var(--accent-gold);
  color: #0A0A0A;
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-body.open {
  max-height: 600px;
}

.accordion-content {
  padding: 0 0 20px;
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 15px;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  max-width: 800px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--border-color);
  color: var(--text-white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--accent-pink);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--accent-pink);
}

.footer-desc {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-links a {
  color: var(--text-gray);
  font-size: 14px;
  transition: color var(--transition);
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 16px;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212,175,55,0.1);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  color: var(--text-gray);
  font-size: 13px;
}

.footer-policy {
  color: var(--text-gray);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-policy:hover {
  color: var(--accent-gold);
}

/* --- Pre-footer CTA --- */
.pre-footer {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A0A1A 100%);
  padding: var(--section-pad) 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.pre-footer .section-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 12px;
}

.pre-footer .section-subtitle {
  margin: 0 auto 32px;
}

/* --- Stats row --- */
.stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-gray);
}

/* --- Form elements --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-control::placeholder {
  color: #555;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A9A9A' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: var(--text-gray);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0A0A0A;
  font-weight: 700;
}

/* --- Scroll reveal base --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Utility --- */
.text-gold { color: var(--accent-gold); }
.text-pink { color: var(--accent-pink); }
.text-gray { color: var(--text-gray); }
.text-white { color: var(--text-white); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-100 { width: 100%; }

/* --- Page hero (inner pages) --- */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A0A1A 60%, #0A0A0A 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-gray);
  max-width: 600px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-gray);
}

.breadcrumb a {
  color: var(--text-gray);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb span {
  color: var(--accent-gold);
}

/* --- Loading spinner --- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Notification --- */
.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 24px;
  color: var(--text-white);
  font-size: 14px;
  z-index: 9998;
  transform: translateX(120%);
  transition: transform 0.4s ease;
  max-width: 320px;
}

.notification.show {
  transform: translateX(0);
}

.notification.success { border-left: 4px solid #4CAF50; }
.notification.error   { border-left: 4px solid var(--accent-pink); }
