:root {
  --brand: #f47b20;
  --brand-strong: #bd5b12;
  --brand-soft: #fff0e5;
  --text: #15252f;
  --muted: #657680;
  --line: #dce4e7;
  --bg: #f3f6f7;
  --dark: #0b1d2a;
}

html { scroll-padding-top: 90px; }
body { color: var(--text); background: var(--bg); font-family: Arial, Helvetica, sans-serif; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.site-header { border-color: var(--line); box-shadow: 0 1px 0 rgba(11,29,42,.02); }
.site-header .brand { color: var(--dark); font-weight: 800; }
.site-header .brand::after { content: "Tools"; margin-left: 7px; color: var(--brand-strong); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; vertical-align: top; }
.site-header .nav a, .site-header .login { min-height: 44px; display: inline-flex; align-items: center; }
.site-header .mobile-menu { min-width: 54px; min-height: 44px; cursor: pointer; }
.site-footer a:hover { color: var(--brand-strong); }
.workspace-grid > *, .layout > *, .info-grid > *, .card { min-width: 0; }
.section-table-wrap { max-width: 100%; }

.course-promo { padding: 0 20px 68px; background: var(--bg); }
.course-promo-inner { padding: 34px 36px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 24px; overflow: hidden; position: relative; border-radius: 22px; color: #fff; background: radial-gradient(circle at 86% 12%, rgba(244,123,32,.62), transparent 23%), linear-gradient(135deg, #17394b, #0b1d2a 72%); box-shadow: 0 20px 55px rgba(11,29,42,.16); }
.course-promo-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; color: #ffc08f; background: rgba(255,255,255,.08); font-weight: 900; }
.course-promo-copy { min-width: 0; }
.course-promo-copy > span { display: block; margin-bottom: 8px; color: #ffb67f; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.course-promo-copy h2 { max-width: 700px; margin: 0; color: #fff; font-size: clamp(24px,3vw,36px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.course-promo-copy p { max-width: 760px; margin: 13px 0 0; color: #c2d0d6; font-size: 14px; line-height: 1.65; }
.course-promo-actions { min-width: 190px; display: grid; gap: 9px; }
.course-promo-actions a { min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 13px; font-weight: 800; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.course-promo-actions a:hover { transform: translateY(-1px); }
.course-promo-primary { color: #fff; background: var(--brand); box-shadow: 0 10px 22px rgba(244,123,32,.24); }
.course-promo-primary:hover { background: #dd6813; }
.course-promo-primary b { margin-left: 8px; }
.course-promo-secondary { border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.06); }
.course-promo-secondary:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.1); }

@media (max-width: 900px) {
  .site-header .login { display: none; }
  .site-header .mobile-menu { display: block; }
  .site-header.menu-open .header-inner { position: relative; }
  .site-header.menu-open .nav { position: absolute; z-index: 80; top: calc(100% - 2px); left: 0; right: 0; padding: 12px; display: grid!important; gap: 2px!important; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: #fff; box-shadow: 0 20px 35px rgba(11,29,42,.13); }
  .site-header.menu-open .nav a { min-height: 44px; padding: 8px 12px; border-radius: 8px; }
  .site-header.menu-open .nav a:hover { background: var(--brand-soft); }
  .course-promo-inner { grid-template-columns: auto minmax(0,1fr); }
  .course-promo-actions { grid-column: 2; display: flex; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .course-promo { padding: 0 12px 44px; }
  .course-promo-inner { padding: 26px 22px; grid-template-columns: 1fr; border-radius: 18px; }
  .course-promo-mark { width: 50px; height: 50px; }
  .course-promo-actions { grid-column: 1; display: grid; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
  .course-promo-actions a:hover { transform: none; }
}
