/* UstaBiz — ayrıca xidmət səhifələri */

.service-detail {
  background: linear-gradient(180deg, #f5fbff 0%, #ffffff 42%, #f8fbfd 100%);
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  background: rgba(245, 251, 255, 0.94);
  border-bottom: 1px solid rgba(217, 232, 242, 0.88);
  backdrop-filter: blur(14px);
}

.detail-header__inner {
  /* Ana səhifənin header-i kimi məzmundan geniş — uzun tərcümələr sığsın. */
  max-width: 1400px;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.detail-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.detail-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--navy-900);
  background: var(--yellow-500);
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(255, 200, 61, 0.3);
}

.detail-brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.detail-brand__name {
  color: var(--navy-900);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.detail-brand__name em {
  color: var(--blue-600);
  font-style: normal;
}

.detail-brand__tagline {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.detail-header[data-scrolled] {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 22px rgba(11, 37, 69, 0.06);
}

/* Geri düyməsi hero-nun yuxarısında, səhifə yolunun üstündədir. */
.detail-back {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 8px 16px 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.detail-back:hover {
  color: var(--blue-700);
  background: var(--sky-100);
  border-color: rgba(24, 119, 201, 0.32);
}

.detail-back__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.lang--detail {
  flex: 0 0 auto;
  padding: 3px;
}

.lang--detail .lang__btn {
  min-width: 38px;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 0.78rem;
}

.detail-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

/* Rus və ingilis mətnləri azərbaycancadan uzundur — sətir qırılmasın deyə
   header-dəki bütün etiketlər bir sətirdə saxlanılır. */
.detail-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.detail-nav a:hover {
  color: var(--blue-600);
}

.detail-header__call {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 48px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--navy-950);
  background: var(--yellow-500);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(255, 200, 61, 0.28);
}

/* Yalnız ☎ işarəsi — içəridəki "Zəng et" mətni bura düşməməlidir. */
.detail-header__call > span:first-child {
  font-size: 1.15rem;
}

.detail-header__number {
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
}

.detail-header__wa {
  min-height: 48px;
  width: 48px;
  min-width: 48px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.detail-hero {
  padding: 34px 0 42px;
}

.detail-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(440px, 1.07fr);
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(217, 232, 242, 0.8);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #eaf6ff 0%, #f8fcff 58%, #ffffff 100%);
  box-shadow: var(--shadow-lg);
}

.detail-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.detail-breadcrumb a:hover {
  color: var(--blue-600);
}

.detail-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding: 8px 13px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-kicker::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow-500);
}

.detail-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.25rem, 4.6vw, 4.2rem);
  letter-spacing: -0.055em;
}

.detail-hero__lead {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.72;
}

.detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.detail-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
  color: var(--navy-900);
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.detail-hero__trust li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  font-size: 0.72rem;
}

.detail-hero__media {
  position: relative;
  min-height: 100%;
  background: var(--sky-100);
}

.detail-hero__media::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 90px;
  background: linear-gradient(90deg, rgba(248, 252, 255, 0.95), rgba(248, 252, 255, 0));
  pointer-events: none;
}

.detail-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.detail-section {
  padding: clamp(54px, 8vw, 94px) 0;
}

.detail-section--tint {
  background: linear-gradient(180deg, rgba(232, 246, 255, 0.62), rgba(248, 251, 253, 0.92));
  border-block: 1px solid rgba(217, 232, 242, 0.8);
}

.detail-section__eyebrow {
  margin-bottom: 10px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-section h2 {
  max-width: 20ch;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  letter-spacing: -0.04em;
}

.detail-section h3 {
  font-size: 1.2rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.detail-copy > p {
  max-width: 68ch;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.82;
}

.detail-copy h3 {
  margin-top: 34px;
}

.detail-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-checks li {
  position: relative;
  min-height: 62px;
  padding: 18px 18px 18px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--navy-900);
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.detail-checks li::before {
  content: '✓';
  position: absolute;
  left: 17px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  font-size: 0.72rem;
}

.detail-aside {
  position: sticky;
  top: 104px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--navy-900);
  background: var(--sand-100);
  box-shadow: var(--shadow-md);
}

.detail-aside p {
  margin-top: 12px;
  color: #53657a;
  line-height: 1.7;
}

.detail-aside .call-btn {
  width: 100%;
  justify-content: center;
  margin-top: 22px;
}

.detail-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.detail-step {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-step__number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--navy-900);
  background: var(--yellow-500);
  font-weight: 800;
}

.detail-step p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.detail-faq {
  margin-top: 26px;
  border-top: 1px solid var(--border);
}

.detail-faq details {
  border-bottom: 1px solid var(--border);
}

.detail-faq summary {
  position: relative;
  padding: 20px 38px 20px 0;
  color: var(--navy-900);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.detail-faq summary::-webkit-details-marker {
  display: none;
}

.detail-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 17px;
  color: var(--blue-600);
  font-size: 1.35rem;
}

.detail-faq details[open] summary::after {
  content: '−';
}

.detail-faq details p {
  padding: 0 38px 20px 0;
  color: var(--muted);
  line-height: 1.75;
}

.related-services {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}

.related-services h2 {
  color: var(--white);
  font-size: 1.55rem;
}

.related-services p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.related-services__list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.related-services__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.related-services__list a:hover {
  border-color: var(--yellow-500);
  color: var(--yellow-400);
}

