:root {
  --ink: #1a1a2e;
  --muted: #5b6472;
  --line: #e6e8ec;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.nav-contact { font-size: 15px; }

/* Hero */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: 34px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.02em; }
.hero p { font-size: 18px; color: var(--muted); margin: 0; max-width: 640px; }

/* Category sections */
.section { padding-top: 40px; }
.section h2 {
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.section .count { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 6px 20px rgba(20,20,40,0.08); transform: translateY(-2px); }
.card-img { display: block; line-height: 0; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.course-cover { width: 100%; max-width: 480px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 4px 0 18px; }
.course-desc { margin: 22px 0; }
.course-desc p { margin: 0 0 14px; }
.card .badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark);
  background: #eef3ff;
  border-radius: 999px;
  padding: 3px 10px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.card h3 { font-size: 16px; margin: 0 0 14px; line-height: 1.35; }
.card h3 a { color: var(--ink); }
.card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); text-decoration: none; }

/* Course detail page */
.course-detail .wrap { padding-top: 40px; padding-bottom: 56px; max-width: 760px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.course-detail h1 { font-size: 30px; line-height: 1.25; margin: 8px 0 16px; letter-spacing: -0.02em; }
.course-detail .lead { font-size: 17px; color: var(--muted); }
.course-detail .cta-row { margin: 28px 0; }
.lang-tag { font-size: 13px; color: var(--muted); }

/* Hero legacy note */
.hero-legacy { font-size: 15px; color: var(--muted); margin-top: 14px; }
.hero-legacy a { font-weight: 600; }

/* Velza promo band */
.velza-band {
  background: linear-gradient(135deg, #4c1d95 0%, #1d4ed8 100%);
  color: #fff;
}
.velza-band .wrap { padding-top: 38px; padding-bottom: 38px; }
.velza-eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
  font-weight: 700; color: #c4b5fd; margin-bottom: 8px;
}
.velza-band h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; color: #fff; border: none; }
.velza-band p { font-size: 16px; color: #e9e6ff; margin: 0 0 18px; max-width: 620px; }
.btn-velza { background: #ffffff; color: #4c1d95; }
.btn-velza:hover { background: #f1edff; text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  background: var(--soft);
}
.footer-grid {
  padding-top: 30px; padding-bottom: 18px;
  font-size: 14px; color: var(--muted);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.footer-grid strong { color: var(--ink); }
.footer-base {
  padding-bottom: 26px; font-size: 13px; color: #99a; }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 18px; } }

@media (max-width: 600px) {
  .hero h1 { font-size: 27px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 36px; }
}
