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

:root {
  --bg: #f9f7f2;
  --fg: #1a1e2e;
  --border: #e4ddd0;
  --card: #ffffff;
  --primary: #a05328;
  --primary-dark: #883f1a;
  --primary-light: #f4ede5;
  --muted: #6b6f80;
  --accent: #3a7d62;
  --dark-bg: #141820;
  --dark-text: #e8e2d8;
  --font-sans: 'Inter', 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --radius: 0.625rem;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--fg);
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(160,83,40,0.28);
}

.btn-ghost {
  background: transparent;
  color: #d8cfc4;
  border-color: #8a7d6e;
}

.btn-ghost:hover {
  background: #8a7d6e;
  color: var(--dark-bg);
  text-decoration: none;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-white:hover {
  background: #f4ede5;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: #f2ede4;
}

.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--dark-text);
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.tag-green {
  background: var(--accent);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #faf8f4;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

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

.nav-link {
  font-size: 0.9375rem;
  color: #4a4f62;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--fg);
}

.mobile-menu {
  display: none;
  background: #faf8f4;
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.625rem 0;
  font-size: 1rem;
  color: #2a2e3e;
}

.mobile-menu .btn {
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #141820;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-writing.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14,18,28,0.92) 42%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 1.25rem;
  max-width: 600px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f2ede5;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.0625rem;
  color: #b8b0a4;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 460px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: var(--card);
  border-radius: 0.875rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.problem-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-family: serif;
}

.problem-card h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.9375rem;
  color: #5a5f72;
  line-height: 1.65;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.results-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.results-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #c8c0b4;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.check-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-icon svg {
  display: block;
}

.results-img {
  border-radius: 0.875rem;
  box-shadow: 0 8px 48px rgba(0,0,0,0.4);
  width: 100%;
}

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

.module-card {
  background: var(--card);
  border-radius: 0.875rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.module-num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  min-width: 2.25rem;
}

.module-card h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.module-card p {
  font-size: 0.9375rem;
  color: #5a5f72;
  line-height: 1.65;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.process-img {
  border-radius: 0.875rem;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.process-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.process-dot {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: #f0e6db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.process-dot::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
}

.process-item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.process-item span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.instructor-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
}

.instructor-img-wrap {
  width: 160px;
  height: 200px;
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.instructor-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.625rem;
}

.instructor-block h2 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
}

.instructor-block p {
  color: #5a5f72;
  line-height: 1.7;
  font-size: 0.9375rem;
  margin-bottom: 0.875rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

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

.mb-section {
  margin-bottom: 3rem;
}

.mb-lg {
  margin-bottom: 2.5rem;
}

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

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  padding: 0;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.2s;
}

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

.faq-answer {
  display: none;
  margin-top: 0.75rem;
  color: #5a5f72;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.cta-banner {
  background: #8c3e1a;
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  color: #f4ede5;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #d4c4b4;
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.lead-form-section {
  background: linear-gradient(135deg, #ede4d8 0%, #f5f0e8 100%);
  padding: 5rem 0;
}

.lead-form-wrap {
  max-width: 540px;
  margin: 0 auto;
}

.lead-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lead-form-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lead-form-header p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.lead-form {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2a2f42;
}

.form-optional {
  font-weight: 400;
  color: var(--muted);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid #d8d0c4;
  font-size: 1rem;
  background: #fff;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}

.form-input:focus {
  border-color: var(--primary);
}

.form-input.error {
  border-color: #c0392b;
}

.form-error {
  font-size: 0.8125rem;
  color: #c0392b;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

footer {
  background: #0e1218;
  color: #b0a898;
  padding: 3rem 0 1.5rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: #ede8e0;
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  line-height: 1.6;
  max-width: 240px;
}

.footer-col-title {
  font-weight: 600;
  color: #d4cec4;
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #a0988e;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ede8e0;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #1e2430;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6a6460;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #141820;
  color: #e8e2d8;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cookie-banner p {
  font-size: 0.875rem;
  max-width: 680px;
  line-height: 1.5;
}

.cookie-banner a {
  color: #d4b880;
  text-decoration: underline;
}

.cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
  font-family: var(--font-sans);
}

.cookie-accept:hover {
  background: var(--primary-dark);
}

.legal-page {
  background: var(--bg);
  padding: 4rem 1.25rem;
  min-height: calc(100vh - 64px);
}

.legal-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-date {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #3a3f52;
}

.legal-body h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--fg);
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body ul li {
  margin-bottom: 0.25rem;
}

.legal-body p + p {
  margin-top: 0.75rem;
}

.success-page {
  background: var(--bg);
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem;
}

.success-inner {
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
}

.success-inner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-inner p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.not-found-page {
  background: var(--bg);
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem;
  text-align: center;
}

.not-found-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: #ddd8ce;
  line-height: 1;
  margin-bottom: 1rem;
}

.not-found-page h1 {
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
}

.not-found-page p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .results-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .instructor-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .instructor-img-wrap {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .section {
    padding: 3.5rem 0;
  }
}
