/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
  /* Color Palette */
  --bg-dark-base: #110C08;
  --bg-dark-soft: #1A120B;
  --bg-dark-card: rgba(26, 18, 11, 0.75);
  
  --primary-amber: #D97706;
  --primary-orange: #F97316;
  --accent-gold: #D4AF37;
  --accent-crimson: #881337;
  
  --text-light: #F5F5F4;
  --text-muted: #A8A29E;
  
  --border-gold: rgba(212, 175, 55, 0.15);
  --border-gold-hover: rgba(212, 175, 55, 0.4);
  
  /* Fonts */
  --font-header: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', Inter, system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* Background Canvas & Particles */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-header);
  color: var(--text-light);
  letter-spacing: 0.05em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 0.8rem auto 0;
}

p {
  color: var(--text-muted);
}

.section-subtitle-centered {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
  font-size: 1rem;
}

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

/* Common UI Elements */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-amber), var(--primary-orange));
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-primary {
  color: #110C08;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.45);
}

.btn-primary:hover::before {
  opacity: 0.85;
}

.btn-secondary {
  color: var(--text-light);
  background: transparent;
  border: 1px solid var(--accent-gold);
}

.btn-secondary::before {
  background: var(--accent-gold);
  opacity: 0;
}

.btn-secondary:hover {
  color: #110C08;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-crimson {
  color: var(--text-light);
  border: 1px solid var(--accent-crimson);
  box-shadow: 0 4px 20px rgba(136, 19, 55, 0.15);
}

.btn-crimson::before {
  background: linear-gradient(45deg, #4c0519, var(--accent-crimson));
}

.btn-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(136, 19, 55, 0.4);
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-dark-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-gold-hover);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.05);
}

/* Header Section */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(17, 12, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  background: rgba(17, 12, 8, 0.95);
  border-bottom-color: rgba(212, 175, 55, 0.15);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.logo span {
  white-space: nowrap;
}

.logo svg {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  fill: var(--accent-gold);
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--text-light);
}

.social-icon:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.social-icon:hover svg {
  fill: var(--accent-gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--text-light);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.open span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; left: -60px; }
.menu-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: radial-gradient(circle at center, rgba(26, 18, 11, 0.4) 0%, rgba(17, 12, 8, 0.95) 100%), 
              url('assets/hero_bg.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--bg-dark-base), transparent);
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  margin-top: 3.5rem;
}

.hero-brand {
  position: absolute;
  top: 38%;
  right: clamp(-7rem, -6vw, -3rem);
  width: min(38vw, 500px);
  text-align: center;
  transform: translateY(-50%);
}

