.courses-page {
  --courses-container: 1720px;
  --courses-gutter: clamp(48px, 6vw, 120px);
  --courses-edge: max(calc(var(--courses-gutter) / 2), calc((100vw - var(--courses-container)) / 2));
  background:
    linear-gradient(180deg, #f3f9ff 0%, #ffffff 42%, #f8fbff 100%);
}

.courses-page main .container,
.courses-page .site-footer .container {
  width: min(100% - var(--courses-gutter), var(--courses-container));
}

.courses-page .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.courses-page .site-header .nav-shell {
  width: calc(100% - clamp(32px, 3.4vw, 56px));
  max-width: none;
  min-height: 82px;
  gap: clamp(24px, 3vw, 52px);
}

.courses-page .brand img {
  width: 150px;
}

.courses-page .primary-nav {
  gap: clamp(26px, 2.5vw, 46px);
  color: #27354a;
  font-size: 15px;
  font-weight: 500;
}

.courses-page .round-action {
  width: 40px;
  height: 40px;
}

.courses-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #f1f8ff 0%, #f6fbff 46%, rgba(241, 248, 255, 0.28) 100%),
    #f3f9ff;
}

.courses-page main .courses-hero .container {
  width: 100%;
  max-width: none;
}

.courses-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0), #f8fbff);
  content: "";
}

.courses-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(560px, 48vw) minmax(0, 1fr);
  align-items: stretch;
  height: 387px;
  min-height: 0;
}

.courses-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px 54px var(--courses-edge);
}

.courses-hero h1 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
}

.courses-hero .hero-text {
  max-width: 610px;
  margin: 0 0 12px;
  color: #526b8a;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
}

.hero-stats-text {
  max-width: 610px;
  margin: 0 0 18px;
  color: #2f80ed;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  word-spacing: 4px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(168px, 1fr));
  gap: 18px;
  width: min(800px, 70vw);
  max-width: none;
}

.hero-points article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-width: 0;
  color: #718095;
  font-size: 12px;
  line-height: 1.35;
}

.hero-points img {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hero-points strong {
  color: #223852;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-points span {
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: -0.3px;
}

.courses-hero-visual {
  position: relative;
  min-height: 0;
  height: 100%;
}

.courses-hero-visual::before {
  position: absolute;
  inset: 0 auto 0 -1px;
  z-index: 1;
  width: 43%;
  background: linear-gradient(90deg, #f6fbff 0%, rgba(246, 251, 255, 0.9) 44%, rgba(246, 251, 255, 0));
  content: "";
  pointer-events: none;
}

.courses-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 46%;
}

.courses-page main .container.course-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - var(--courses-gutter) - clamp(40px, 4vw, 140px)), 1560px);
  overflow: hidden;
  margin-top: -35px;
  margin-bottom: 34px;
  border: 1px solid #dfeeff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(32, 98, 180, 0.13);
}

.course-stats article {
  display: grid;
  grid-template-columns: 42px 110px;
  place-content: center;
  gap: 10px 14px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 13px 40px;
  box-sizing: border-box;
}

.course-stats article + article {
  border-left: 1px solid #e8f0fb;
}

.course-stats img {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.course-stats strong {
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.course-stats span {
  color: #62738a;
  font-size: 12px;
}

.courses-section {
  padding: 0 0 28px;
}

.courses-section .section-title {
  margin-bottom: 28px;
}

.courses-section .section-title div {
  text-align: center;
}

.courses-section .section-title h2,
.reason-panel h2 {
  color: #102957;
  font-size: 22px;
  letter-spacing: 0;
}

.courses-section .section-title p {
  margin: 5px 0 0;
  color: #76869b;
  font-size: 13px;
}

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

.system-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 330px;
  padding: 24px 18px 12px;
  border: 1px solid #e4eef9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.system-grid article:hover {
  border-color: #cfe5ff;
  box-shadow: 0 16px 34px rgba(47, 128, 237, 0.14);
  transform: translateY(-2px);
}

.system-grid h3 {
  margin: 0 0 5px;
  color: #2f7fe9;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
}

.system-grid article:nth-child(4n + 2) h3 {
  color: #238861;
}

.system-grid article:nth-child(4n + 3) h3 {
  color: #f28b1d;
}

.system-grid article:nth-child(4n + 4) h3 {
  color: #6757c6;
}

.system-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #6e7f94;
  font-size: 13px;
}

