/* ========================= */
/* RESET */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================= */
/* BÖYÜK REKLAM */
/* ========================= */

.poster {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 30px 6% 35px;
}

.advertising {
  width: 100%;
  max-width: 1550px;
}

.advertising img {
  width: 100%;
  height: 480px;

  display: block;

  object-fit: cover;

  border-radius: 22px;
}

/* ========================= */
/* LOGIN */
/* ========================= */

.input {
  background: #f5f7fa;
  border-radius: 15px;
  padding: 0 40px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.input {
  display: flex;
  justify-content: center;
  align-items: center;

  background: #f4f6f9;
}

.login-box {
  width: 100%;
  max-width: 450px;
}

.login-box h1 {
  font-size: 32px;
  font-weight: 700;

  color: #0f172a;

  margin-bottom: 10px;
}

.subtitle {
  color: #64748b;

  margin-bottom: 30px;
}

.login-box label {
  display: block;

  margin-bottom: 8px;
  margin-top: 15px;

  font-weight: 600;

  color: #0f172a;
}

.login-box input {
  width: 100%;

  padding: 14px;

  border-radius: 10px;

  border: 1px solid #cbd5e1;

  font-size: 15px;

  outline: none;

  margin-bottom: 10px;
}

.login-box input:focus {
  border-color: #3b82f6;
}

/* ========================= */
/* BUTTONS */
/* ========================= */

.btn-primary {
  width: 100%;

  padding: 14px;

  margin-top: 25px;

  border: none;

  border-radius: 12px;

  font-size: 16px;
  font-weight: 600;

  color: white;

  background: linear-gradient(to right, #2563eb, #06b6d4);

  cursor: pointer;
}

.btn-secondary {
  width: 100%;

  padding: 14px;

  margin-top: 15px;

  border: none;

  border-radius: 12px;

  font-size: 16px;
  font-weight: 600;

  background: #e2e8f0;

  color: #334155;

  cursor: pointer;
}

/* ========================= */
/* ÜSTÜNLÜKLƏR */
/* ========================= */

.benefits-section {
  width: 88%;

  margin: 0 auto;

  min-height: 108px;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  align-items: center;

  background: #ffffff;

  border: 1px solid #dbe5f2;

  border-radius: 20px;

  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);

  padding: 18px 35px;
}

/* ========================= */
/* HƏR BİR ÜSTÜNLÜK */
/* ========================= */

.benefit-item {
  min-height: 54px;

  display: flex;

  align-items: center;

  padding: 0 28px;

  border-right: 1px solid #dbe5f2;
}

.benefit-item:last-child {
  border-right: none;
}

/* ========================= */
/* ÜSTÜNLÜK İKONLARI */
/* ========================= */

.benefit-icon {
  width: 54px;
  height: 54px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #edf4ff;

  border-radius: 13px;

  color: #2563eb;
}

.benefit-icon svg {
  width: 27px;
  height: 27px;
}

/* ========================= */
/* ÜSTÜNLÜK MƏTNLƏRİ */
/* ========================= */

.benefit-text {
  margin-left: 17px;
}

.benefit-text h3 {
  margin: 0 0 5px;

  color: #08265c;

  font-size: 15px;

  font-weight: 500;

  line-height: 1.2;
}

.benefit-text p {
  margin: 0;

  color: #6680a3;

  font-size: 12px;

  line-height: 1.3;
}

/* ========================= */
/* ÜSTÜNLÜK HOVER */
/* ========================= */

.benefit-item:hover .benefit-icon {
  background: #e5f9fc;

  color: #06b6d4;
}

/* ========================= */
/* MƏHSUL KATEQORİYALARI */
/* ========================= */

.categories-section {
  width: 100%;

  padding: 70px 6% 55px;
}

/* ========================= */
/* KATEQORİYA HEADER */
/* ========================= */

.categories-header {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  margin-bottom: 35px;
}

.categories-label {
  display: block;

  margin-bottom: 12px;

  color: #2563eb;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 2px;
}

.categories-header h2 {
  margin: 0;

  color: #08265c;

  font-size: 36px;

  font-weight: 500;
}

/* ========================= */
/* HAMISINA BAX */
/* ========================= */

.view-all {
  display: flex;

  align-items: center;

  gap: 10px;

  color: #2563eb;

  font-size: 15px;

  font-weight: 500;

  text-decoration: none;

  transition: 0.25s;
}

.view-all span {
  font-size: 22px;
}

.view-all:hover {
  color: #06b6d4;

  transform: translateX(3px);
}

/* ========================= */
/* 4 KATEQORİYA */
/* ========================= */

.categories-grid {
  width: 100%;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

/* ========================= */
/* KATEQORİYA CARD */
/* ========================= */

.category-card {
  display: block;

  background: #f4f8fd;

  border-radius: 18px;

  padding: 12px;

  text-decoration: none;

  transition: 0.3s ease;

  border: 1px solid transparent;
}

.category-card:hover {
  transform: translateY(-5px);

  background: #ffffff;

  border-color: #dbeafe;

  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
}

/* ========================= */
/* KATEQORİYA ŞƏKİLİ */
/* ========================= */

.category-image {
  width: 100%;

  height: 245px;

  overflow: hidden;

  border-radius: 13px;

  background: #e9eef5;
}

.category-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: 0.4s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.04);
}

/* ========================= */
/* KATEQORİYA ALT HİSSƏ */
/* ========================= */

.category-info {
  height: 48px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 8px;
}

.category-info span {
  color: #08265c;

  font-size: 15px;

  font-weight: 500;
}

