/* Стили для страницы Матвеева */

/* Модалка для документов - идентична Остерману */
.matveev-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 14, 19, 0.6);
  backdrop-filter: blur(24px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.matveev-modal.active {
  display: flex;
}

.matveev-modal__content {
  position: relative;
  width: 1440px;
  height: 1113px;
}

.matveev-modal__images {
  position: absolute;
  left: 0px;
  top: 160px;
  width: 1366px;
  height: 712px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Центрируем документы когда их 1 или 2 на десктопе */
@media (min-width: 992px) {
  .matveev-modal__images:has(img:nth-child(1):last-child),
  .matveev-modal__images:has(img:nth-child(2):last-child) {
    justify-content: center;
  }
}

.matveev-modal__images::-webkit-scrollbar {
  display: none;
}

.matveev-modal__images img {
  width: auto;
  height: 624px;
  max-width: 500px;
  opacity: 0.6;
  transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease,
    max-width 0.4s ease;
  flex-shrink: 0;
  cursor: pointer;
  object-fit: contain;
}

.matveev-modal__images img[data-src] {
  opacity: 0.3;
}

.matveev-modal__images img.active {
  width: auto;
  height: 712px;
  max-width: 700px;
  opacity: 1;
}

/* Кнопка закрытия - СПРАВА ВВЕРХУ */
.matveev-modal__close {
  position: absolute;
  right: 55px;
  top: 100px;
  width: 64px;
  height: 64px;
  padding: 16px;
  background: rgba(12, 14, 19, 0.4);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 32px;
  color: white;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.matveev-modal__close:hover {
  background: rgba(12, 14, 19, 0.6);
}

/* Кнопка ВЛЕВО */
.matveev-modal__prev {
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.8);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Кнопка ВПРАВО */
.matveev-modal__next {
  position: absolute;
  left: 1324px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.8);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matveev-modal__prev svg,
.matveev-modal__next svg {
  display: block;
}

/* Скрыть лупу в модалке */
.matveev-modal .matveev-career__zoom-icon {
  display: none !important;
}

.matveev-modal__images .matveev-career__zoom-icon {
  display: none !important;
}

/* Скрыть лупу из секции "Большая карьера" в модалке */
.matveev-modal .matveev-bigcareer__zoom-icon {
  display: none !important;
}

.matveev-modal__images .matveev-bigcareer__zoom-icon {
  display: none !important;
}

/* Скрыть лупу из секции "Роль Матвеева в русско-польских отношениях" в модалке */
.matveev-modal .matveev-polish__zoom-icon {
  display: none !important;
}

.matveev-modal__images .matveev-polish__zoom-icon {
  display: none !important;
}

/* Адаптив для модалки - СРЕДНИЕ ЭКРАНЫ */
@media (max-width: 1439px) and (min-width: 992px) {
  .matveev-modal__content {
    width: calc(100vw - 80px);
    max-width: 1280px;
    height: auto;
    aspect-ratio: 1440/1113;
  }

  .matveev-modal__images {
    width: calc(100% - 74px);
    left: 37px;
    top: 14%;
    height: 64%;
  }

  .matveev-modal__close {
    right: 40px;
    top: 40px;
  }

  .matveev-modal__next {
    left: auto;
    right: -32px;
  }
}

/* Адаптив для модалки - ПЛАНШЕТЫ */
@media (max-width: 991px) and (min-width: 768px) {
  .matveev-modal__content {
    width: calc(100vw - 40px);
    height: auto;
    max-height: 90vh;
  }

  .matveev-modal__images {
    position: static;
    width: 100%;
    height: auto;
    max-height: 70vh;
    padding: 80px 20px 20px;
    overflow-x: auto;
  }

  .matveev-modal__images img {
    width: 280px;
    height: auto;
    max-height: 60vh;
  }

  .matveev-modal__images img.active {
    width: 320px;
  }

  .matveev-modal__close {
    right: 20px;
    top: 20px;
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .matveev-modal__prev {
    left: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .matveev-modal__next {
    left: auto;
    right: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
    width: 48px;
    height: 48px;
    padding: 12px;
  }
}

/* Адаптив для модалки - МОБИЛЬНЫЕ */
@media (max-width: 991px) {
  .matveev-modal__content {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .matveev-modal__images {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: 60vh;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
  }

  .matveev-modal__images img {
    width: 70%;
    max-width: 300px;
    height: auto;
    opacity: 0.6;
    flex-shrink: 0;
    scroll-snap-align: center;
    aspect-ratio: 391/624;
    object-fit: contain;
  }

  .matveev-modal__images img[data-src] {
    opacity: 0.3;
  }

  .matveev-modal__images img.active {
    width: 85%;
    max-width: 400px;
    height: auto;
    opacity: 1;
    aspect-ratio: 446/712;
    object-fit: contain;
  }

  .matveev-modal__close {
    right: 30px;
    top: 14%;
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .matveev-modal__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 12px;
    z-index: 100;
  }

  .matveev-modal__next {
    left: auto;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 12px;
    z-index: 100;
  }
}

/* Цвет хедера и футера */
body.inner .header {
  background: #5a1d1d !important;
}

body.inner .footer {
  background: #5a1d1d !important;
}

/* Кнопки в хедере */
body.inner .header-top__button {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.inner .header-top__button:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

body.inner .header-top__button:active {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Frame 2: Детство и юность */
.matveev-childhood {
  width: 100%;
  padding: 160px 80px 120px;
  background: #f6f4ee;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
}

.matveev-childhood__content {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.matveev-childhood__header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
}

.matveev-childhood__title {
  width: 1064px;
  max-width: 100%;
  text-align: center;
  color: #210706;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  margin: 0;
}

.matveev-childhood__intro {
  width: 848px;
  max-width: 100%;
  text-align: center;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

.matveev-childhood__blocks {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 120px;
}

/* Блок об отце */
.matveev-childhood__father-block {
  width: 100%;
  max-width: 1280px;
  padding: 80px;
  background: #fbfbf8;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 56px;
}

.matveev-childhood__father-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

.matveev-childhood__father-name {
  color: #210706;
  font-size: 48px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 52.8px;
  margin: 0;
}

.matveev-childhood__father-label {
  color: #50403f;
  font-size: 16px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 25.6px;
}

.matveev-childhood__father-text {
  flex: 1;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
}

/* Блок с фото и текстом */
.matveev-childhood__story {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}

.matveev-childhood__image {
  width: 524px;
  height: 303px;
  object-fit: cover;
  position: static;
  transition: transform 0.3s ease-out;
}

.matveev-childhood__image:hover {
  transform: scale(1.02);
}

.matveev-childhood__story-text {
  width: 632px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
}

.matveev-childhood__quote {
  color: #210706;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  margin: 0;
}

.matveev-childhood__description {
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .matveev-childhood {
    padding: 40px 16px 64px;
    gap: 64px;
  }

  .matveev-childhood__content {
    gap: 64px;
  }

  .matveev-childhood__header {
    gap: 32px;
  }

  .matveev-childhood__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-childhood__intro {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-childhood__blocks {
    gap: 40px;
  }

  .matveev-childhood__father-block {
    padding: 40px 16px;
    flex-direction: column;
    gap: 24px;
  }

  .matveev-childhood__father-name {
    font-size: 32px;
    line-height: 38.4px;
  }

  .matveev-childhood__story {
    flex-direction: column;
    gap: 24px;
  }

  .matveev-childhood__image {
    width: 100%;
    height: auto;
  }

  .matveev-childhood__story-text {
    width: 100%;
    gap: 24px;
  }

  .matveev-childhood__quote {
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-childhood__description {
    font-size: 16px;
    line-height: 25.6px;
  }
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .matveev-childhood {
    padding: 80px 40px 120px;
    gap: 120px;
  }

  .matveev-childhood__content {
    gap: 120px;
  }

  .matveev-childhood__header {
    gap: 48px;
  }

  .matveev-childhood__title {
    font-size: 80px;
    line-height: 96px;
  }

  .matveev-childhood__intro {
    font-size: 18px;
    line-height: 28.8px;
  }

  .matveev-childhood__blocks {
    gap: 120px;
  }

  .matveev-childhood__father-block {
    padding: 80px 40px;
    flex-direction: column;
    gap: 56px;
  }

  .matveev-childhood__story {
    flex-direction: column;
    gap: 56px;
    align-items: center;
  }

  .matveev-childhood__image {
    width: 524px;
    height: auto;
  }

  .matveev-childhood__story-text {
    width: 100%;
    max-width: 688px;
  }
}

/* Frame 1: Hero Section */
.matveev-hero {
  width: 100%;
  min-height: 1089px;
  position: relative;
  background: #5a1d1d;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
}

.matveev-hero__content {
  width: 848px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 56px;
  display: flex;
}

.matveev-hero__image-wrapper {
  width: 390px;
  height: 471px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Внешний элипс (самый большой) */
.matveev-hero__image-wrapper::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 471px;
  border-radius: 50%;
  border: 1px solid #d4bb8b;
  z-index: 1;
  pointer-events: none;
}

/* Средний элипс */
.matveev-hero__image-wrapper::after {
  content: "";
  position: absolute;
  width: 346.22px;
  height: 426px;
  border-radius: 50%;
  border: 8px solid #d4bb8b;
  z-index: 2;
  pointer-events: none;
}

.matveev-hero__image {
  width: 346px;
  height: 426px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #d0b27a;
  transition: transform 0.3s ease-out;
  position: static;
}

.matveev-hero__image:hover {
  transform: scale(1.02);
}

.matveev-hero__text {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  display: flex;
  width: 100%;
}

.matveev-hero__dates {
  width: 100%;
  text-align: center;
  color: #d4bb8b;
  font-size: 16px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 25.6px;
}

.matveev-hero__title {
  width: 100%;
  text-align: center;
  color: #e3d8c3;
  font-size: 88px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96.8px;
  margin: 0;
}

.matveev-hero__description {
  width: 632px;
  text-align: center;
  color: #e3d8c3;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0 auto;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .matveev-hero {
    min-height: auto;
    padding: 160px 16px 64px;
  }

  .matveev-hero__content {
    width: 100%;
    gap: 40px;
  }

  .matveev-hero__image-wrapper {
    width: 240px;
    height: 295px;
  }

  .matveev-hero__image-wrapper::before {
    width: 240px;
    height: 295px;
  }

  .matveev-hero__image-wrapper::after {
    width: 212px;
    height: 261px;
    border-width: 5px;
  }

  .matveev-hero__image {
    width: 212px;
    height: 261px;
  }

  .matveev-hero__title {
    font-size: 48px;
    line-height: 52.8px;
  }

  .matveev-hero__description {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-hero__dates {
    font-size: 14px;
    line-height: 22.4px;
  }
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .matveev-hero {
    padding: 80px 40px 120px;
  }

  .matveev-hero__content {
    width: 100%;
    max-width: 848px;
  }

  .matveev-hero__title {
    font-size: 88px;
    line-height: 96.8px;
  }

  .matveev-hero__description {
    width: 100%;
    max-width: 632px;
  }
}

/* Frame 3: Начало карьеры */
.matveev-career {
  width: 100%;
  background: #f6f4ee;
  padding: 120px 80px;
  display: flex;
  justify-content: center;
}

.matveev-career__container {
  width: 100%;
  max-width: 1280px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
  display: flex;
}

.matveev-career__header {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  display: flex;
}

.matveev-career__title {
  width: 1064px;
  max-width: 100%;
  text-align: center;
  color: #210706;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  margin: 0;
}

.matveev-career__subtitle {
  width: 848px;
  max-width: 100%;
  text-align: center;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

.matveev-career__row {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 56px;
}

.matveev-career__row--reverse {
  flex-direction: row-reverse;
}

.matveev-career__book {
  width: 524px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  display: flex;
}

.matveev-career__book-wrapper {
  width: 516px;
  height: 356px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.matveev-career__book-main {
  width: 492px;
  height: 334px;
  left: 0px;
  top: 0px;
  position: absolute;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-career__book-shadow {
  width: 492px;
  height: 334px;
  left: 24px;
  top: 24px;
  position: absolute;
  opacity: 1 !important;
  z-index: 1;
  display: block !important;
  visibility: visible !important;
  object-fit: cover !important;
}

.matveev-career__book-hidden {
  display: none;
}

/* Одиночное изображение без модалки */
.matveev-career__single-image {
  width: 362.34px;
  height: 480px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static;
  transition: transform 0.3s ease-out !important;
}

.matveev-career__single-image:hover {
  transform: scale(1.02);
}

.matveev-career__caption {
  opacity: 0.8;
  text-align: center;
  color: #50403f;
  font-size: 12px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  margin: 0;
}

.matveev-career__text-block {
  width: 632px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  display: flex;
}

.matveev-career__quote {
  width: 100%;
  color: #210706;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  margin: 0;
}

.matveev-career__description {
  width: 100%;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

.matveev-career__final-row {
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
  gap: 56px;
}

.matveev-career__quote-final {
  width: 524px;
  color: #210706;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  margin: 0;
}

.matveev-career__description-final {
  width: 632px;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  /* Карьера секция */
  .matveev-career {
    padding: 40px 16px 64px;
  }

  .matveev-career__container {
    gap: 64px;
    width: 100%;
    padding: 0;
  }

  .matveev-career__header {
    gap: 32px;
    width: 100%;
  }

  .matveev-career__title {
    font-size: 40px;
    line-height: 48px;
    width: 100%;
  }

  .matveev-career__subtitle {
    font-size: 16px;
    line-height: 25.6px;
    width: 100%;
  }

  .matveev-career__row,
  .matveev-career__row--reverse {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-career__book {
    width: 100%;
    max-width: 343px;
    margin: 0 auto;
    align-items: center;
  }

  .matveev-career__book-wrapper {
    width: 343px;
    height: 236.64px;
    max-width: 100%;
  }

  .matveev-career__book-main {
    width: 327.05px;
    height: 222.02px;
    left: 0;
    top: 0;
  }

  .matveev-career__book-shadow {
    width: 327.05px;
    height: 222.02px;
    left: 15.95px;
    top: 15.95px;
  }

  .matveev-career__single-image {
    width: 343px;
    height: 454.38px;
    max-width: 100%;
  }

  .matveev-career__text-block {
    width: 100%;
  }

  .matveev-career__quote {
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-career__description {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-career__final-row {
    flex-direction: column;
    gap: 24px;
  }

  .matveev-career__quote-final {
    width: 100%;
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-career__description-final {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .matveev-career {
    padding: 80px 40px 120px;
  }

  .matveev-career__container {
    width: 100%;
    max-width: 688px;
    gap: 120px;
  }

  .matveev-career__header {
    gap: 48px;
  }

  .matveev-career__title {
    font-size: 80px;
    line-height: 96px;
  }

  .matveev-career__subtitle {
    font-size: 18px;
    line-height: 28.8px;
  }

  .matveev-career__row,
  .matveev-career__row--reverse {
    flex-direction: column;
    gap: 80px;
    align-items: center;
  }

  .matveev-career__book {
    width: 524px;
    align-items: center;
  }

  .matveev-career__text-block {
    width: 100%;
    max-width: 688px;
  }

  .matveev-career__final-row {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-career__quote-final,
  .matveev-career__description-final {
    width: 100%;
  }
}

/* Интерактив для документов карьеры */
.matveev-career__book-wrapper {
  cursor: pointer;
}

/* Эффект раздвижения при наведении */
.matveev-career__book:hover .matveev-career__book-main {
  transform: rotate(-7deg);
  transition: all 0.4s ease;
}

.matveev-career__book:hover .matveev-career__book-shadow {
  transform: rotate(7deg);
  transition: all 0.4s ease;
}

.matveev-career__book-shadow,
.matveev-career__book-main {
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Лупа */
.matveev-career__zoom-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  width: 72px;
  height: 72px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.6);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matveev-career__zoom-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.matveev-career__zoom-icon svg circle,
.matveev-career__zoom-icon svg line {
  vector-effect: non-scaling-stroke;
}

.matveev-career__book:hover .matveev-career__zoom-icon {
  opacity: 1;
}

/* Frame 4: Большая карьера */
.matveev-bigcareer {
  width: 100%;
  padding: 160px 80px;
  background: #5a1d1d;
  display: flex;
  justify-content: center;
}

.matveev-bigcareer__container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
}

/* Заголовок секции */
.matveev-bigcareer__header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 64px;
}

.matveev-bigcareer__title {
  width: 1064px;
  max-width: 100%;
  text-align: center;
  color: #e3d8c3;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  margin: 0;
  word-wrap: break-word;
}

.matveev-bigcareer__header-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}

.matveev-bigcareer__subtitle {
  width: 1064px;
  max-width: 100%;
  text-align: center;
  color: #e3d8c3;
  font-size: 48px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 52.8px;
  margin: 0;
  word-wrap: break-word;
}

.matveev-bigcareer__intro {
  width: 848px;
  max-width: 100%;
  text-align: center;
  color: #e3d8c3;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

/* Ряды с контентом */
.matveev-bigcareer__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}

.matveev-bigcareer__row--reverse {
  flex-direction: row-reverse;
}

/* Блок с книгой/документом */
.matveev-bigcareer__book {
  width: 524px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.matveev-bigcareer__book-wrapper {
  width: 309.23px;
  height: 480px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.matveev-bigcareer__book-main {
  width: 288.46px;
  height: 460.82px;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-bigcareer__book-shadow {
  width: 288.46px;
  height: 460.82px;
  position: absolute;
  left: 20.77px;
  top: 18.46px;
  z-index: 1;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-bigcareer__book-hidden {
  display: none;
}

/* Вертикальный вариант документа */
.matveev-bigcareer__book--tall {
  width: 524px;
}

.matveev-bigcareer__book-wrapper--tall {
  width: 361px;
  height: 560px;
}

.matveev-bigcareer__book-main--tall {
  width: 336.75px;
  height: 537.97px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-bigcareer__book-shadow--tall {
  width: 336.75px;
  height: 537.97px;
  left: 24.25px;
  top: 18.46px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-bigcareer__caption {
  align-self: stretch;
  opacity: 0.8;
  text-align: center;
  color: #d4bb8b;
  font-size: 12px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  margin: 0;
}

/* Эффект раздвижения при наведении */
.matveev-bigcareer__book:hover .matveev-bigcareer__book-main {
  transform: rotate(-7deg);
  transition: all 0.4s ease;
}

.matveev-bigcareer__book:hover .matveev-bigcareer__book-shadow {
  transform: rotate(7deg);
  transition: all 0.4s ease;
}

.matveev-bigcareer__book-shadow,
.matveev-bigcareer__book-main {
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Лупа */
.matveev-bigcareer__zoom-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.6);
  border-radius: 40px;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matveev-bigcareer__book:hover .matveev-bigcareer__zoom-icon {
  opacity: 1;
}

/* Текстовый блок */
.matveev-bigcareer__text-block {
  width: 632px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.matveev-bigcareer__quote {
  width: 100%;
  color: #e3d8c3;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  margin: 0;
}

.matveev-bigcareer__description {
  width: 100%;
  color: #e3d8c3;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

/* Блок с цитатой */
.matveev-bigcareer__quote-block {
  width: 100%;
  max-width: 1280px;
  padding: 89px 80px 64px;
  position: relative;
  background: #421616;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}

.matveev-bigcareer__quote-text {
  align-self: stretch;
  color: #e3d8c3;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

.matveev-bigcareer__quote-ornament {
  width: 52px;
  height: 48px;
  position: absolute;
  left: 50%;
  top: -24.28px;
  transform: translateX(-50%);
  background-image: url("/assets/images/5.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ряд с двумя текстовыми блоками */
.matveev-bigcareer__row-text {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
}

.matveev-bigcareer__row-text .matveev-bigcareer__quote {
  width: 632px;
}

.matveev-bigcareer__row-text .matveev-bigcareer__description {
  width: 524px;
}

/* Адаптив для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .matveev-bigcareer {
    padding: 80px 40px 120px;
  }

  .matveev-bigcareer__container {
    gap: 120px;
  }

  .matveev-bigcareer__header {
    gap: 48px;
    width: 100%;
  }

  .matveev-bigcareer__header-content {
    gap: 32px;
    width: 100%;
  }

  .matveev-bigcareer__title {
    font-size: 56px;
    line-height: 67.2px;
    width: 100%;
  }

  .matveev-bigcareer__subtitle {
    font-size: 32px;
    line-height: 38.4px;
    width: 100%;
  }

  .matveev-bigcareer__intro {
    font-size: 18px;
    line-height: 28.8px;
    width: 100%;
  }

  .matveev-bigcareer__row,
  .matveev-bigcareer__row--reverse {
    flex-direction: column;
    gap: 80px;
    align-items: center;
  }

  .matveev-bigcareer__book {
    width: 524px;
    align-items: center;
  }

  .matveev-bigcareer__text-block {
    width: 100%;
    max-width: 688px;
  }

  .matveev-bigcareer__quote-block {
    padding: 89px 40px 64px;
  }

  .matveev-bigcareer__row-text {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-bigcareer__row-text .matveev-bigcareer__quote,
  .matveev-bigcareer__row-text .matveev-bigcareer__description {
    width: 100%;
  }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .matveev-bigcareer {
    padding: 40px 16px 64px;
  }

  .matveev-bigcareer__container {
    gap: 64px;
  }

  .matveev-bigcareer__header {
    gap: 32px;
    width: 100%;
  }

  .matveev-bigcareer__header-content {
    gap: 24px;
    width: 100%;
  }

  .matveev-bigcareer__title {
    font-size: 40px;
    line-height: 48px;
    width: 100%;
  }

  .matveev-bigcareer__subtitle {
    font-size: 24px;
    line-height: 28.8px;
    width: 100%;
  }

  .matveev-bigcareer__intro {
    font-size: 16px;
    line-height: 25.6px;
    width: 100%;
  }

  .matveev-bigcareer__row,
  .matveev-bigcareer__row--reverse {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-bigcareer__book {
    width: 100%;
    max-width: 343px;
    align-items: center;
  }

  .matveev-bigcareer__book-wrapper {
    width: 205.49px;
    height: 319.01px;
  }

  .matveev-bigcareer__book-main {
    width: 191.64px;
    height: 306.11px;
    left: 0;
    top: 0;
  }

  .matveev-bigcareer__book-shadow {
    width: 191.64px;
    height: 306.11px;
    left: 13.85px;
    top: 12.9px;
  }

  .matveev-bigcareer__book-wrapper--tall {
    width: 240px;
    height: 372.21px;
  }

  .matveev-bigcareer__book-main--tall {
    width: 223.83px;
    height: 357.48px;
  }

  .matveev-bigcareer__book-shadow--tall {
    width: 223.83px;
    height: 357.48px;
    left: 16.17px;
    top: 12.9px;
  }

  .matveev-bigcareer__zoom-icon {
    width: 72px;
    height: 72px;
    padding: 16px;
  }

  .matveev-bigcareer__text-block {
    width: 100%;
  }

  .matveev-bigcareer__quote {
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-bigcareer__description {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-bigcareer__quote-block {
    padding: 56px 16px 40px;
  }

  .matveev-bigcareer__quote-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-bigcareer__quote-ornament {
    width: 32px;
    height: 29.54px;
    top: -14.77px;
    background-image: url("/assets/images/5.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .matveev-bigcareer__row-text {
    flex-direction: column;
    gap: 24px;
  }

  .matveev-bigcareer__row-text .matveev-bigcareer__quote,
  .matveev-bigcareer__row-text .matveev-bigcareer__description {
    width: 100%;
  }
}

/* Frame 5: А почему «любимец царя?» */
.matveev-favorite {
  width: 100%;
  padding: 160px 80px 120px;
  background: #f6f4ee;
  display: flex;
  justify-content: center;
}

.matveev-favorite__container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
}

/* Заголовок секции */
.matveev-favorite__header {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.matveev-favorite__title {
  align-self: stretch;
  text-align: center;
  color: #210706;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  margin: 0;
  word-wrap: break-word;
}

.matveev-favorite__subtitle {
  align-self: stretch;
  text-align: center;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
  word-wrap: break-word;
}

/* Карточки */
.matveev-favorite__cards {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.matveev-favorite__card {
  flex: 1 1 0;
  padding: 64px;
  background: #fbfbf8;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}

.matveev-favorite__card-number {
  text-align: center;
  color: #d4bb8b;
  font-size: 40px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 44px;
}

.matveev-favorite__card-text {
  align-self: stretch;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

/* Блок с документом и текстом */
.matveev-favorite__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}

.matveev-favorite__book {
  width: 524px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.matveev-favorite__book-wrapper {
  width: 361px;
  height: 560px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.matveev-favorite__book-main {
  width: 336.75px;
  height: 537.97px;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-favorite__book-shadow {
  width: 336.75px;
  height: 537.97px;
  position: absolute;
  left: 24.25px;
  top: 18.46px;
  z-index: 1;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-favorite__book-hidden {
  display: none;
}

.matveev-favorite__caption {
  align-self: stretch;
  opacity: 0.8;
  text-align: center;
  color: #50403f;
  font-size: 12px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  margin: 0;
}

/* Эффект раздвижения при наведении */
.matveev-favorite__book:hover .matveev-favorite__book-main {
  transform: rotate(-7deg);
  transition: all 0.4s ease;
}

.matveev-favorite__book:hover .matveev-favorite__book-shadow {
  transform: rotate(7deg);
  transition: all 0.4s ease;
}

.matveev-favorite__book-shadow,
.matveev-favorite__book-main {
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Лупа */
.matveev-favorite__zoom-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.6);
  border-radius: 40px;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matveev-favorite__book:hover .matveev-favorite__zoom-icon {
  opacity: 1;
}

/* Скрыть лупу в модалке */
.matveev-modal .matveev-favorite__zoom-icon {
  display: none !important;
}

.matveev-modal__images .matveev-favorite__zoom-icon {
  display: none !important;
}

/* Текстовый блок */
.matveev-favorite__text-block {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.matveev-favorite__quote {
  width: 632px;
  color: #210706;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  margin: 0;
}

.matveev-favorite__description {
  width: 632px;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

/* Адаптив для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .matveev-favorite {
    padding: 80px 40px 120px;
  }

  .matveev-favorite__container {
    gap: 120px;
  }

  .matveev-favorite__header {
    gap: 48px;
  }

  .matveev-favorite__title {
    font-size: 80px;
    line-height: 96px;
  }

  .matveev-favorite__subtitle {
    font-size: 18px;
    line-height: 28.8px;
  }

  .matveev-favorite__cards {
    flex-direction: column;
    gap: 16px;
  }

  .matveev-favorite__card {
    padding: 64px 40px;
  }

  .matveev-favorite__row {
    flex-direction: column;
    gap: 80px;
    align-items: center;
  }

  .matveev-favorite__book {
    width: 524px;
    align-items: center;
  }

  .matveev-favorite__text-block {
    width: 100%;
    max-width: 688px;
  }

  .matveev-favorite__quote,
  .matveev-favorite__description {
    width: 100%;
  }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .matveev-favorite {
    padding: 40px 16px 64px;
  }

  .matveev-favorite__container {
    gap: 64px;
  }

  .matveev-favorite__header {
    gap: 24px;
  }

  .matveev-favorite__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-favorite__subtitle {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-favorite__cards {
    flex-direction: column;
    gap: 16px;
  }

  .matveev-favorite__card {
    padding: 40px 16px;
    gap: 24px;
  }

  .matveev-favorite__card-number {
    font-size: 32px;
    line-height: 35.2px;
  }

  .matveev-favorite__card-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-favorite__row {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-favorite__book {
    width: 100%;
    max-width: 343px;
    align-items: center;
  }

  .matveev-favorite__book-wrapper {
    width: 240px;
    height: 372.21px;
  }

  .matveev-favorite__book-main {
    width: 223.83px;
    height: 357.48px;
    left: 0;
    top: 0;
  }

  .matveev-favorite__book-shadow {
    width: 223.83px;
    height: 357.48px;
    left: 16.17px;
    top: 12.9px;
  }

  .matveev-favorite__zoom-icon {
    width: 72px;
    height: 72px;
    padding: 16px;
  }

  .matveev-favorite__text-block {
    width: 100%;
  }

  .matveev-favorite__quote {
    width: 100%;
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-favorite__description {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }
}

/* Frame 6: Глава внешней политики */
.matveev-politics {
  width: 100%;
  padding: 120px 80px 160px;
  background: #f6f4ee;
  display: flex;
  justify-content: center;
}

.matveev-politics__container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
}

/* Заголовок */
.matveev-politics__title {
  width: 1064px;
  max-width: 100%;
  text-align: center;
  color: #210706;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  margin: 0;
  word-wrap: break-word;
}

/* Ряды с контентом */
.matveev-politics__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}

/* Текстовый блок */
.matveev-politics__text-block {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.matveev-politics__quote {
  width: 632px;
  color: #210706;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  margin: 0;
  word-wrap: break-word;
}

.matveev-politics__description {
  width: 632px;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
  word-wrap: break-word;
}

/* Блок с документом */
.matveev-politics__book {
  width: 524px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.matveev-politics__single-image {
  width: 305px;
  height: 480px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover;
  position: static;
  transition: transform 0.3s ease-out !important;
}

.matveev-politics__single-image:hover {
  transform: scale(1.02);
}

.matveev-politics__caption {
  align-self: stretch;
  opacity: 0.8;
  text-align: center;
  color: #50403f;
  font-size: 12px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  margin: 0;
}

/* Блок с цитатой */
.matveev-politics__quote-block {
  align-self: stretch;
  padding: 89px 80px 64px;
  position: relative;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}

.matveev-politics__quote-text {
  align-self: stretch;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
}

.matveev-politics__quote-ornament {
  width: 52px;
  height: 48px;
  position: absolute;
  left: 50%;
  top: -24.28px;
  transform: translateX(-50%);
  background-image: url("/assets/images/5.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Финальный блок */
.matveev-politics__final-row {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
}

.matveev-politics__final-quote {
  width: 524px;
  color: #210706;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  margin: 0;
  word-wrap: break-word;
}

/* Список */
.matveev-politics__list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.matveev-politics__list-item {
  width: 668px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.matveev-politics__bullet {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.matveev-politics__bullet::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  left: 8px;
  top: 10.97px;
  background: #d4bb8b;
  border-radius: 50%;
}

.matveev-politics__list-text {
  flex: 1;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  margin: 0;
  word-wrap: break-word;
}

/* ===== Frame 7: Роль Матвеева в русско-польских отношениях ===== */

.matveev-polish {
  width: 100%;
  padding: 160px 80px;
  background: #5a1d1d;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.matveev-polish__container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.matveev-polish__title {
  width: 100%;
  max-width: 1064px;
  text-align: center;
  color: #e3d8c3;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-polish__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.matveev-polish__row--top {
  align-items: flex-start;
}

.matveev-polish__row--reverse {
  flex-direction: row-reverse;
}

.matveev-polish__book {
  width: 524px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.matveev-polish__book-wrapper {
  width: 309.23px;
  height: 480px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.matveev-polish__book-main {
  width: 288.46px;
  height: 460.82px;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 2;
  box-shadow: 8px 16px 36px rgba(0, 0, 0, 0.16);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-polish__book-shadow {
  width: 288.46px;
  height: 460.82px;
  position: absolute;
  left: 20.77px;
  top: 18.46px;
  z-index: 1;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

/* Эффект раздвижения при наведении (кроме одиночных изображений) */
.matveev-polish__book-wrapper:not(.matveev-polish__book-wrapper--single):hover
  .matveev-polish__book-main {
  transform: rotate(-7deg);
  transition: all 0.4s ease;
}

.matveev-polish__book-wrapper:not(.matveev-polish__book-wrapper--single):hover
  .matveev-polish__book-shadow {
  transform: rotate(7deg);
  transition: all 0.4s ease;
}

.matveev-polish__book-wrapper:not(.matveev-polish__book-wrapper--single)
  .matveev-polish__book-shadow,
.matveev-polish__book-wrapper:not(.matveev-polish__book-wrapper--single)
  .matveev-polish__book-main {
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Увеличение одиночного изображения при наведении */
.matveev-polish__book-wrapper--single:hover .matveev-polish__book-main {
  transform: scale(1.02);
}

.matveev-polish__book-wrapper--single .matveev-polish__book-main {
  transition: transform 0.3s ease-out;
}

.matveev-polish__zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.6);
  border-radius: 40px;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.matveev-polish__book-wrapper:hover .matveev-polish__zoom-icon {
  opacity: 1;
}

/* Модификатор для одиночного изображения в wrapper (документ 27) */
.matveev-polish__book-wrapper--single {
  width: 368px;
  height: 480px;
  cursor: default;
}

.matveev-polish__book-wrapper--single .matveev-polish__book-main {
  width: 368px;
  height: 480px;
  position: static;
  box-shadow: none;
}

/* Wrapper для одиночного изображения (документ 28) */
.matveev-polish__image-wrapper {
  width: 443px;
  height: 560px;
  position: relative;
  cursor: default;
  display: flex;
  justify-content: center;
  align-items: center;
}

.matveev-polish__single-image {
  width: 443px;
  height: 560px;
  object-fit: cover;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static;
  transition: transform 0.3s ease-out !important;
}

.matveev-polish__single-image:hover {
  transform: scale(1.02);
}

.matveev-polish__caption {
  width: 100%;
  opacity: 0.8;
  text-align: center;
  color: #d4bb8b;
  font-size: 12px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-polish__text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.matveev-polish__quote {
  color: #e3d8c3;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-polish__description {
  color: #e3d8c3;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Карточки "За Русским царством" и "За Речью Посполитой" */
.matveev-polish__cards {
  width: 100%;
  display: flex;
  gap: 16px;
}

.matveev-polish__card {
  flex: 1;
  padding: 64px;
  background: #421616;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.matveev-polish__card-title {
  width: 100%;
  text-align: center;
  color: #d4bb8b;
  font-size: 40px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 44px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-polish__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.matveev-polish__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.matveev-polish__bullet {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.matveev-polish__bullet::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 8px;
  top: 8px;
  background: #d4bb8b;
  border-radius: 50%;
}

.matveev-polish__list-text {
  flex: 1;
  color: #e3d8c3;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Общие положения */
.matveev-polish__general-list {
  width: 632px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Блок цитаты */
.matveev-polish__quote-block {
  width: 100%;
  padding: 89px 80px 64px;
  background: #421616;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.matveev-polish__quote-text {
  width: 100%;
  color: #e3d8c3;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-polish__quote-ornament {
  position: absolute;
  top: -24.28px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 48px;
  object-fit: contain;
}

/* Адаптив для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .matveev-politics {
    padding: 80px 40px 120px;
  }

  .matveev-politics__container {
    gap: 120px;
  }

  .matveev-politics__title {
    font-size: 80px;
    line-height: 96px;
  }

  .matveev-politics__row {
    flex-direction: column;
    gap: 80px;
    align-items: center;
  }

  .matveev-politics__text-block {
    width: 100%;
    max-width: 688px;
  }

  .matveev-politics__quote,
  .matveev-politics__description {
    width: 100%;
  }

  .matveev-politics__book {
    width: 524px;
    align-items: center;
  }

  .matveev-politics__quote-block {
    padding: 89px 40px 64px;
  }

  .matveev-politics__final-row {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-politics__final-quote {
    width: 100%;
  }

  .matveev-politics__list-item {
    width: 100%;
  }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .matveev-politics {
    padding: 40px 16px 64px;
  }

  .matveev-politics__container {
    gap: 64px;
  }

  .matveev-politics__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-politics__row {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-politics__text-block {
    width: 100%;
  }

  .matveev-politics__quote {
    width: 100%;
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-politics__description {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-politics__book {
    width: 100%;
    max-width: 343px;
    align-items: center;
  }

  .matveev-politics__single-image {
    width: 203px;
    height: 319px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .matveev-politics__quote-block {
    padding: 56px 16px 40px;
  }

  .matveev-politics__quote-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-politics__quote-ornament {
    width: 32px;
    height: 29.54px;
    top: -14.77px;
  }

  .matveev-politics__final-row {
    flex-direction: column;
    gap: 24px;
  }

  .matveev-politics__final-quote {
    width: 100%;
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-politics__list {
    gap: 16px;
  }

  .matveev-politics__list-item {
    width: 100%;
  }

  .matveev-politics__list-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  /* Адаптив для matveev-polish на планшетах */
  .matveev-polish {
    padding: 80px 40px 120px;
  }

  .matveev-polish__container {
    gap: 80px;
  }

  .matveev-polish__title {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-polish__row {
    flex-direction: column;
    gap: 60px;
  }

  .matveev-polish__row--reverse {
    flex-direction: column;
  }

  .matveev-polish__book {
    width: 100%;
    max-width: 524px;
  }

  .matveev-polish__text-block {
    width: 100%;
  }

  .matveev-polish__cards {
    flex-direction: column;
    gap: 16px;
  }

  .matveev-polish__card {
    padding: 48px 40px;
  }

  .matveev-polish__card-title {
    font-size: 32px;
    line-height: 38px;
  }

  .matveev-polish__general-list {
    width: 100%;
  }

  .matveev-polish__book-wrapper {
    width: 205.49px;
    height: 319.01px;
  }

  .matveev-polish__book-main {
    width: 191.64px;
    height: 306.11px;
  }

  .matveev-polish__book-shadow {
    width: 191.64px;
    height: 306.11px;
    left: 13.85px;
    top: 12.9px;
  }

  .matveev-polish__book-wrapper--single {
    width: 244.67px;
    height: 319.01px;
  }

  .matveev-polish__book-wrapper--single .matveev-polish__book-main {
    width: 244.67px;
    height: 319.01px;
  }

  .matveev-polish__image-wrapper {
    width: 294.5px;
    height: 372.21px;
  }

  .matveev-polish__single-image {
    width: 294.5px;
    height: 372.21px;
  }

  .matveev-polish__quote-block {
    padding: 64px 40px 48px;
  }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .matveev-politics {
    padding: 40px 16px 64px;
  }

  .matveev-politics__container {
    gap: 64px;
  }

  .matveev-politics__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-politics__row {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-politics__text-block {
    width: 100%;
  }

  .matveev-politics__quote {
    width: 100%;
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-politics__description {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-politics__book {
    width: 100%;
    max-width: 343px;
    align-items: center;
  }

  .matveev-politics__single-image {
    width: 203px;
    height: 319px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .matveev-politics__quote-block {
    padding: 56px 16px 40px;
  }

  .matveev-politics__quote-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-politics__quote-ornament {
    width: 32px;
    height: 29.54px;
    top: -14.77px;
  }

  .matveev-politics__final-row {
    flex-direction: column;
    gap: 24px;
  }

  .matveev-politics__final-quote {
    width: 100%;
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-politics__list {
    gap: 16px;
  }

  .matveev-politics__list-item {
    width: 100%;
  }

  .matveev-politics__list-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  /* Адаптив для matveev-polish на мобильных */
  .matveev-polish {
    padding: 40px 16px 64px;
  }

  .matveev-polish__container {
    gap: 64px;
  }

  .matveev-polish__title {
    font-size: 32px;
    line-height: 40px;
  }

  .matveev-polish__row {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-polish__row--reverse {
    flex-direction: column;
  }

  .matveev-polish__book {
    width: 100%;
    max-width: 343px;
  }

  .matveev-polish__book-wrapper {
    width: 205.49px;
    height: 319.01px;
  }

  .matveev-polish__book-main {
    width: 191.64px;
    height: 306.11px;
  }

  .matveev-polish__book-shadow {
    width: 191.64px;
    height: 306.11px;
    left: 13.85px;
    top: 12.9px;
  }

  .matveev-polish__book-wrapper--single {
    width: 244.67px;
    height: 319.01px;
  }

  .matveev-polish__book-wrapper--single .matveev-polish__book-main {
    width: 244.67px;
    height: 319.01px;
  }

  .matveev-polish__image-wrapper {
    width: 294.5px;
    height: 372.21px;
  }

  .matveev-polish__single-image {
    width: 294.5px;
    height: 372.21px;
  }

  .matveev-polish__caption {
    font-size: 11px;
    line-height: 15.4px;
  }

  .matveev-polish__text-block {
    gap: 24px;
  }

  .matveev-polish__quote {
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-polish__description {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-polish__cards {
    flex-direction: column;
    gap: 16px;
  }

  .matveev-polish__card {
    padding: 32px 16px;
  }

  .matveev-polish__card-title {
    font-size: 24px;
    line-height: 30px;
  }

  .matveev-polish__list {
    gap: 12px;
  }

  .matveev-polish__list-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-polish__general-list {
    width: 100%;
  }

  .matveev-polish__quote-block {
    padding: 40px 16px 32px;
  }

  .matveev-polish__quote-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-polish__quote-ornament {
    width: 40px;
    height: 37px;
    top: -18.5px;
  }
}

/* ===== Frame 8: На самой вершине ===== */

.matveev-top {
  width: 100%;
  padding: 160px 80px;
  background: #f6f4ee;
  display: flex;
  justify-content: center;
}

.matveev-top__container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.matveev-top__title {
  width: 100%;
  max-width: 1064px;
  text-align: center;
  color: #210706;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
}

/* Ряды с контентом */
.matveev-top__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 56px;
}

.matveev-top__row--center {
  justify-content: space-between;
  align-items: center;
}

.matveev-top__year-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.matveev-top__year {
  color: #d4bb8b;
  font-size: 120px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 144px;
  word-wrap: break-word;
}

.matveev-top__text {
  width: 524px;
  color: #210706;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-top__description {
  width: 632px;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
}

.matveev-top__quote {
  width: 632px;
  color: #210706;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

/* Блок с документами */
.matveev-top__documents {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.matveev-top__document {
  width: 100%;
  padding: 64px;
  background: #fbfbf8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.matveev-top__document-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.matveev-top__book {
  flex: 1;
  padding-left: 64px;
  padding-right: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.matveev-top__book-wrapper {
  width: 361px;
  height: 560px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.matveev-top__book-main {
  width: 336.75px;
  height: 537.97px;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-top__book-shadow {
  width: 336.75px;
  height: 537.97px;
  position: absolute;
  left: 24.25px;
  top: 18.46px;
  z-index: 1;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-top__book-hidden {
  display: none;
}

/* Эффект раздвижения при наведении */
.matveev-top__book:hover .matveev-top__book-main {
  transform: rotate(-7deg);
  transition: all 0.4s ease;
}

.matveev-top__book:hover .matveev-top__book-shadow {
  transform: rotate(7deg);
  transition: all 0.4s ease;
}

.matveev-top__book-shadow,
.matveev-top__book-main {
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Лупа */
.matveev-top__zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.6);
  border-radius: 40px;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.matveev-top__book-wrapper:hover .matveev-top__zoom-icon {
  opacity: 1;
}

/* Скрыть лупу в модалке */
.matveev-modal .matveev-top__zoom-icon {
  display: none !important;
}

.matveev-modal__images .matveev-top__zoom-icon {
  display: none !important;
}

/* Одиночное изображение */
.matveev-top__single-image {
  width: 224px;
  height: 557.61px;
  object-fit: cover;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static;
  transition: transform 0.3s ease-out !important;
}

.matveev-top__single-image:hover {
  transform: scale(1.02);
}

.matveev-top__caption {
  width: 100%;
  opacity: 0.8;
  text-align: center;
  color: #50403f;
  font-size: 12px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Текстовый блок */
.matveev-top__text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.matveev-top__date {
  text-align: center;
  color: #d4bb8b;
  font-size: 40px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 44px;
  word-wrap: break-word;
}

.matveev-top__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.matveev-top__subtitle {
  color: #210706;
  font-size: 48px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 52.8px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-top__text-description {
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Финальная секция */
.matveev-top__final-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.matveev-top__intro-text {
  width: 848px;
  max-width: 100%;
  text-align: center;
  color: #50403f;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Блок цитаты */
.matveev-top__quote-block {
  width: 100%;
  padding: 89px 80px 64px;
  background: white;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.matveev-top__quote-text {
  width: 100%;
  color: #68738b;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-top__quote-ornament {
  position: absolute;
  top: -24.28px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 48px;
  object-fit: contain;
}

/* Адаптив для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .matveev-top {
    padding: 80px 40px 120px;
  }

  .matveev-top__container {
    gap: 80px;
  }

  .matveev-top__title {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-top__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .matveev-top__row--center {
    align-items: flex-start;
  }

  .matveev-top__year {
    font-size: 80px;
    line-height: 96px;
  }

  .matveev-top__text,
  .matveev-top__description,
  .matveev-top__quote {
    width: 100%;
  }

  .matveev-top__document {
    padding: 48px 40px;
  }

  .matveev-top__document-content {
    flex-direction: column;
    gap: 60px;
  }

  .matveev-top__book {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .matveev-top__text-block {
    width: 100%;
  }

  .matveev-top__quote-block {
    padding: 64px 40px 48px;
  }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .matveev-top {
    padding: 40px 16px 64px;
  }

  .matveev-top__container {
    gap: 64px;
  }

  .matveev-top__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-top__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .matveev-top__row--center {
    align-items: flex-start;
  }

  .matveev-top__year {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-top__text {
    width: 100%;
    font-size: 18px;
    line-height: 27px;
  }

  .matveev-top__description,
  .matveev-top__quote {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-top__documents {
    gap: 16px;
  }

  .matveev-top__document {
    padding: 32px 16px;
  }

  .matveev-top__document-content {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-top__book {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .matveev-top__book-wrapper {
    width: 240px;
    height: 372.21px;
  }

  .matveev-top__book-main {
    width: 223.83px;
    height: 357.48px;
  }

  .matveev-top__book-shadow {
    width: 223.83px;
    height: 357.48px;
    left: 16.17px;
    top: 12.9px;
  }

  .matveev-top__single-image {
    width: 149px;
    height: 370.75px;
  }

  .matveev-top__caption {
    font-size: 11px;
    line-height: 15.4px;
  }

  .matveev-top__text-block {
    width: 100%;
    gap: 40px;
  }

  .matveev-top__date {
    font-size: 32px;
    line-height: 38px;
  }

  .matveev-top__content {
    gap: 24px;
  }

  .matveev-top__subtitle {
    font-size: 32px;
    line-height: 38.4px;
  }

  .matveev-top__text-description {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-top__final-section {
    gap: 40px;
  }

  .matveev-top__intro-text {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-top__quote-block {
    padding: 40px 16px 32px;
  }

  .matveev-top__quote-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-top__quote-ornament {
    width: 40px;
    height: 37px;
    top: -18.5px;
  }
}

/* Frame 9: Опала */
.matveev-disgrace {
  width: 100%;
  padding: 160px 80px 120px;
  background: #5a1d1d;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
}

.matveev-disgrace__container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.matveev-disgrace__title {
  width: 100%;
  max-width: 1064px;
  text-align: center;
  color: #e3d8c3;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-disgrace__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
}

.matveev-disgrace__quote {
  width: 632px;
  color: #e3d8c3;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-disgrace__description {
  width: 524px;
  color: #e3d8c3;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-disgrace__content-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}

.matveev-disgrace__content-row--reverse {
  flex-direction: row-reverse;
}

.matveev-disgrace__text-column {
  width: 632px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
}

.matveev-disgrace__year-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

.matveev-disgrace__year {
  color: #d0b27a;
  font-size: 120px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 144px;
  word-wrap: break-word;
}

/* Документы */
.matveev-disgrace__book {
  width: 524px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

.matveev-disgrace__book--tall {
  width: 524px;
}

.matveev-disgrace__book-wrapper {
  width: 309px;
  height: 480px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.matveev-disgrace__book-wrapper--tall {
  width: 309px;
  height: 480px;
}

.matveev-disgrace__book-main {
  width: 288.46px;
  height: 460.82px;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-disgrace__book-main--tall {
  width: 288.46px;
  height: 460.82px;
}

.matveev-disgrace__book-shadow {
  width: 288.46px;
  height: 460.82px;
  position: absolute;
  left: 20.77px;
  top: 18.46px;
  z-index: 1;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
}

.matveev-disgrace__book-shadow--tall {
  width: 288.46px;
  height: 460.82px;
}

.matveev-disgrace__book-hidden {
  display: none;
}

/* Эффект раздвижения при наведении */
.matveev-disgrace__book:hover .matveev-disgrace__book-main {
  transform: rotate(-7deg);
  transition: all 0.4s ease;
}

.matveev-disgrace__book:hover .matveev-disgrace__book-shadow {
  transform: rotate(7deg);
  transition: all 0.4s ease;
}

.matveev-disgrace__book-shadow,
.matveev-disgrace__book-main {
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Лупа */
.matveev-disgrace__zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  padding: 16px;
  background: rgba(208, 178, 122, 0.6);
  border-radius: 40px;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.matveev-disgrace__book-wrapper:hover .matveev-disgrace__zoom-icon {
  opacity: 1;
}

/* Скрыть лупу в модалке */
.matveev-modal .matveev-disgrace__zoom-icon {
  display: none !important;
}

.matveev-modal__images .matveev-disgrace__zoom-icon {
  display: none !important;
}

.matveev-disgrace__caption {
  width: 100%;
  opacity: 0.8;
  text-align: center;
  color: #d4bb8b;
  font-size: 12px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Адаптив для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .matveev-disgrace {
    padding: 80px 40px;
  }

  .matveev-disgrace__container {
    gap: 80px;
  }

  .matveev-disgrace__title {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-disgrace__row {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-disgrace__quote,
  .matveev-disgrace__description {
    width: 100%;
  }

  .matveev-disgrace__content-row {
    flex-direction: column;
    gap: 60px;
  }

  .matveev-disgrace__content-row--reverse {
    flex-direction: column;
  }

  .matveev-disgrace__text-column {
    width: 100%;
  }

  .matveev-disgrace__book {
    width: 100%;
    align-items: center;
  }

  .matveev-disgrace__book--tall {
    width: 100%;
  }

  .matveev-disgrace__year {
    font-size: 80px;
    line-height: 96px;
  }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .matveev-disgrace {
    padding: 40px 16px 64px;
    gap: 64px;
  }

  .matveev-disgrace__container {
    gap: 64px;
  }

  .matveev-disgrace__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-disgrace__row {
    flex-direction: column;
    gap: 32px;
  }

  .matveev-disgrace__quote {
    width: 100%;
    font-size: 20px;
    line-height: 30px;
  }

  .matveev-disgrace__description {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-disgrace__content-row {
    flex-direction: column;
    gap: 48px;
  }

  .matveev-disgrace__content-row--reverse {
    flex-direction: column;
  }

  .matveev-disgrace__text-column {
    width: 100%;
    gap: 32px;
  }

  .matveev-disgrace__year-block {
    gap: 16px;
  }

  .matveev-disgrace__year {
    font-size: 64px;
    line-height: 76.8px;
  }

  .matveev-disgrace__book {
    width: 100%;
    align-items: center;
  }

  .matveev-disgrace__book--tall {
    width: 100%;
  }

  .matveev-disgrace__book-wrapper {
    width: 247px;
    height: 384px;
  }

  .matveev-disgrace__book-wrapper--tall {
    width: 247px;
    height: 384px;
  }

  .matveev-disgrace__book-main {
    width: 230.77px;
    height: 368.66px;
  }

  .matveev-disgrace__book-main--tall {
    width: 230.77px;
    height: 368.66px;
  }

  .matveev-disgrace__book-shadow {
    width: 230.77px;
    height: 368.66px;
    left: 16.62px;
    top: 14.77px;
  }

  .matveev-disgrace__book-shadow--tall {
    width: 230.77px;
    height: 368.66px;
  }

  .matveev-disgrace__zoom-icon {
    width: 56px;
    height: 56px;
    padding: 12px;
  }

  .matveev-disgrace__caption {
    font-size: 10px;
    line-height: 14px;
  }
}

/* ================================
   Секция: Трагичная смерть
   ================================ */

.matveev-death {
  width: 100%;
  padding: 120px 80px 160px;
  background: #5a1d1d;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 120px;
}

.matveev-death__container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.matveev-death__title {
  width: 1064px;
  text-align: center;
  color: #e3d8c3;
  font-size: 80px;
  font-family: "TriodPostnaja", serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-death__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.matveev-death__row--text {
  align-items: flex-start;
}

.matveev-death__text-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.matveev-death__quote {
  width: 632px;
  color: #e3d8c3;
  font-size: 26px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 39px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-death__description {
  width: 632px;
  color: #e3d8c3;
  font-size: 18px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
  margin: 0;
}

.matveev-death__image-block {
  width: 524px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

.matveev-death__image {
  width: 100%;
  height: 412.47px;
  border: 3px solid #d4bb8b;
  object-fit: cover;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static;
  transition: transform 0.3s ease-out !important;
}

.matveev-death__image:hover {
  transform: scale(1.02);
}

.matveev-death__caption {
  width: 100%;
  opacity: 0.8;
  text-align: center;
  color: #d4bb8b;
  font-size: 12px;
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  word-wrap: break-word;
  margin: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .matveev-death {
    padding: 80px 40px;
  }

  .matveev-death__container {
    gap: 80px;
  }

  .matveev-death__title {
    width: 100%;
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-death__row {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-death__text-column {
    width: 100%;
  }

  .matveev-death__quote,
  .matveev-death__description {
    width: 100%;
  }

  .matveev-death__image-block {
    width: 100%;
  }

  .matveev-death__image {
    width: 100%;
    height: auto;
    max-height: 500px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .matveev-death {
    padding: 60px 20px;
  }

  .matveev-death__container {
    gap: 60px;
  }

  .matveev-death__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-death__row {
    gap: 32px;
  }

  .matveev-death__quote {
    font-size: 20px;
    line-height: 30px;
  }

  .matveev-death__description {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-death__caption {
    font-size: 10px;
    line-height: 14px;
  }
}

/* ========================================
   Секция: Наследие Артамона Матвеева
   ======================================== */

.matveev-heritage {
  padding: 160px 80px 120px;
  background: #f6f4ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.matveev-heritage__container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.matveev-heritage__header {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.matveev-heritage__title {
  width: 100%;
  max-width: 1064px;
  margin: 0 auto;
  text-align: center;
  color: #210706;
  font-size: 80px;
  font-family: 'TriodPostnaja', serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
}

.matveev-heritage__subtitle {
  width: 100%;
  max-width: 1064px;
  margin: 0 auto;
  text-align: center;
  color: #210706;
  font-size: 48px;
  font-family: 'TriodPostnaja', serif;
  font-weight: 500;
  line-height: 52.8px;
  word-wrap: break-word;
}

.matveev-heritage__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 108px;
}

.matveev-heritage__text-large {
  width: 524px;
  color: #210706;
  font-size: 26px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 39px;
}

.matveev-heritage__text-large p {
  margin: 0;
}

.matveev-heritage__text-small {
  width: 632px;
  color: #50403f;
  font-size: 18px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 28.8px;
}

.matveev-heritage__text-small p {
  margin: 0;
}

/* ========================================
   Секция: Западничество
   ======================================== */

.matveev-westernism {
  padding: 120px 80px;
  background: #f6f4ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.matveev-westernism__container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.matveev-westernism__title {
  width: 100%;
  max-width: 1064px;
  margin: 0 auto;
  text-align: center;
  color: #210706;
  font-size: 80px;
  font-family: 'TriodPostnaja', serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
}

.matveev-westernism__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 108px;
}

.matveev-westernism__text-large {
  width: 524px;
  color: #210706;
  font-size: 26px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 39px;
}

.matveev-westernism__text-large p {
  margin: 0;
}

.matveev-westernism__text-small {
  width: 632px;
  color: #50403f;
  font-size: 18px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 28.8px;
}

.matveev-westernism__text-small p {
  margin: 0;
  margin-bottom: 16px;
}

.matveev-westernism__text-small p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Адаптация: Наследие Артамона Матвеева
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .matveev-heritage {
    padding: 80px 40px;
  }

  .matveev-heritage__container {
    gap: 80px;
  }

  .matveev-heritage__header {
    gap: 48px;
  }

  .matveev-heritage__title {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-heritage__subtitle {
    font-size: 36px;
    line-height: 40px;
  }

  .matveev-heritage__content {
    flex-direction: column;
    gap: 32px;
  }

  .matveev-heritage__text-large {
    width: 100%;
    font-size: 22px;
    line-height: 33px;
  }

  .matveev-heritage__text-small {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .matveev-heritage {
    padding: 60px 20px;
  }

  .matveev-heritage__container {
    gap: 60px;
  }

  .matveev-heritage__header {
    gap: 32px;
  }

  .matveev-heritage__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-heritage__subtitle {
    font-size: 28px;
    line-height: 32px;
  }

  .matveev-heritage__content {
    gap: 24px;
  }

  .matveev-heritage__text-large {
    font-size: 20px;
    line-height: 30px;
  }

  .matveev-heritage__text-small {
    font-size: 14px;
    line-height: 22.4px;
  }
}

/* ========================================
   Адаптация: Западничество
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .matveev-westernism {
    padding: 80px 40px;
  }

  .matveev-westernism__container {
    gap: 80px;
  }

  .matveev-westernism__title {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-westernism__content {
    flex-direction: column;
    gap: 32px;
  }

  .matveev-westernism__text-large {
    width: 100%;
    font-size: 22px;
    line-height: 33px;
  }

  .matveev-westernism__text-small {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .matveev-westernism {
    padding: 60px 20px;
  }

  .matveev-westernism__container {
    gap: 60px;
  }

  .matveev-westernism__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-westernism__content {
    gap: 24px;
  }

  .matveev-westernism__text-large {
    font-size: 20px;
    line-height: 30px;
  }

  .matveev-westernism__text-small {
    font-size: 14px;
    line-height: 22.4px;
  }

  .matveev-westernism__text-small p {
    margin-bottom: 12px;
  }
}

/* ========================================
   Секция: Память
   ======================================== */

.matveev-memory {
  padding: 120px 80px;
  background: #f6f4ee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.matveev-memory__container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.matveev-memory__title {
  width: 100%;
  max-width: 1064px;
  margin: 0 auto;
  text-align: center;
  color: #210706;
  font-size: 80px;
  font-family: 'TriodPostnaja', serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
}

/* Блок 1: Портрет + текст */
.matveev-memory__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 108px;
}

.matveev-memory__image-block {
  width: 524px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.matveev-memory__image-wrapper {
  padding: 16px;
  outline: 1px solid #d4bb8b;
  outline-offset: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.matveev-memory__image {
  width: 100%;
  height: auto;
  display: block !important;
  opacity: 1 !important;
  position: static;
  transition: transform 0.3s ease-out !important;
}

.matveev-memory__image:hover {
  transform: scale(1.02);
}

.matveev-memory__text {
  align-self: center;
  width: 632px;
  color: #210706;
  font-size: 26px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 39px;
}

.matveev-memory__text p {
  margin: 0;
}

/* Блоки 2 и 3: Текст сверху + изображения */
.matveev-memory__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.matveev-memory__text-center {
  width: 100%;
  max-width: 848px;
  margin: 0;
  text-align: center;
  color: #210706;
  font-size: 26px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 39px;
}

.matveev-memory__image-full {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.matveev-memory__image-full img {
  width: 100%;
  height: auto;
  display: block !important;
  opacity: 1 !important;
  position: static;
  transition: transform 0.3s ease-out !important;
}

.matveev-memory__image-full img:hover {
  transform: scale(1.02);
}

.matveev-memory__images-double {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.matveev-memory__image-item {
  flex: 1;
  display: flex;
}

.matveev-memory__image-item img {
  width: 100%;
  height: auto;
  display: block !important;
  opacity: 1 !important;
  position: static;
  object-fit: cover;
  transition: transform 0.3s ease-out !important;
}

.matveev-memory__image-item img:hover {
  transform: scale(1.02);
}

.matveev-memory__caption {
  width: 100%;
  max-width: 848px;
  margin: 0 auto;
  opacity: 0.8;
  text-align: center;
  color: #50403f;
  font-size: 12px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 16.8px;
}

/* ========================================
   Адаптация: Память
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .matveev-memory {
    padding: 80px 40px;
  }

  .matveev-memory__container {
    gap: 80px;
  }

  .matveev-memory__title {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-memory__row {
    flex-direction: column;
    gap: 40px;
  }

  .matveev-memory__image-block {
    width: 100%;
  }

  .matveev-memory__text {
    width: 100%;
    font-size: 22px;
    line-height: 33px;
  }

  .matveev-memory__block {
    gap: 60px;
  }

  .matveev-memory__text-center {
    font-size: 22px;
    line-height: 33px;
  }

  .matveev-memory__images-double {
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .matveev-memory {
    padding: 60px 20px;
  }

  .matveev-memory__container {
    gap: 60px;
  }

  .matveev-memory__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-memory__row {
    gap: 32px;
  }

  .matveev-memory__image-wrapper {
    padding: 12px;
  }

  .matveev-memory__text {
    font-size: 20px;
    line-height: 30px;
  }

  .matveev-memory__block {
    gap: 40px;
  }

  .matveev-memory__text-center {
    font-size: 20px;
    line-height: 30px;
  }

  .matveev-memory__image-full {
    gap: 16px;
  }

  .matveev-memory__images-double {
    flex-direction: column;
    gap: 16px;
  }

  .matveev-memory__caption {
    font-size: 10px;
    line-height: 14px;
  }
}

/* ========================================
   Секция: Каким запомнили Артамона Матвеева современники
   ======================================== */

.matveev-remembered {
  padding: 120px 80px 160px;
  background: #f6f4ee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.matveev-remembered__container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.matveev-remembered__title {
  width: 100%;
  max-width: 1064px;
  margin: 0 auto;
  text-align: center;
  color: #210706;
  font-size: 80px;
  font-family: 'TriodPostnaja', serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
}

/* Белая карточка с цитатами */
.matveev-remembered__card {
  position: relative;
  padding: 89px 80px 64px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.matveev-remembered__icon {
  width: 52px;
  height: 48px;
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  display: block;
}

.matveev-remembered__quote {
  margin: 0;
  color: #68738b;
  font-size: 18px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
}

/* Два текстовых блока */
.matveev-remembered__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 108px;
}

.matveev-remembered__text-large {
  width: 524px;
  color: #210706;
  font-size: 26px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 39px;
}

.matveev-remembered__text-large p {
  margin: 0;
}

.matveev-remembered__text-small {
  width: 632px;
  color: #50403f;
  font-size: 18px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 28.8px;
}

.matveev-remembered__text-small p {
  margin: 0;
}

/* ========================================
   Адаптация: Каким запомнили
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .matveev-remembered {
    padding: 80px 40px 120px;
  }

  .matveev-remembered__container {
    gap: 80px;
  }

  .matveev-remembered__title {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-remembered__card {
    padding: 64px 40px 48px;
  }

  .matveev-remembered__quote {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-remembered__content {
    flex-direction: column;
    gap: 32px;
  }

  .matveev-remembered__text-large {
    width: 100%;
    font-size: 22px;
    line-height: 33px;
  }

  .matveev-remembered__text-small {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .matveev-remembered {
    padding: 60px 20px 100px;
  }

  .matveev-remembered__container {
    gap: 60px;
  }

  .matveev-remembered__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-remembered__card {
    padding: 48px 20px 32px;
  }

  .matveev-remembered__icon {
    width: 40px;
    height: 36px;
    top: -18px;
  }

  .matveev-remembered__quote {
    font-size: 14px;
    line-height: 22.4px;
  }

  .matveev-remembered__content {
    gap: 24px;
  }

  .matveev-remembered__text-large {
    font-size: 20px;
    line-height: 30px;
  }

  .matveev-remembered__text-small {
    font-size: 14px;
    line-height: 22.4px;
  }
}

/* ========================================
   Секция: Память в стихах
   ======================================== */

.matveev-poetry {
  padding: 160px 80px 0;
  background: #5a1d1d;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.matveev-poetry__container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.matveev-poetry__title {
  width: 100%;
  max-width: 1064px;
  margin: 0 auto;
  text-align: center;
  color: #e3d8c3;
  font-size: 80px;
  font-family: 'TriodPostnaja', serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
}

/* Два текстовых блока */
.matveev-poetry__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 108px;
}

.matveev-poetry__text-large {
  width: 524px;
  color: #e3d8c3;
  font-size: 26px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 39px;
}

.matveev-poetry__text-large p {
  margin: 0;
}

.matveev-poetry__text-small {
  width: 632px;
  color: #e3d8c3;
  font-size: 18px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 28.8px;
}

.matveev-poetry__text-small p {
  margin: 0;
}

/* Темная карточка со стихотворением */
.matveev-poetry__card {
  position: relative;
  padding: 89px 80px 64px;
  background: #421616;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.matveev-poetry__icon {
  width: 52px;
  height: 48px;
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  display: block;
}

.matveev-poetry__poem {
  margin: 0;
  text-align: center;
  color: #e3d8c3;
  font-size: 18px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
}

/* ========================================
   Адаптация: Память в стихах
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .matveev-poetry {
    padding: 120px 40px 0;
  }

  .matveev-poetry__container {
    gap: 80px;
  }

  .matveev-poetry__title {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-poetry__content {
    flex-direction: column;
    gap: 32px;
  }

  .matveev-poetry__text-large {
    width: 100%;
    font-size: 22px;
    line-height: 33px;
  }

  .matveev-poetry__text-small {
    width: 100%;
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-poetry__card {
    padding: 64px 40px 48px;
  }

  .matveev-poetry__poem {
    font-size: 16px;
    line-height: 25.6px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .matveev-poetry {
    padding: 100px 20px 0;
  }

  .matveev-poetry__container {
    gap: 60px;
  }

  .matveev-poetry__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-poetry__content {
    gap: 24px;
  }

  .matveev-poetry__text-large {
    font-size: 20px;
    line-height: 30px;
  }

  .matveev-poetry__text-small {
    font-size: 14px;
    line-height: 22.4px;
  }

  .matveev-poetry__card {
    padding: 48px 20px 32px;
  }

  .matveev-poetry__icon {
    width: 40px;
    height: 36px;
    top: -18px;
  }

  .matveev-poetry__poem {
    font-size: 14px;
    line-height: 22.4px;
  }
}

/* ========================================
   Секция: Список источников
   ======================================== */

.matveev-sources {
  padding: 120px 80px 160px;
  background: #5a1d1d;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.matveev-sources__container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.matveev-sources__title {
  width: 100%;
  max-width: 1064px;
  margin: 0 auto;
  text-align: center;
  color: #e3d8c3;
  font-size: 80px;
  font-family: 'TriodPostnaja', serif;
  font-weight: 500;
  line-height: 96px;
  word-wrap: break-word;
}

.matveev-sources__content {
  width: 100%;
  max-width: 848px;
  margin: 0 auto;
}

.matveev-sources__content ol {
  margin: 0;
  padding-left: 25px;
  color: #e3d8c3;
  font-size: 18px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  line-height: 28.8px;
  word-wrap: break-word;
}

.matveev-sources__content li {
  margin-bottom: 16px;
}

.matveev-sources__content li:last-child {
  margin-bottom: 0;
}

/* ========================================
   Адаптация: Список источников
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .matveev-sources {
    padding: 80px 40px 120px;
  }

  .matveev-sources__container {
    gap: 80px;
  }

  .matveev-sources__title {
    font-size: 60px;
    line-height: 72px;
  }

  .matveev-sources__content ol {
    font-size: 16px;
    line-height: 25.6px;
  }

  .matveev-sources__content li {
    margin-bottom: 12px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .matveev-sources {
    padding: 60px 20px 100px;
  }

  .matveev-sources__container {
    gap: 60px;
  }

  .matveev-sources__title {
    font-size: 40px;
    line-height: 48px;
  }

  .matveev-sources__content ol {
    font-size: 14px;
    line-height: 22.4px;
    padding-left: 20px;
  }

  .matveev-sources__content li {
    margin-bottom: 10px;
  }
}

/* Стиль мобильного меню для страницы Матвеева */
@media (max-width: 991px) {
  .mobmenu {
    background: #5a1d1d;
  }
}