.hero-brand-name {
  font-family: var(--font-header);
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1.05;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.075em;
  white-space: nowrap;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.hero-brand-desc {
  margin: 0.7rem auto 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(245, 245, 244, 0.82);
  letter-spacing: 0.015em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-title {
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-title span {
  color: var(--accent-gold);
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-badges {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.05);
}

.badge-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-gold);
}

.badge-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.badge-text p {
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

/* Sections Common */
section {
  padding: 8rem 0;
  position: relative;
}

/* 3. Diagnostic Section (Quiz) */
.diagnostic {
  background: var(--bg-dark-base);
}

.quiz-box {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.quiz-step {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.quiz-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.step-indicator {
  font-family: var(--font-header);
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  display: block;
}

.quiz-step h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  font-weight: 500;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.quiz-opt-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-gold);
  padding: 1.1rem 1.5rem;
  text-align: left;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.quiz-opt-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--accent-gold);
  transform: translateX(5px);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.quiz-result-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(217, 119, 6, 0.05);
  border-left: 3px solid var(--primary-amber);
  border-radius: 0 4px 4px 0;
}

.quiz-result-text strong {
  color: var(--accent-gold);
}

.quiz-result-cta p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.quiz-result-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.quiz-result-btns .btn {
  padding: 0.8rem 2rem;
  flex: 1;
  min-width: 200px;
}

.quiz-reset-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quiz-reset-btn:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* 4. Rituals Section (Tabs Grimoire) */
.rituals {
  background: linear-gradient(180deg, var(--bg-dark-base) 0%, var(--bg-dark-soft) 100%);
}

.ritual-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.ritual-tab-trigger {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-gold);
  color: var(--text-muted);
  font-family: var(--font-header);
  font-size: 0.9rem;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.ritual-tab-trigger:hover, .ritual-tab-trigger.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.ritual-tab-display {
  padding: 0;
  overflow: hidden;
}

.ritual-pane {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ritual-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ritual-pane-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.ritual-pane-details {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ritual-tag-label {
  font-family: var(--font-header);
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
  display: block;
}

.ritual-tag-label.crimson-label {
  color: #fb7185;
}

.ritual-pane-details h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.ritual-pane-details p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ritual-pane-spec {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  margin-bottom: 2.2rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.spec-row span:first-child {
  color: var(--text-muted);
}

.spec-row span:last-child {
  color: var(--text-light);
  font-weight: 500;
}

.ritual-pane-media {
  position: relative;
  min-height: 100%;
}

.ritual-pane-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* 5. Stages Section (Алхимический путь) */
.process {
  background: var(--bg-dark-base);
}

.stages-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.stage-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-gold);
  padding: 2.5rem 2rem;
  border-radius: 6px;
  position: relative;
  transition: var(--transition-smooth);
}

.stage-block:hover {
  border-color: var(--border-gold-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.stage-num {
  font-family: var(--font-header);
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.stage-block:hover .stage-num {
  color: var(--accent-gold);
  transform: scale(1.1);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.stage-text h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.stage-text p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* 6. Case Archives Section */
.cases {
  background: linear-gradient(180deg, var(--bg-dark-soft) 0%, var(--bg-dark-base) 100%);
}

.cases-carousel-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.cases-carousel {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.case-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  pointer-events: none;
}

.case-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.case-card {
  padding: 3rem;
  border-radius: 10px;
}

.case-label-tag {
  font-family: var(--font-header);
  font-size: 0.75rem;
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-label-tag.crimson-label {
  color: #fb7185;
  border-color: rgba(136, 19, 55, 0.4);
}

.case-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.case-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.case-info p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.case-info p strong {
  color: var(--accent-gold);
}

.case-proof {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.proof-box {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 1.5rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}

.proof-action {
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 600;
}

.proof-action:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-dark-soft);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background: var(--accent-gold);
  color: #110C08;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.carousel-dots {
  display: flex;
  gap: 0.6rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--accent-gold);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--accent-gold);
}

/* 7. About Section (О Маге - в конце) */
.about {
  background: var(--bg-dark-base);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 8px;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--accent-gold);
  opacity: 0.3;
  border-radius: 8px;
  z-index: 0;
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover::before {
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  opacity: 0.6;
}

.about-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.about-subtitle {
  font-family: var(--font-header);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.about-title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.about-title::after {
  display: none;
}

.about-text {
  margin-bottom: 2rem;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.ethics-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.ethic-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 6px 6px 0;
}

.ethic-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.ethic-item p {
  font-size: 0.85rem;
}

/* 8. FAQ Section */
.faq {
  background: var(--bg-dark-base);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-dark-card);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--border-gold-hover);
}

.faq-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.faq-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--accent-gold);
}

.faq-item.active .faq-icon-box {
  transform: rotate(180deg);
  background: var(--accent-gold);
  color: #110C08;
  border-color: var(--accent-gold);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-body {
  padding: 0 2rem 1.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 1rem;
}

/* 9. Contact Section & Footer */
.contact {
  background: radial-gradient(circle at center, rgba(26, 18, 11, 0.3) 0%, rgba(17, 12, 8, 0.98) 100%), 
              url('assets/hero_bg.jpg') no-repeat center bottom/cover;
  position: relative;
  padding-bottom: 2rem;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, var(--bg-dark-base), transparent);
  z-index: 1;
}

.contact-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

.contact-card-half {
  padding: 3rem 2.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 440px;
}

.contact-card-half h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  text-align: left;
}

