/* ==========================================================================
   /tools/chto-dolzhen-umet-rebenok — чек-лист развития 1–7 лет
   Наследует hero/FAQ/share базу из maternity-bag.css. Стеклянный стиль.
   ========================================================================== */
@import url("/assets/css/maternity-bag.css");
@import url("/assets/css/partners.css");

:root {
  --dm-green: #5aa46a;
  --dm-ink: #2a302b;
  --dm-border: #dde6de;
}

/* ---------- Page & Hero ---------- */
.dm-page {
  background:
    radial-gradient(ellipse 52% 42% at 8% 6%, rgba(90, 164, 106, 0.12), transparent 60%),
    radial-gradient(ellipse 48% 44% at 94% 20%, rgba(91, 155, 212, 0.12), transparent 62%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(90, 164, 106, 0.08), transparent 65%),
    #f7faf6 !important;
}
.dm-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(228, 240, 228, 0.55) 100%),
    url("/assets/images/chto-dolzhen-umet-rebenok-hero-bg.webp") center / cover no-repeat,
    linear-gradient(180deg, #ffffff 0%, #e4f0e4 100%) !important;
  border-bottom-color: #d3e4d3 !important;
}
.dm-hero .mb-hero-title span::after {
  background: linear-gradient(90deg, rgba(90, 164, 106, 0.5), rgba(91, 155, 212, 0.4));
}
.dm-page .mb-hero-title,
.dm-page .dm-age-title,
.dm-page .mb-seo h2 { text-wrap: balance; }

/* ---------- Форма / выбор возраста ---------- */
.dm-form-section { margin-bottom: 0 !important; position: relative; z-index: 30; }
.dm-form-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.80) 0%, rgba(244, 250, 244, 0.55) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 26px rgba(80, 130, 90, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border-radius: 20px; padding: 22px 26px; margin: 0 0 12px;
}
.dm-form-row { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: center; }
.dm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dm-field label { font-family: "Montserrat", sans-serif; font-size: 14px; font-weight: 600; color: var(--dm-ink); }
.dm-field select {
  width: 100%; padding: 12px 14px; font-family: "Nunito", sans-serif; font-size: 16px;
  color: var(--dm-ink); background: #fff; border: 1.5px solid var(--dm-border); border-radius: 12px; appearance: none; cursor: pointer;
}