.category-info strong {
  color: #2563eb;

  font-size: 22px;

  font-weight: 400;

  transition: 0.25s;
}

.category-card:hover .category-info strong {
  color: #f97316;

  transform: translateX(3px);
}
.robot-image {
  margin: auto;
  width: 85%;
  height: 300px;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}
/* ========================= */
/* RESPONSIVE - BENEFITS */
/* ========================= */

@media (max-width: 1100px) {
  .benefits-section {
    width: calc(100% - 50px);

    padding: 18px 15px;
  }

  .benefit-item {
    padding: 0 15px;
  }

  .benefit-text {
    margin-left: 10px;
  }

  .benefit-text h3 {
    font-size: 14px;
  }

  .benefit-text p {
    font-size: 11px;
  }
}

/* ========================= */
/* RESPONSIVE - 800px */
/* ========================= */

@media (max-width: 800px) {
  .benefits-section {
    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    padding: 20px;
  }

  .benefit-item {
    border-right: none;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================= */
/* RESPONSIVE - 600px */
/* ========================= */

@media (max-width: 600px) {
  .categories-section {
    padding: 50px 5%;
  }

  .categories-header {
    align-items: flex-start;

    /* flex-direction: column; */

    gap: 15px;
  }

  .categories-header h2 {
    font-size: 28px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-image {
    height: 220px;
  }
}

/* ========================= */
/* RESPONSIVE - 500px */
/* ========================= */

@media (max-width: 500px) {
  .benefits-section {
    width: calc(100% - 30px);

    grid-template-columns: 1fr;
  }

  .benefit-item {
    padding: 10px;
  }
}
/* ========================= */
/* MƏHSULLAR */
/* ========================= */

.title {
  width: 88%;
  margin: 55px auto 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title h2 {
  margin: 0;

  color: #08265c;

  font-size: 30px;
  font-weight: 500;
}

.title a {
  color: #2563eb;

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;

  transition: 0.25s;
}

.title a:hover {
  color: #06b6d4;
}

/* MƏHSUL KARTLARI */

.allCard {
  width: 88%;

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .allCard {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .allCard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .title {
    width: 90%;

    margin-top: 40px;
  }

  .title h2 {
    font-size: 26px;
  }

  .allCard {
    width: 90%;

    grid-template-columns: 1fr;
  }
}

/* ================================= */
/* HOMEPAGE RESPONSIVE - TABLET */
/* ================================= */

@media (max-width: 1024px) {
  .poster {
    padding: 24px 4% 28px;
  }

  .advertising img {
    height: 360px;
    border-radius: 18px;
  }

  .benefits-section {
    width: 92%;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 10px;
    padding: 22px;
  }

  .benefit-item {
    border-right: none;
    padding: 8px 12px;
  }

  .categories-section {
    padding: 55px 4%;
  }

  .categories-header h2 {
    font-size: 30px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .category-image {
    height: 220px;
  }

  .robot-image {
    width: 90%;
    height: 260px;
  }

  .allCard {
    width: 92%;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .title {
    width: 92%;
  }
}

/* ================================= */
/* HOMEPAGE RESPONSIVE - MOBILE */
/* ================================= */

@media (max-width: 600px) {
  .poster {
    padding: 15px 4% 22px;
  }

  .advertising img {
    height: 162px;
    border-radius: 14px;
  }

  .benefits-section {
    width: 92%;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    border-radius: 15px;
  }

  .benefit-item {
    min-height: 65px;
    padding: 8px 5px;
  }

  .benefit-icon {
    width: 45px;
    height: 45px;
  }

  .benefit-icon svg {
    width: 23px;
    height: 23px;
  }

  .benefit-text {
    margin-left: 12px;
  }

  .benefit-text h3 {
    font-size: 14px;
  }

  .benefit-text p {
    font-size: 11px;
  }

  .categories-section {
    padding: 38px 5% 30px;
  }

  .categories-header {
    margin-bottom: 22px;
    gap: 12px;
  }

  .categories-header h2 {
    font-size: 20px;
  }

  .categories-label {
    font-size: 11px;
  }

  .view-all {
    font-size: 13px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-card {
    padding: 9px;
    border-radius: 14px;
  }

  .category-image {
    height: 210px;
  }

  .category-info {
    height: 42px;
  }

  .category-info span {
    font-size: 14px;
  }

  .robot-image {
    width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    margin: 15px auto;
  }

  .title {
    width: 90%;
    margin: 35px auto 20px;
  }

  .title h2 {
    font-size: 24px;
  }

  .title a {
    font-size: 13px;
  }

  .allCard {
    width: 90%;
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ================================= */
/* KİÇİK TELEFONLAR */
/* ================================= */

@media (max-width: 380px) {
  .advertising img {
    height: 160px;
  }

  .categories-header h2 {
    font-size: 22px;
  }

  .category-image {
    height: 180px;
  }

  .benefit-text h3 {
    font-size: 13px;
  }

  .robot-image {
    max-height: 190px;
  }
}

/* MOBİL — KARTLARIN ÖLÇÜSÜ */

@media (max-width: 600px) {
  /* Kateqoriya kartları */
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    padding: 7px;
  }

  .category-image {
    height: 115px;
  }

  .category-info {
    height: 38px;
    padding: 0 4px;
  }

  .category-info span {
    font-size: 12px;
  }

  .category-info strong {
    font-size: 17px;
  }

  /* Məhsul kartları */
  .allCard {
    width: 92%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .allCard > * {
    min-width: 0;
  }

  .allCard img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}
