/* =================== services-crosslinks.css =================== */
/* Services pages and PDP/blog cross-link blocks. */

.services-hero,
.service-detail-hero {
  padding: 28px 0 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #f8f4ec 100%);
}

.services-hero__grid,
.service-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 18px;
}

.services-hero__copy,
.service-detail-hero__copy {
  display: grid;
  align-content: center;
  gap: 16px;
  min-width: 0;
  padding: 34px;
  border: 1px solid rgba(141, 109, 71, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px -44px rgba(26, 23, 20, 0.28);
}

.services-hero__title,
.service-detail-hero__title {
  margin: 0;
  color: var(--hc-ink, #1a1714);
  font-family: var(--hc-serif, Georgia, serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.02;
}

.services-hero__text,
.service-detail-hero__text,
.service-card__text {
  margin: 0;
  color: rgba(26, 23, 20, 0.68);
  font-size: 16px;
  line-height: 1.55;
}

.services-hero__actions,
.service-detail-hero__actions,
.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.services-hero__img,
.service-detail-hero__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(141, 109, 71, 0.22);
  background: #f8f4ec;
  box-shadow: 0 24px 60px -44px rgba(26, 23, 20, 0.28);
  filter: saturate(1.18) contrast(1.1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(141, 109, 71, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px -34px rgba(26, 23, 20, 0.24);
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
  transform: translateZ(0);
}
/* premium hover: lift + warm glow (diz-grade) */
.service-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 155, 96, 0.14), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(141, 109, 71, 0.30);
  box-shadow: 0 30px 56px -32px rgba(26, 23, 20, 0.36);
  background: linear-gradient(180deg, #fff, #faf7f1);
}
.service-card:hover::before { opacity: 1; transform: translateY(0); }

.service-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #f5efe5;
}
/* animated icon badge on the media corner */
.service-card__iconbadge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--hc-accent, #8b7355);
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(141, 109, 71, 0.18);
  box-shadow: 0 8px 22px -14px rgba(26, 23, 20, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.26s ease, background 0.26s ease;
}
.service-card:hover .service-card__iconbadge {
  transform: translateY(-2px) scale(1.06);
  background: #fffdf8;
}

.service-card__img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
  padding: 0;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.04);
}

.service-card__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.service-card__eyebrow,
.pdp-service-card__eyebrow,
.pdp-blog-card__eyebrow {
  color: #8d6d47;
  font-family: var(--hc-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card__title {
  margin: 0;
  font-family: var(--hc-serif, Georgia, serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.service-card__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-card__steps span {
  padding: 6px 9px;
  border: 1px solid rgba(141, 109, 71, 0.16);
  border-radius: 999px;
  background: #fbf7ef;
  color: rgba(26, 23, 20, 0.68);
  font-size: 12px;
}

.service-card__products {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(141, 109, 71, 0.18);
}

.service-card__product {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.service-card__product img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: #fbf7ef;
}

.service-card__product span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-detail {
  display: grid;
  gap: 28px;
}

.service-detail__article {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.service-detail__body {
  color: rgba(26, 23, 20, 0.72);
  font-size: 19px;
  line-height: 1.65;
}

.service-detail__steps,
.pdp-service-links__grid,
.pdp-blog-links__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-detail__step,
.pdp-service-card,
.pdp-blog-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(141, 109, 71, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px -32px rgba(26, 23, 20, 0.24);
  color: inherit;
  text-decoration: none;
}

.service-detail__step span {
  color: #8d6d47;
  font-family: var(--hc-mono, monospace);
  letter-spacing: 0.12em;
}

.pdp-service-card__img,
.pdp-blog-card__img {
  display: block;
  width: 100%;
  height: 186px;
  min-height: 186px;
  max-height: 186px;
  object-fit: cover;
  border-radius: 10px;
  background: #f8f4ec;
  overflow: hidden;
}

.pdp-service-card__title,
.pdp-blog-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-family: var(--hc-serif, Georgia, serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.pdp-service-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  color: rgba(26, 23, 20, 0.66);
  font-size: 14px;
  line-height: 1.45;
}

.pdp-tag-products__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .services-hero__grid,
  .service-detail-hero__grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .pdp-tag-products__grid,
  .pdp-service-links__grid,
  .pdp-blog-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .services-hero__copy,
  .service-detail-hero__copy {
    padding: 22px;
  }

  .services-hero__title,
  .service-detail-hero__title {
    font-size: 34px;
  }

  .services-hero__img,
  .service-detail-hero__img {
    min-height: 220px;
  }

  .service-card,
  .service-card__products,
  .service-detail__steps,
  .pdp-tag-products__grid,
  .pdp-service-links__grid,
  .pdp-blog-links__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── External service card (онлайн-раскрой → cut.holzcom-mebel.ru) ─── */
.service-card--external {
  position: relative;
  border-color: rgba(201, 169, 97, 0.5);
  box-shadow: 0 2px 6px rgba(40, 30, 15, 0.05), 0 26px 50px -30px rgba(184, 154, 111, 0.45);
}
.service-card--external:hover {
  border-color: rgba(201, 169, 97, 0.78);
  transform: translateY(-4px);
}
.service-card__ext-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4b896, #b89a6f);
  color: #2a2018;
  font: 600 10.5px/1 var(--hc-sans, "Outfit", sans-serif);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(184, 154, 111, 0.7);
}
.service-card__ext-badge::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M21 3l-9 9M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M21 3l-9 9M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E") center/contain no-repeat;
}
a.service-card__ext-cta {
  background: linear-gradient(135deg, var(--hc-accent-dark, #5d4d3a), #2a2018);
  color: #fff;
  border-color: transparent;
}
a.service-card__ext-cta:hover {
  background: linear-gradient(135deg, #6b5944, #1f1813);
}