/* Прогресс */
.dm-progress { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dm-progress-bar { height: 10px; background: rgba(90, 130, 100, 0.12); border-radius: 6px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(80, 120, 90, 0.1); }
.dm-progress-fill { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--dm-green), #7bc48a); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.dm-progress-text { font-family: "Nunito", sans-serif; font-size: 14px; color: #6b756c; }

/* ---------- Кастомный стеклянный селект ---------- */
.dm-select { position: relative; }
.dm-select-native { display: none !important; }
.dm-select-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; font-family: "Nunito", sans-serif; font-size: 16px; color: var(--dm-ink);
  text-align: left; cursor: pointer;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(244, 250, 244, 0.6));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.85); border-radius: 12px;
  box-shadow: 0 2px 10px rgba(80, 130, 90, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color .15s, box-shadow .15s;
}
.dm-select-trigger:hover { border-color: rgba(90, 164, 106, 0.5); }
.dm-select.is-open .dm-select-trigger { border-color: var(--dm-green); box-shadow: 0 0 0 3px rgba(90, 164, 106, 0.15); }
.dm-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-select-chev { display: inline-flex; color: #94a096; transition: transform .2s, color .2s; flex-shrink: 0; }
.dm-select-chev svg { width: 16px; height: 16px; }
.dm-select.is-open .dm-select-chev { transform: rotate(180deg); color: var(--dm-green); }
.dm-select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  display: none; flex-direction: column; gap: 2px; padding: 6px;
  background: linear-gradient(150deg, #ffffff 0%, #f2f8f2 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(200, 220, 205, 0.8); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(60, 100, 70, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-height: 70vh; overflow-y: auto;
}
.dm-select.is-open .dm-select-menu { display: flex; animation: dm-pop .16s ease; }
@keyframes dm-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dm-select-option {
  text-align: left; padding: 10px 12px; border: none; background: transparent;
  font-family: "Nunito", sans-serif; font-size: 15px; color: var(--dm-ink); border-radius: 9px; cursor: pointer; transition: background .12s;
}
.dm-select-option:hover { background: rgba(90, 164, 106, 0.12); }
.dm-select-option.is-selected { background: linear-gradient(135deg, rgba(90, 164, 106, 0.22), rgba(90, 164, 106, 0.1)); font-weight: 700; color: #3f7d4d; }

.dm-share { margin: 0 0 24px; }

/* ---------- Возрастной блок ---------- */
.dm-age { margin-bottom: 8px; }
.dm-age-title {
  font-family: "Montserrat", sans-serif; font-size: 24px; font-weight: 800;
  color: var(--main-bg-color); margin: 0 0 18px !important; letter-spacing: -.01em;
}

.dm-domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

/* стеклянная карточка домена с угловым glow (стиль umenshitelnye) */
.dm-domain {
  --dc: var(--dm-green);
  position: relative; overflow: hidden; min-width: 0;
  padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(210, 220, 210, 0.55);
  box-shadow: 0 8px 26px rgba(80, 120, 90, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.dm-domain--motor     { --dc: #e08a5f; }
.dm-domain--fine      { --dc: #8a7bc4; }
.dm-domain--speech    { --dc: #5b9bd4; }
.dm-domain--cognitive { --dc: #4fb0a4; }
.dm-domain--social    { --dc: #d47ba8; }
.dm-domain--selfcare  { --dc: #6aae63; }
.dm-domain::after {
  content: ""; position: absolute; top: -30%; right: -8%; width: 120px; height: 120px;
  border-radius: 50%; filter: blur(30px); opacity: .5; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--dc) 55%, transparent), transparent 70%);
}
.dm-domain > * { position: relative; z-index: 1; }
.dm-domain-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 700; color: var(--dm-ink);
}
.dm-domain-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  flex-shrink: 0; border-radius: 10px; color: var(--dc);
  background: color-mix(in srgb, var(--dc) 15%, rgba(255, 255, 255, 0.6));
}
.dm-domain-ic svg { width: 19px; height: 19px; }
.dm-skills { list-style: none; margin: 0; padding: 0; }
.dm-skills li { margin: 0; }

/* чекбокс навыка */
.dm-check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; padding: 7px 0; }
.dm-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.dm-check-box {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid #ccd6cd; border-radius: 7px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.dm-check-box::after {
  content: ""; width: 11px; height: 6px; margin-top: -2px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .15s ease;
}
.dm-check input:checked + .dm-check-box { background: var(--dc, var(--dm-green)); border-color: var(--dc, var(--dm-green)); }
.dm-check input:checked + .dm-check-box::after { transform: rotate(-45deg) scale(1); }
.dm-check input:focus-visible + .dm-check-box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc, var(--dm-green)) 25%, transparent); }
.dm-check-text { font-family: "Nunito", sans-serif; font-size: 15px; line-height: 1.45; color: #3a4038; }
.dm-check input:checked ~ .dm-check-text { color: #8a948b; }

/* блок «когда к специалисту» — стеклянная янтарная карточка */
.dm-red {
  --amber: #db8a3a;
  position: relative; overflow: hidden;
  margin-top: 18px; padding: 24px 26px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 251, 244, 0.82), rgba(255, 242, 229, 0.58));
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(232, 188, 138, 0.5);
  box-shadow: 0 10px 28px rgba(190, 120, 50, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.dm-red::after {
  content: ""; position: absolute; top: -28%; right: -6%; width: 140px; height: 140px;
  border-radius: 50%; filter: blur(34px); opacity: .5; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(219, 138, 58, 0.5), transparent 70%);
}
.dm-red > * { position: relative; z-index: 1; }
.dm-red-title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-family: "Montserrat", sans-serif; font-size: 18px; font-weight: 800; color: #a9631a;
}
.dm-red-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  flex-shrink: 0; border-radius: 11px; color: var(--amber);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 232, 205, 0.85));
  box-shadow: inset 0 0 0 1px rgba(219, 138, 58, 0.3), 0 3px 8px rgba(200, 130, 50, 0.12);
}
.dm-red-ic svg { width: 21px; height: 21px; }
.dm-red-list {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px;
}
.dm-red-list li {
  position: relative; padding-left: 24px;
  font-family: "Nunito", sans-serif; font-size: 15px; line-height: 1.5; color: #6d5a44;
}
.dm-red-list li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px;
  border-radius: 2px; transform: rotate(45deg);
  background: var(--amber); box-shadow: 0 0 0 3px rgba(219, 138, 58, 0.14);
}
.dm-red-note {
  margin: 0 !important; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.5); border-left: 3px solid var(--amber); border-radius: 8px;
  font-size: 13.5px; line-height: 1.55; color: #8a7358; font-style: italic;
}

