/* ==========================================================================
   /tools/podbor-imeni — Подбор имени для ребёнка
   Наследует hero/seo/faq/author/share/tip из bmi-calculator.css.
   Палитра — тёплые розово-золотые тона раздела «Имена».
   ========================================================================== */
@import url("/assets/css/bmi-calculator.css");
@import url("/assets/css/partners.css");

:root {
  --pi-gold: var(--gold-color, #bda000);
  --pi-pink: #f7cbca;
  --pi-girl: #d98aa0;
  --pi-boy: #5b8bbf;
  --pi-line: #efc9c8;
  --pi-card-bg: #ffffff;
}

/* ---------- ссылки в тексте/FAQ ---------- */
.pi-page .faq-answer-inner p a,
.pi-seo a,
.pi-method-section a {
  color: var(--pi-gold);
  text-decoration: underline;
  text-decoration-color: rgba(189, 160, 0, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.pi-page .faq-answer-inner p a:hover,
.pi-seo a:hover,
.pi-method-section a:hover {
  text-decoration-color: var(--pi-gold);
}

/* ---------- PAGE & HERO ---------- */
.pi-page {
  background: #fdf7f6 !important;
}

.pi-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/podbor-imeni-hero-bg.webp") center / cover no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f7e6e5 100%) !important;
  border-bottom-color: var(--pi-line) !important;
}
.pi-hero .mb-hero-title span::after {
  background: linear-gradient(
    90deg,
    rgba(247, 203, 202, 0.7),
    rgba(189, 160, 0, 0.35)
  );
}

/* ==========================================================================
   ПАНЕЛЬ ФИЛЬТРОВ
   ========================================================================== */
.pi-app {
  margin-top: 28px;
}

.pi-panel {
  background: var(--pi-card-bg);
  border: 1px solid var(--pi-line);
  border-radius: var(--border-radius, 12px);
  padding: 22px 22px 18px;
  box-shadow: 0 6px 24px rgba(189, 100, 100, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pi-control {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pi-control-label {
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b5658;
}
.pi-opt {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #a08c8e;
  font-size: 12.5px;
}

/* поля ввода / select */
.pi-input,
.pi-select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15.5px;
  font-family: inherit;
  color: #2b2326;
  background: #fffdfd;
  border: 1.5px solid #ecd9d8;
  border-radius: 10px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  appearance: none;
}
.pi-input:focus,
.pi-select:focus {
  outline: none;
  border-color: var(--pi-pink);
  box-shadow: 0 0 0 3px rgba(247, 203, 202, 0.35);
}
.pi-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a08c8e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ---------- кастомный селект ---------- */
.pi-cselect {
  position: relative;
}
.pi-cselect-native {
  position: absolute !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.pi-cselect-trigger {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 15.5px;
  font-family: inherit;
  text-align: left;
  color: #2b2326;
  background: #fffdfd;
  border: 1.5px solid #ecd9d8;
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.pi-cselect-trigger:hover {
  border-color: #e3c4c3;
}
.pi-cselect.open .pi-cselect-trigger {
  border-color: var(--pi-pink);
  box-shadow: 0 0 0 3px rgba(247, 203, 202, 0.35);
}
.pi-cselect-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pi-cselect-caret {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: #a08c8e;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.pi-cselect.open .pi-cselect-caret {
  transform: rotate(180deg);
}

.pi-cselect-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #ecd9d8;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(150, 90, 90, 0.16);
  padding: 6px;
  display: none;
}
.pi-cselect.open .pi-cselect-panel {
  display: block;
}
.pi-cselect-opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 10px 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: #4f4346;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}
.pi-cselect-opt:hover {
  background: #fbeeee;
}
.pi-cselect-opt.is-sel {
  background: var(--pi-pink);
  color: #2b2326;
  font-weight: 600;
}
.pi-cselect-opt.is-disabled {
  color: #c9bcbd;
  cursor: not-allowed;
}
.pi-cselect-opt.is-disabled:hover {
  background: none;
}
/* тонкий скроллбар панели */
.pi-cselect-panel::-webkit-scrollbar {
  width: 8px;
}
.pi-cselect-panel::-webkit-scrollbar-thumb {
  background: #e6d2d1;
  border-radius: 8px;
}
.pi-cselect-panel::-webkit-scrollbar-track {
  background: transparent;
}

/* отчество — выделенное поле */
.pi-control--patr .pi-input {
  background: #fffaf4;
  border-color: #ecdcc0;
}
.pi-control--patr .pi-input:focus {
  border-color: var(--pi-gold);
  box-shadow: 0 0 0 3px rgba(189, 160, 0, 0.18);
}

/* грид из трёх полей */
.pi-control--grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.pi-control--grid > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* пол */
.pi-gender-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pi-gender-btn {
  flex: 1 1 0;
  min-width: 92px;
  padding: 11px 14px;
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 600;
  font-size: 14.5px;
  color: #6b5658;
  background: #fbeeee;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pi-gender-btn:hover {
  background: #f7e3e3;
}
.pi-gender-btn.is-active {
  background: #fff;
  color: #2b2326;
  border-color: var(--pi-pink);
  box-shadow: 0 2px 10px rgba(247, 203, 202, 0.4);
}
.pi-gender-btn--g.is-active {
  border-color: var(--pi-girl);
  color: var(--pi-girl);
}
.pi-gender-btn--b.is-active {
  border-color: var(--pi-boy);
  color: var(--pi-boy);
}

/* флаги-стили */
.pi-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pi-flag {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #7a6466;
  background: #fbeeee;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pi-flag:hover {
  background: #f7e3e3;
}
.pi-flag.is-active {
  background: var(--pi-gold);
  color: #fff;
  border-color: var(--pi-gold);
}

/* буквы */
.pi-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pi-letter {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: #6b5658;
  background: #fbeeee;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.pi-letter:hover {
  background: #f7e3e3;
}
.pi-letter.is-active {
  background: #2b2326;
  color: #fff;
  border-color: #2b2326;
}

/* основные действия */
.pi-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px dashed #efd9d8;
}
.pi-apply {
  flex: 1 1 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 16px;
  color: #2b2326;
  background: linear-gradient(135deg, #f7cbca 0%, #f3b9b8 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(231, 150, 150, 0.32);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease;
}
.pi-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(231, 150, 150, 0.42);
  filter: brightness(1.02);
}
.pi-apply:active {
  transform: translateY(0);
}
.pi-showall {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: #6b5658;
  background: #fff;
  border: 1.5px solid #ecd9d8;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.pi-showall:hover {
  border-color: var(--pi-pink);
  background: #fdf6f5;
}

/* подвал панели */
.pi-panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* шапка результатов */
.pi-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  scroll-margin-top: 80px;
}
.pi-results-title {
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #2b2326;
  margin: 0;
}
.pi-fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: #b14a5e;
  background: #fdeef1;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pi-fav-toggle:hover {
  background: #fbe0e6;
}
.pi-fav-toggle.is-active {
  background: #b14a5e;
  color: #fff;
}
.pi-fav-toggle.is-active svg {
  fill: #fff;
  stroke: #fff;
}
.pi-reset {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #a08c8e;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(160, 140, 142, 0.4);
  text-underline-offset: 3px;
}
.pi-reset:hover {
  color: #6b5658;
}

/* ==========================================================================
   РЕЗУЛЬТАТЫ
   ========================================================================== */
.pi-results {
  margin-top: 24px;
}
.pi-count {
  font-size: 14.5px;
  font-weight: 600;
  color: #6b5658;
  margin: 0;
}

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

.pi-card {
  position: relative;
  min-width: 0; /* чтобы длинные слова не распирали грид-трек (фикс гориз. скролла) */
  background: var(--pi-card-bg);
  border: 1px solid #f0e2e1;
  border-radius: 14px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease;
}
.pi-card .pi-meaning,
.pi-card .pi-origin {
  overflow-wrap: break-word;
  min-width: 0;
}
.pi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(180, 120, 120, 0.12);
  border-color: var(--pi-pink);
}
.pi-card--ж {
  border-top: 3px solid var(--pi-girl);
}
.pi-card--м {
  border-top: 3px solid var(--pi-boy);
}
.pi-card.is-fav {
  border-color: #e9a7b4;
  background: #fffafb;
}

/* верхняя полоска: пол слева, балл + сердечко справа */
.pi-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pi-card-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pi-gender {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}
.pi-gender--ж {
  color: var(--pi-girl);
}
.pi-gender--м {
  color: var(--pi-boy);
}

/* имя — всегда на своей строке во всю ширину карточки, не рвём посреди слова */
.pi-name {
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 19px;
  color: #2b2326;
  margin: 2px 0 0;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: auto;
}

.pi-score {
  flex-shrink: 0;
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 15px;
  padding: 3px 9px;
  border-radius: 8px;
  line-height: 1;
}
.pi-score small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.7;
}
.pi-score--great {
  background: #e3f3e6;
  color: #2f7d4a;
}
.pi-score--good {
  background: #eef6e0;
  color: #5a7d1f;
}
.pi-score--ok {
  background: #fdf2dd;
  color: #a87a23;
}
.pi-score--bad {
  background: #fbe4e2;
  color: #b1493f;
}

