/* ==========================================================================
   FamCare — Страница «Проблемы и решения» (problems.html)
   Адаптирована в согласованный визуальный стиль FamCare
   ========================================================================== */

.page-problems {
  background-color: var(--color-white);
  color: #393939;
}

.page-problems .product-top-shell {
  padding-bottom: 0;
}

.ps-container {
  width: 100%;
  max-width: 1728px;
  margin: 0 auto;
  padding-inline: 160px;
}

/* ==========================================================================
   1. Hero Section (2-Column with Airy Sky Photo)
   ========================================================================== */
.problems-hero {
  padding-top: 36px;
  padding-bottom: 72px;
}

.problems-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 549px;
  gap: 48px;
  align-items: stretch;
}

.problems-hero__inner {
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(57, 57, 57, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.problems-hero__media {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  min-height: 440px;
  width: 100%;
  min-width: 0;
  background-color: #d7e3f0;
}

.problems-hero__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.problems-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #817881;
}

.problems-breadcrumbs__link {
  color: #817881;
  transition: color 0.3s var(--ease-smooth);
}

.problems-breadcrumbs__link:hover {
  color: var(--color-accent-blue);
}

.problems-breadcrumbs__sep {
  opacity: 0.6;
}

.problems-breadcrumbs__current {
  color: #393939;
}

.problems-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: 14px;
}

.problems-hero__title {
  font-family: var(--font-serif);
  font-size: 76px;
  font-weight: 400;
  line-height: 1.05;
  color: #393939;
  margin-bottom: 24px;
}

.problems-hero__title em {
  font-style: italic;
  color: var(--color-accent-blue);
}

.problems-hero__lead {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(57, 57, 57, 0.8);
  max-width: 680px;
}

/* ==========================================================================
   2. 01 / Навигация по темам (Topic Pills)
   ========================================================================== */
.problems-nav-section {
  padding-bottom: 84px;
}

.problems-nav-card {
  background: rgba(194, 212, 209, 0.2);
  border-radius: 38px;
  padding: 56px 60px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
}

.problems-nav-card__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.problems-nav-card__eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
}

.problems-nav-card__title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.06;
  color: #393939;
}

.problems-nav-card__title em {
  font-style: italic;
  color: var(--color-accent-blue);
}

.problems-nav-card__desc {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(57, 57, 57, 0.78);
  max-width: 400px;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 100px;
  background: var(--color-white);
  border: 1px solid rgba(57, 57, 57, 0.18);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  color: #393939;
  cursor: pointer;
  transition:
    background-color 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth),
    color 0.35s var(--ease-smooth);
}

.topic-pill:hover {
  background-color: rgba(189, 210, 230, 0.35);
  border-color: var(--color-accent-blue);
  color: #393939;
}

.topic-pill.is-active {
  background-color: rgba(242, 223, 227, 0.2);
  border-color: rgba(216, 167, 180, 0.2);
  color: #6f3551;
}

/* ==========================================================================
   3. 02 / Разбор ситуаций (Accordion 01–08)
   ========================================================================== */
.situations-section {
  padding-bottom: 64px;
}

.situations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(57, 57, 57, 0.22);
}

.situations-header__eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #393939;
}

.situations-header__hint {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: #817881;
}

.situations-list {
  display: flex;
  flex-direction: column;
}

.situation-item {
  border-bottom: 1px solid rgba(57, 57, 57, 0.16);
  scroll-margin-top: 32px;
}

.situation-item__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  gap: 24px;
  align-items: start;
  padding: 34px 4px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
}

.situation-item__num {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #8f4a6b;
  padding-top: 10px;
  font-variant-numeric: tabular-nums;
}

.situation-item__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.situation-item__title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.14;
  color: #393939;
  transition: color 0.35s var(--ease-smooth);
}

.situation-item__trigger:hover .situation-item__title {
  color: var(--color-accent-blue);
}

.situation-item__tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f7f89;
}

.situation-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(57, 57, 57, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition:
    background-color 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth),
    transform 0.4s var(--ease-smooth);
}

.situation-item__icon::before,
.situation-item__icon::after {
  content: '';
  position: absolute;
  background-color: #393939;
  border-radius: 2px;
  transition: background-color 0.35s var(--ease-smooth);
}

.situation-item__icon::before {
  width: 16px;
  height: 1.5px;
}

.situation-item__icon::after {
  width: 1.5px;
  height: 16px;
}

.situation-item__trigger:hover .situation-item__icon {
  border-color: var(--color-accent-blue);
  background-color: rgba(189, 210, 230, 0.25);
}

.situation-item.is-open .situation-item__icon {
  background-color: rgba(242, 223, 227, 0.2);
  border-color: rgba(216, 167, 180, 0.2);
  transform: rotate(45deg);
}