/* ---------- Источники (стеклянный вариант) ---------- */
.sr-sources-block {
  margin: 32px 0 8px; padding: 26px 30px 22px !important; border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.80) 0%, rgba(250, 247, 235, 0.58) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 28px rgba(150, 120, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.sr-sources-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed rgba(200, 180, 90, 0.4); }
.sr-sources-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  background: linear-gradient(135deg, #d9c24a, #bda000); color: #fff; border-radius: 10px; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(189, 160, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.sr-sources-head h2 { font-family: "Montserrat", sans-serif; font-size: 20px !important; font-weight: 800 !important; margin: 0 !important; letter-spacing: -0.02em; color: var(--main-bg-color); }
.sr-sources { counter-reset: sr-source; list-style: none !important; margin: 0 !important; padding: 0 !important; font-size: 13.5px !important; line-height: 1.6 !important; color: var(--main-bg-color); }
.sr-sources li { position: relative; counter-increment: sr-source; padding: 10px 12px 10px 42px !important; margin: 0 !important; border-radius: 10px; transition: background 0.2s ease; }
.sr-sources li:hover { background: rgba(189, 160, 0, 0.05); }
.sr-sources li::before {
  content: counter(sr-source); position: absolute; left: 8px; top: 9px; width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.8); border: 1.5px solid rgba(200, 180, 90, 0.5); border-radius: 50%;
  font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 800; color: #bda000;
}
.sr-sources-authors { font-weight: 700; color: var(--main-bg-color); margin-right: 4px; }
.sr-sources cite { font-style: italic; color: var(--main-bg-color); }
.sr-sources a { color: var(--main-bg-color); text-decoration: underline; text-decoration-color: rgba(189, 160, 0, 0.5); text-decoration-thickness: 1.5px; text-underline-offset: 2px; transition: color .2s, text-decoration-color .2s; }
.sr-sources a:hover { color: #8a7600; text-decoration-color: #bda000; }
.sr-sources a[target="_blank"]::after { content: "\2197"; display: inline-block; margin-left: 3px; font-size: 0.85em; color: #bda000; text-decoration: none; vertical-align: middle; }
.sr-sources-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; background: rgba(189, 160, 0, 0.14); color: #8a7600; border-radius: 999px; font-family: "Montserrat", sans-serif; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle; white-space: nowrap; }
.sr-sources-note { margin: 16px 0 0 !important; padding: 10px 14px !important; background: rgba(255, 255, 255, 0.55); border-left: 3px solid #bda000; border-radius: 8px; font-size: 12.5px !important; line-height: 1.5 !important; color: #6b6555; font-style: italic; }

/* ссылки в FAQ и SEO */
.dm-page .faq-answer a {
  color: var(--dm-green); text-decoration: underline; text-decoration-color: rgba(90, 164, 106, 0.4);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 600;
  transition: color .2s, text-decoration-color .2s;
}
.dm-page .faq-answer a:hover { color: #3f7d4d; text-decoration-color: var(--dm-green); }

/* ---------- Стеклянный дизайн — приоритетный для всех плашек ---------- */
.dm-page .tools-pillar-link,
.dm-page .calc-author-block,
.dm-page .faq-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(210, 220, 210, 0.6) !important;
  box-shadow: 0 8px 26px rgba(80, 120, 90, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  border-radius: 16px !important;
}
.dm-page .faq-item { margin-bottom: 10px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .dm-form-card { padding: 18px 16px; }
  .dm-form-row { grid-template-columns: 1fr; gap: 16px; }
  .dm-domains { grid-template-columns: 1fr; }
  .dm-age-title { font-size: 21px; }
  .dm-page .mb-seo p,
  .dm-page .faq-answer p { text-align: justify; text-wrap: pretty; -webkit-hyphens: auto; hyphens: auto; }
}