.contact-card-half h2::after {
  margin-left: 0;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.contact-desc-half {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.contact-btn-tg-full {
  width: 100%;
  padding: 1.1rem;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
  margin-top: auto;
}

.contact-web-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-group-half {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-half label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.form-group-half input, .form-group-half textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-gold);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-group-half input:focus, .form-group-half textarea:focus {
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.form-success-msg {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid #16a34a;
  color: #4ade80;
  border-radius: 4px;
  font-size: 0.85rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

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

/* Footer elements */
.footer-divider {
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  margin: 4rem auto 2.5rem;
}

.disclaimer {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
}

.legal-card {
  background: rgba(17, 12, 8, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 8px;
  padding: 1.5rem;
}

.legal-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 0.9rem;
  color: var(--accent-gold);
}

.legal-card p {
  font-size: 0.78rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

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

/* Modal Style */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  overflow-y: auto;
  padding: 3rem 1rem;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 12, 8, 0.85);
  backdrop-filter: blur(8px);
}

.modal-container {
  width: 95%;
  max-width: 850px;
  position: relative;
  z-index: 10;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.modal-body p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Modal Grid Layout */
.modal-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.modal-grid-half {
  background: rgba(20, 15, 10, 0.4);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.modal-grid-half h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-gold);
}

.modal-panel-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.modal-tg-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  margin-top: auto;
}

.modal-tg-link-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.modal-tg-link-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.modal-web-form-el {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  .modal-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.modal-cta-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-tg-link, .modal-wa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.modal-tg-link {
  background: #2481cc;
  color: white;
}

.modal-tg-link:hover {
  background: #288ed3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(36, 129, 204, 0.3);
}

.modal-wa-link {
  background: #15803d;
  color: white;
}

.modal-wa-link:hover {
  background: #166534;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(21, 128, 61, 0.3);
}

.modal-tg-link svg, .modal-wa-link svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Proof Screenshot Modal Specifics */
.proof-modal-content {
  text-align: center;
}

.proof-img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styling */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .about-img {
    height: 420px;
  }
  
  .about-text {
    text-align: center;
  }
  
  .ethics-list {
    text-align: left;
  }
  
  .ritual-pane-layout {
    grid-template-columns: 1fr;
  }
  
  .ritual-pane-media {
    display: none; /* Hide media on mid-to-small screens to preserve reading space */
  }
  
  .case-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
    z-index: 101;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #110C08;
    border-left: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
    transition: var(--transition-smooth);
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.1rem;
  }
  
  .header-right {
    margin-right: 3rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-brand {
    position: static;
    width: 100%;
    max-width: none;
    text-align: center;
    margin: 0 auto 1.1rem;
    padding-right: 0;
    transform: none;
  }

  .hero-brand-name {
    font-size: 1.45rem;
    letter-spacing: 0.14em;
  }

  .hero-brand-desc {
    font-size: 0.78rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: normal;
    max-width: 320px;
    margin: 0.55rem auto 0;
  }

  
  .hero-badges {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .case-card {
    padding: 2rem 1.5rem;
  }
  
  .cases-carousel {
    height: 580px; /* Expand height for long text on small screens */
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-card-half {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 2rem) 0 3rem;
    background-attachment: scroll;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.16;
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 2rem;
  }

  .hero-btns .btn {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: normal;
  }

  .hero-badges {
    align-items: stretch;
  }

  .badge {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
  
  .header-right {
    display: none;
  }
  
  .cases-carousel {
    height: 680px;
  }
  
  .ritual-pane-details {
    padding: 2rem 1rem;
  }
}

/* laptop menu optimization */
@media (min-width: 769px) and (max-width: 1300px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }
  .header-right {
    gap: 0.8rem;
  }
  .header-right .btn {
    padding: 0.55rem 1rem;
    font-size: 0.76rem;
  }
  .social-icons {
    display: none;
  }
}
