:root{
  /* используем ваши токены из main.css */
  /* --bg-1, --text, --muted, --card, --stroke, --accent */
}

/* ===== Hero ===== */
.ck-hero{
  position: relative;
  background: var(--bg-1);
  padding: clamp(28px,3vw,36px);
}
.ck-hero__inner{
  max-width: 1120px;
  margin: 0 auto;
  background: #2a2a2a; /* тёмная панель в духе About */
  border-radius: 0;
  padding: clamp(28px,4vw,40px);
}
.ck-hero h1{
  margin: 0 0 10px 0;
  font: 800 clamp(28px,4.6vw,44px) Montserrat, sans-serif;
  color: var(--text);
}
.ck-lead{
  margin: 0;
  color: var(--muted);
  font: 400 clamp(16px,2vw,20px) Montserrat, sans-serif;
  line-height: 1.6;
  max-width: 80ch;
}
.ck-actions{ margin-top: 18px; display: flex; gap: 14px; align-items: center; }
.ck-btn{ border-radius: 12px; }
.ck-link{ color: var(--accent); text-decoration: none; font-weight: 600; }
.ck-link:hover{ text-decoration: underline; }

/* ===== Content cards ===== */
.ck-wrap{
  background: var(--bg-1);
  padding: 0 clamp(16px,4vw,56px) clamp(56px,7vw,96px);
}
.ck-card{
  max-width: 1120px;
  margin: 18px auto 0;
  background: #262626;
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: clamp(18px,3vw,28px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.ck-card h2{
  margin: 0 0 10px 0;
  font: 800 22px/1.3 Montserrat, sans-serif;
  letter-spacing: .01em;
}
.ck-card p{ margin: 10px 0; color: var(--muted); }
.ck-list{ margin: 0 0 4px 18px; color: var(--muted); }
.ck-list li{ margin: .4em 0; }

/* ===== Table ===== */
.ck-table-wrap{ overflow-x: auto; }
.ck-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  color: #111;
  border-radius: 12px;
  overflow: hidden;
}
.ck-table th, .ck-table td{
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  text-align: left;
  font: 500 14px/1.5 Montserrat, sans-serif;
}
.ck-table thead th{
  background: #f3f4f8;
  font-weight: 800;
}
.ck-note{ color: var(--muted); font-size: 13px; }
.ck-updated{ color: var(--muted); }

/* ===== Buttons ===== */
.btn-outline{
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px;
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: 10px;
  font: 700 14px Montserrat, sans-serif;
}
.btn-outline:hover{ background: color-mix(in srgb, var(--accent) 12%, white); }
.btn-ghost{
  display: inline-flex; align-items:center; justify-content:center;
  height: 44px; padding: 0 14px;
  border: 1px solid var(--stroke); color: var(--text);
  background: transparent; border-radius: 10px;
  font: 700 14px Montserrat, sans-serif;
}
.btn-ghost:hover{ background: rgba(255,255,255,.04); }

/* ===== Modal ===== */
.ck-modal[aria-hidden="true"]{ display: none; }
.ck-modal{
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
}
.ck-modal__backdrop{
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
}
.ck-modal__panel{
  position: relative; z-index: 1;
  width: min(720px, 92vw);
  background: var(--card);
  color: #111;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  padding: 16px 16px 12px;
  outline: none;
}
.ck-modal__head{
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 4px 8px 4px;
}
.ck-modal__head h3{ margin: 6px 6px 6px 8px; font: 800 20px Montserrat, sans-serif; }
.ck-modal__close{
  border: 0; background: transparent; font-size: 26px; line-height: 1;
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
}
.ck-modal__close:hover{ background: rgba(0,0,0,.06); }

.ck-form{ display: grid; gap: 12px; padding: 6px 6px 10px; }
.ck-toggle{
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  border: 1px solid var(--stroke); border-radius: 12px; padding: 12px;
  background: #fff;
}
.ck-toggle strong{ font: 800 16px Montserrat, sans-serif; color:#111; }
.ck-toggle p{ margin: 6px 0 0 0; color:#475569; font: 500 14px/1.5 Montserrat, sans-serif; }

.ck-modal__foot{
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px;
}

/* Switch */
.switch{ position: relative; display: inline-block; width: 48px; height: 28px; }
.switch input{ display: none; }
.slider{
  position: absolute; cursor: pointer; inset: 0; background: #CBD5E1; border-radius: 999px;
  transition: background .2s;
}
.slider:before{
  content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.switch input:checked + .slider{ background: var(--accent); }
.switch input:checked + .slider:before{ transform: translateX(20px); }

/* ===== Responsive ===== */
@media (max-width: 640px){
  .ck-card{ border-radius: 14px; }
  .ck-modal__panel{ width: 94vw; }
}