:root {
  --tk-blue: #246BFD;
  --tk-blue-dark: #1449c9;
  --tk-blue-soft: #EAF1FF;
  --tk-ink: #0F1B33;
  --tk-slate: #5B6B85;
  --tk-line: #E7ECF5;
  --tk-bg: #F7F9FD;
  --tk-radius: 22px;
  --tk-shadow: 0 20px 50px -20px rgba(15, 27, 51, 0.18);
  --tk-ok: #0F9D58;
  --tk-ok-bg: #E7F7EE;
  --tk-warn: #B7791F;
  --tk-warn-bg: #FEF3D8;
  --tk-err: #D14343;
  --tk-err-bg: #FDECEC;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.tk {
  font-family: Inter, system-ui, sans-serif;
  color: var(--tk-ink);
  background: #fff;
  line-height: 1.5;
}
a { color: var(--tk-blue); text-decoration: none; }
a:hover { color: var(--tk-blue-dark); }
.tk-container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.tk-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tk-line);
}
.tk-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.tk-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--tk-ink); letter-spacing: -0.02em;
  min-width: 0;
}
.tk-brand-mark { flex-shrink: 0; white-space: nowrap; }
.tk-brand-mark span { color: var(--tk-blue); }
.tk-nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tk-nav-links a { color: var(--tk-slate); font-weight: 600; font-size: 14.5px; }
.tk-nav-links a:hover { color: var(--tk-blue); }

.tk-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: 14.5px;
  border: 2px solid transparent; cursor: pointer; transition: .25s ease;
}
.tk-btn-primary {
  background: linear-gradient(135deg, var(--tk-blue), var(--tk-blue-dark));
  color: #fff !important;
  box-shadow: 0 14px 30px -10px rgba(36,107,253,.55);
}
.tk-btn-primary:hover { transform: translateY(-2px); color: #fff !important; }
.tk-btn-ghost {
  background: #fff; color: var(--tk-ink); border-color: var(--tk-line);
}
.tk-btn-ghost:hover { border-color: var(--tk-blue); color: var(--tk-blue); }
.tk-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }

.tk-hero {
  position: relative; padding: 100px 0 80px;
  background: linear-gradient(180deg, #F5F8FF 0%, #FFFFFF 65%);
  overflow: hidden;
}
.tk-hero::before, .tk-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; z-index: 0;
}
.tk-hero::before {
  width: 520px; height: 520px; top: -180px; right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(36,107,253,.22), rgba(36,107,253,0) 70%);
}
.tk-hero::after {
  width: 420px; height: 420px; bottom: -160px; left: -140px;
  background: radial-gradient(circle at 60% 40%, rgba(36,107,253,.14), rgba(36,107,253,0) 70%);
}
.tk-hero-grid { position: relative; z-index: 1; display: flex; gap: 48px; flex-wrap: wrap; align-items: center; }
.tk-hero-copy { flex: 1 1 480px; min-width: 0; }
.tk-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--tk-blue-soft); color: var(--tk-blue);
  font-weight: 600; font-size: 13px; margin-bottom: 18px;
}
.tk-hero h1 {
  font-size: 46px; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 18px;
}
.tk-hero h1 em { font-style: normal; color: var(--tk-blue); }
.tk-lead { font-size: 18px; color: var(--tk-slate); max-width: 520px; margin: 0 0 28px; }
.tk-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

