/* ================== RESET ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

/* ================== XIDMET (BASE) ================== */
.xidmet {
  width: 100%;
  height: auto;
  text-align: center;
  padding: 80px 0;
}

.xidmet h1 {
  color: #071738;
  padding-bottom: 30px;
  font-weight: 700;
  letter-spacing: .2rem;
}

.xidmet .line {
  width: 150px;
  height: 3px;
  background: #071738;
  margin: auto;
}

.xidmet .cards {
  padding-top: 100px;
  width: 90%;
  margin: auto;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.xidmet .cards .card {
  border: none;
  border-radius: 5px;
  overflow: hidden;
  width: 28%;
  /* 3 sütun */
  height: 520px;
  box-shadow: rgba(0, 0, 0, .35) 0 5px 15px;
  transition: .6s ease;
  cursor: pointer;
}

.xidmet .cards .card .img {
  width: 100%;
  height: 350px;
  overflow: hidden
}

.xidmet .cards .card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s ease;
}

.xidmet .cards .card .img:hover img {
  transform: scale(1.1);
  transition: .6s ease
}

.xidmet .cards .card h3 {
  padding-top: 25px;
  font-size: 15px;
  color: #ff0000;
  letter-spacing: .1rem;
  font-weight: 600;
}

.xidmet .cards .card p {
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 10px;
  color: #071738;
}

.xidmet .cards .card a {
  text-decoration: none;
  padding: 13px 25px;
  background: #553a89;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 5px;
  display: inline-block;
}

.xidmet .cards .card a:hover {
  background: #39265d
}

.xidmet .cards .card:hover {
  transform: translateY(-10px);
  transition: .6s ease;
  box-shadow:
    rgba(0, 0, 0, .25) 0 54px 55px,
    rgba(0, 0, 0, .12) 0 -12px 30px,
    rgba(0, 0, 0, .12) 0 4px 6px,
    rgba(0, 0, 0, .17) 0 12px 13px,
    rgba(0, 0, 0, .09) 0 -3px 5px;
}

/* ================== ACCESSIBILITY ================== */
@media (prefers-reduced-motion: reduce) {

  .xidmet .cards .card,
  .xidmet .cards .card .img img {
    transition: none
  }

  .xidmet .cards .card:hover {
    transform: none
  }
}

/* ================== BREAKPOINTS ================== */

/* 1400px və aşağı — kart və şəkil hündürlüyünü bir qədər azaldır */
@media (max-width: 1400px) {
  .xidmet {
    padding: 70px 0
  }

  .xidmet .cards .card {
    height: 500px
  }

  .xidmet .cards .card .img {
    height: 330px
  }
}

/* 1200px və aşağı — 3 sütun davam, mətn ölçüləri azca kiçik */
@media (max-width: 1200px) {
  .xidmet h1 {
    letter-spacing: .15rem
  }

  .xidmet .cards {
    gap: 32px
  }

  .xidmet .cards .card {
    width: 30%;
    height: 480px
  }

  .xidmet .cards .card .img {
    height: 310px
  }

  .xidmet .cards .card p {
    font-size: 18px
  }
}

/* 992px və aşağı — 2 sütun layout */
@media (max-width: 992px) {
  .xidmet {
    padding: 60px 0
  }

  .xidmet h1 {
    font-size: 28px
  }

  .xidmet .line {
    width: 120px
  }

  .xidmet .cards {
    width: 94%;
    padding-top: 70px;
    gap: 28px;
    justify-content: center
  }

  .xidmet .cards .card {
    width: 46%;
    /* 2 sütun */
    height: 470px;
  }

  .xidmet .cards .card .img {
    height: 300px
  }

  .xidmet .cards .card h3 {
    padding-top: 18px;
    font-size: 14px
  }

  .xidmet .cards .card p {
    font-size: 17px
  }
}

/* 768px və aşağı — 1 sütun, böyük boşluqları azaldır */
@media (max-width: 768px) {
  .xidmet {
    padding: 50px 0
  }

  .xidmet h1 {
    font-size: 26px
  }

  .xidmet .line {
    width: 100px
  }

  .xidmet .cards {
    width: 92%;
    padding-top: 50px;
    gap: 22px
  }

  .xidmet .cards .card {
    width: 100%;
    /* 1 sütun */
    height: auto;
    /* kontentə görə */
  }

  .xidmet .cards .card .img {
    height: 260px
  }

  .xidmet .cards .card p {
    font-size: 16px
  }

  .xidmet .cards .card a {
    padding: 12px 22px;
    font-size: 13px
  }

  /* Toxunmalı cihazlarda hover effektini yumşalt */
  .xidmet .cards .card:hover {
    transform: translateY(-6px)
  }
}

/* 576px və aşağı — mobil üçün sıxlaşdırma və oxunaqlılıq */
@media (max-width: 576px) {
  .xidmet {
    padding: 40px 0
  }

  .xidmet h1 {
    font-size: 24px;
    letter-spacing: .1rem
  }

  .xidmet .line {
    width: 90px
  }

  .xidmet .cards {
    width: 94%;
    gap: 18px
  }

  .xidmet .cards .card .img {
    height: 220px
  }

  .xidmet .cards .card h3 {
    font-size: 13px
  }

  .xidmet .cards .card p {
    font-size: 15px
  }

  .xidmet .cards .card a {
    display: block;
    /* düymə tam sətir */
    width: 100%;
    max-width: 260px;
    margin: 0 auto 18px;
  }

  .xidmet .cards .card {
    box-shadow: rgba(0, 0, 0, .18) 0 6px 16px
  }
}

/* 380px və aşağı — ən kiçik cihazlara mikro-tuninq */
@media (max-width: 380px) {
  .xidmet h1 {
    font-size: 22px
  }

  .xidmet .cards .card .img {
    height: 200px
  }

  .xidmet .cards .card p {
    font-size: 14px
  }
}