.situation-item__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.45s var(--ease-smooth),
    opacity 0.35s var(--ease-smooth);
}

.situation-item.is-open .situation-item__body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.situation-item__body-inner {
  overflow: hidden;
  min-height: 0;
}

.situation-item__content {
  padding: 0 68px 46px 80px;
}

.situation-item__lead {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.45;
  color: #4b4349;
  max-width: 860px;
}

.situation-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.situation-box {
  border-radius: 20px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.situation-box--action {
  background: rgba(242, 223, 227, 0.48);
}

.situation-box--care {
  background: rgba(189, 210, 230, 0.28);
}

.situation-box__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.situation-box--action .situation-box__label {
  color: #8f4a6b;
}

.situation-box--care .situation-box__label {
  color: #4f80ad;
}

.situation-box__text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #393939;
}

.situation-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-top: 26px;
}

.situation-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(57, 57, 57, 0.35);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: #393939;
  transition:
    color 0.3s var(--ease-smooth),
    border-color 0.3s var(--ease-smooth);
}

.situation-link:hover {
  color: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

/* ==========================================================================
   4. Sources Verification Strip
   ========================================================================== */
.sources-section {
  padding-bottom: 96px;
}

.sources-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 28px 36px;
  border-radius: 20px;
  background: rgba(194, 212, 209, 0.18);
}

.sources-strip__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c6f77;
}

.sources-strip__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.sources-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(143, 74, 107, 0.4);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: #7a4460;
  transition:
    color 0.3s var(--ease-smooth),
    border-color 0.3s var(--ease-smooth);
}

.sources-strip__link:hover {
  color: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

/* ==========================================================================
   5. Важно помнить + Editorial Photo Card
   ========================================================================== */
.important-section {
  padding-bottom: 48px;
}

.problems-faq-section {
  padding-top: 64px;
  padding-bottom: 48px;
}

.page-problems .faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-smooth);
}

.page-problems .faq-item.is-open .faq-item__body {
  grid-template-rows: 1fr;
}

.page-problems .faq-item__body-inner {
  overflow: hidden;
  min-height: 0;
}

.page-problems .bottom-overlap-wrapper {
  margin-top: 72px;
}

.page-problems .feedback-section {
  padding-top: 0;
}

@media (min-width: 1025px) {
  .page-problems .footer {
    margin-top: -119px;
  }
}

.important-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.important-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.important-content__eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f4a6b;
  margin-bottom: 12px;
}

.important-content__title {
  font-family: var(--font-serif);
  font-size: 62px;
  font-weight: 400;
  line-height: 1.06;
  color: #393939;
  margin-bottom: 24px;
}

.important-content__title em {
  font-style: italic;
  color: #8f4a6b;
}

.important-content__desc {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(57, 57, 57, 0.8);
  max-width: 480px;
  margin-bottom: 34px;
}

.important-content__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}

.important-content__actions .btn--outline-pill {
  min-width: 240px;
}

.important-content__secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(57, 57, 57, 0.4);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: #393939;
  transition:
    color 0.3s var(--ease-smooth),
    border-color 0.3s var(--ease-smooth);
}

.important-content__secondary-link:hover {
  color: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

.important-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: 24px;
  background: #f2dfe3;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.important-visual__img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1440px) {
  .ps-container {
    padding-inline: 80px;
  }

  .problems-hero__layout {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 36px;
  }

  .problems-hero__media {
    min-height: 390px;
  }

  .problems-hero__title {
    font-size: 64px;
  }

  .problems-nav-card {
    padding: 48px;
  }

  .problems-nav-card__title {
    font-size: 48px;
  }

  .situation-item__title {
    font-size: 32px;
  }

  .important-content__title {
    font-size: 52px;
  }
}

@media (max-width: 1180px) {
  .ps-container {
    padding-inline: 40px;
  }

  .problems-hero__layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
  }

  .problems-hero__media {
    min-height: 340px;
    border-radius: 28px;
  }

  .problems-nav-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 36px;
  }

  .problems-nav-card__desc {
    max-width: 560px;
  }

  .situation-item__content {
    padding: 0 24px 40px 72px;
  }

  .important-grid {
    gap: 40px;
  }

  .important-visual {
    min-height: 360px;
  }

  .important-visual__quote {
    font-size: 52px;
  }
}

