/* ======================================================== */
/* 7_licenses: CLEAN FULL-BLEED CERTIFICATE CARDS & LIGHTBOX*/
/* ======================================================== */

.ecoproject-licenses-section {
  background: #ffffff;
  padding: 90px 0;
  position: relative;

  --lic-green: #419b52;
  --lic-green-hover: #358343;
  --lic-bg-card: #f8fafc;
  --lic-text-dark: #0f172a;
  --lic-text-muted: #64748b;
  --lic-border: #e2e8f0;
  --lic-border-hover: rgba(65, 155, 82, 0.35);
  --lic-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --lic-transition: all 0.3s ease;
  scroll-margin-top: 80px !important;
}

.ecoproject-licenses-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.ecoproject-licenses-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ecoproject-licenses-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--lic-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.ecoproject-licenses-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--lic-text-dark);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0 0 12px 0;
}

.ecoproject-licenses-subtitle {
  max-width: 720px;
  margin: 16px auto 0 auto;
  font-size: 15px;
  color: var(--lic-text-muted);
  line-height: 1.6;
}

.ecoproject-licenses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ecoproject-license-card {
  background: var(--lic-bg-card);
  border: 1px solid var(--lic-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: var(--lic-transition);
}

.ecoproject-license-card:hover {
  border-color: var(--lic-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.ecoproject-license-img-wrap {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
}

.ecoproject-license-img-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  object-fit: fill !important;
  transition: var(--lic-transition);
}

/* ЧИСТЫЙ ЗЕЛЕНЫЙ КРЕСТИК СТРОГО ПО ЦЕНТРУ КАРТИНКИ */
.ecoproject-license-zoom-btn {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  cursor: pointer !important;
  z-index: 5 !important;
  border-radius: 50% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%, -50%) scale(0.6) !important;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s ease !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ecoproject-license-zoom-btn svg {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
}

/* ПОЯВЛЕНИЕ ПО ЦЕНТРУ ПРИ НАВЕДЕНИИ */
.ecoproject-license-img-wrap:hover .ecoproject-license-zoom-btn,
.ecoproject-license-card:hover .ecoproject-license-zoom-btn {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.ecoproject-license-zoom-btn:hover {
  background: #ffffff !important;
  transform: translate(-50%, -50%) scale(1.15) !important;
}

.ecoproject-license-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--lic-bg-card);
}

.ecoproject-license-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--lic-green);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ecoproject-license-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--lic-text-dark);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.ecoproject-license-desc {
  font-size: 13px;
  color: var(--lic-text-muted);
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.ecoproject-license-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--lic-text-dark);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--lic-transition);
}

.ecoproject-license-download-btn:hover {
  background: var(--lic-green);
  border-color: var(--lic-green);
  color: #ffffff !important;
}

/* МОДАЛЬНОЕ ОКНО LIGHTBOX */
.ecoproject-licenses-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.ecoproject-licenses-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ecoproject-licenses-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecoproject-licenses-modal-content img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ecoproject-licenses-modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  background: #419b52;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ecoproject-licenses-modal-close:hover {
  background: #358343;
  transform: scale(1.1);
}

@media (max-width: 991px) {
  .ecoproject-licenses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .ecoproject-licenses-grid {
    grid-template-columns: 1fr;
  }
}
