/* ─── BASE CARD ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform 0.2s ease;
}

.card:hover {
  border-color: var(--text-dim);
  transform: translateY(-3px);
}

/* Card Photo */
.card__photo {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-section);
  flex-shrink: 0;
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__photo img { transform: scale(1.04); }

/* Card Body */
.card__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card__eyebrow { font-size: 10px; }

.card__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.card__text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card__price {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card__price span {
  color: var(--accent);
  font-size: 16px;
}

.card__footer {
  padding: 0 20px 20px;
}

/* ─── PRODUCT CARD ────────────────────────────────────────────── */
.product-card {
  border: var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition),
              box-shadow 0.3s ease,
              transform 0.3s ease;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent),
              0 0 20px rgba(224, 90, 51, 0.18),
              0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.product-card--featured {
  border-color: var(--accent);
  border-top-width: 2px;
  box-shadow: 0 0 0 1px var(--accent),
              0 0 32px rgba(224, 90, 51, 0.22),
              0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px);
}

.product-card--featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 0 1px var(--accent),
              0 0 40px rgba(224, 90, 51, 0.30),
              0 16px 48px rgba(0, 0, 0, 0.55);
}

@media (max-width: 640px) {
  .product-card--featured {
    transform: none;
    border-top-width: 2px;
  }
}

/* ─── Photo ── */
.product-card__photo {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-section);
  position: relative;
}

.product-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card__photo img { transform: scale(1.05); }

.product-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(224, 90, 51, 0.07);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.product-card:hover .product-card__photo::after { opacity: 1; }

/* ─── Badge ── */
.product-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 0;
  box-shadow: 0 4px 18px rgba(224, 90, 51, 0.5);
}

/* ─── Body ── */
.product-card__body {
  padding: 22px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.product-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* ─── Specs list ── */
.product-card__specs {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(38, 38, 38, 0.6);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.product-card:hover .spec-row { color: var(--text-gray); }

.spec-row__icon { flex-shrink: 0; }

/* ─── Footer ── */
.product-card__footer {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Price ── */
.product-card__price-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.product-card__price-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.product-card__price-value {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Actions ── */
.product-card__actions {
  display: flex;
  gap: 8px;
}
.product-card__actions .btn {
  flex: 1;
}

/* ─── SERVICE CARD ────────────────────────────────────────────── */
.service-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform 0.2s;
}

.service-card:hover {
  border-color: var(--text-dim);
  transform: translateY(-3px);
}

.service-card__photo {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-section);
  position: relative;
}

.service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card__photo img { transform: scale(1.04); }

.service-card__body {
  padding: 22px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-card__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  transition: gap var(--transition);
}
.service-card:hover .service-card__link { gap: 10px; }

/* ─── WHY CARD ────────────────────────────────────────────────── */
.why-card {
  background: var(--bg-card);
  border: none;
  border-radius: 0;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  background: #161616;
  box-shadow: inset 2px 0 0 var(--accent);
}

.why-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.why-card__head img { flex-shrink: 0; }
.why-card__head .why-card__num { margin-bottom: 0; }

.why-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 1;
  line-height: 1;
  margin-bottom: 20px;
}

.why-card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.why-card__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── PRICE LIST (ціна за видом на сторінках порід) ───────────── */
.price-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  margin-bottom: 28px;
  max-width: 440px;
}

.price-list__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.price-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.price-list__name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-gray);
}
.price-list__name small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-left: 4px;
}

.price-list__val {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.price-list__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--transition);
}
.price-list__link:hover { color: var(--text); }

/* ─── PLACEHOLDER ─────────────────────────────────────────────── */
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
}

.photo-placeholder svg { opacity: 0.25; }

.photo-placeholder__label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Shimmer effect for lazy images */
img[data-src] {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    #262626 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

img:not([data-src]) { animation: none; background: none; }

/* Fade-in after load */
.photo-wrap img { transition: opacity 0.4s ease; }
img[data-src]  { opacity: 0; }
img:not([data-src]) { opacity: 1; }

/* ─── SERVICE CARD IMG WRAP (alias) ──────────────────────────────── */
.service-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-section);
  position: relative;
  flex-shrink: 0;
}

.service-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* ─── SERVICE CARD HORIZONTAL (poslugy catalog) ──────────────── */
.service-card--horiz {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .service-card--horiz {
    grid-template-columns: 320px 1fr;
  }
  .service-card--horiz .service-card__img-wrap {
    aspect-ratio: auto;
    height: 100%;
    min-height: 260px;
  }
}

@media (min-width: 1024px) {
  .service-card--horiz {
    grid-template-columns: 420px 1fr;
  }
}

.service-card--horiz .service-card__img-wrap {
  aspect-ratio: 4/3;
}

.service-card--horiz .service-card__body {
  padding: 28px 28px 24px;
}

.service-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.service-card__features li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 4px;
}

.service-card__features li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}
