﻿/* Страница: Ограждения Москомархитектуры */

.pmk-page {
  color: #151515;
  background: #fff;
}

.pmk-hero {
  padding: 40px 0 28px;
  border-top: 1px solid #e8ebf0;
}

.pmk-title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
}

.pmk-lead-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pmk-lead-list li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  line-height: 1.45;
  color: #1f2937;
  font-weight: 500;
}

.pmk-lead-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.15em;
  height: 1.15em;
  background: #1e7a3a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #1e7a3a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6.2-6.2'/%3E%3C/svg%3E");
  background-size: 0.7em 0.7em;
  background-position: center;
  background-repeat: no-repeat;
}

.pmk-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pmk-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid #0374bb;
  border-radius: 30px;
  background: #fff;
  color: #0374bb;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.pmk-btn-outline:hover,
.pmk-btn-outline:focus {
  background: #0374bb;
  color: #fff;
  text-decoration: none;
}

.pmk-catalog {
  padding: 8px 0 40px;
}

.pmk-visuals {
  padding: 8px 0 30px;
}

.pmk-visuals h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.pmk-visuals__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pmk-visual {
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.pmk-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pmk-visual figcaption {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.pmk-catalog__head h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.pmk-catalog__head p {
  margin: 0 0 18px;
  color: #6b7280;
}

.pmk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pmk-card {
  margin: 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.pmk-card__media {
  position: relative;
  margin: 0 0 12px;
}

.pmk-card__slides {
  position: relative;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eef1f5;
  overflow: hidden;
}

.pmk-card__img {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: zoom-in;
}

.pmk-card__img.is-active {
  display: block;
}

.pmk-card__img:focus-visible {
  outline: 2px solid #0b5e8f;
  outline-offset: -2px;
}

.pmk-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0b5e8f;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pmk-card[data-slides="1"] .pmk-card__nav,
.pmk-card[data-slides="1"] .pmk-card__counter {
  display: none !important;
}

.pmk-card__media:hover .pmk-card__nav,
.pmk-card__media:focus-within .pmk-card__nav {
  opacity: 1;
  pointer-events: auto;
}

.pmk-card__nav--prev { left: 8px; }
.pmk-card__nav--next { right: 8px; }

.pmk-card__nav:hover {
  background: #fff;
  color: #074a72;
}

.pmk-card__counter {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pmk-card__media:hover .pmk-card__counter,
.pmk-card__media:focus-within .pmk-card__counter {
  opacity: 1;
}

@media (hover: none) {
  .pmk-card__nav,
  .pmk-card__counter {
    opacity: 1;
    pointer-events: auto;
  }
}

.pmk-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #0b5e8f;
}

.pmk-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pmk-card__list li {
  font-size: 14px;
  line-height: 1.4;
  color: #374151;
  font-variant-numeric: tabular-nums;
}

.pmk-card__list strong {
  color: #0f172a;
  font-weight: 800;
}

.pmk-about {
  padding: 28px 0 52px;
  border-top: 1px solid #e8ebf0;
}

.pmk-about h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.pmk-about p {
  margin: 0 0 12px;
  max-width: 980px;
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
}

.pmk-specs {
  padding: 4px 0 38px;
}

.pmk-specs h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.pmk-specs__table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.pmk-table {
  width: 100%;
  border-collapse: collapse;
}

.pmk-table th,
.pmk-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}

.pmk-table th {
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.pmk-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* Lightbox для чертежей */
.pmk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 18, 22, 0.88);
  cursor: zoom-out;
}

.pmk-lightbox.is-open {
  display: flex;
}

.pmk-lightbox__img {
  max-width: min(1400px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.pmk-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #151515;
  line-height: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.pmk-lightbox__close svg {
  display: block;
  flex-shrink: 0;
}

.pmk-lightbox__close:hover {
  background: #f3f4f6;
}

.pmk-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #151515;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.pmk-lightbox__nav--prev { left: 16px; }
.pmk-lightbox__nav--next { right: 16px; }

.pmk-lightbox__nav:hover {
  background: #f3f4f6;
}

.pmk-lightbox__nav[hidden] {
  display: none !important;
}

.pmk-lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmk-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.pmk-lightbox__counter[hidden] {
  display: none !important;
}

@media (max-width: 991px) {
  .pmk-title { font-size: 28px; }
  .pmk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .pmk-title { font-size: 24px; }
  .pmk-lead-list li { font-size: 15px; }
  .pmk-grid { grid-template-columns: 1fr; }
  .pmk-visuals__grid { grid-template-columns: 1fr; }
  .pmk-lightbox { padding: 12px; }
  .pmk-lightbox__img { max-height: 85vh; }
}
