:root {
  --ink: #1d2939;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #2457d6;
  --brand-dark: #163b98;
  --soft: #f6f8fc;
  --warn: #fff7e6;
  --warn-ink: #8a5a00;
  --white: #fff;
  --shadow: 0 16px 40px rgba(25, 48, 87, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img, video { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: auto; }

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-weight: 800; letter-spacing: .03em; font-size: 20px; }
.brand span { color: var(--brand); }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }

.hero {
  padding: 70px 0 52px;
  background: linear-gradient(120deg, #eef4ff 0, #fff 58%, #f0f6ff 100%);
}
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 780px; font-size: clamp(32px, 5vw, 56px); line-height: 1.15; margin: 14px 0 18px; letter-spacing: -.04em; }
.hero p { color: var(--muted); max-width: 720px; margin: 0; font-size: 18px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 26px; padding: 14px 16px; border: 1px solid #f3d08a; background: var(--warn); color: var(--warn-ink); border-radius: 10px; font-size: 14px; }

.section { padding: 52px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section h2 { font-size: 28px; line-height: 1.25; margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(25, 48, 87, .12); }
.card-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dae5ff, #f7f9ff); display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 34px; position: relative; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(16, 24, 40, .78); color: #fff; border-radius: 99px; padding: 4px 10px; font-size: 12px; line-height: 1.4; }
.card-body { padding: 18px; }
.card h3 { font-size: 18px; line-height: 1.4; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.card-meta { color: #98a2b3; font-size: 12px; }
.text-link { display: inline-flex; margin-top: 14px; color: var(--brand); font-size: 14px; font-weight: 700; }
.demo-credentials { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 13px; color: var(--muted); font-size: 12px; }
.demo-credentials code { padding: 3px 7px; border: 1px solid #d9e2fb; border-radius: 5px; background: #fff; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pill { display: inline-flex; align-items: center; border-radius: 99px; background: #edf2ff; color: var(--brand); padding: 4px 10px; font-size: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 10px; font-size: 19px; }
.panel p { margin: 0; color: var(--muted); font-size: 14px; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.step-no { width: 34px; height: 34px; border-radius: 50%; background: #edf2ff; color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.site-footer { padding: 32px 0; color: #98a2b3; font-size: 13px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.telegram-float { position: fixed; right: 20px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 999px; background: #229ed9; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 98, 160, .28); transition: transform .18s ease, background .18s ease; }
.telegram-float:hover { transform: translateY(-2px); background: #178bc1; color: #fff; }
.telegram-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 15px; }

.article-shell { padding: 48px 0 72px; }
.article-main { max-width: 820px; margin: auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 5vw, 52px); box-shadow: var(--shadow); }
.article-main h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; letter-spacing: -.03em; margin: 12px 0; }
.article-lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.article-info { color: #98a2b3; font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-media { margin: 30px 0; }
.article-media video, .article-media img { width: 100%; border-radius: 12px; background: #101828; max-height: 620px; object-fit: contain; }
.experience-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -8px 0 30px; padding: 18px 20px; border: 1px solid #cbd8fa; border-radius: 12px; background: #f5f8ff; }
.experience-card strong { font-size: 17px; }
.experience-card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.video-placeholder { min-height: 280px; border-radius: 12px; background: linear-gradient(135deg, #18243f, #324b83); color: #fff; display: grid; place-items: center; text-align: center; padding: 30px; }
.video-placeholder strong { display: block; font-size: 22px; margin-bottom: 6px; }
.article-content { font-size: 17px; }
.article-content h2 { font-size: 24px; margin: 34px 0 10px; }
.article-content p { margin: 0 0 17px; }
.article-content a { color: var(--brand); text-decoration: underline; }
.article-disclaimer { margin-top: 26px; padding: 16px; background: #f8f9fb; border-left: 3px solid var(--brand); color: var(--muted); font-size: 14px; }

.admin-page { background: #f4f6fa; min-height: 100vh; }
.admin-top { background: #18243f; color: #fff; }
.admin-top .nav { min-height: 62px; }
.admin-top .brand { color: #fff; }
.admin-top .nav-links { color: #c9d2e3; }
.admin-main { padding: 34px 0 70px; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-title h1 { margin: 0; font-size: 28px; }
.btn { border: 0; border-radius: 8px; background: var(--brand); color: #fff; padding: 10px 16px; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary { background: #eef2f7; color: var(--ink); }
.btn.danger { background: #c73535; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: #f8f9fb; color: #667085; font-size: 13px; font-weight: 600; }
.admin-table td { font-size: 14px; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.flash { padding: 12px 15px; border-radius: 8px; background: #ecfdf3; color: #067647; margin-bottom: 16px; }
.flash.error { background: #fff1f3; color: #b42318; }
.login-shell { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #edf3ff, #fff); }
.login-card { width: min(420px, calc(100% - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0 0 6px; }
.login-card p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; color: #475467; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #d0d5dd; border-radius: 8px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; }
.field textarea { min-height: 180px; resize: vertical; }
.field small { color: #98a2b3; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

@media (max-width: 780px) {
  .nav { min-height: 62px; padding: 12px 0; align-items: flex-start; }
  .nav-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { padding: 50px 0 38px; }
  .cards, .split { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
  .footer-row { display: block; }
  .footer-row > * { margin-bottom: 7px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .article-shell { padding: 25px 0 50px; }
  .article-content { font-size: 16px; }
  .experience-card { display: block; }
  .experience-card .btn { margin-top: 14px; }
  .telegram-float { right: 12px; bottom: 14px; padding: 10px 13px; }
}
