/*
 * Промо-банери пакетів ремонту "під ключ" (BASE / FULL / PRIME).
 * Розмітку рендерить themes/default/template/promo_banner_packages.tpl,
 * дані готує create_package_banner() у admin/cfg/m_client.php.
 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Raleway:wght@300;400;500;600&display=swap');

.pkg-wrap {
  font-family: 'Raleway', sans-serif;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: 20px;
  overflow: hidden;
  min-height: 360px;
  max-width: 1200px;
  margin: 24px auto;
}

.pkg-left {
  background: #1a1714;
  padding: 34px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pkg-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a8c7e;
  font-weight: 500;
  margin-bottom: 8px;
}

.pkg-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 600;
  color: #c9b08a;
  line-height: 1;
  letter-spacing: 0.02em;
}

.pkg-tagline {
  font-size: 16px;
  font-weight: 400;
  color: #d4c8b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 12px;
}

.pkg-materials {
  font-size: 13px;
  color: #9a8c7e;
  font-weight: 300;
  font-style: italic;
  margin-top: 8px;
}

.pkg-divider {
  width: 100%;
  height: 1px;
  background: #c9b08a;
  opacity: 0.25;
  margin: 20px 0;
}

.pkg-price-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pkg-price {
  color: #d4c8b8;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.pkg-price b {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 600;
  color: #c9b08a;
  line-height: 1;
}

.pkg-term {
  font-size: 13px;
  color: #9a8c7e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pkg-term span {
  display: block;
  color: #d4c8b8;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 3px;
}

.pkg-works {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  columns: 2;
  column-gap: 28px;
  flex: 1;
}

.pkg-works li {
  font-size: 14px;
  color: #b0a394;
  font-weight: 300;
  line-height: 1.45;
  padding-left: 18px;
  margin-bottom: 7px;
  position: relative;
  break-inside: avoid;
}

.pkg-works li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9b08a;
  opacity: 0.7;
}

.pkg-gift {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(201,176,138,0.12);
  border: 1px solid rgba(201,176,138,0.55);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.pkg-gift svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.pkg-gift-text {
  font-size: 13px;
  color: #b0a394;
  line-height: 1.35;
  font-weight: 300;
}

.pkg-gift-text b {
  display: block;
  color: #c9b08a;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.pkg-cta {
  display: inline-block;
  background: #c9b08a;
  color: #1a1714;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 15px 24px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  font-family: 'Raleway', sans-serif;
  width: 100%;
  margin-top: auto;
}

.pkg-cta:hover {
  background: #d9c09a;
}

.pkg-right {
  position: relative;
  overflow: hidden;
}

.pkg-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  position: absolute;
  inset: 0;
}

.pkg-collage img:last-child {
  grid-column: 1 / span 2;
}

.pkg-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) saturate(0.9);
}

.pkg-gift-ribbon {
  position: absolute;
  top: 0;
  right: -20px;
  width: 150px;
  height: 150px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.pkg-gift-ribbon span {
  position: absolute;
  display: block;
  width: 212px;
  top: 34px;
  left: -31px;
  transform: rotate(45deg);
  background: #c9b08a;
  color: #1a1714;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.pkg-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,23,20,0.45) 0%, transparent 45%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .pkg-wrap { grid-template-columns: 1fr; max-width: 100%; }
  .pkg-left { padding: 28px 24px; }
  .pkg-name { font-size: 58px; }
  .pkg-works { columns: 1; }
  /* Колаж стає блоком знизу: зображення в природному розмірі,
     пропорції як у правій колонці на десктопі (а не сплюснуті). */
  .pkg-right { min-height: 0; }
  .pkg-collage { position: static; grid-template-rows: none; }
  .pkg-right img { height: auto; aspect-ratio: 4 / 3; }
  .pkg-collage img:last-child { aspect-ratio: 16 / 7; }
}
