/* ==========================================================================
   /tools/name-compatibility
   Наследует форму/faq/author/sources/share/hero из bmi-calculator.css.
   ========================================================================== */
@import url("/assets/css/bmi-calculator.css");

/* ==========================================================================
   PAGE & HERO — тёплые розово-золотые тона раздела «Имена»
   ========================================================================== */
.nc-page {
  background: #fdf7f6 !important;
}

.nc-hero {
  background:
    radial-gradient(
      ellipse 60% 70% at 50% 45%,
      rgba(253, 247, 246, 0.55) 0%,
      rgba(253, 247, 246, 0) 70%
    ),
    url("/assets/images/name-compatibility-hero-bg.webp") center / cover
      no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f7e6e5 100%) !important;
  border-bottom-color: #efc9c8 !important;
}

.nc-hero .mb-hero-title span::after {
  background: linear-gradient(
    90deg,
    rgba(247, 203, 202, 0.7),
    rgba(189, 160, 0, 0.35)
  );
}

/* Одиночное поле во всю ширину */
.nc-row-single {
  grid-template-columns: 1fr !important;
}

@media (max-width: 760px) {
  .nc-page .bc-form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.nc-label-opt {
  font-weight: 500;
  color: var(--dark-text-color, #888);
  font-size: 12.5px;
}

/* Кнопка «Сбросить»: на этой странице нет шапки в .bc-calc,
   поэтому выводим её в нормальном потоке под формой, а не абсолютом */
.nc-reset {
  position: static;
  margin-top: 16px;
  width: auto;
}

/* Воздух под блоком «Поделиться» перед SEO-текстом */
.nc-share {
  margin-bottom: 32px;
}

/* ==========================================================================
   РЕЗУЛЬТАТ
   ========================================================================== */
.nc-result {
  margin-top: 22px;
}
.nc-result[hidden] {
  display: none;
}

.nc-result-card {
  --accent: #d9756a;
  --accent-soft: #fbeeec;
  background: #ffffff;
  border: 1px solid #eee6e6;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 18px 40px -26px rgba(60, 30, 30, 0.35);
  animation: nc-fade-in 0.4s ease both;
}

@keyframes nc-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Акцентный цвет задаётся вердиктом и используется кольцом, текстом и совётом */
.nc-result--great {
  --accent: #2fa367;
  --accent-soft: #e9f7ef;
}
.nc-result--good {
  --accent: #6aa838;
  --accent-soft: #eef6e5;
}
.nc-result--ok {
  --accent: #d59626;
  --accent-soft: #fbf1da;
}
.nc-result--bad {
  --accent: #d9756a;
  --accent-soft: #fbeeec;
}

/* ---- Шапка результата: кольцо-балл + вердикт ---- */
.nc-result-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #f2ecec;
}

.nc-gauge {
  --score: 0;
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), #ece6e6 0);
  display: grid;
  place-items: center;
}

.nc-gauge-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px -4px rgba(60, 30, 30, 0.18);
}

.nc-gauge-num {
  font-family: "Montserrat", sans-serif;
  font-size: 33px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--main-bg-color, #1c1c1c);
}

.nc-gauge-max {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b6acac;
}

.nc-result-headtext {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nc-verdict {
  font-family: "Montserrat", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--accent);
}

.nc-fullname {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-text-color, #6a6a6a);
}

/* ---- Разбор по пунктам ---- */
.nc-factors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nc-factor {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--main-bg-color, #2b2b2b);
  background: #faf8f8;
  border: 1px solid #f1ebeb;
}

.nc-factor-ic {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.nc-factor--good .nc-factor-ic {
  background: #2fa367;
}
.nc-factor--good .nc-factor-ic::before {
  content: "✓";
}
.nc-factor--warn .nc-factor-ic {
  background: #d59626;
}
.nc-factor--warn .nc-factor-ic::before {
  content: "!";
}
.nc-factor--bad .nc-factor-ic {
  background: #d9756a;
}
.nc-factor--bad .nc-factor-ic::before {
  content: "×";
}

/* ---- Подсказка с именами ---- */
.nc-suggest {
  margin-top: 22px;
}

.nc-suggest-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b58e8a;
}

.nc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nc-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fdf7f6;
  border: 1px solid #efd9d3;
  font-size: 14px;
  font-weight: 600;
  color: var(--main-bg-color, #2b2b2b);
}

/* ---- Практический совет ---- */
.nc-practical {
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--main-bg-color, #2b2b2b);
}

.nc-practical strong {
  color: var(--accent);
}

@media (max-width: 600px) {
  .nc-result-card {
    padding: 20px;
  }
  .nc-result-head {
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }
  .nc-gauge {
    width: 90px;
    height: 90px;
  }
  .nc-gauge-inner {
    width: 70px;
    height: 70px;
  }
  .nc-gauge-num {
    font-size: 28px;
  }
  .nc-verdict {
    font-size: 18px;
  }
}

/* ==========================================================================
   SEO body — нумерованные шаги как карточки
   ========================================================================== */
.nc-seo h2 {
  margin-top: 32px;
}

