.ccp-leaflet-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.ccp-leaflet-section h2 {
  color: #2a104c;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 14px;
  text-align: center;
}

.ccp-leaflet-section > p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto 18px;
  max-width: 760px;
  text-align: center;
}

.ccp-leaflet-actions {
  display: flex;
  justify-content: center;
  margin: 0 0 30px;
}

.ccp-leaflet-download {
  background: #b36deb;
  color: #fff;
  display: inline-flex;
  font-size: 0.95rem;
  letter-spacing: 2px;
  line-height: 1;
  padding: 15px 30px;
  text-decoration: none;
}

.ccp-leaflet-download:hover,
.ccp-leaflet-download:focus {
  background: #4f4f4f;
  color: #fff;
}

.ccp-leaflet-grid {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ccp-leaflet-card {
  appearance: none;
  background: #fff;
  border: 0;
  box-shadow: 0 16px 40px rgba(42, 16, 76, 0.14);
  color: #2a104c;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 10px;
  letter-spacing: 0;
  line-height: 1;
  padding: 10px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.ccp-leaflet-card:hover,
.ccp-leaflet-card:focus {
  box-shadow: 0 20px 48px rgba(42, 16, 76, 0.2);
  transform: translateY(-3px);
}

.ccp-leaflet-card img {
  background: #f7f3fb;
  display: block;
  height: auto;
  width: 100%;
}

.ccp-leaflet-card span {
  padding: 3px 0 2px;
}

.ccp-leaflet-modal[hidden] {
  display: none !important;
}

.ccp-leaflet-modal {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  z-index: 999999;
}

.ccp-leaflet-modal__backdrop {
  background: rgba(19, 13, 28, 0.82);
  inset: 0;
  position: absolute;
}

.ccp-leaflet-modal__panel {
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  max-height: 92vh;
  max-width: min(980px, 92vw);
  padding: 14px;
  position: relative;
  width: max-content;
}

.ccp-leaflet-modal__close {
  align-items: center;
  background: #2a104c;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 1.8rem;
  height: 44px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  z-index: 2;
}

.ccp-leaflet-modal__image {
  display: block;
  max-height: calc(92vh - 88px);
  max-width: calc(92vw - 28px);
  object-fit: contain;
  width: auto;
}

.ccp-leaflet-modal__controls {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 12px;
}

.ccp-leaflet-modal__controls button,
.ccp-leaflet-modal__controls a {
  background: #f0e5fa;
  border: 0;
  color: #2a104c;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  padding: 11px 14px;
  text-decoration: none;
}

.ccp-leaflet-modal__controls button:disabled {
  cursor: default;
  opacity: 0.38;
}

.ccp-leaflet-modal__label {
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 62px;
  text-align: center;
}

body.ccp-leaflet-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .ccp-leaflet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ccp-leaflet-section {
    padding: 0 18px;
  }

  .ccp-leaflet-grid {
    grid-template-columns: 1fr;
  }

  .ccp-leaflet-modal {
    padding: 12px;
  }

  .ccp-leaflet-modal__panel {
    padding: 10px;
  }

  .ccp-leaflet-modal__close {
    height: 40px;
    right: 10px;
    top: 10px;
    width: 40px;
  }

  .ccp-leaflet-modal__image {
    max-height: calc(92vh - 94px);
    max-width: calc(100vw - 44px);
  }

  .ccp-leaflet-modal__controls {
    flex-wrap: wrap;
  }
}
