* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #cbc9c9;
  font-family: Tahoma, Arial, sans-serif;
  color: #252525;
}

.page {
  width: 100%;
  min-height: auto;
  padding: 18px;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(190, 20, 30, 0.08), transparent 25%),
    radial-gradient(circle at 90% 85%, rgba(0, 0, 0, 0.06), transparent 28%),
    linear-gradient(135deg, #ffffff, #dfdede);
}

.card {
  width: min(440px, 100%);
  background: white;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
  min-height: auto;
}

.banner {
  width: 100%;
  height: 245px; 
  overflow: hidden;
  position: relative;
  border-radius: 0 0 34px 34px;
  background: #f7f7f7;
}

.banner img {
  width: 100%;
  height: 95%;
  margin-top: 25px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.logo-box {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.logo-box img {
  width: 220px;      
  width: 85%;     
  height: auto;       
  object-fit: contain;
  display: block;
  margin-top: 5%;
}


.brand-section h2 {
  margin-top: 16px;
  margin-right: 15px;
  font-size: 19px;
  font-weight: 700;
  color: #333;
}

.brand-section p {
  margin-top: 9px;
  margin-right: 25%;
  color: #777;
  font-size: 14px;
}


.about-company {
  width: calc(100% - 36px);
  margin: 12px auto 18px;
  padding: 18px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 238, 238, 0.9));
  border: 1px solid rgba(197, 22, 32, 0.12);
  border-radius: 24px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: right;
}

.about-company h3,
.services-box h3 {
  color: #ff2727;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
}

.services-box img{
  background-color: none;
  color: #fa3a3a;
  width: 25px;
  height: 25px;
}

.about-company h3::before,
.about-company h3::after,
.services-box h3::before,
.services-box h3::after {
  content: "";
  width: 55px;
  height: 1px;
  background: rgba(197, 22, 32, 0.45);
  position: absolute;
  top: 50%;
}

.about-company h3::before,
.services-box h3::before {
  right: 38px;
}

.about-company h3::after,
.services-box h3::after {
  left: 38px;
}

.about-company p {
  color: #4a4a4a;
  font-size: 14px;
  line-height: 2;
}


.services-box {
  width: calc(100% - 36px);
  margin: 0 auto 18px;
  padding: 18px 10px 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 238, 238, 0.9));
  border-radius: 24px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
}

.service-item {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-left: 1px solid #d9d9d9;
}

.service-item:last-child {
  border-left: none;
}

.service-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: invert(17%) sepia(88%) saturate(2740%) hue-rotate(343deg) brightness(83%) contrast(91%);
}

.service-item span {
  font-size: 13px;
  color: #333;
  font-weight: 700;
}

.image-slider {
  width: 100%;
  height: 265px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #ddd;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.image-slider img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.25s ease;
  border-radius: 34px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  color: white;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.slider-btn.prev {
  left: 0;
  border-radius: 0 16px 16px 0;
}

.slider-btn.next {
  right: 0;
  border-radius: 16px 0 0 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 18px;
}

.slider-dots button {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 50%;
  background: #c7c7c7;
  cursor: pointer;
}

.slider-dots button.active {
  width: 18px;
  border-radius: 20px;
  background: #c51620;
}

.social-section {
  width: calc(100% - 36px);
  margin: 18px auto 0;
  direction: rtl;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-row {
  min-height: 58px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 46px 1fr 18px;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #222;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 239, 239, 0.9));
  border-radius: 18px;
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: 0.22s ease;
}


.social-section {
  width: calc(100% - 36px);
  margin: 18px auto 0;
  direction: rtl;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-links {
  width: calc(100% - 36px);
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  direction: rtl;
}

.contact-row {
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  color: #1c1d1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid #ddd;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(0, 0, 0, 0.05);
  transition: 0.22s ease;
}

.contact-row:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95);
}

.contact-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.contact-row span {
  flex: 1;
  text-align: center;
}

.social-btn {
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  color: #1b1b1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid #ddd;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(0, 0, 0, 0.04);
  transition: 0.22s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95);
}

.social-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.social-btn span {
  flex: 1;
  text-align: center;
}

.contact-row {
  border-color: #29a9eb;
}

.contact-row.email {
  border-color: #ff2727;
}

.telegram {
  border-color: #29a9eb;
}

.whatsapp,
.bale {
  border-color: #22c55e;
}

.eitaa,
.catalog {
  border-color: #f97316;
}

.instagram {
  border-color: #ec4899;
}

.rubika {
  border-color: #14b8a6;
}

.social-grid button{
  border-color: #636cc1;
}

.address-box {
  width: calc(100% - 36px);
  margin: 16px auto 18px;
  padding: 14px 14px 16px;
  direction: rtl;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255);
}

