/* /uslugi/* pages (services/_service_page): same card family as the home page
   "Witamy w DuoDental" card (welcome.css), the hours and the contact cards. */

#content .service {
  font: 15px/1.7 Arial, Helvetica, sans-serif;
  color: #444;
}
.service *, .service *::before, .service *::after { box-sizing: border-box; }

.service-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid #e3ddee;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 55%, #faf7fd);
  box-shadow: 0 1px 3px rgba(78, 47, 138, 0.08);
}
.service-card--more { grid-template-columns: minmax(0, 1fr) 200px; background: #fff; }
.service-card--no-photo { grid-template-columns: 1fr; }

/* photo with the soft lilac accent, like the welcome card */
.service-card__photo { position: relative; margin-top: 6px; }
.service-card__photo::after {
  content: "";
  position: absolute;
  inset: 12px -10px -10px 12px;
  z-index: 0;
  border-radius: 14px;
  background: #f3eefb;
}
.service-card__photo--right::after { inset: 12px 12px -10px -10px; background: #fdeef0; }
.service-card__photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}

.service-card__kicker {
  margin: 0 0 4px;
  font: bold 12px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a86bd;
}
#content .service-card__title {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  overflow: visible;
  font: normal 28px/1.2 'museo300', Arial, Helvetica, sans-serif;
  color: #ef2c42;
}
#content .service-card__title::after { content: none; }

#content .service-card__text { margin: 0 0 12px; text-indent: 0; }
#content .service-card__text:last-child { margin-bottom: 0; }

.service-card__lead {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid #f0edf5;
  text-wrap: balance;
  font: normal 17px/1.4 'museo300', Arial, Helvetica, sans-serif;
  color: #4e2f8a;
}

/* ticked list (former "-item" paragraphs), across the whole card */
.service-card__list-wrap {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid #f0edf5;
}
#content .service-card__list-title {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font: normal 18px/1.3 'museo500', Arial, Helvetica, sans-serif;
  color: #4e2f8a;
}
#content .service-card__list-title::after { content: none; }
.service-card__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 0;
  background: none;
  line-height: 1.45;
}
.service-card__tick {
  flex: 0 0 20px;
  height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3eefb;
  color: #7238b4;
}
.service-card__tick svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* closing call to action */
.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(120deg, #f3eefb, #fdeef0);
}
.service-cta p { margin: 0; text-indent: 0; }
.service-cta__note { margin-bottom: 6px !important; font-style: italic; color: #6b5a88; }
.service-cta__title { font: normal 20px/1.25 'museo500', Arial, Helvetica, sans-serif; color: #4e2f8a; }
.service-cta__sub { font-size: 14px; color: #666; }

.service-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: flex-end; }
.service-cta__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #ef2c42;
  color: #fff;
  font: bold 16px/1 Arial, Helvetica, sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(239, 44, 66, 0.25);
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.service-cta__call:hover,
.service-cta__call:focus-visible { background: #d81f35; color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239, 44, 66, 0.32); }
.service-cta__prices {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: bold 14px/1 Arial, Helvetica, sans-serif;
  color: #4e2f8a;
  white-space: nowrap;
}
.service-cta__prices:hover { color: #ef2c42; text-decoration: none; }
.service-cta svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service-cta__prices svg { width: 15px; height: 15px; stroke-width: 2.4; transition: transform .15s; }
.service-cta__prices:hover svg { transform: translateX(2px); }
.service-cta__call:focus-visible,
.service-cta__prices:focus-visible { outline: 2px solid #7238b4; outline-offset: 3px; }

@media only screen and (max-width: 1103px) {
  .service-card { grid-template-columns: 170px minmax(0, 1fr); gap: 22px; }
  .service-card--more { grid-template-columns: minmax(0, 1fr) 160px; }
}

@media only screen and (max-width: 767px) {
  .service-card,
  .service-card--more {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
    font-size: 14px;
  }
  .service-card__photo { max-width: 320px; width: 100%; margin: 0 auto 6px; }
  .service-card__photo--right { order: -1; }
  #content .service-card__title { font-size: 24px; }
  .service-card__list { grid-template-columns: 1fr; }
  .service-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .service-cta__actions { justify-content: center; }
  .service-cta__call { justify-content: center; }
}

@media print {
  .service-card { display: block; border: 0; box-shadow: none; padding: 0; background: none; }
  .service-card__photo, .service-cta { display: none; }
}