.tk-mock {
  flex: 1 1 380px; max-width: 440px; width: 100%;
  background: #fff; border: 1px solid var(--tk-line); border-radius: 26px;
  box-shadow: 0 30px 60px -18px rgba(15,27,51,.22); padding: 24px;
}
.tk-mock-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px; border-radius: 14px; background: var(--tk-bg); margin-bottom: 10px;
}
.tk-pill {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.tk-pill.ok { color: var(--tk-ok); background: var(--tk-ok-bg); }
.tk-pill.wait { color: var(--tk-warn); background: var(--tk-warn-bg); }
.tk-pill.err { color: var(--tk-err); background: var(--tk-err-bg); }

.tk-section { padding: 80px 0; }
.tk-section.alt { background: var(--tk-bg); }
.tk-section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.tk-section-head h2 { font-size: 34px; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.tk-section-head p { color: var(--tk-slate); margin: 0; font-size: 16px; }

.tk-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tk-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tk-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tk-card {
  background: #fff; border: 1px solid var(--tk-line); border-radius: 20px; padding: 26px;
  transition: .25s ease;
}
.tk-card:hover { transform: translateY(-4px); box-shadow: var(--tk-shadow); border-color: transparent; }
.tk-card h3, .tk-card h4 { margin: 0 0 8px; font-size: 17px; }
.tk-card p { margin: 0; color: var(--tk-slate); font-size: 14.5px; }
.tk-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--tk-blue-soft); color: var(--tk-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 16px;
}

.tk-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tk-step { text-align: center; }
.tk-step-num {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  border: 2px solid var(--tk-blue); color: var(--tk-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; background: #fff;
}
.tk-step h4 { margin: 0 0 8px; }
.tk-step p { margin: 0; color: var(--tk-slate); font-size: 14px; }

.tk-cta-band {
  border-radius: 32px; padding: 56px 32px; text-align: center;
  background: linear-gradient(135deg, var(--tk-blue), var(--tk-blue-dark)); color: #fff;
}
.tk-cta-band h2 { margin: 0 0 10px; font-size: 30px; }
.tk-cta-band p { margin: 0 0 24px; opacity: .9; }
.tk-cta-band .tk-btn-ghost {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4);
}
.tk-cta-band .tk-btn-primary { background: #fff; color: var(--tk-blue-dark) !important; box-shadow: none; }

.tk-footer {
  border-top: 1px solid var(--tk-line); padding: 28px 0; color: var(--tk-slate); font-size: 14px;
}

/* App shell */
.tk-app-shell { min-height: 100vh; background: var(--tk-bg); }
.tk-app-main { padding: 28px 0 60px; }
.tk-page-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.tk-page-sub { color: var(--tk-slate); margin: 0 0 24px; }
.tk-panel {
  background: #fff; border: 1px solid var(--tk-line); border-radius: 20px; padding: 24px;
}
.tk-table-wrap { overflow-x: auto; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tk-table th, .tk-table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--tk-line); vertical-align: top;
}
.tk-table th { color: var(--tk-slate); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tk-form label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.tk-form input, .tk-form select, .tk-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--tk-line); font: inherit; margin-bottom: 14px; background: #fff;
}
.tk-form input:focus, .tk-form select:focus, .tk-form textarea:focus {
  outline: none; border-color: var(--tk-blue); box-shadow: 0 0 0 3px var(--tk-blue-soft);
}
.tk-auth-card { max-width: 520px; margin: 40px auto; }
.tk-uni-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tk-blue-soft);
  color: var(--tk-blue);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  max-width: min(340px, 52vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}

/* Tom Select — auth / app forms */
.tk-form .ts-wrapper { margin-bottom: 14px; }
.tk-form .ts-control {
  border: 1px solid var(--tk-line) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  min-height: 46px;
  box-shadow: none !important;
  background: #fff !important;
  font: inherit;
}
.tk-form .ts-wrapper.focus .ts-control {
  border-color: var(--tk-blue) !important;
  box-shadow: 0 0 0 3px var(--tk-blue-soft) !important;
}
.tk-form .ts-dropdown {
  border: 1px solid var(--tk-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08) !important;
  overflow: hidden;
}
.tk-form .ts-dropdown .optgroup-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tk-slate);
  background: #F8FAFC;
  padding: 8px 12px;
}
.tk-form .ts-dropdown .option { padding: 10px 12px; }
.tk-form .ts-dropdown .option.active { background: var(--tk-blue-soft); color: var(--tk-ink); }
.tk-form .ts-control input { margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
.tk-alert {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 500;
}
.tk-alert.ok { background: var(--tk-ok-bg); color: var(--tk-ok); }
.tk-alert.err { background: var(--tk-err-bg); color: var(--tk-err); }
.tk-finding {
  border: 1px solid var(--tk-line); border-radius: 14px; padding: 14px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: flex-start;
}
.tk-finding .meta { flex: 1; min-width: 0; }
.tk-finding .meta strong { display: block; margin-bottom: 4px; }
.tk-finding .meta small { color: var(--tk-slate); }
.tk-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px;
}
.tk-stat {
  background: #fff; border: 1px solid var(--tk-line); border-radius: 16px; padding: 18px;
}
.tk-stat h3 { margin: 0 0 4px; font-size: 26px; color: var(--tk-blue); }
.tk-stat p { margin: 0; color: var(--tk-slate); font-size: 13px; }

@media (max-width: 991.98px) {
  .tk-grid-4, .tk-steps, .tk-stats { grid-template-columns: repeat(2, 1fr); }
  .tk-hero h1 { font-size: 34px; }
}
@media (max-width: 575.98px) {
  .tk-grid-4, .tk-grid-3, .tk-grid-2, .tk-steps, .tk-stats { grid-template-columns: 1fr; }
  .tk-hero { padding: 70px 0 50px; }
}

@media print {
  .tk-nav, .tk-btn, .tk-footer { display: none !important; }
  body.tk { background: #fff; }
  .tk-panel, .tk-card, .tk-finding { box-shadow: none !important; page-break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