@media (max-width: 900px) {
  .ps-container {
    padding-inline: 28px;
  }

  .problems-hero {
    padding-top: 28px;
    padding-bottom: 52px;
  }

  .problems-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .problems-hero__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
  }

  .problems-hero__inner {
    padding-bottom: 36px;
  }

  .problems-breadcrumbs {
    margin-bottom: 32px;
  }

  .problems-hero__title {
    font-size: 50px;
  }

  .problems-hero__lead {
    font-size: 16px;
  }

  .problems-nav-section {
    padding-bottom: 64px;
  }

  .problems-nav-card__title {
    font-size: 40px;
  }

  .situation-item__trigger {
    grid-template-columns: 36px minmax(0, 1fr) 40px;
    gap: 16px;
    padding: 26px 0;
  }

  .situation-item__num {
    padding-top: 6px;
    font-size: 14px;
  }

  .situation-item__title {
    font-size: 28px;
  }

  .situation-item__icon {
    width: 40px;
    height: 40px;
  }

  .situation-item__content {
    padding: 0 0 36px 52px;
  }

  .situation-item__lead {
    font-size: 20px;
  }

  .situation-boxes {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .sources-section {
    padding-bottom: 72px;
  }

  .sources-strip {
    padding: 24px 24px;
  }

  .important-section {
    padding-bottom: 0;
  }

  .page-problems .bottom-overlap-wrapper {
    margin-top: 64px;
  }

  .page-problems .feedback-section {
    padding-top: 0;
  }

  .important-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .important-content__title {
    font-size: 44px;
  }
}

@media (max-width: 640px) {
  .ps-container {
    padding-inline: 16px;
  }

  .problems-hero {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .problems-hero__inner {
    padding-bottom: 36px;
  }

  .problems-breadcrumbs {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .problems-hero__eyebrow {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .problems-hero__title {
    font-size: 38px;
    margin-bottom: 16px;
  }

  .problems-hero__lead {
    font-size: 15px;
  }

  .problems-nav-section {
    padding-bottom: 48px;
  }

  .problems-nav-card {
    padding: 28px 20px;
    border-radius: 20px;
    gap: 24px;
  }

  .problems-nav-card__head {
    gap: 6px;
  }

  .problems-nav-card__eyebrow {
    font-size: 12px;
  }

  .problems-nav-card__title {
    font-size: 34px;
  }

  .problems-nav-card__desc {
    font-size: 14px;
    margin-top: 8px;
  }

  .topic-pills {
    gap: 8px;
  }

  .topic-pill {
    padding: 10px 16px;
    font-size: 14px;
  }

  .situations-section {
    padding-bottom: 48px;
  }

  .situations-header {
    padding-bottom: 14px;
  }

  .situations-header__eyebrow {
    font-size: 12px;
  }

  .situations-header__hint {
    font-size: 12px;
  }

  .situation-item__trigger {
    grid-template-columns: 28px minmax(0, 1fr) 36px;
    gap: 12px;
    padding: 22px 0;
  }

  .situation-item__num {
    font-size: 13px;
    padding-top: 4px;
  }

  .situation-item__title {
    font-size: 24px;
  }

  .situation-item__tag {
    font-size: 11px;
  }

  .situation-item__icon {
    width: 36px;
    height: 36px;
  }

  .situation-item__content {
    padding: 0 0 28px 0;
  }

  .situation-item__lead {
    font-size: 18px;
    line-height: 1.45;
  }

  .situation-box {
    padding: 20px;
    border-radius: 16px;
  }

  .situation-box__text {
    font-size: 14px;
  }

  .situation-links {
    gap: 12px 22px;
    margin-top: 20px;
  }

  .situation-link {
    font-size: 14px;
  }

  .sources-section {
    padding-bottom: 56px;
  }

  .sources-strip {
    padding: 20px;
    border-radius: 16px;
  }

  .important-section {
    padding-bottom: 0;
  }

  .page-problems .bottom-overlap-wrapper {
    margin-top: 48px;
  }

  .page-problems .feedback-section {
    padding-top: 0;
  }

  .important-content__eyebrow {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .important-content__title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .important-content__desc {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .important-content__actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .important-content__actions .btn--outline-pill {
    width: 280px;
    max-width: 100%;
    min-width: 0;
  }

  .important-visual {
    border-radius: 20px;
  }
}

/* ==========================================================================
   6. Custom Image Cursor on Problem Hover (Desktop Pointer Only)
   ========================================================================== */
.problem-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .page-problems [data-cursor-img] {
    cursor: none;
  }

  .problem-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    padding: 16px;
    background-color: #eef3f7;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 36px rgba(40, 36, 43, 0.14);
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transform: translate3d(-200px, -200px, 0) scale(0.7);
    transition:
      opacity 0.25s var(--ease-smooth),
      background-color 0.3s var(--ease-smooth);
    will-change: transform, opacity;
  }

  .problem-cursor.is-visible {
    opacity: 1;
  }

  .problem-cursor.is-cover {
    padding: 0;
  }

  .problem-cursor__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
  }

  .problem-cursor.is-cover .problem-cursor__img {
    object-fit: cover;
  }
}

