/*:root {*/
/*  --blue: #0B5FFF;     !* акцент близкий к childcare.gov *!*/
/*  --ink: #1f2937;*/
/*  --muted: #6b7280;*/
/*  --bg: #ffffff;*/
/*  --card: #f8fafc;*/
/*  --border: #e5e7eb;*/
/*}*/

/** { box-sizing: border-box; }*/
/*html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }*/

/*.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }*/

/*.site-header { background: var(--blue); color: #fff; }*/
/*.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }*/
/*.brand { color: #fff; font-weight: 800; text-decoration: none; font-size: 20px; }*/
/*.nav a { color: #fff; opacity: 0.95; text-decoration: none; margin-left: 16px; font-weight: 600; }*/
/*.nav a:hover { text-decoration: underline; }*/

/*.content { padding: 24px 0 48px; }*/

/*.hero { background: var(--card); padding: 24px; border: 1px solid var(--border); border-radius: 12px; }*/
/*.hero h1 { margin: 0 0 12px; font-size: 28px; }*/
/*.searchbar { display: grid; grid-template-columns: 1fr 160px 200px auto; gap: 10px; }*/
/*.searchbar input { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 16px; }*/
/*.searchbar button { background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }*/
/*.searchbar button:hover { opacity: 0.95; }*/

/*.muted { color: var(--muted); margin-top: 8px; }*/

/*.grid h2 { margin-top: 28px; }*/
/*.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }*/
/*.card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--ink); }*/
/*.card-title { font-weight: 700; margin-bottom: 6px; }*/
/*.card-meta { color: var(--muted); }*/

/*.list { display: grid; gap: 12px; }*/
/*.item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }*/
/*.item-title { margin: 0 0 6px; font-size: 18px; }*/
/*.item-meta { color: var(--muted); font-size: 14px; }*/
/*.item-sub { color: var(--ink); font-size: 14px; margin-top: 6px; }*/
/*.item-text { margin: 8px 0 0; }*/

:root {
  --ink: #0f172a;
  --ink-muted: #475569;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --brand: #0ea5e9; /* sky-500 */
  --brand-strong: #0284c7; /* sky-600 */
  --accent: #22c55e; /* green-500 */
  --warn: #f59e0b; /* amber-500 */
  --border: #e2e8f0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 14px;
  --wrap: 1100px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--wrap);
  padding: 0 20px;
  margin: 0 auto;
}

/* ------------------------------
   Header
--------------------------------- */
.ccg-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
/* вместо фиксированной высоты — адаптивная */
.ccg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.brand-slogan {
  margin-left: 67px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-muted);
  letter-spacing: 0.15px;
  margin-top: 2px;
  padding-left: 2px;
  position: relative;
}
.brand-slogan::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin-top: 6px;
  background: linear-gradient(
    90deg,
    var(--brand, #0ea5e9),
    var(--accent, #22c55e)
  );
  border-radius: 999px;
  opacity: 0.6;
}

@media (max-width: 720px) {
  .brand-logo {
    height: 44px;
  }
  .brand-slogan {
    font-size: 0.78rem;
  }
  .brand-slogan::after {
    width: 72px;
  }
}

/* Навигация оставляем как было */
.main-nav {
  display: flex;
  gap: 18px;
}
.nav-link {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  color: var(--ink);
}
.nav-link:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

/* ------------------------------
   Hero
--------------------------------- */
.hero-ccg {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 60%);
  padding: 36px 0 0;
}
.hero-inner {
  display: block;
}
.hero-text h1 {
  font-size: 2.2rem;
  margin: 0.2rem 0 0.5rem;
}
.hero-text .lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin: 0.2rem 0 1rem;
}

.hero-art-contained {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 14px;
  filter: drop-shadow(0 6px 18px rgba(2, 132, 199, 0.15));
}

/* Searchbar */
.searchbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.searchbar input {
  flex: 1 1 200px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.searchbar.big input {
  padding: 14px 14px;
  border-radius: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s,
    border-color 0.12s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
  background: #f8fafc;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}
.btn-edit {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.btn-edit:hover {
  background: #e0f2fe;
  border-color: #93c5fd;
}
.btn .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
}

/* ------------------------------
   Cards (lists & grids)
--------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.12);
  border-color: #cfe9fb;
  text-decoration: none;
}
.card-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.card-meta {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* ------------------------------
   List items (Kitas list/search)
--------------------------------- */
.list {
  display: grid;
  gap: 12px;
}
.item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.item-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.item-meta {
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--ink-muted);
  background: #f8fafc;
}

/* ------------------------------
   Detail page (Kita)
--------------------------------- */
.kita-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 10px 0 16px;
}
.kita-name {
  font-size: 1.6rem;
  margin: 0;
}
.kita-aside {
  min-width: 220px;
}
.kita-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.email-protect {
  cursor: pointer;
}
.email-protect[href^="mailto:"] {
  cursor: auto;
}

/* Related Kitas (миникарточки) — оставляем из прошлой версии */
.related {
  margin-top: 24px;
}
.related h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
.kita-mini {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.kita-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.06);
}
.kita-mini-title {
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.2;
}
.kita-mini-title a {
  color: var(--ink);
  text-decoration: none;
}
.kita-mini-title a:hover {
  text-decoration: underline;
}
.kita-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kita-mini-text {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination (scoped) */
.pager {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pager .page {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.pager .current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Footer links: simple text, no boxes */
.site-footer .footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.site-footer .footer-links a:hover {
  text-decoration: underline;
}
.site-footer .footer-links .sep {
  opacity: 0.5;
  margin: 0 0.35rem;
}

.site-footer {
  background: #0b2447;
  color: #cbd5e1;
  padding: 16px 0;
  margin-top: 40px;
}

/* --- Related Kitas (mini cards) --- */
.related {
  margin-top: 24px;
}

.related h2 {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.kita-mini {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--card, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.kita-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.06);
}

.kita-mini-title {
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.kita-mini-title a {
  text-decoration: none;
  color: var(--ink);
}

.kita-mini-title a:hover {
  text-decoration: underline;
}

.kita-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--ink-muted, #475569);
  background: var(--chip-bg, #f8fafc);
}

.kita-mini-text {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-muted, #475569);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: var(--ink, #0f172a);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
  background: #f8fafc;
}
.btn:active {
  transform: translateY(0);
}

.btn-edit {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.btn-edit:hover {
  background: #e0f2fe;
  border-color: #93c5fd;
}

/* icon inside button */
.btn .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
}

/* group */
.btn-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Honeypot field (anti-bot) */
.hp-field {
  position: absolute;
  left: -50000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ccg-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 36px;
}
.ccg-footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.ccg-footer .footer-links a {
  color: #334155;
  text-decoration: none;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.ccg-footer .footer-links a:hover {
  text-decoration: underline;
}
.ccg-footer .footer-links .sep {
  opacity: 0.5;
  margin: 0 0.35rem;
}
.ccg-footer .footer-bottom {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: #64748b;
}