.system-grid p {
  min-height: 70px;
  margin: 0 0 18px;
  color: #52647c;
  font-size: 14px;
  line-height: 1.65;
}

.system-card-image {
  display: block;
  width: 100%;
  margin-top: auto;
  overflow: hidden;
  border-radius: 9px;
}

.system-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.system-grid article:hover .system-card-image img {
  transform: scale(1.025);
}

.system-grid .dynamic-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  transition: color 180ms ease;
}

.system-grid .dynamic-detail-link:hover {
  color: var(--primary-dark);
}

.reason-panel {
  margin: 8px auto 36px;
  padding: 22px 36px 24px;
  border: 1px solid #e2edf9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.08);
}

.reason-panel h2 {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 800;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reason-grid article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  min-width: 0;
  padding: 0 24px;
}

.reason-grid article + article {
  border-left: 1px solid #e7eff9;
}

.reason-grid img {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.reason-grid strong {
  color: #243954;
  font-size: 15px;
  font-weight: 800;
}

.reason-grid span {
  color: #657792;
  font-size: 12px;
  line-height: 1.45;
}

.result-section {
  padding-bottom: 24px;
}

.result-section .section-title {
  margin-bottom: 22px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.result-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 48px;
}

.result-grid article + article {
  border-left: 1px solid #e7eff9;
}

.result-grid img {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(1996%) hue-rotate(198deg) brightness(96%) contrast(94%);
}

.result-grid strong {
  color: var(--primary);
  font-size: 21px;
  line-height: 1;
  font-weight: 800;
}

.result-grid span {
  color: #53667f;
  font-size: 12px;
}

.courses-cta {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 150px;
  margin: 4px auto 32px;
  overflow: hidden;
  border: 1px solid #dcecf9;
  border-radius: 12px;
  background: #eaf5ff;
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.08);
}

.courses-cta::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #eaf5ff 0%, #edf7ff 42%, rgba(237, 247, 255, 0.7) 61%, rgba(237, 247, 255, 0) 82%);
  content: "";
  pointer-events: none;
}

.courses-cta div {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 26px 50px;
}

.courses-cta h2 {
  margin: 0 0 8px;
  color: #2579df;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 800;
}

.courses-cta p {
  margin: 0 0 16px;
  color: #61728a;
  font-size: 14px;
}

.courses-cta .primary-button {
  min-height: 42px;
  padding: 0 28px;
  font-size: 14px;
}

