/* ===== Почитать — светлый блок (Figma node 58:5) ===== */
.pochitat {
  background: var(--bg-cream);
  padding: 100px 0;
  display: flex;
  justify-content: center;
}

.pochitat__container {
  width: 100%;
  max-width: 1180px;
  padding: 0 24px;
}

.pochitat__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.pochitat__heading-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.pochitat__title {
  font-size: 84px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--bordeaux-dark);
}

.pochitat__lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--bordeaux-dark);
  line-height: 1.5;
  max-width: 520px;
  margin-top: 4px;
}

.pochitat__cta {
  flex-shrink: 0;
  font-size: 12px;
  padding: 0 28px;
}

.pochitat__row {
  display: flex;
  gap: 4px;
  align-items: stretch;
}

/* --- карточка статьи --- */
.post-card {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border-radius: 24px;
  padding: 12px 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-hover), box-shadow var(--transition-hover);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-strong);
}

.post-card__photo {
  width: 100%;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  background: #595959;
}

.post-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s cubic-bezier(0.44, 0, 0.56, 1), transform 0.6s cubic-bezier(0.44, 0, 0.56, 1);
}

.post-card:hover .post-card__photo img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.post-card__body {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card__tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--bordeaux-accent);
}

.post-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--bordeaux-dark);
  line-height: 1.25;
}

.post-card__desc {
  font-size: 14px;
  font-weight: 400;
  color: #737373;
  line-height: 1.45;
}

/* --- тёмная CTA-карточка справа --- */
.post-cta {
  flex: 1.35;
  min-width: 0;
  position: relative;
  background: var(--wine-mesh-bg);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-hover), box-shadow var(--transition-hover);
  overflow: hidden;
}

.post-cta:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-strong);
}

.post-cta__logo {
  font-size: 13px;
  font-weight: 600;
  color: #FCE2E8;
  letter-spacing: 0.02em;
}

/* заголовок и стрелка стоят в одном ряду, поэтому текст не заходит на кнопку */
.post-cta__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.post-cta__title {
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.post-cta__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-hover), transform var(--transition-hover);
}

.post-cta:hover .post-cta__arrow {
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(4px);
}

/* карточки статей прилетают, CTA — с другой стороны */
.post-card,
.post-cta {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow var(--transition-hover);
}

.pochitat__row .post-card:nth-child(1) { transform: translate(-50px, 30px) rotate(-3deg) scale(0.92); }
.pochitat__row .post-card:nth-child(2) { transform: translateY(50px) scale(0.92); transition-delay: 0.12s; }
.pochitat__row .post-cta { transform: translate(50px, 30px) rotate(3deg) scale(0.92); transition-delay: 0.24s; }

.pochitat__row .post-card.is-visible,
.pochitat__row .post-cta.is-visible {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

/* ===== Адаптив ===== */
@media (max-width: 1439px) {
  .pochitat__title { font-size: clamp(48px, 6vw, 84px); }
}

@media (max-width: 1279px) {
  /* шапка блока: на узком экране она уже разнесена по строкам,
     поэтому отступ до контента короче десктопного */
  .pochitat__head { margin-bottom: 28px; }
  .pochitat { padding: 64px 0; }
  .pochitat__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  /* на планшете кнопка по ширине текста, а не во всю строку */
  .pochitat__cta { align-self: flex-start; }
  .pochitat__row { flex-wrap: wrap; }
  .post-card { flex: 1 1 calc(50% - 2px); min-width: 260px; }
  .post-cta { flex: 1 1 100%; min-height: 220px; }
  .post-cta__title { font-size: 28px; }
}

@media (max-width: 767px) {
  .pochitat__head { margin-bottom: 20px; }
  .pochitat { padding: 48px 0; }
  .pochitat__container { padding: 0 16px; }
  .pochitat__cta { align-self: stretch; }
  .pochitat__title { font-size: clamp(30px, 9vw, 40px); }
  .pochitat__row { flex-direction: column; }
  .post-card__photo { height: 280px; }
  .post-card, .post-cta { flex: none; width: 100%; }
  .post-cta__title { font-size: 24px; }
  .pochitat__row .post-card:nth-child(1),
  .pochitat__row .post-card:nth-child(2),
  .pochitat__row .post-cta { transform: translateY(30px) scale(0.96); }
}

/* ===== Поп-ап статьи ===== */
.article-source {
  display: none;
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 6, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  animation: articleFade 0.3s ease;
}

.article-modal[hidden] {
  display: none;
}

@keyframes articleFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.article-modal__card {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 24px;
  padding: 44px 44px 36px;
  box-shadow: var(--card-shadow-strong);
  animation: articleRise 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes articleRise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.article-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blush-light);
  color: var(--bordeaux-dark);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.article-modal__close:hover {
  background: var(--blush);
  transform: rotate(90deg);
}

.article-modal__tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--bordeaux-accent);
}

.article-modal__title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bordeaux-dark);
  margin: 10px 0 22px;
  max-width: 90%;
}

.article-modal__body p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #5E5054;
}

.article-modal__body p + p,
.article-modal__body ul + p {
  margin-top: 14px;
}

.article-modal__body strong {
  font-weight: 600;
  color: var(--bordeaux-dark);
}

.article-modal__body ul {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.article-modal__body li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #5E5054;
}

.article-modal__body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bordeaux-accent);
}

.article-modal__cta {
  margin-top: 28px;
  width: 100%;
  font-size: 13px;
}

/* карточка статьи стала кнопкой — снимаем системные стили */
.post-card {
  border: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
}

@media (max-width: 767px) {
  .article-modal { padding: 16px 12px; }
  .article-modal__card { padding: 34px 22px 26px; max-height: 90vh; border-radius: 20px; }
  .article-modal__title { font-size: 23px; max-width: 84%; }
  .article-modal__body p, .article-modal__body li { font-size: 14px; }
}

/* обложки статей: кадры сняты крупно, поэтому держим фокус на животе
   и руках — иначе на узком экране остаётся только фрагмент */
.post-card:nth-child(1) .post-card__photo img { object-position: center 55%; }
.post-card:nth-child(2) .post-card__photo img { object-position: center 40%; }
