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

:root {
  --accent: #cccdc1;
  --accent-dark: #b0b1a5;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --bg: #fafaf8;
  --bg-alt: #f0f0ec;
  --white: #ffffff;
  --border: #e0e0da;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 8px;
  --max-width: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

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

a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav-desktop { display: flex; gap: 28px; align-items: center; }
.nav-desktop a { font-size: 0.925rem; font-weight: 500; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.875rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--white); }
.btn-primary:hover { background: #333; color: var(--white); }
.btn-secondary { background: var(--accent); color: var(--text); }
.btn-secondary:hover { background: var(--accent-dark); color: var(--text); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--bg-alt); color: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 620px;
  padding: 80px 0;
}
.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero-content p {
  font-size: 1.125rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
section:nth-child(even) { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
  font-weight: 700;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Cards grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }

.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 24px; }
.card-body h3 { font-size: 1.125rem; margin-bottom: 8px; font-weight: 600; }
.card-body p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 16px; }
.card-body .price { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
  font-size: 1.1rem;
}
.step h3 { margin-bottom: 10px; font-size: 1.05rem; }
.step p { color: var(--text-muted); font-size: 0.9375rem; }

/* Features / benefits */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.feature-item h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Reviews */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.review-card .stars { color: #c4a035; margin-bottom: 12px; letter-spacing: 2px; }
.review-card blockquote { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 16px; font-style: italic; }
.review-card .author { font-weight: 600; font-size: 0.9rem; }
.review-card .role { font-size: 0.825rem; color: var(--text-muted); }

/* CTA */
.cta-section {
  background: var(--text);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.cta-section p { opacity: 0.85; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--bg-alt);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 600px; font-size: 1.05rem; }

/* Content prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 14px; font-weight: 600; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; font-weight: 600; }
.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose ul, .prose ol { margin: 0 0 16px 24px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; }

.content-wide { max-width: 900px; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.stat-box {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-box .num { font-size: 2rem; font-weight: 700; color: var(--text); }
.stat-box .label { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.pricing-card.featured { border-color: var(--text); box-shadow: var(--shadow); }
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pricing-card .amount { font-size: 2.25rem; font-weight: 700; margin: 20px 0 4px; }
.pricing-card .period { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 24px; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-card li:last-child { border-bottom: none; }

/* Location cards */
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.location-card .loc-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.location-card .loc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.location-card .loc-body { padding: 24px; }
.location-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.location-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; }

/* Team */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.team-card .team-photo {
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card .team-info { padding: 20px; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card .role { color: var(--accent-dark); font-size: 0.875rem; font-weight: 500; margin-bottom: 10px; }
.team-card p { font-size: 0.875rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
  color: var(--text);
}
.faq-question::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--text-muted); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-block { margin-bottom: 28px; }
.contact-info-block h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-info-block p { color: var(--text-muted); font-size: 0.9375rem; }

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  margin-bottom: 18px;
  background: var(--white);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.map-placeholder {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 32px;
}
.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-success {
  display: none;
  background: var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: 0.9375rem;
}
.form-success.show { display: block; }

/* Blog */
.blog-meta { font-size: 0.825rem; color: var(--text-muted); margin-bottom: 12px; }
.article-hero-img {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Course detail */
.course-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.course-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 88px;
}
.course-sidebar .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.course-sidebar .detail-row:last-child { border-bottom: none; }
.course-sidebar .detail-row span:first-child { color: var(--text-muted); }

/* Legal */
.legal-content { max-width: 780px; }
.legal-content h1 { font-size: 1.75rem; margin-bottom: 8px; }
.legal-content .legal-subtitle { color: var(--text-muted); margin-bottom: 36px; font-size: 0.9375rem; }
.legal-content p { margin-bottom: 14px; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.75; }
.legal-content .section-title { font-weight: 600; color: var(--text); margin: 28px 0 10px; font-size: 1rem; }
.legal-doc-id {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; display: block; }
.footer-brand p { line-height: 1.6; opacity: 0.7; }
.footer-col h4 { color: var(--white); font-size: 0.875rem; margin-bottom: 16px; font-weight: 600; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  padding: 4px 0;
  font-size: 0.8375rem;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0.6;
  font-size: 0.8125rem;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.65); }
.footer-legal a:hover { color: var(--white); }

/* Breadcrumb */
.breadcrumb { font-size: 0.825rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--border);
}
.data-table th { background: var(--bg-alt); font-weight: 600; }
.data-table td { color: var(--text-muted); }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4, .steps, .pricing-grid, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .steps, .pricing-grid, .stats-row, .features-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  section { padding: 48px 0; }
  .hero { min-height: 440px; }
  .hero-content { padding: 56px 0; }
}
