:root {
  --ink: #2f2d51;
  --muted: #778196;
  --line: #eceff5;
  --soft: #f7f8fc;
  --warm: #fff6ef;
  --orange: #ff7a45;
  --blue: #3b82f6;
  --green: #38bfa7;
  --violet: #7c6cf2;
  --yellow: #f7c948;
  --white: #fff;
  --shadow: 0 14px 32px rgba(47, 45, 81, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 18px clamp(18px, 4vw, 72px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.logo img { width: 204px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #3c3a5f;
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary { color: #fff; background: var(--orange); box-shadow: 0 12px 24px rgba(255,122,69,.18); }
.btn.blue { color: #fff; background: var(--blue); }
.btn.light { color: var(--ink); background: #fff; border-color: var(--line); }
.btn.ghost { color: var(--ink); background: transparent; }
.btn:hover { transform: translateY(-1px); }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .86fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  min-height: 640px;
  padding: clamp(52px, 7vw, 92px) clamp(18px, 4vw, 72px);
  background:
    radial-gradient(circle at 8% 24%, rgba(255,122,69,.13), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(59,130,246,.10), transparent 24%),
    var(--warm);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255,122,69,.18);
  border-radius: 50%;
}

.hero::before { width: 340px; height: 340px; left: -160px; top: 80px; }
.hero::after { width: 220px; height: 220px; right: -100px; bottom: 34px; border-color: rgba(59,130,246,.18); }

.hero-copy,
.hero-visual { position: relative; z-index: 1; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
}

.crumb span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(45px, 6vw, 78px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.22;
}

.hero-copy p {
  max-width: 620px;
  color: #6c7488;
  font-size: 18px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.course-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 620px;
  margin-top: 28px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course-search input {
  border: 0;
  outline: 0;
  min-width: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.hero-visual {
  min-height: 470px;
}

.portrait-wrap {
  position: relative;
  width: min(520px, 100%);
  margin-left: auto;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 8% -6% -7% 10%;
  z-index: 0;
  background: #ffe2d2;
  border-radius: 36% 64% 48% 52% / 45% 34% 66% 55%;
}

.portrait-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 42% 58% 40% 60% / 48% 38% 62% 52%;
  box-shadow: var(--shadow);
}

.mini-card {
  position: absolute;
  z-index: 2;
  width: 210px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mini-card.top { top: 34px; left: -46px; }
.mini-card.bottom { right: -18px; bottom: 26px; }
.mini-card strong { display: block; color: var(--ink); }
.mini-card span { color: var(--muted); font-size: 13px; font-weight: 750; }

.section { padding: clamp(60px, 8vw, 96px) clamp(18px, 4vw, 72px); }
.section.alt { background: var(--soft); }

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-title.center {
  display: block;
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-title p { color: var(--muted); font-size: 16px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1120px;
  margin: -36px auto 0;
  position: relative;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats div { padding: 24px 26px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; color: var(--ink); font-size: 28px; line-height: 1; }
.stats span { color: var(--muted); font-size: 14px; font-weight: 800; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category {
  display: grid;
  place-items: center;
  min-height: 156px;
  padding: 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 9px 24px rgba(47,45,81,.05);
}

.category i {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  color: #8b95a7;
  background: #f2f4f8;
  border-radius: 50%;
  font-style: normal;
  font-weight: 950;
}

.category:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category strong { display: block; margin-bottom: 3px; }
.category span { color: var(--muted); font-size: 13px; font-weight: 750; }

.course-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  padding: 9px 14px;
  color: #596376;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.filter-pill.active { color: #fff; background: var(--orange); border-color: var(--orange); }

.catalog-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.course-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course-side strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.course-side p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.side-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.side-line b { color: var(--ink); }

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

.course-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 9px 24px rgba(47,45,81,.06);
}

.course-thumb { position: relative; }
.course-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.price {
  position: absolute;
  right: 14px;
  bottom: -19px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--blue);
  border: 4px solid #fff;
  border-radius: 50%;
  font-weight: 950;
}

.course-body { padding: 26px 22px 20px; }

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.rating { color: #f5a623; }
.course-card p { color: var(--muted); font-size: 15px; }

.course-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #7b8596;
  font-size: 13px;
  font-weight: 800;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.showcase-panel {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.module-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.module-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  padding: 13px;
  background: var(--soft);
  border-radius: 8px;
}

.module-list b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.lesson-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--warm);
  border: 1px solid #ffdcca;
  border-radius: 8px;
}

.lesson-card strong { font-size: 22px; }
.lesson-card span { color: var(--muted); }

.news-grid {
  display: grid;
  grid-template-columns: .9fr 1.25fr .9fr;
  gap: 22px;
  align-items: stretch;
}

.news-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 9px 24px rgba(47,45,81,.05);
}

.news-card.featured {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(47,45,81,.94), rgba(59,130,246,.88)),
    var(--ink);
}

.news-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.news-card.featured span,
.news-card.featured h3,
.news-card.featured p,
.news-card.featured a {
  color: #fff;
}

.news-card p { color: var(--muted); }
.news-card a { margin-top: auto; color: var(--blue); font-weight: 950; }

.instructor-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.instructor,
.review {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 9px 24px rgba(47,45,81,.05);
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  border-radius: 50%;
  font-weight: 950;
}

.instructor p,
.review p { color: var(--muted); }

.review.active { outline: 2px solid #ffe1d3; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 78px);
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}

.office-card,
.contact-card {
  padding: clamp(28px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.office-card {
  background:
    radial-gradient(circle at 80% 10%, rgba(255,122,69,.18), transparent 24%),
    #fff;
}

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

.office-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.office-lines a,
.contact-card a { color: var(--blue); font-weight: 900; }

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

label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 900; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(255,122,69,.18); border-color: var(--orange); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

details {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
summary { cursor: pointer; font-weight: 950; }
details p { margin: 12px 0 0; color: var(--muted); }

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, auto);
  gap: 36px;
  padding: 44px clamp(18px, 4vw, 72px);
  background: #2f2d51;
  color: #d8dcef;
}

.footer img { width: 204px; filter: brightness(0) invert(1); }
.footer p { max-width: 460px; color: #c0c6d8; }
.footer h3 { color: #fff; font-size: 16px; }
.footer nav { display: grid; gap: 10px; font-weight: 750; }

.notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  padding: 14px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .25s ease;
}
.notice.visible { opacity: 1; transform: translateY(0); }

.legal {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 34px);
}
.legal h1 { font-size: clamp(38px, 5vw, 58px); }
.legal h2 { margin-top: 34px; font-size: 28px; }
.legal p, .legal li { color: #4a5366; }
.legal-note { padding: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 1080px) {
  .header { grid-template-columns: auto auto; }
  .nav { display: none; }
  .hero, .showcase, .contact-layout, .catalog-layout { grid-template-columns: 1fr; }
  .course-side { position: static; }
  .hero { min-height: auto; }
  .portrait-wrap { margin: 0; }
  .course-grid, .instructor-grid, .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; border-radius: 0; }
}

@media (max-width: 720px) {
  .logo img { width: 178px; }
  .header-actions .ghost { display: none; }
  .hero { padding-top: 42px; }
  .course-search { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
  .portrait-wrap img { height: auto; min-height: 310px; }
  .mini-card { position: static; width: auto; margin-top: 12px; }
  .stats, .course-grid, .category-grid, .instructor-grid, .reviews-grid, .faq-grid, .form-row, .news-grid { grid-template-columns: 1fr; }
  .section-title { display: block; }
  .footer { grid-template-columns: 1fr; }
}