.pi-meaning {
  font-size: 14.5px;
  color: #5c4f51;
  margin: 0;
  line-height: 1.4;
  flex-grow: 1;
}

.pi-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.pi-origin {
  font-size: 12.5px;
  color: #a08c8e;
  font-style: italic;
}
.pi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}
.pi-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f3eaea;
  color: #8a7376;
  white-space: nowrap;
}
.pi-tag--popular {
  background: #fbf0d6;
  color: #9a7416;
}
.pi-tag--rare {
  background: #ece4f5;
  color: #6f51a0;
}
.pi-tag--foreign {
  background: #e0eef5;
  color: #3f7796;
}
.pi-tag--orthodox {
  background: #f3e9df;
  color: #97703d;
}
.pi-tag--old {
  background: #eae6df;
  color: #7a6e54;
}
.pi-tag--short {
  background: #e6f0e8;
  color: #4f7d5a;
}

/* сердечко */
.pi-fav {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.pi-fav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #d7b9bc;
  stroke-width: 1.8;
  transition: all 0.15s ease;
}
.pi-fav:hover svg {
  stroke: #d98aa0;
  transform: scale(1.1);
}
.pi-card.is-fav .pi-fav svg {
  fill: #e0607a;
  stroke: #e0607a;
}

/* пусто / показать ещё */
.pi-empty {
  text-align: center;
  color: #8a7376;
  padding: 36px 16px;
  font-size: 15.5px;
}
.pi-more-wrap {
  text-align: center;
  margin-top: 22px;
}
.pi-more {
  padding: 12px 30px;
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: #2b2326;
  background: #fff;
  border: 1.5px solid var(--pi-pink);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pi-more:hover {
  background: var(--pi-pink);
  color: #2b2326;
}

.pi-noscript {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff6e8;
  border: 1px solid #f0dcb8;
  border-radius: 10px;
  color: #8a6d2f;
  font-size: 14.5px;
}

/* ==========================================================================
   SEO: нумерованные списки + цитата эксперта
   ========================================================================== */
.pi-seo ol {
  counter-reset: pi-step;
  list-style: none;
  padding-left: 0;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pi-seo ol > li {
  counter-increment: pi-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);
}
.pi-seo ol > li::before {
  content: counter(pi-step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0908a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(224, 144, 138, 0.35);
}

.pi-seo .expert-quote {
  margin: 26px 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fdf6f5 0%, #ffffff 65%);
  border-left: 4px solid var(--pi-gold);
  border-radius: 0 14px 14px 0;
  position: relative;
}
.pi-seo .expert-quote p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
  font-style: italic;
  color: var(--main-bg-color, #2a2a2a);
}
.pi-seo .expert-quote cite {
  font-style: normal;
  font-weight: 600;
  font-size: 13.5px;
  color: #b58e8a;
}
.pi-seo .expert-quote cite::before {
  content: "— ";
}

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

/* ==========================================================================
   БЛОК «КАК УСТРОЕН ПОДБОР»
   ========================================================================== */
.pi-method-section {
  margin: 36px 0;
}
.pi-method-section h2 {
  margin-top: 0;
}
.pi-method-section h3 {
  font-size: 17px;
  margin: 22px 0 10px;
  color: #2b2326;
}
.pi-method-section p {
  color: #4f4346;
  line-height: 1.6;
}

.pi-method {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.pi-method-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #f0e2e1;
  border-radius: 12px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.pi-method-row:hover {
  border-color: #e9c9c7;
  box-shadow: 0 4px 14px rgba(190, 120, 120, 0.08);
}
.pi-method-row > div {
  font-size: 15px;
  color: #4f4346;
  line-height: 1.5;
}
.pi-method-pts {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 38px;
  padding: 0 10px;
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #e3776e 0%, #cf5a52 100%);
  border-radius: 10px;
  box-shadow: 0 3px 9px rgba(207, 90, 82, 0.28);
}
.pi-method-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: #fbf3ef;
  border-left: 3px solid var(--pi-gold);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #6b5b50;
  line-height: 1.6;
}

/* ==========================================================================
   ПОЛНЫЙ СПИСОК (SEO)
   ========================================================================== */
.pi-fulllist {
  margin: 36px 0;
}
.pi-fl-group {
  border: 1px solid #f0e2e1;
  border-radius: 14px;
  background: #fff;
  margin: 14px 0;
  overflow: hidden;
}
.pi-fulllist-h {
  font-size: 19px;
  margin: 0;
  color: #2b2326;
}
.pi-fl-toggle {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #fbeeee;
  border: none;
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #2b2326;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease;
}
.pi-fl-toggle:hover {
  background: #f7e3e3;
}
.pi-fl-count {
  color: #a08c8e;
  font-weight: 500;
  font-size: 15px;
}
.pi-fl-caret {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #a08c8e;
  transition: transform 0.18s ease;
}
.pi-fl-group.is-collapsed .pi-fl-caret {
  transform: rotate(-90deg);
}

/* анимация сворачивания */
.pi-collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.18s ease;
}
.pi-fl-group.is-collapsed .pi-collapse {
  grid-template-rows: 0fr;
}
.pi-collapse-inner {
  overflow: hidden;
  min-height: 0;
}
.pi-collapse .pi-fulllist-tablewrap {
  padding: 4px 14px 16px;
}

.pi-fulllist-tablewrap {
  overflow-x: auto;
  border-radius: 12px;
}
.pi-fulllist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid #f0e2e1;
  border-radius: 12px;
  overflow: hidden;
}
.pi-fulllist-table th {
  background: #fbeeee;
  color: #6b5658;
  font-family: var(--font-head, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 11px 14px;
}
.pi-fulllist-table td {
  padding: 10px 14px;
  border-top: 1px solid #f3eaea;
  color: #4f4346;
}
.pi-fulllist-table tbody tr:hover {
  background: #fdf6f5;
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 760px) {
  .pi-hero {
    padding: 78px 0 14px !important;
  } /* убираем пустоту между hero и панелью */
  .pi-hero .mb-hero-lead {
    margin-bottom: 12px;
  }
  .pi-hero .mb-hero-meta {
    margin-bottom: 0;
  }
  .pi-app {
    margin-top: 8px;
  }
  .pi-control--grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pi-panel {
    padding: 18px 16px 16px;
  }
  .pi-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .pi-card {
    padding: 14px 13px 12px;
  }
  .pi-name {
    font-size: 17.5px;
  }
}

@media (max-width: 560px) {
  .pi-gender-btn {
    min-width: 0;
    font-size: 13.5px;
    padding: 10px 8px;
  }
  .pi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pi-name {
    font-size: 16.5px;
  }
  .pi-card {
    padding: 13px 12px 11px;
  }

  /* полный список — карточками */
  .pi-fulllist-table,
  .pi-fulllist-table tbody,
  .pi-fulllist-table tr,
  .pi-fulllist-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .pi-fulllist-table thead {
    display: none;
  }
  .pi-fulllist-table {
    border: none;
    background: none;
  }
  .pi-fulllist-table tr {
    background: #fff;
    border: 1px solid #f0e2e1;
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 6px 12px;
  }
  .pi-fulllist-table td {
    border: none;
    padding: 6px 0;
  }
  .pi-fulllist-table td:first-child {
    font-size: 16px;
  }
  .pi-fulllist-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #a08c8e;
    font-size: 12.5px;
  }
  .pi-fulllist-table td:first-child[data-label]::before {
    display: none;
  }
}

@media (max-width: 380px) {
  .pi-grid {
    grid-template-columns: 1fr;
  }
}
