/* ═══════════════════════════════════════════
   KONSALTİNQ XİDMƏTLƏRİ bölməsi
   servicedetail4.css
═══════════════════════════════════════════ */

.sd4 {
  background: #edf0f5;
  padding: 52px 0 52px;
  font-family: 'Montserrat', sans-serif;
}

.sd4-inner {
  padding: 0 52px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  column-gap: 28px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* ════════════════════════════════
   SOL SÜTUN
════════════════════════════════ */
.sd4-left-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.sd4-text-row,
.sd4-ref-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.sd4-rail {
  flex-shrink: 0;
  border-left: 2.5px solid #091929;
  padding-left: 9px;
  display: flex;
  align-items: flex-start;
}

.sd4-rail-tag {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #091929;
  white-space: nowrap;
}

.sd4-copy {
  flex: 1;
  min-width: 0;
}

.sd4-copy p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.82;
  color: #1e3347;
  margin-bottom: 14px;
  text-align: justify;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sd4-copy p:last-of-type {
  margin-bottom: 0;
}

/* ════════════════════════════════
   REFERANS İŞLƏR kartlar
════════════════════════════════ */
.sd4ref-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sd4ref-card {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sd4ref-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.sd4ref-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sd4ref-card:hover .sd4ref-img img {
  transform: scale(1.04);
}

.sd4ref-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sd4ref-title {
  font-size: 12px;
  font-weight: 700;
  color: #091929;
  line-height: 1.4;
  margin: 0 0 2px;
}

.sd4ref-row {
  font-size: 11px;
  color: #526070;
  line-height: 1.55;
  margin: 0;
}

.sd4ref-row strong {
  font-weight: 700;
  color: #091929;
}

.sd4ref-service {
  font-size: 11px;
  color: #1a6fb5;
  line-height: 1.55;
  margin: 0;
}

.sd4ref-service strong {
  font-weight: 700;
  color: #091929;
}

/* ════════════════════════════════
   SAĞ SÜTUN — 4 kart
════════════════════════════════ */
.sd4-right-col {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.sd4-right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sd4-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sd4-card-hd {
  display: flex;
  align-items: center;
}

.sd4-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #091929;
  margin: 0;
}

.sd4-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sd4-card li {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #3d5c77;
  padding-left: 13px;
  position: relative;
}

.sd4-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #091929;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .sd4 { padding: 40px 0 40px; }
  .sd4-inner {
    padding: 0 36px;
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
}

@media (max-width: 912px) {
  .sd4 { padding: 36px 0 36px; }
  .sd4-inner { padding: 0 28px; }
}

@media (max-width: 600px) {
  .sd4 { padding: 36px 0 32px; }
  .sd4-inner { padding: 0 24px 0 14px; }
  .sd4-left-col { gap: 28px; }
  .sd4-copy p { font-size: 12.5px; }
  .sd4ref-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0;
  }
  .sd4ref-grid::-webkit-scrollbar { display: none; }
  .sd4ref-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
}

@media (min-width: 431px) and (max-width: 599px) {
  .sd4-inner { padding: 0 24px 0 14px; }
}

@media (max-width: 430px) {
  .sd4-inner { padding: 0 24px 0 14px; }
}

@media (max-width: 414px) {
  .sd4-inner { padding: 0 24px 0 14px; }
}

@media (max-width: 375px) {
  .sd4-inner { padding: 0 24px 0 14px; }
}
