/* ===================================================================
   StartED — стили клона started.kz
   Палитра: глубокий сине-стальной + бирюзовый акцент (образовательный тон)
   =================================================================== */

:root {
  --brand:        #0d6e8c;   /* основной бирюзово-синий */
  --brand-dark:   #0a5468;
  --brand-deep:   #0b3a4a;   /* тёмный фон hero/footer */
  --accent:       #35c2c1;   /* бирюзовый акцент */
  --ink:          #1e2b33;   /* основной текст */
  --muted:        #5c6b73;   /* приглушённый текст */
  --line:         #e3e9ec;   /* тонкие линии */
  --bg:           #ffffff;
  --bg-soft:      #f5f8fa;   /* фон секций */
  --radius:       12px;
  --shadow:       0 6px 24px rgba(11, 58, 74, .08);
  --shadow-hover: 0 12px 32px rgba(11, 58, 74, .16);
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ---------------- Навигация ---------------- */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: .65rem;
  padding-bottom: .65rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.02em;
}
.brand-start { color: var(--ink); }
.brand-ed    { color: var(--brand); }

.site-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: .4rem .9rem;
}
.site-nav .nav-link:hover { color: var(--brand); }

.dropdown-item.active,
.dropdown-item:active {
  background: var(--brand);
}

.btn-verify {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: .5rem 1.15rem;
  transition: background .18s ease, transform .18s ease;
}
.btn-verify:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(53,194,193,.22), transparent 60%),
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-dark) 100%);
  color: #eaf4f7;
  padding: 5.5rem 0 5rem;
}
.hero-inner { max-width: 720px; }

.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero-lead {
  font-size: 1.2rem;
  color: #d5e7ec;
  margin-bottom: 1rem;
}
.hero-text {
  font-size: 1.02rem;
  color: #b8d2da;
  margin-bottom: 1.5rem;
}
.btn-hero {
  background: var(--accent);
  color: var(--brand-deep);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-hero:hover {
  color: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(53,194,193,.35);
}

/* ---------------- Секции ---------------- */
.section { padding: 4.5rem 0; }
.section:nth-of-type(even) { background: var(--bg-soft); }

.section-head { margin-bottom: 2.5rem; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  display: inline-block;
  margin-bottom: .5rem;
}
.section-rule {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}

/* ---------------- Карточки категорий на главной ---------------- */
.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.course-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
  color: var(--ink);
}
.course-card:hover::before { transform: scaleY(1); }

.course-card-count {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(13,110,140,.08);
  border-radius: 999px;
  padding: .15rem .6rem;
  margin-bottom: .9rem;
}
.course-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}
.course-card-link {
  color: var(--brand);
  font-weight: 600;
  font-size: .95rem;
}

/* ---------------- Заголовок страницы (courses / verify) ---------------- */
.page-head {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-dark) 100%);
  color: #eaf4f7;
  padding: 3.5rem 0;
}
.page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}
.page-lead { font-size: 1.15rem; color: #d5e7ec; margin-bottom: .5rem; }
.page-text { color: #b8d2da; max-width: 850px; margin-bottom: 0; }

/* ---------------- Каталог курсов ---------------- */
.cat-block { padding-top: 1.5rem; margin-bottom: 2.5rem; scroll-margin-top: 90px; }
.cat-head { margin-bottom: 1.5rem; }
.cat-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
  display: inline-block;
  margin-bottom: .4rem;
}
.cat-rule {
  display: block;
  width: 48px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.course-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.course-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}
.course-item-title {
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0;
  flex: 1 1 auto;
}
.course-code {
  font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(13,110,140,.08);
  border: 1px solid rgba(13,110,140,.15);
  border-radius: 6px;
  padding: .2rem .55rem;
  white-space: nowrap;
}
.course-desc { color: var(--muted); font-size: .97rem; }
.course-desc p { margin-bottom: .85rem; }
.course-desc p:last-child { margin-bottom: 0; }

/* ---------------- Форма проверки сертификата ---------------- */
.verify-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.verify-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.form-control, .form-select {
  border-radius: 8px;
  border-color: var(--line);
  padding: .6rem .8rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(53,194,193,.2);
}
.verify-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.btn-outline-reset {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  font-weight: 600;
  padding: .5rem 1.3rem;
}
.btn-outline-reset:hover { background: var(--bg-soft); color: var(--ink); }

.verify-help {
  color: var(--muted);
  font-size: .95rem;
  margin: 1.5rem auto 2rem;
  max-width: 760px;
  text-align: center;
}

.verify-results { margin-top: 1rem; }
.results-table thead th {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}

.not-found {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.not-found i { font-size: 2.4rem; color: var(--muted); opacity: .6; }
.not-found-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  margin: .75rem 0 0;
}
.privacy-note {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 1.25rem;
  text-align: center;
}

/* ---------------- Футер ---------------- */
.site-footer {
  background: var(--brand-deep);
  color: #cfe2e8;
  padding: 3rem 0 1.75rem;
}
.footer-cols { margin-bottom: 2rem; }
.footer-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6rem; }
.footer-list i { color: var(--accent); margin-right: .5rem; }
.footer-list a { color: #cfe2e8; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
  font-size: .88rem;
  color: #8fb2bd;
}

/* ---------------- Кнопка "наверх" ---------------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: .9;
  z-index: 1020;
}
.to-top:hover { background: var(--brand-dark); color: #fff; opacity: 1; }

/* ---------------- Адаптив ---------------- */
@media (max-width: 991.98px) {
  .site-nav .btn-verify { margin-top: .5rem; display: inline-block; }
  .hero { padding: 4rem 0 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
