.dop-projects-section,
.dop-projects-section * {
  box-sizing: border-box;
}

.dop-projects-section {
  display: block;
  width: 100%;
  clear: both;
  position: relative;
  overflow: hidden;
  padding: 86px 20px;
  margin: 0;
  background: #f4f7fb;
  color: #071527;
  font-family: Arial, Helvetica, sans-serif;
}

.dop-projects-section a {
  text-decoration: none;
}

.dop-projects-section:before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 360px;
  height: 360px;
  border: 44px solid rgba(246, 185, 26, 0.16);
  transform: rotate(20deg);
  animation: dopProjectFloat 7s ease-in-out infinite;
  pointer-events: none;
}

.dop-projects-section:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 21, 39, 0.035) 0 25%, transparent 25% 100%),
    repeating-linear-gradient(90deg, rgba(7, 21, 39, 0.035) 0 1px, transparent 1px 92px);
  pointer-events: none;
}

.dop-projects-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.dop-projects-header {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.dop-projects-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 10px 16px;
  border-radius: 6px;
  background: #ffffff;
  color: #c8202b;
  border: 1px solid rgba(200, 32, 43, 0.28);
  box-shadow: 0 10px 28px rgba(7, 21, 39, 0.08);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.dop-projects-badge span {
  display: inline-block;
  width: 22px;
  height: 3px;
  background: #f6b91a;
}

.dop-projects-header h2 {
  display: block;
  margin: 0;
  color: #071527;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.dop-projects-header h2 strong {
  color: #c8202b;
}

.dop-projects-header p {
  display: block;
  margin: 0;
  color: #5d6b82;
  font-size: 16px;
  line-height: 1.7;
}

.dop-projects-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 34px;
  padding: 8px;
  width: fit-content;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(7, 21, 39, 0.1);
  box-shadow: 0 14px 38px rgba(7, 21, 39, 0.08);
}

.dop-projects-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #071527;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.dop-projects-tab:hover,
.dop-projects-tab.dop-active {
  transform: translateY(-2px);
  background: #071527;
  color: #ffffff;
  border-color: #071527;
}

.dop-projects-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(200, 32, 43, 0.1);
  color: #c8202b;
  font-size: 12px;
  font-weight: 900;
}

.dop-projects-tab.dop-active span {
  background: #f6b91a;
  color: #071527;
}

.dop-projects-panel {
  display: none;
}

.dop-projects-panel.dop-panel-active {
  display: block;
}

.dop-projects-list {
  display: grid;
  gap: 26px;
}

.dop-project-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  padding: 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(7, 21, 39, 0.1);
  box-shadow: 0 24px 70px rgba(7, 21, 39, 0.12);
  overflow: hidden;
}

.dop-project-gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 10px;
  min-height: 540px;
}

.dop-gallery-featured,
.dop-gallery-small {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #071527;
  min-height: 100%;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.dop-gallery-small-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

.dop-gallery-featured img,
.dop-gallery-small img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.dop-gallery-featured:after,
.dop-gallery-small:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 39, 0.02), rgba(7, 21, 39, 0.42));
  pointer-events: none;
}

.dop-gallery-featured:hover img,
.dop-gallery-small:hover img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.04);
}

.dop-gallery-placeholder {
  background:
    linear-gradient(135deg, rgba(7, 21, 39, 0.94), rgba(7, 21, 39, 0.78)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 12px);
}

.dop-placeholder-text {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.dop-image-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 7px;
  background: rgba(7, 21, 39, 0.86);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.dop-project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
}

.dop-project-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 15px;
  padding: 9px 13px;
  border-radius: 6px;
  background: rgba(246, 185, 26, 0.18);
  color: #071527;
  border: 1px solid rgba(246, 185, 26, 0.42);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dop-project-content h3 {
  display: block;
  margin: 0;
  color: #071527;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
}

.dop-project-description,
.dop-project-description p {
  display: block;
  margin: 16px 0 0;
  color: #5d6b82;
  font-size: 15.5px;
  line-height: 1.72;
}

.dop-project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.dop-project-meta div {
  display: block;
  padding: 14px;
  border-radius: 9px;
  background: #f5f7fa;
  border-left: 4px solid #c8202b;
}

.dop-project-meta strong {
  display: block;
  margin: 0;
  color: #071527;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dop-project-meta span {
  display: block;
  margin-top: 6px;
  color: #5d6b82;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.dop-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.dop-project-tags span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(7, 21, 39, 0.06);
  color: #071527;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.dop-project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 52px;
  margin-top: 28px;
  padding: 15px 24px;
  border-radius: 7px;
  background: #c8202b;
  color: #ffffff;
  border: 1px solid #c8202b;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(200, 32, 43, 0.26);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.dop-project-button:hover {
  transform: translateY(-3px);
  background: #981822;
  color: #ffffff;
  box-shadow: 0 22px 44px rgba(200, 32, 43, 0.34);
}

.dop-empty {
  padding: 34px;
  border-radius: 12px;
  background: #ffffff;
  color: #5d6b82;
  border: 1px solid rgba(7, 21, 39, 0.1);
  box-shadow: 0 14px 38px rgba(7, 21, 39, 0.08);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.dop-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(8px);
}

.dop-lightbox.dop-lightbox-open {
  display: flex;
}

.dop-lightbox-inner {
  position: relative;
  width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 14px;
  overflow: hidden;
  background: #071527;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.dop-lightbox-image {
  display: block;
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #071527;
}

.dop-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #c8202b;
  color: #ffffff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease;
}

.dop-lightbox-close:hover {
  transform: translateY(-2px);
  background: #981822;
}

.dop-reveal {
  opacity: 1;
  transform: none;
}

.dop-visible {
  animation: dopProjectShow 0.75s ease both;
}

@keyframes dopProjectShow {
  from {
    opacity: 0.01;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dopProjectFloat {
  0%, 100% {
    transform: translateY(0) rotate(20deg);
  }
  50% {
    transform: translateY(18px) rotate(26deg);
  }
}

@media only screen and (max-width: 1100px) {
  .dop-projects-header,
  .dop-project-card {
    grid-template-columns: 1fr;
  }

  .dop-projects-header h2 {
    font-size: 42px;
  }

  .dop-project-gallery {
    min-height: 500px;
  }
}

@media only screen and (max-width: 760px) {
  .dop-projects-section {
    padding: 62px 14px;
  }

  .dop-projects-header h2 {
    font-size: 34px;
  }

  .dop-projects-header p {
    font-size: 15.5px;
  }

  .dop-projects-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dop-projects-tab {
    width: 100%;
  }

  .dop-project-card {
    padding: 14px;
  }

  .dop-project-gallery {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dop-gallery-featured {
    min-height: 320px;
  }

  .dop-gallery-small-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
  }

  .dop-gallery-small {
    min-height: 120px;
  }

  .dop-project-content {
    padding: 10px;
  }

  .dop-project-content h3 {
    font-size: 27px;
  }

  .dop-project-meta {
    grid-template-columns: 1fr;
  }

  .dop-project-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dop-projects-section,
  .dop-projects-section *,
  .dop-projects-section:before,
  .dop-projects-section:after {
    animation: none !important;
    transition: none !important;
  }
}
