/* /juodasis-penktadienis/ – the campaign page (templates/bf26-landing.php). Loaded only there (inc/bf26-offers.php, part D).
   Dark stage with the brand's tan as gold; everything below the offers returns to the site's light surfaces.
   Tokens come from style.css (:root); the page's own ones are scoped to .bf. */

.bf {
  --bf-bg: #0A0E0C;
  --bf-panel: #121815;
  --bf-line: rgba(255, 255, 255, 0.1);
  --bf-gold: var(--tan-200, #E1C49B);
  --bf-gold-deep: var(--tan-400, #CA9B5E);
  --bf-text: rgba(255, 255, 255, 0.76);
  --bf-gold-text: linear-gradient(100deg, #F3E2C4 0%, #D9B27C 45%, #F0DAB5 100%);
}
.bf [id] { scroll-margin-top: 96px; }

/* ── shared bits ─────────────────────────────────────────── */
.bf-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bf-gold);
}
.bf-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--bf-gold-deep); flex: none; }
.bf-eyebrow--dark { color: var(--tan-600, #7E5F39); }
.bf-h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 32px; color: var(--fg-strong); }

.bf-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px;
  border-radius: 12px; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.bf-btn--gold { background: linear-gradient(180deg, #EBD3AB 0%, #CFA468 100%); color: #1B1408 !important; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 28px rgba(202, 155, 94, 0.18); }
.bf-btn--gold:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 16px 36px rgba(202, 155, 94, 0.34); }
.bf-btn--gold:active { transform: translateY(0); }
.bf-btn--gold::after { content: "→"; font-family: var(--font-sans); font-weight: 600; transition: transform .18s ease; }
.bf-btn--gold:hover::after { transform: translateX(3px); }
.bf-btn--dark { background: #0F1512; color: #fff !important; width: max-content; max-width: 100%; margin: 28px auto 0; }
.bf-btn--dark:hover { transform: translateY(-2px); background: #1B2420; box-shadow: 0 14px 30px rgba(14, 22, 18, 0.22); }
.bf-btn--dark::after { content: "→"; font-family: var(--font-sans); font-weight: 600; }
.bf a:focus-visible, .bf summary:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 3px; border-radius: 6px; }

/* ── hero ────────────────────────────────────────────────── */
.bf-hero {
  position: relative; overflow: hidden; color: #fff; padding: 26px 0 36px;
  background:
    radial-gradient(60% 75% at 92% 0%, rgba(202, 155, 94, 0.26) 0%, rgba(202, 155, 94, 0) 62%),
    radial-gradient(55% 80% at 0% 100%, rgba(36, 154, 72, 0.3) 0%, rgba(36, 154, 72, 0) 62%),
    var(--bf-bg);
}
.bf-hero::before { /* faint grid, fading towards the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 90% at 70% 30%, #000 0%, transparent 78%); mask-image: radial-gradient(80% 90% at 70% 30%, #000 0%, transparent 78%);
}
.bf-hero__grid { position: relative; display: grid; gap: 22px; align-items: center; }
.bf-hero .breadcrumb { display: none; margin: 0 0 30px; color: rgba(255, 255, 255, 0.6); }
.bf-hero .breadcrumb a { color: rgba(255, 255, 255, 0.82); }
.bf-hero__title {
  margin: 0 0 18px; color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(42px, 12.4vw, 60px); line-height: 0.98; letter-spacing: -0.035em;
}
.bf-hero__title span { display: block; background: var(--bf-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: 0.08em; }
.bf-hero__lead { margin: 0 0 22px; max-width: 30em; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.bf-hero__cta { display: none; }

.bf-count { margin: 0; }
.bf-count__label { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.62); }
.bf-count__row { display: flex; gap: 8px; }
.bf-count__cell {
  display: grid; justify-items: center; align-content: center; gap: 2px; width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(225, 196, 155, 0.28);
}
.bf-count__cell b { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.bf-count__cell i { font-style: normal; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bf-gold); }

.bf-deals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bf-deal {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "mark name go" "mark price go"; column-gap: 16px; align-items: center;
  padding: 12px 16px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); border: 1px solid var(--bf-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.bf-deal:hover { border-color: rgba(225, 196, 155, 0.6); background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)); }
.bf-deal__mark {
  grid-area: mark; min-width: 3.4em; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.03em; white-space: nowrap;
  background: var(--bf-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.bf-deal::after { content: "→"; grid-area: go; font-size: 20px; line-height: 1; color: var(--bf-gold); transition: transform .2s ease; }
.bf-deal:hover::after { transform: translateX(4px); }
.bf-deal__name { grid-area: name; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.25; color: #fff; }
.bf-deal__price { grid-area: price; font-size: 14.5px; font-weight: 700; color: var(--bf-gold); }

@media (min-width: 960px) {
  .bf-hero { padding: 26px 0 72px; }
  .bf-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 48px; }
  .bf-hero .breadcrumb { display: flex; margin-bottom: 54px; }
  .bf-hero__title { font-size: clamp(54px, 6.2vw, 88px); margin-bottom: 22px; }
  .bf-hero__lead { font-size: 20px; margin-bottom: 30px; }
  .bf-hero__cta { display: inline-flex; }
  .bf-count { margin-bottom: 30px; }
  .bf-count__cell { width: 84px; height: 88px; }
  .bf-count__cell b { font-size: 38px; }
  .bf-deals { gap: 16px; padding-top: 34px; }
  .bf-deal { padding: 22px 26px; column-gap: 22px; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
  .bf-deal__mark { font-size: 42px; }
  .bf-deal__name { font-size: 18px; }
  .bf-deal__price { font-size: 16px; }
  .bf-deal:hover { transform: translateX(-6px); }
}

/* ── ticker ──────────────────────────────────────────────── */
.bf-ticker { overflow: hidden; background: #0F1512; border-top: 1px solid var(--bf-line); border-bottom: 1px solid var(--bf-line); }
.bf-ticker__run { display: flex; width: max-content; animation: bf-ticker 48s linear infinite; }
.bf-ticker span {
  display: inline-flex; align-items: center; padding: 14px 0; white-space: nowrap;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(225, 196, 155, 0.86);
}
.bf-ticker span::after { content: "✦"; margin: 0 26px; font-size: 11px; color: rgba(255, 255, 255, 0.35); }
@keyframes bf-ticker { to { transform: translateX(-50%); } }

/* ── offers ──────────────────────────────────────────────── */
.bf-offers {
  padding: 48px 0 60px; color: #fff;
  background: radial-gradient(70% 50% at 50% 100%, rgba(36, 154, 72, 0.16) 0%, rgba(36, 154, 72, 0) 70%), var(--bf-bg);
}
.bf-cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.bf-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, #171F1B 0%, var(--bf-panel) 100%); border: 1px solid var(--bf-line);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bf-card:hover, .bf-card:target { border-color: rgba(225, 196, 155, 0.55); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(225, 196, 155, 0.16); }
.bf-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #0F1512; }
.bf-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bf-card:hover .bf-card__media img { transform: scale(1.04); }
.bf-card--massage .bf-card__media img { object-position: 50% 62%; }
.bf-card--bonus .bf-card__media { background: radial-gradient(60% 70% at 50% 45%, rgba(202, 155, 94, 0.3) 0%, rgba(202, 155, 94, 0) 70%), #101713; }
.bf-card--bonus .bf-card__media { position: relative; }
.bf-card__gift { /* the voucher illustration in one gold tone; its drawing sits right of the centre of the file, hence the offsets */
  position: absolute; top: 50%; left: 50%; height: 106%; aspect-ratio: 1; transform: translate(-65%, -46%); transition: transform .6s ease;
  background: var(--bf-gold-text);
  -webkit-mask: url(../images/kuponas/illu-gift.svg) center / contain no-repeat; mask: url(../images/kuponas/illu-gift.svg) center / contain no-repeat;
}
.bf-card--bonus:hover .bf-card__gift { transform: translate(-65%, -46%) scale(1.05) rotate(-2deg); }

.bf-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.bf-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.bf-card__deal {
  font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.035em; white-space: nowrap;
  background: var(--bf-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding: 0.04em 0;
}
.bf-card__period { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(225, 196, 155, 0.4); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bf-gold); white-space: nowrap; }
.bf-card__name { margin: 0 0 6px; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: #fff; }
.bf-card__tag { margin: 0 0 18px; font-size: 15px; line-height: 1.45; color: var(--bf-gold); }
.bf-card__facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.bf-card__facts li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; color: var(--bf-text); }
.bf-card__facts li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(225, 196, 155, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.2l2.2 2.2 4.6-4.7' fill='none' stroke='%23E1C49B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.bf-card__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--bf-line); }
.bf-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 18px; }
.bf-card__price strong { font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1; letter-spacing: -0.03em; color: #fff; white-space: nowrap; }
.bf-card__price s { font-size: 18px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.bf-card__save { align-self: center; padding: 6px 12px; border-radius: 999px; background: rgba(61, 170, 92, 0.26); font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #A9EDBE; white-space: nowrap; }
.bf-card--bonus .bf-card__save { background: none; padding: 0; font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--bf-text); }
.bf-card__sold, .bf-card__note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--bf-text); }
.bf-card__sold { padding: 16px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.24); text-align: center; color: #fff; }
.bf-card__note { margin-top: 10px; }
.bf-card__terms { display: flex; align-items: center; min-height: 44px; margin: 6px auto -8px; width: max-content; padding: 0 12px; font-size: 14px; color: rgba(255, 255, 255, 0.82); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.45); }
.bf-card__terms:hover { color: var(--bf-gold); }

@media (min-width: 720px) {
  .bf-offers { padding: 72px 0 88px; }
  .bf-cards--2, .bf-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .bf-cards--1 { grid-template-columns: minmax(0, 460px); justify-content: center; }
  .bf-card:hover { transform: translateY(-6px); }
}
@media (min-width: 720px) and (max-width: 1039px) {
  /* two packages side by side, the bonus as a wide card under them */
  .bf-cards--3 .bf-card--bonus { grid-column: 1 / -1; flex-direction: row; }
  .bf-cards--3 .bf-card--bonus .bf-card__media { flex: 0 0 38%; aspect-ratio: auto; }
  .bf-cards--3 .bf-card--bonus .bf-card__gift { height: 80%; }
}
@media (min-width: 1040px) {
  .bf-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bf-card__body { padding: 26px 26px 28px; }
  .bf-card__deal { font-size: 52px; }
}

/* ── how it works ────────────────────────────────────────── */
.bf-steps { padding: 56px 0; background: var(--stone-100, #F5F3EF); }
.bf-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.bf-steps__list li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; padding: 20px 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.bf-steps__list li > b { grid-row: 1 / span 2; }
.bf-steps__list b {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1;
  background: linear-gradient(180deg, #EBD3AB 0%, #CFA468 100%); color: #1B1408;
}
.bf-steps__list h3 { margin: 2px 0 6px; font-size: 19px; color: var(--fg-strong); }
.bf-steps__list p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg); }
.bf-steps__list a, .bf-terms__help a { color: var(--brand-text); font-weight: 700; white-space: nowrap; }
@media (min-width: 820px) {
  .bf-steps { padding: 84px 0; }
  .bf-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .bf-steps__list li { display: block; padding: 30px 28px 30px; }
  .bf-steps__list li > b { margin: 0 0 18px; width: 52px; height: 52px; font-size: 24px; }
}

/* ── terms ───────────────────────────────────────────────── */
.bf-terms { padding: 56px 0 64px; background: #fff; }
.bf-terms__item { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.bf-terms__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.bf-terms__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--fg-strong);
}
.bf-terms__item summary::-webkit-details-marker { display: none; }
.bf-terms__item summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--tan-50, #F8F1E7); color: var(--tan-600, #7E5F39); font-family: var(--font-sans); font-size: 20px; font-weight: 500; line-height: 1; transition: transform .2s ease; }
.bf-terms__item[open] summary::after { transform: rotate(45deg); }
/* the offer's own text and terms – the same markup as in the service-page blocks, set left here */
.bf-terms .mas-offer__head { text-align: left; max-width: none; margin: 0; padding: 0 22px 22px; }
.bf-terms .mas-offer__eyebrow { display: none; }
.bf-terms .mas-offer__head h2 { font-size: 18px; margin: 0 0 8px; color: var(--brand-hover); }
.bf-terms .mas-offer__head .mas-offer__terms { max-width: none; margin: 16px 0; }
.bf-terms .mas-offer__head p { color: var(--fg); }
.bf-terms__help { margin: -12px 0 26px; font-size: 16px; color: var(--fg); }
@media (min-width: 960px) {
  .bf-terms { padding: 84px 0 92px; }
  .bf-terms__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
  .bf-terms__intro { position: sticky; top: 110px; }
  .bf-terms__intro .bf-h2 { margin-bottom: 18px; }
  .bf-terms__help { margin: 0; }
}

/* ── closing band ────────────────────────────────────────── */
.bf-end {
  padding: 52px 0 56px; text-align: center; color: #fff;
  background: radial-gradient(60% 120% at 50% 0%, rgba(202, 155, 94, 0.22) 0%, rgba(202, 155, 94, 0) 65%), var(--bf-bg);
}
.bf-end h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; color: #fff; }
.bf-end p { margin: 0 auto 26px; max-width: 34em; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.bf-end .bf-btn { width: max-content; max-width: 100%; margin: 0 auto; }
@media (min-width: 820px) { .bf-end { padding: 76px 0 80px; } }

@media (prefers-reduced-motion: reduce) {
  .bf-ticker__run { animation: none; }
  .bf-btn, .bf-card, .bf-card__media img, .bf-deal { transition: none; }
  .bf-card:hover, .bf-btn--gold:hover { transform: none; }
}
