:root {
  --primary: #7a1f2b;
  --primary-dark: #54131c;
  --accent: #d9a441;
  --text: #24313d;
  --muted: #647381;
  --light: #f7f3ec;
  --white: #ffffff;
  --border: #e2e7eb;
  --shadow: 0 12px 32px rgba(31, 42, 52, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--primary-dark);
  color: #f8e8eb;
  font-size: 0.9rem;
}

.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header {
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 5px 14px rgba(122,31,43,0.28);
  font-size: 1.05rem;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: block;
  padding: 10px 13px;
  border-radius: 8px;
  color: #34414c;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f8e9ec;
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--primary);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.4rem;
  cursor: pointer;
}

.hero {
  min-height: 580px;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(53, 11, 18, 0.92), rgba(122,31,43,0.72)),
    radial-gradient(circle at 80% 20%, rgba(217,164,65,0.34), transparent 35%),
    linear-gradient(145deg, #8a2735, #4c111a);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 80px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  right: -130px;
  bottom: -160px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 90px 0;
}

.eyebrow {
  display: inline-block;
  color: #ca940a;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero p {
  max-width: 650px;
  font-size: 1.12rem;
  color: #f8e8eb;
  margin-bottom: 30px;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #311d00;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #e5b453;
}

.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

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

.section {
  padding: 80px 0;
}

.section-soft {
  background: var(--light);
}

.section-heading {
  max-width: 730px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.page-banner h1 {
  color: var(--primary-dark);
  line-height: 1.2;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #f8e9ec;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 {
  color: var(--primary-dark);
  margin-bottom: 9px;
  font-size: 1.22rem;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  padding-left: 20px;
  margin-top: 10px;
}

.stats {
  margin-top: -54px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--primary);
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-banner {
  background: linear-gradient(120deg, #f8e9ec, #fff7e7);
  padding: 74px 0;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 10px;
}

.page-banner p {
  color: var(--muted);
  max-width: 720px;
}

.content-copy h2,
.content-copy h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.content-copy p {
  color: var(--muted);
  margin-bottom: 16px;
}

.highlight-box {
  background: var(--primary-dark);
  color: var(--white);
  padding: 34px;
  border-radius: 14px;
}

.highlight-box h3 {
  color: #ffe4a6;
  margin-bottom: 10px;
}

.course-card {
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -34px;
  top: -34px;
  border-radius: 50%;
  background: #f8e9ec;
}

.course-card .duration {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: #f8e9ec;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  gap: 14px;
}

.contact-item strong {
  color: var(--primary-dark);
  display: block;
}

.contact-item span,
.contact-item p {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: #33404a;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #ccd4da;
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(122,31,43,0.12);
  border-color: var(--primary);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

button.btn {
  cursor: pointer;
  font: inherit;
}

.notice {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
  background: #eaf7ee;
  color: #1f6a37;
  border: 1px solid #bee1c8;
}

.site-footer {
  background: #241015;
  color: #eadde0;
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 38px;
}

.footer-grid h3,
.footer-grid h4 {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-grid p,
.footer-grid li {
  color: #cbbbc0;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: #ffe3a4;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: #bcaeb2;
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 4%;
    right: 4%;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }

  .grid-3,
  .grid-2,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 560px) {
  .topbar .container { justify-content: center; padding: 8px 0; }
  .topbar span:last-child { display: none; }
  .brand-text { font-size: 0.9rem; }
  .brand-text small { font-size: 0.67rem; }
  .hero { min-height: 520px; }
  .section { padding: 62px 0; }
  .stats { margin-top: -32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; padding: 14px 0; }
}


/* Legal pages */
.legal-content {
  max-width: 920px;
  margin: 0 auto;
}

.legal-content .policy-meta {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-content h2 {
  margin: 32px 0 10px;
  color: var(--primary-dark);
  font-size: 1.55rem;
}

.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { margin: 0 0 14px; color: var(--muted); }
.legal-content ul { margin: 0 0 18px 22px; color: var(--muted); }
.legal-content li { margin: 7px 0; }

.legal-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff8e8;
  color: #59451a;
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-bottom a { color: #eadde0; }
.footer-bottom a:hover { color: #ffe3a4; }

.form-legal {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-legal a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