.nc-seo ol {
  counter-reset: nc-step;
  list-style: none;
  padding-left: 0;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nc-seo ol > li {
  counter-increment: nc-step;
  position: relative;
  padding: 16px 22px 16px 64px;
  background: linear-gradient(135deg, #fdf6f5 0%, #ffffff 60%);
  border: 1px solid #efdcdb;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--main-bg-color, #222);
}

.nc-seo ol > li::before {
  content: counter(nc-step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0908a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(224, 144, 138, 0.35);
}

@media (max-width: 480px) {
  .nc-seo ol > li {
    padding: 14px 16px 14px 54px;
    font-size: 14.5px;
  }
  .nc-seo ol > li::before {
    left: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* ==========================================================================
   ТАБЛИЦА УДАЧНЫХ ИМЁН ПО ОТЧЕСТВАМ
   ========================================================================== */
.nc-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #efdcdb;
  border-radius: 14px;
}

.nc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #ffffff;
  min-width: 520px;
}

.nc-table thead th {
  background: linear-gradient(135deg, #fbf2f1 0%, #fdf8ec 100%);
  color: var(--main-bg-color, #222);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid #efdcdb;
}

.nc-table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid #f1e6e5;
  line-height: 1.5;
  color: var(--dark-text-color, #444);
  vertical-align: top;
}

.nc-table tbody tr:last-child td {
  border-bottom: none;
}
.nc-table tbody tr:nth-child(even) {
  background: #fdf8f7;
}

.nc-table tbody td:first-child {
  white-space: nowrap;
  color: var(--main-bg-color, #222);
}

.nc-table tbody td:first-child strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.nc-table tbody td:first-child span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #b58e8a;
}

/* На мобильных таблица превращается в карточки — без горизонтального скролла */
@media (max-width: 560px) {
  .nc-table-wrap {
    border: none;
    overflow: visible;
    border-radius: 0;
  }
  .nc-table {
    min-width: 0;
    font-size: 14.5px;
    background: transparent;
  }
  .nc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }
  .nc-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .nc-table tbody tr,
  .nc-table tbody tr:nth-child(even) {
    display: block;
    background: #ffffff;
    border: 1px solid #efdcdb;
    border-radius: 14px;
    overflow: hidden;
  }
  .nc-table tbody td {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f1e6e5;
    white-space: normal;
  }
  .nc-table tbody td:last-child {
    border-bottom: none;
  }
  .nc-table tbody td:first-child {
    background: linear-gradient(135deg, #fbf2f1 0%, #fdf8ec 100%);
  }
  .nc-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #c89a4a;
  }
}

/* ==========================================================================
   ЦИТАТА ЭКСПЕРТА
   ========================================================================== */
.nc-seo .expert-quote {
  margin: 26px 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fdf6f5 0%, #ffffff 65%);
  border-left: 4px solid var(--gold-color, #bda000);
  border-radius: 0 14px 14px 0;
  position: relative;
}

.nc-seo .expert-quote p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
  font-style: italic;
  color: var(--main-bg-color, #2a2a2a);
}

.nc-seo .expert-quote cite {
  font-style: normal;
  font-weight: 600;
  font-size: 13.5px;
  color: #b58e8a;
}

.nc-seo .expert-quote cite::before {
  content: "— ";
}

/* ==========================================================================
   МЕТОДИКА — «Как мы считаем благозвучие»
   ========================================================================== */
.nc-method-section {
  margin: 40px 0 8px;
  padding: 28px !important;
  background: #ffffff;
  border: 1px solid #efe1e1;
  border-radius: 18px;
  box-shadow: 0 18px 40px -28px rgba(60, 30, 30, 0.3);
}

.nc-method-section h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--main-bg-color, #1c1c1c);
  margin: 0 0 12px;
}

.nc-method-section h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--main-bg-color, #1c1c1c);
  margin: 26px 0 12px;
}

.nc-method-section p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--dark-text-color, #4a4a4a);
  margin: 0 0 14px;
}

.nc-method {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 6px;
}

.nc-method-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  background: #faf8f8;
  border: 1px solid #f1ebeb;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--main-bg-color, #2b2b2b);
}

.nc-method-row > div {
  min-width: 0;
}
.nc-method-row b {
  font-weight: 700;
  color: #c25b4f;
  font-style: normal;
}

.nc-method-pts {
  flex-shrink: 0;
  min-width: 46px;
  padding: 4px 0;
  text-align: center;
  border-radius: 8px;
  background: #fbeeec;
  color: #c25b4f;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* нулевой штраф — зелёная плашка (идеальный стык) */
.nc-method-pts--ok {
  background: #e9f7ef;
  color: #2fa367;
}

/* ---- Шкала вердиктов ---- */
.nc-scale {
  list-style: none;
  padding: 0;
  margin: 4px 0 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.nc-scale li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #faf8f8;
  border: 1px solid #f1ebeb;
  border-left-width: 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--main-bg-color, #2b2b2b);
}

.nc-scale li span {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--dark-text-color, #555);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nc-scale--great {
  border-left-color: #2fa367;
}
.nc-scale--good {
  border-left-color: #6aa838;
}
.nc-scale--ok {
  border-left-color: #d59626;
}
.nc-scale--bad {
  border-left-color: #d9756a;
}

.nc-method-note {
  margin: 18px 0 0 !important;
  padding: 16px 18px;
  background: #fdf7f6;
  border-radius: 12px;
  font-size: 14.5px !important;
  color: var(--main-bg-color, #2b2b2b) !important;
}

@media (max-width: 560px) {
  .nc-method-section {
    padding: 20px;
  }
  .nc-scale {
    grid-template-columns: 1fr;
  }
}