.detail-cta {
  padding: 0 0 clamp(58px, 8vw, 94px);
}

.detail-cta__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #dff2ff, #fff2cf);
  box-shadow: var(--shadow-md);
}

.detail-cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.detail-cta p {
  max-width: 58ch;
  margin-top: 10px;
  color: var(--muted);
}

.detail-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(52px, 7vw, 76px);
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 8% 12%, rgba(41, 139, 214, 0.2), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(255, 197, 61, 0.12), transparent 24%),
    linear-gradient(135deg, #071a31 0%, #0b2d4c 100%);
}

.detail-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 61, 0.8), transparent);
}

.detail-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(350px, 1.55fr) minmax(150px, 0.72fr) minmax(210px, 0.95fr);
  align-items: start;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 46px;
}

.detail-footer__intro {
  display: grid;
  align-content: start;
  gap: 20px;
}

.detail-footer .detail-brand {
  width: fit-content;
}

.detail-footer .detail-brand__tagline {
  color: rgba(255, 255, 255, 0.56);
}

.detail-footer__summary {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.7;
}

.detail-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 48px;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.detail-footer__phone:hover {
  border-color: rgba(255, 200, 61, 0.58);
  background: rgba(255, 200, 61, 0.12);
  transform: translateY(-2px);
}

.detail-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 48px;
  margin-top: 10px;
  padding: 8px 18px 8px 9px;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: var(--whatsapp);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.detail-footer__wa:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.detail-footer__wa-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.detail-footer__phone-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--yellow-500);
  font-size: 0.86rem;
}

.detail-footer__phone strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.detail-footer__title {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-footer__list {
  display: grid;
  gap: 3px;
  font-size: 0.9rem;
}

.detail-footer__list--services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
}

.detail-footer__list a,
.detail-footer__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
}

.detail-footer__list a {
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.detail-footer__list a:hover {
  color: var(--yellow-400);
  transform: translateX(3px);
}

.detail-footer__contact-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  color: var(--yellow-400);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
}

.detail-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 15, 29, 0.25);
}

.detail-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.detail-footer__legal {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.detail-footer__home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-footer__home-link:hover {
  color: var(--yellow-400);
  border-color: rgba(255, 200, 61, 0.48);
}

/* Header naviqasiyası ən uzun tərcümədə (rus) sıxılmasın deyə burada gizlənir. */
@media (max-width: 1240px) {
  .detail-nav {
    display: none;
  }

  /* Naviqasiya gizlənəndə dil seçimi və zəng düyməsi sağa dayanır. */
  .detail-header__call {
    margin-left: 0;
  }

  .lang--detail {
    margin-left: auto;
  }
}

/* Planşet eni: header-də zəng + WhatsApp + dil sığsın deyə sıxılır. */
@media (max-width: 960px) {
  .detail-header__inner {
    gap: 12px;
  }

  .detail-brand__tagline {
    display: none;
  }
}

@media (max-width: 1040px) {
  .detail-hero__panel {
    grid-template-columns: 1fr;
  }

  .detail-hero__media {
    order: -1;
    min-height: 360px;
  }

  .detail-hero__media::after {
    inset: auto 0 0;
    width: auto;
    height: 90px;
    background: linear-gradient(0deg, rgba(234, 246, 255, 0.98), rgba(234, 246, 255, 0));
  }

  .detail-hero__media img {
    min-height: 360px;
    max-height: 480px;
  }

  .detail-layout,
  .detail-bottom-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .detail-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .detail-header,
  .detail-header__inner {
    min-height: 66px;
  }

  .detail-header__inner {
    gap: 10px;
  }

  .detail-brand__mark {
    width: 36px;
    height: 36px;
  }

  .detail-brand__tagline,
  .detail-header__number {
    display: none;
  }

  /* Dar ekranda WhatsApp aşağıdakı sabit paneldədir — header-də təkrarlanmır. */
  .detail-header__wa {
    display: none;
  }

  .detail-back {
    min-height: 40px;
    margin-bottom: 14px;
    padding: 7px 14px 7px 11px;
    font-size: 0.85rem;
  }

  .lang--detail .lang__btn {
    min-width: 32px;
    min-height: 30px;
    padding: 3px 6px;
    font-size: 0.72rem;
  }

  .detail-header__call {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .detail-hero {
    padding: 14px 0 32px;
  }

  .detail-hero__panel {
    border-radius: var(--radius-lg);
  }

  .detail-hero__media,
  .detail-hero__media img {
    min-height: 260px;
    max-height: 300px;
  }

  .detail-hero__content {
    padding: 28px 20px 32px;
  }

  .detail-breadcrumb {
    margin-bottom: 20px;
  }

  .detail-hero h1 {
    max-width: 15ch;
  }

  .detail-hero__actions .call-btn,
  .detail-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .detail-checks,
  .detail-steps {
    grid-template-columns: 1fr;
  }

  .detail-cta__panel {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-cta .call-btn {
    justify-content: center;
  }

  .detail-footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 34px;
  }

  .detail-footer__summary {
    max-width: 42ch;
  }

  .detail-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-block: 16px calc(98px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  /* Geri, dil və zəng düymələri sığsın deyə loqonun mətni gizlənir. */
  .detail-brand__copy {
    display: none;
  }
}

@media (max-width: 420px) {
  .detail-brand__name {
    font-size: 1.12rem;
  }

  .detail-header__call > span:first-child {
    display: none;
  }
}
