/**
 * Actions — як у Webflow HTML/CSS:
 * 1 рядок: широкий лівий банер (2 колонки) + 2 квадрати.
 */

.section.actions-new {
  padding: 60px 0;
  background: #f9f9f9;
}

.actions-grid {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-column-gap: 1.38889em;
  grid-row-gap: 1.38889em;
  grid-auto-columns: 1fr;
  height: auto;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

#w-node-f8de5c08-ba39-b264-e845-70c768e4fc36-ce892b4e,
.actions-grid > .actions-cell:first-child {
  grid-area: span 1 / span 2;
  aspect-ratio: auto;
}

#w-node-_7e0038e5-6247-7180-1790-e8a7721640e5-ce892b4e,
#w-node-_4a31f6f5-c365-3ca7-277c-0c247d75cfb9-ce892b4e {
  grid-area: span 1 / span 1;
}

.actions-cell {
  position: relative;
  display: block;
  border-radius: 1.38889em;
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  min-height: 0;
}

.actions-cell.is-shadow {
  aspect-ratio: 1;
  box-shadow: 0 2px 5px #0003;
}

.actions-cell .image-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.actions-cell:hover .image-cover,
.effect-zoom-hover:hover > .image-cover {
  transform: scale(1.02);
}

/* Modal */
.modal-box {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  padding: 5em 20px;
  overflow-y: auto;
}

.modal {
  background: #fff;
  border-radius: 10px;
  padding: 3em;
  max-width: 49em;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  inset: 2em 2em auto auto;
  width: 3em;
  height: 3em;
  padding: 0.5em;
  cursor: pointer;
  color: #fff;
  background-color: #c61717;
  border-radius: 0.347222em;
}

.h2-5.project_popup {
  color: #171717;
  text-transform: uppercase;
  font-size: 2.77778em;
  margin: 0 0 20px;
}

.m-text.popup-project {
  color: #383843;
  font-weight: 400;
}

.project-popup-line {
  background-color: #0003;
  height: 0.0694445em;
  margin: 30px 0;
}

.actions-img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 0.694444em;
  margin-bottom: 30px;
}

.project-info-wrapper.w-richtext {
  margin-top: 3.81944em;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.project-info-wrapper.w-richtext h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.project-info-wrapper.w-richtext p {
  margin-bottom: 12px;
}

.project-info-wrapper.w-richtext strong {
  color: #b31218;
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .section.actions-new {
    padding: 40px 0;
  }

  .actions-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
  }

  #w-node-f8de5c08-ba39-b264-e845-70c768e4fc36-ce892b4e,
  .actions-grid > .actions-cell:first-child {
    grid-column: 1 / -1;
    grid-area: auto;
    aspect-ratio: 2 / 1;
  }

  #w-node-_7e0038e5-6247-7180-1790-e8a7721640e5-ce892b4e,
  #w-node-_4a31f6f5-c365-3ca7-277c-0c247d75cfb9-ce892b4e {
    grid-area: auto;
  }

  .modal {
    padding: 30px 20px;
  }

  .h2-5.project_popup {
    font-size: 24px;
  }
}

@media screen and (max-width: 479px) {
  /* Як на leader-tools: банер на всю ширину, під ним 2 промо */
  .actions-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    grid-column-gap: 2.66667em;
    grid-row-gap: 2.66667em;
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }

  #w-node-f8de5c08-ba39-b264-e845-70c768e4fc36-ce892b4e,
  .actions-grid > .actions-cell:first-child {
    grid-column: 1 / -1;
    grid-area: auto;
    aspect-ratio: 2 / 1;
  }

  #w-node-_7e0038e5-6247-7180-1790-e8a7721640e5-ce892b4e,
  #w-node-_4a31f6f5-c365-3ca7-277c-0c247d75cfb9-ce892b4e {
    grid-area: auto;
  }

  .modal {
    padding: 20px 15px;
  }

  .h2-5.project_popup {
    font-size: 20px;
  }

  .m-text.popup-project {
    font-size: 14px;
  }
}