.address-box h3 {
  display: inline-block;
  color: #ff2727;
 
  padding: 0 14px;
  font-size: 17px;
  font-weight: 800;
  margin-top: -25px;
  margin-bottom: 8px;
  position: relative;
}

.address-box p {
  color: #252525;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
  margin-bottom: 14px;
}

.map-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.map-btn {
  min-height: 46px;
  padding: 6px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: 0.22s ease;
}

.map-btn:hover {
  transform: translateY(-2px);
}

.map-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.balad {
  background: #e8ddff;
}

.neshan {
  background: #ffe1e6;
}

.google {
  background: #dcf8ea;
}


.bottom-actions {
  width: calc(100% - 36px);
  margin: 22px auto 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bottom-actions button {
  min-height: 58px;
  border: none;
  border-radius: 18px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: 0.22s ease;
}

.bottom-actions button:hover {
  transform: translateY(-3px);
}

.bottom-actions img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.bottom-actions button {
  min-height: 58px;
  border: none;
  border-radius: 18px;
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: 0.22s ease;
}

.bottom-actions button:hover {
  transform: translateY(-3px);
}

.bottom-actions img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}



.share-btn {
  width: 400px;
  background: linear-gradient(145deg, #e31f2b, hsl(356, 85%, 39%));
  box-shadow: 0 14px 30px rgba(200, 90, 95, 0.28);
}


.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(30px);
  background: #222;
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 99;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 430px) {
  .page {
    padding: 0;
  }

  .card {
    width: 100%;
    min-height: auto;
    border-radius: 0;
  }

  .banner {
    height: 220px;
    border-radius: 0 0 30px 30px;
  }

  .brand-section h1 {
    font-size: 50px;
  }

  .about-company h3::before,
  .about-company h3::after,
  .services-box h3::before,
  .services-box h3::after {
    width: 36px;
  }

  .about-company h3::before,
  .services-box h3::before {
    right: 25px;
  }

  .about-company h3::after,
  .services-box h3::after {
    left: 25px;
  }

  .services-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .service-item {
    border-left: none;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
  }

  .contact-text strong {
    font-size: 16px;
  }

  .bottom-actions {
    gap: 10px;
  }

  .bottom-actions button {
    font-size: 14px;
  }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 20px;
}

.popup-overlay.hide {
  display: none;
}

.popup-box {
  width: 350px;
  max-width: 90%;
  background: white;
  border-radius: 20px;
  padding: 28px 22px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

.popup-close {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #f1f1f1;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.popup-icon {
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: popupShow 0.35s ease;
}

.popup-icon img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
}

.popup-box h2 {
  font-size: 28px;
  color: #222;
  font-family: sans-serif;
  margin-bottom: 12px;
  line-height: 1.35;
}
.popup-box p{
  font-size: 23px;
  margin-bottom: 8px;
  padding: 5px;
}

.popup-btn {
  border: none;
   text-decoration: none;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background: #ff1f1f;
  color: white;
  padding: 13px 24px;
  border-radius: 9px;
  font-size: 15px;
  cursor: pointer;
}


/* فقط پهن‌تر شدن کارت در دسکتاپ */
@media (min-width: 700px) {
  .card {
    width: min(700px, 100%);
  }

  .page {
    padding: 40px 20px;
  }
}



/* =========================
   LAPTOP / DESKTOP FIX ONLY
========================= */
@media (min-width: 900px) {
  .page {
    padding: 45px 20px;
    align-items: center;
  }

  .card {
    width: min(900px, 100%);
  }

@media (min-width: 900px) {
  .banner {
    width: calc(100% - 70px);
    height: 360px;
    margin: 28px auto 0;
    border-radius: 28px;
    overflow: hidden;
    background: #f7f7f7;
  }

  .banner img {
    width: 100%;
    height: 100%;
    margin-top: 0;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 28px;
  }
}

  /* فاصله بین لوگو و متن آژانس */
  .logo-box {
    margin-top: 24px;
    margin-bottom: 28px;
  }

  .logo-box img {
    width: 260px;
    max-width: 70%;
    margin-top: 0;
  }

  .brand-section h2 {
    margin-top: 0;
    margin-right: 0;
    text-align: center;
  }

  .brand-section p {
    margin-right: 0;
    text-align: center;
  }

  /* درست شدن اسلایدر عکس‌ها */
  .image-slider {
    width: calc(100% - 70px);
    height: 360px;
    margin: 25px auto 0;
    border-radius: 24px;
  }

  .image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
  }

  /* وسط چین شدن دکمه اشتراک در انتهای سایت */
  .bottom-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 28px auto 32px;
  }

  .share-btn {
    width: 360px;
    max-width: 90%;
  }
}