/* Раздел мест: place/templates/place/*. */
.plc { padding-top: 8px; padding-bottom: 32px; }
.plc__h1 { font-size: 30px; font-weight: 800; color: #111827; margin: 0 0 18px; line-height: 1.2; }
.plc__lead { font-size: 16px; color: #4b5563; max-width: 820px; margin: -6px 0 22px; line-height: 1.6; }

.plc-section { margin-bottom: 36px; }
.plc-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.plc-section__title { font-size: 22px; font-weight: 700; color: #111827; margin: 0; }
.plc-section__all { font-size: 14px; font-weight: 600; color: #cf3425; text-decoration: none; white-space: nowrap; }

.plc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.plc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
            overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.plc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17, 24, 39, .08); color: inherit; }
.plc-card__img { position: relative; display: block; aspect-ratio: 16 / 10; background: #f3f4f6; overflow: hidden; }
.plc-card__img > img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; display: block; }
.plc-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
                   background: linear-gradient(135deg, #eef2f7, #e2e8f0); }
.plc-card__noimg img { width: 32px; height: 32px; opacity: .45; }
.plc-card__type { position: absolute; left: 10px; top: 10px; z-index: 1; max-width: calc(100% - 20px); padding: 3px 10px;
                  border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 600; color: #374151;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.plc-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.plc-card__name { font-size: 16px; font-weight: 700; color: #111827; }
.plc-card__text { font-size: 13px; color: #6b7280; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3;
                  -webkit-box-orient: vertical; overflow: hidden; }
.plc-card__tours { margin-top: auto; font-size: 13px; font-weight: 600; color: #047857; }

.plc-detail__head { margin-bottom: 14px; }
.plc-detail__type { display: block; font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }
.plc-detail .plc__h1 { margin-bottom: 0; }
.plc-gallery { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 22px; background: #f3f4f6; }
.plc-gallery img { width: 100%; height: clamp(240px, 52vw, 520px); object-fit: cover; display: block; }
.plc-gallery__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px;
                    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 26px; line-height: 1;
                    color: #111827; cursor: pointer; }
.plc-gallery__btn--prev { left: 12px; }
.plc-gallery__btn--next { right: 12px; }
.plc-gallery__dots { position: absolute; left: 0; right: 0; bottom: 10px !important; z-index: 2; text-align: center; }
.plc-gallery__dots .swiper-pagination-bullet { background: #fff; opacity: .6; }
.plc-gallery__dots .swiper-pagination-bullet-active { opacity: 1; }

.plc-credit { margin: -16px 0 18px; font-size: 12px; color: #9ca3af; }
.plc-credit a { color: inherit; text-decoration: underline; }
.plc-detail__body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.plc-detail__text { font-size: 16px; line-height: 1.7; color: #1f2937; }
.plc-detail__text p { margin: 0 0 14px; }
.plc-detail__side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.plc-map, .plc-side-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
                           padding: 0 16px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.plc-map { background: #1e3a5f; color: #fff; }
.plc-map:hover { background: #172e4b; color: #fff; }
.plc-map img { filter: brightness(0) invert(1); }
.plc-side-link { border: 1px solid #d1d5db; color: #111827; }

.plc-articles { padding-top: 0; }
.plc-articles__list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.plc-articles__list a { color: #1d4ed8; font-weight: 600; text-decoration: none; }

.plc-faq__list { display: grid; gap: 10px; margin-top: 14px; max-width: 900px; }
.plc-faq__item { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 0 16px; }
.plc-faq__item summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: #111827; list-style: none;
                         display: flex; justify-content: space-between; gap: 12px; }
.plc-faq__item summary::-webkit-details-marker { display: none; }
.plc-faq__item summary::after { content: '+'; font-size: 20px; line-height: 1; color: #6b7280; }
.plc-faq__item[open] summary::after { content: '−'; }
.plc-faq__answer { padding: 0 0 14px; color: #374151; line-height: 1.6; }
.plc-faq__answer p:last-child { margin-bottom: 0; }

@media (max-width: 1100px) { .plc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .plc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .plc-detail__body { grid-template-columns: 1fr; gap: 16px; }
  .plc-detail__side { position: static; order: -1; flex-direction: row; }
  .plc-detail__side > * { flex: 1; }
}
@media (max-width: 520px) {
  .plc__h1 { font-size: 24px; }
  .plc__lead { font-size: 15px; }
  .plc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plc-card { border-radius: 12px; }
  .plc-card__type { left: 6px; top: 6px; max-width: calc(100% - 12px); padding: 2px 8px; font-size: 11px; }
  .plc-card__body { gap: 4px; padding: 8px 10px 10px; }
  .plc-card__name { font-size: 14px; line-height: 1.3; }
  .plc-card__text { font-size: 12px; -webkit-line-clamp: 2; }
  .plc-card__tours { font-size: 12px; }
  .plc-section__title { font-size: 19px; }
  .plc-detail__side { flex-direction: column; }
}
