:root {
  --bg-dark: #060618;
  --bg-darker: #04040a;
  --bg-surface: #0d0d2b;
  --bg-surface-light: #16163b;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-gold: #c9a84c;
  --accent-gold-hover: #e0be63;
  --accent-cream: #f0e8d0;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 8rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-cream);
  line-height: 1.2;
}

h1 { font-size: clamp(3rem, 5vw + 1rem, 5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p.text-large { font-size: 1.2rem; color: var(--text-main); margin-bottom: 1.5rem; }

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

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-header {
  margin-bottom: var(--spacing-xl);
}

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

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(201, 168, 76, 0.2);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border: 1px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold);
}

.btn-small:hover {
  background-color: rgba(201, 168, 76, 0.1);
}

.btn-block {
  width: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(6, 6, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-cream);
  font-weight: 600;
}

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

.nav-link {
  color: var(--text-main);
  font-size: 0.95rem;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--accent-cream);
  margin-bottom: 5px;
  transition: var(--transition);
}

.hamburger span:last-child {
  margin-bottom: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(6, 6, 24, 0.9) 0%, rgba(6, 6, 24, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.problem {
  background-color: var(--bg-surface);
}

.problem-content {
  max-width: 800px;
  margin: 0 auto;
}

.divider-stars {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
  position: relative;
}

.divider-stars::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-gold);
  background-color: var(--bg-dark);
  padding: 0 10px;
  font-size: 1.2rem;
}

.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.format-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.features-list {
  margin-top: 2rem;
}

.features-list li {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

.features-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-gold);
}

.features-list h3 {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--accent-cream);
}

.features-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.program {
  background-color: var(--bg-surface);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.program-card {
  background-color: var(--bg-surface-light);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.3);
}

.card-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: -10px;
  right: 10px;
  line-height: 1;
}

.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.materials-list {
  margin-top: 2rem;
}

.materials-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.materials-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--accent-gold);
  border-radius: 50%;
}

.materials-image img {
  border-radius: var(--radius-lg);
}

.results {
  background-color: var(--bg-surface);
}

.results-showcase {
  max-width: 900px;
  margin: 0 auto;
}

.result-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-surface-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--accent-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.apply {
  background-color: var(--bg-surface);
}

.apply-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-surface-light);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.apply-text h2 {
  margin-bottom: 1rem;
}

.apply-form-wrapper {
  margin-top: 3rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(0, 0, 0, 0.4);
}

.form-disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-disclaimer a {
  text-decoration: underline;
}

.footer {
  background-color: var(--bg-darker);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--accent-cream);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a, .footer-contacts p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: rgba(13, 13, 43, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
  transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-page .header {
  position: static;
  background-color: var(--bg-surface);
}

.page-content {
  padding: 4rem 0 8rem;
}

.legal-container {
  max-width: 800px;
}

.legal-text {
  margin-top: 3rem;
  color: var(--text-muted);
}

.legal-text h2 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .format-grid, .materials-grid, .about-card {
    grid-template-columns: 1fr;
  }

  .materials-text {
    order: 2;
  }

  .materials-image {
    order: 1;
  }

  .about-text {
    padding: 2.5rem;
  }

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

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
  }

  .nav.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .apply-container {
    padding: 2rem;
  }

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

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
