/* LOST — content pages redesign (/actions, /meropriyatiya, /about, /quest_v_podarok) */

.lost-content-page {
  margin-bottom: var(--lost-space-section);
}

/* --------- Actions --------- */
body.lost-actions-page .lost-actions .action-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lost-space-5);
}
@media (min-width: 768px) {
  body.lost-actions-page .lost-actions .action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  body.lost-actions-page .lost-actions .action-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
body.lost-actions-page .lost-actions .action-item {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(36, 24, 42, 0.98), rgba(27, 18, 33, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
body.lost-actions-page .lost-actions .action-item .left_column {
  width: 100%;
}
body.lost-actions-page .lost-actions .action-item .preview_picture {
  display: block;
  width: 100% !important;
  height: 210px !important;
  float: none !important;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
body.lost-actions-page .lost-actions .action-item .preview_picture.lazy:not(.loaded):not(.lazyloaded) {
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.04);
}
body.lost-actions-page .lost-actions .action-item .preview_picture.loaded,
body.lost-actions-page .lost-actions .action-item .preview_picture.lazyloaded {
  opacity: 1;
}
body.lost-actions-page .lost-actions .action-item .right_column {
  padding: 18px;
}
body.lost-actions-page .lost-actions .action-item .name {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 700;
}
body.lost-actions-page .lost-actions .action-item .preview_text {
  color: rgba(236, 230, 246, 0.86);
  line-height: 1.6;
  cursor: pointer;
}
body.lost-actions-page .lost-actions .action-item .read_more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0 !important;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e23a4b, #d12b3c) !important;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

/* --------- Meropriyatiya --------- */
body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-list {
  display: grid;
  gap: var(--lost-space-5);
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-list__pager {
  grid-column: 1 / -1;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: var(--lost-space-5);
  margin: 0;
  padding: var(--lost-space-4);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(36, 24, 42, 0.98), rgba(27, 18, 33, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

@media (max-width: 900px) {
  body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card {
    grid-template-columns: 1fr;
  }
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__media {
  position: relative;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #1d1422;
  cursor: pointer;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card:hover .lost-merop-card__img {
  transform: scale(1.02);
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card.is-loading .lost-merop-card__img {
  opacity: 0;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__media.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: lost-content-shimmer 1.25s infinite;
  pointer-events: none;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 0;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__excerpt {
  flex: 1;
  color: rgba(236, 230, 246, 0.86);
  line-height: 1.65;
  font-size: 15px;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__excerpt p {
  margin: 0 0 10px;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__cta {
  align-self: flex-start;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(209, 43, 60, 0.28);
}

/* --------- About + Gift --------- */
body.lost-about-page .lost-about .text_block,
body.lost-gift-page .lost-gift .text_block {
  display: grid;
  gap: var(--lost-space-6);
}
body.lost-about-page .lost-about .text-item,
body.lost-gift-page .lost-gift .text-item {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: var(--lost-space-5);
  margin: 0 !important;
  padding: var(--lost-space-4);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 19, 34, 0.98), rgba(21, 14, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.lost-about-page .lost-about .text-item.left,
body.lost-about-page .lost-about .text-item.right,
body.lost-gift-page .lost-gift .text-item.left,
body.lost-gift-page .lost-gift .text-item.right {
  flex-direction: row !important;
}
body.lost-about-page .lost-about .text-item .text_deck_wrap,
body.lost-gift-page .lost-gift .text-item .text_deck_wrap {
  margin: 0 !important;
}
@media (max-width: 900px) {
  body.lost-about-page .lost-about .text-item,
  body.lost-gift-page .lost-gift .text-item {
    grid-template-columns: 1fr;
  }
}
body.lost-about-page .lost-about .photo_img,
body.lost-gift-page .lost-gift .photo_img {
  width: 100%;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  min-width: 0 !important;
  flex: 0 0 auto;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.lost-about-page .lost-about .text_deck_wrap,
body.lost-gift-page .lost-gift .text_deck_wrap {
  min-width: 0;
}
body.lost-about-page .lost-about .label,
body.lost-gift-page .lost-gift .label {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.2;
  font-weight: 700;
}
body.lost-about-page .lost-about .decription_text,
body.lost-gift-page .lost-gift .decription_text {
  color: rgba(236, 230, 246, 0.88);
  font-size: 16px;
  line-height: 1.72;
}
body.lost-about-page .lost-about .decription_text p,
body.lost-gift-page .lost-gift .decription_text p {
  margin: 0 0 12px;
}
body.lost-gift-page .lost-gift .btn_row {
  margin-top: var(--lost-space-6);
  min-height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: linear-gradient(180deg, #e23a4b, #d12b3c);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__title a {
  color: inherit;
  text-decoration: none;
}
body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__title a:hover {
  color: #ffb4bc;
}
body.lost-meropriyatiya-page .lost-meropriyatiya .lost-merop-card__cta {
  text-decoration: none;
}
body.lost-actions-page .lost-actions .action-item .name a {
  color: inherit;
  text-decoration: none;
}
body.lost-actions-page .lost-actions .action-item .name a:hover {
  color: #ffb4bc;
}
body.lost-actions-page .lost-actions .action-item .read_more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0 !important;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e23a4b, #d12b3c) !important;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

/* --------- Detail pages (акции / мероприятия) --------- */
.lost-detail-page {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 64px;
  font-family: var(--lost-font-family);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* крошки + H1 в одной колонке с картинкой/текстом */
.lost-detail-page > .lost-page-head,
.lost-detail-page .lost-page-head.lost-container {
  width: 100%;
  max-width: none;
  /* как на /contacts/: отступ крошек от шапки */
  margin-top: clamp(16px, 2.5vw, 28px);
  margin-bottom: clamp(28px, 4vw, 40px);
  margin-inline: 0;
  padding-inline: 0;
}

.lost-detail-page .lost-page-breadcrumb {
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.lost-detail-page .lost-page-breadcrumb a {
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.15s ease;
}

.lost-detail-page .lost-page-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.88);
}

.lost-detail-page .lost-page-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.28);
}

.lost-detail-page .lost-page-breadcrumb__current {
  color: rgba(255, 255, 255, 0.72);
}

/* title/breadcrumb typography — shared .lost-page-head in internal.css */

.lost-detail {
  display: grid;
  gap: 32px;
  max-width: none;
  margin: 0;
}

.lost-detail__media {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 12, 24, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.lost-detail__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 560px);
  object-fit: cover;
}

.lost-detail__body {
  max-width: 42rem;
  color: rgba(236, 232, 244, 0.88);
  font-size: clamp(17px, 1.45vw, 19px);
  font-weight: 400;
  letter-spacing: -0.011em;
  line-height: 1.72;
}

.lost-detail__body p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

.lost-detail__body p:last-child {
  margin-bottom: 0;
}

.lost-detail__body h2,
.lost-detail__body h3,
.lost-detail__body h4 {
  margin: 1.4em 0 0.55em;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}

.lost-detail__body h2 { font-size: 1.35em; }
.lost-detail__body h3 { font-size: 1.18em; }
.lost-detail__body h4 { font-size: 1.05em; }

.lost-detail__body strong,
.lost-detail__body b {
  color: #fff;
  font-weight: 650;
}

.lost-detail__body ul,
.lost-detail__body ol {
  margin: 0 0 1.15em;
  padding-left: 1.15em;
}

.lost-detail__body li {
  margin-bottom: 0.45em;
  padding-left: 0.15em;
}

.lost-detail__body li::marker {
  color: rgba(226, 58, 75, 0.9);
}

.lost-detail__body a {
  color: #ff9aa5;
  text-decoration: underline;
  text-decoration-color: rgba(255, 154, 165, 0.35);
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.lost-detail__body a:hover {
  color: #ffc0c7;
  text-decoration-color: rgba(255, 192, 199, 0.7);
}

.lost-detail__footer {
  padding-top: 8px;
}

.lost-detail__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lost-detail__back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

body.lost-actions-page .lost-actions.is-detail,
body.lost-meropriyatiya-page .lost-meropriyatiya.is-detail {
  max-width: none;
}


@keyframes lost-content-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --------- Legal text pages (/privacy-policy, /rules) --------- */
body.lost-legal-page .breadcrumb,
body.lost-legal-page .main_title {
  display: none !important;
}

/* Только контентный враппер (.lost-container.lost-legal-page), не body —
   класс lost-legal-page вешается и на body (header.php), и max-width на body
   обрезал футер по ширине контейнера. */
.lost-container.lost-legal-page {
  max-width: min(var(--lost-container-max, 1300px), 100%);
  margin: 0 auto 72px;
  font-family: var(--lost-font-family);
}

.lost-container.lost-legal-page > .lost-page-head,
.lost-container.lost-legal-page .lost-page-head.lost-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.lost-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

@media (min-width: 980px) {
  .lost-legal {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
  }
}

.lost-legal__toc {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(36, 24, 42, 0.92), rgba(22, 14, 28, 0.96));
}

@media (min-width: 980px) {
  .lost-legal__toc {
    position: sticky;
    top: calc(var(--lost-header-h, 72px) + 16px);
  }
}

.lost-legal__toc-title {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lost-legal__toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lost-legal__toc-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.lost-legal__toc-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.lost-legal__toc-num {
  flex: 0 0 auto;
  min-width: 1.4em;
  color: rgba(226, 58, 75, 0.95);
  font-weight: 700;
}

.lost-legal__content {
  min-width: 0;
  max-width: 46rem;
}

.lost-legal__section {
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  scroll-margin-top: calc(var(--lost-header-h, 72px) + 20px);
}

.lost-legal__heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lost-legal__heading span {
  color: #e23a4b;
}

.lost-legal__subheading {
  margin: 18px 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.lost-legal__content p {
  margin: 0 0 0.95em;
  color: rgba(236, 232, 244, 0.86);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  text-wrap: pretty;
}

.lost-legal__content p:last-child {
  margin-bottom: 0;
}

.lost-legal__list {
  margin: 0 0 0.2em;
  padding: 0 0 0 1.1em;
  color: rgba(236, 232, 244, 0.86);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
}

.lost-legal__list li {
  margin-bottom: 0.45em;
}

.lost-legal__list li::marker {
  color: rgba(226, 58, 75, 0.9);
}

.lost-legal__defs {
  display: grid;
  gap: 10px;
  margin: 0;
}

.lost-legal__def {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lost-legal__def dt {
  margin: 0 0 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.lost-legal__def dd {
  margin: 0;
  color: rgba(236, 232, 244, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.lost-legal__contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(209, 43, 60, 0.12);
  border: 1px solid rgba(209, 43, 60, 0.28);
}

.lost-legal__contact-link {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lost-legal__contact-link:hover {
  color: #ff9aa5;
}

.lost-legal__contact-btn {
  margin-left: auto;
}

.lost-legal__content a:not([class]) {
  color: #ff9aa5;
  text-decoration: underline;
  text-decoration-color: rgba(255, 154, 165, 0.35);
  text-underline-offset: 0.18em;
}

.lost-legal__content a:not([class]):hover {
  color: #ffc0c7;
}

.lost-legal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .lost-legal__toc-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .lost-legal__contact-btn {
    margin-left: 0;
    width: 100%;
  }
}