.courses-cta img {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.courses-page .footer-grid {
  gap: 24px;
  padding: 22px 0 14px;
}

.courses-page .footer-brand img {
  width: 124px;
  margin-bottom: 8px;
}

.courses-page .footer-brand p {
  margin-bottom: 10px;
  font-size: 12px;
}

.courses-page .site-footer nav h2 {
  margin-bottom: 7px;
  font-size: 13px;
}

.courses-page .site-footer nav a {
  font-size: 11px;
  line-height: 1.6;
}

.courses-page .qr-block {
  grid-template-columns: 74px minmax(0, 1fr);
}

.courses-page .qr-block img {
  width: 74px;
  height: 74px;
}

.courses-page .qr-block strong {
  font-size: 13px;
}

.courses-page .qr-block span {
  font-size: 12px;
}

.courses-page .copyright {
  padding: 8px 24px 10px;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .courses-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(450px, 0.92fr);
  }

  .course-stats article {
    padding-right: 30px;
    padding-left: 30px;
  }

  .system-grid { gap: 12px; }

  .system-grid article { padding-right: 16px; padding-left: 16px; }

  .reason-grid article,
  .result-grid article {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .courses-page .site-header .nav-shell {
    flex-wrap: nowrap;
    gap: 22px;
    min-height: 70px;
    padding: 0;
  }

  .courses-page .brand img {
    width: 118px;
  }

  .courses-page .primary-nav {
    order: initial;
    justify-content: center;
    width: auto;
    gap: 24px;
    overflow: visible;
    font-size: 15px;
  }

  .courses-page .round-action {
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  .courses-hero-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .courses-hero-copy {
    padding: 28px var(--courses-edge) 58px;
  }

  .courses-hero-visual {
    order: -1;
    min-height: 250px;
  }

  .courses-hero-visual::before {
    display: none;
  }

  .courses-hero-visual img {
    min-height: 250px;
    border-radius: 0 0 12px 12px;
  }

  .hero-points,
  .system-grid,
  .reason-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-page main .container.course-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - var(--courses-gutter), var(--courses-container));
  }

  .hero-points {
    width: 100%;
  }

  .hero-points strong {
    white-space: normal;
  }

  .hero-points span {
    white-space: nowrap;
  }

  .course-stats article + article,
  .reason-grid article + article,
  .result-grid article + article {
    border-left: 0;
  }

  .course-stats article:nth-child(n + 3),
  .reason-grid article:nth-child(n + 3),
  .result-grid article:nth-child(n + 3) {
    border-top: 1px solid #e7eff9;
  }

  .system-grid article {
    min-height: 268px;
  }

  .courses-cta {
    min-height: 190px;
  }

  .courses-cta img {
    width: 78%;
    opacity: 0.72;
  }

  .courses-cta::after {
    background: linear-gradient(90deg, #eaf5ff 0%, rgba(237, 247, 255, 0.94) 50%, rgba(237, 247, 255, 0.34) 100%);
  }
}

@media (max-width: 760px) {
  .courses-page .site-header .nav-shell {
    min-height: 70px;
  }

  .courses-page .brand img {
    width: 118px;
  }

  .courses-page .primary-nav {
    gap: 24px;
    overflow-x: auto;
    font-size: 15px;
    scrollbar-width: none;
  }

  .courses-page .primary-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .courses-page {
    --courses-gutter: 28px;
  }

  .courses-hero h1 {
    font-size: 34px;
  }

  .courses-hero .hero-text {
    font-size: 13px;
  }

  .hero-stats-text {
    font-size: 13px;
    word-spacing: 0;
  }

  .system-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hero-points article {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 6px;
  }

  .hero-points img {
    width: 28px;
    height: 28px;
  }

  .hero-points span {
    font-size: 10px;
    letter-spacing: -0.5px;
  }

  .courses-hero-copy {
    padding-top: 22px;
    padding-bottom: 42px;
  }

  .courses-hero-visual,
  .courses-hero-visual img {
    min-height: 200px;
  }

  .courses-page main .container.course-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - var(--courses-gutter), var(--courses-container));
    margin-bottom: 28px;
  }

  .course-stats article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 10px;
    min-height: 78px;
    padding: 12px 16px;
  }

  .course-stats img {
    width: 34px;
    height: 34px;
  }

  .course-stats article:nth-child(2) {
    border-left: 1px solid #e7eff9;
  }

  .course-stats article:nth-child(3) {
    border-top: 1px solid #e7eff9;
  }

  .courses-section .section-title {
    margin-bottom: 20px;
  }

  .system-grid article {
    min-height: auto;
    padding: 20px 18px 10px;
  }

  .reason-panel {
    padding: 20px 18px;
  }

  .reason-grid article {
    padding: 14px 0;
  }

  .reason-grid article:nth-child(n + 2) {
    border-top: 1px solid #e7eff9;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-grid article {
    padding: 12px 20px;
  }

  .result-grid article:nth-child(n + 2) {
    border-top: 1px solid #e7eff9;
  }

  .courses-cta {
    min-height: 230px;
  }

  .courses-cta div {
    padding: 24px 20px;
  }

  .courses-cta h2 {
    font-size: 23px;
  }

  .courses-cta img {
    width: 100%;
    opacity: 0.5;
  }
}

@media (max-width: 560px) {
  .courses-page .primary-nav {
    gap: 18px;
  }
}
