﻿/*
 * Promo Manager stage 1 вЂ” public house banner layout.
 *
 * Fixed side banner width: 260 px. The width is never reduced on notebooks.
 *
 *   >= 1500 px : 260 + 900 + 260, gap 20 -> two columns
 *   1210-1499  : 260 + 900, gap 20       -> single left column
 *   < 1210     : no rails; banners inline inside adaptive content
 */

.fq-promo-rail {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  /* Breathing room from the orange header rule; the calendar heading keeps its
     own margin, so only the advertising columns move down. */
  padding-top: 24px;
}

.fq-promo-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.fq-promo-inline {
  display: none;
  margin: 0 0 16px;
}

.fq-promo-inline-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.fq-match-shell {
  display: block;
  width: min(900px, calc(100vw - 32px));
  margin: 0 auto;
}

.fq-match-shell > .container {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

@media (min-width: 1500px) {
  .fq-match-shell {
    display: grid;
    width: 1460px;
    max-width: calc(100vw - 32px);
    grid-template-columns: 260px 900px 260px;
    column-gap: 20px;
    justify-content: center;
    align-items: start;
  }

  .fq-match-shell > .container {
    width: 900px;
  }

  .fq-match-shell .fq-promo-rail-left .fq-banner--right {
    display: none;
  }
}

@media (min-width: 1210px) and (max-width: 1499px) {
  .fq-match-shell {
    display: grid;
    width: 1180px;
    max-width: calc(100vw - 24px);
    grid-template-columns: 260px 900px;
    column-gap: 20px;
    justify-content: center;
    align-items: start;
  }

  .fq-match-shell > .container {
    width: 900px;
  }

  .fq-match-shell .schedule-rail-left {
    display: block;
  }

  .fq-match-shell .schedule-rail-right {
    display: none;
  }
}

.fq-banner {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.fq-banner-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fq-banner-link:focus-visible {
  outline: 2px solid #ff6b00;
  outline-offset: -2px;
}

.fq-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

.fq-banner-html {
  position: relative;
  overflow: hidden;
  font: 400 13px/18px Inter, "Segoe UI", Arial, sans-serif;
  color: #18181b;
}

.fq-banner-html img {
  display: block;
  max-width: 100%;
  height: auto;
}

.fq-banner-html a {
  color: inherit;
}

/* Local FootballQuant corner-analysis creative built over the user-provided
   260x419 background. Text stays HTML so locale copy can be edited separately. */
.fq-banner-html .fq-corner-banner {
  position: relative;
  box-sizing: border-box;
  width: 260px;
  max-width: 100%;
  height: 419px;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 auto;
  color: #18181b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.fq-banner-html .fq-corner-banner__background {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: calc(100% + 14px);
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.fq-banner-html .fq-corner-banner__content {
  position: absolute;
  z-index: 1;
  inset: 12px 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fq-banner-html .fq-corner-banner__brand {
  font-size: 12px;
  line-height: 14px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.fq-banner-html .fq-corner-banner__brand span {
  color: #ff6600;
}

.fq-banner-html .fq-corner-banner__title {
  margin: 1px 0 0;
  color: #17191f;
  font-size: 25px;
  line-height: 27px;
  font-weight: 900;
  letter-spacing: -.045em;
}

.fq-banner-html .fq-corner-banner__subtitle {
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgb(255 102 0 / 12%);
  color: #3a3b40;
  font-size: 8px;
  line-height: 11px;
  font-weight: 700;
}

.fq-banner-html .fq-corner-banner__features {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.fq-banner-html .fq-corner-banner__feature {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #25272c;
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
}

.fq-banner-html .fq-corner-banner__check {
  display: inline-flex;
  flex: 0 0 13px;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #ff6600;
  color: #fff;
  font-size: 10px;
  line-height: 13px;
}

.fq-banner-html .fq-corner-banner__panel {
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* Slightly wider than the text column: extends 6px into the side gutter. */
  margin: 1px -6px 0;
  padding: 8px 9px 9px;
  border: 1px solid rgb(228 231 236 / 90%);
  border-radius: 10px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 2px 8px rgb(16 24 40 / 7%);
}

.fq-banner-html .fq-corner-banner__panel-title {
  color: #202228;
  font-size: 10px;
  line-height: 13px;
  font-weight: 800;
}

.fq-banner-html .fq-corner-banner__chart {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 33px;
  padding: 0 2px;
  border-bottom: 1px solid #e7edf4;
}

.fq-banner-html .fq-corner-banner__bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 3px 3px 0 0;
  background: #a8d4f6;
}

.fq-banner-html .fq-corner-banner__bar:nth-child(1) { height: 35%; }
.fq-banner-html .fq-corner-banner__bar:nth-child(2) { height: 60%; }
.fq-banner-html .fq-corner-banner__bar:nth-child(3) { height: 48%; }
.fq-banner-html .fq-corner-banner__bar:nth-child(4) { height: 78%; }
.fq-banner-html .fq-corner-banner__bar:nth-child(5) { height: 92%; }

.fq-banner-html .fq-corner-banner__chart-note {
  color: #737b88;
  font-size: 7px;
  line-height: 9px;
}

.fq-banner-html .fq-corner-banner__offer {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 7px;
  padding: 5px 10px 6px;
  border-radius: 11px 14px 11px 5px;
  background: linear-gradient(105deg, #ff6600, #f04d00);
  color: #fff;
  transform: skewX(-4deg);
}

.fq-banner-html .fq-corner-banner__offer-main,
.fq-banner-html .fq-corner-banner__offer-note {
  display: block;
  transform: skewX(4deg);
}

.fq-banner-html .fq-corner-banner__offer-main {
  font-size: 20.25px;
  line-height: 23.25px;
  font-weight: 900;
  font-style: italic;
}

.fq-banner-html .fq-corner-banner__offer-note {
  font-size: 14.25px;
  line-height: 18px;
  font-weight: 700;
  font-style: italic;
}

.fq-banner-html .fq-corner-banner__plan {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 7px;
  border-left: 3px solid #ff6600;
}

.fq-banner-html .fq-corner-banner__plan-label {
  color: #6b7280;
  font-size: 9px;
  line-height: 11px;
  font-weight: 600;
}

.fq-banner-html .fq-corner-banner__price {
  color: #17191f;
  font-size: 15px;
  line-height: 17px;
  font-weight: 900;
}

.fq-banner-html .fq-corner-banner__price small {
  color: #6b7280;
  font-size: 9px;
  line-height: 11px;
  font-weight: 600;
}

.fq-banner-html .fq-corner-banner__payments {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4b5563;
  font-size: 8px;
  line-height: 10px;
}

.fq-banner-html .fq-corner-banner__payment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 15px;
  padding: 1px 6px 1px 3px;
  border: 1px solid rgb(112 122 137 / 22%);
  border-radius: 999px;
  background: rgb(255 255 255 / 82%);
  font-weight: 800;
  letter-spacing: .01em;
}

.fq-banner-html .fq-corner-banner__pay-icon {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 11px;
}

.fq-banner-html .fq-corner-banner__payment small {
  color: #6b7280;
  font-size: 7px;
  line-height: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Wordmark chips (МИР): the logo already carries the name. */
.fq-banner-html .fq-corner-banner__payment--logo {
  padding: 1px 6px 1px 4px;
  min-height: 15px;
}

.fq-banner-html .fq-corner-banner__pay-logo {
  display: block;
  height: 9px;
  width: auto;
}

.fq-banner-html .fq-corner-banner__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: auto;
  padding: 5px 6px 5px 10px;
  border-radius: 12px;
  background: linear-gradient(100deg, #ff6600, #f04d00);
  color: #fff;
  font-size: 15px;
  line-height: 18px;
  font-weight: 800;
  box-shadow: 0 3px 9px rgb(255 102 0 / 24%);
}

/* Line boxes centre on the font em box, which leaves the visual text mass
   sitting low; lift the label by one pixel. */
.fq-banner-html .fq-corner-banner__cta > span:first-child {
  position: relative;
  top: -1px;
}

.fq-banner-html .fq-corner-banner__arrow {
  display: inline-flex;
  flex: 0 0 29px;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #fff;
  color: #f45b00;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fq-banner-html .fq-corner-banner__arrow-triangle {
  display: block;
  width: 0;
  height: 0;
  /* Optical centring: a right-pointing triangle's visual mass sits left of
     its bounding box, so nudge it right without touching transform (hover). */
  position: relative;
  left: 1.5px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #f45b00;
  transform-origin: center;
  transition: transform .18s ease;
}

.fq-banner-link:hover .fq-corner-banner__arrow,
.fq-corner-banner:hover .fq-corner-banner__arrow {
  transform: translateX(3px);
  box-shadow: 0 1px 5px rgb(0 0 0 / 18%);
}

.fq-banner-link:hover .fq-corner-banner__arrow-triangle,
.fq-corner-banner:hover .fq-corner-banner__arrow-triangle {
  transform: scale(.78, .58) translateY(2px);
}

.fq-banner-link:active .fq-corner-banner__arrow,
.fq-corner-banner:active .fq-corner-banner__arrow {
  transform: translateX(5px) scale(.9);
}

.fq-banner-link:active .fq-corner-banner__arrow-triangle,
.fq-corner-banner:active .fq-corner-banner__arrow-triangle {
  transform: scale(.68, .48) translateY(3px);
}

@media (min-width: 1500px) {
  .schedule-shell {
    display: grid;
    width: 1460px;
    max-width: calc(100vw - 32px);
    grid-template-columns: 260px 900px 260px;
    column-gap: 20px;
    justify-content: center;
  }

  .schedule-shell > .schedule-page {
    min-width: 0;
  }

  /* The left rail carries every banner for the single-column mode. On wide
     screens right-only banners live in the right rail only. */
  .fq-promo-rail-left .fq-banner--right {
    display: none;
  }

  .fq-promo-inline {
    display: none;
  }
}

@media (min-width: 1210px) and (max-width: 1499px) {
  .schedule-shell {
    display: grid;
    width: 1180px;
    max-width: calc(100vw - 24px);
    grid-template-columns: 260px 900px;
    column-gap: 20px;
    justify-content: center;
  }

  .schedule-shell > .schedule-page {
    min-width: 0;
  }

  /* style.css hides every rail below 1340 px; the single 260 px column is
     intentional here and must stay visible. */
  .schedule-rail-left {
    display: block;
  }

  .schedule-rail-right {
    display: none;
  }

  .fq-promo-inline {
    display: none;
  }
}

@media (max-width: 1209px) {
  .schedule-shell {
    display: block;
    width: min(900px, calc(100vw - 32px));
  }

  .schedule-rail {
    display: none;
  }

  .fq-promo-inline {
    display: block;
  }

  .fq-promo-inline .fq-banner {
    width: 100%;
  }

  .fq-promo-inline .fq-banner--corner {
    width: 260px;
    max-width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .fq-promo-inline {
    margin-bottom: 12px;
  }
}

/* FootballQuant Quant creative -------------------------------------------
   Shares the corner shell and the whole lower block (offer, price, payments,
   CTA). Only the upper half is Quant-specific: the FQS-50 model card. */
.fq-banner-html .fq-quant-banner {
  position: relative;
  box-sizing: border-box;
  width: 260px;
  max-width: 100%;
  height: 419px;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 auto;
  color: #18181b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.fq-banner-html .fq-quant-banner__fqs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1px -6px 0;
  padding: 7px 8px;
  border: 1px solid rgb(228 231 236 / 90%);
  border-radius: 10px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 2px 8px rgb(16 24 40 / 7%);
}

.fq-banner-html .fq-quant-banner__hex {
  position: relative;
  display: flex;
  flex: 0 0 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 92px;
  height: 96px;
  padding: 0 13px;
  /* Orange rim: the pseudo-element paints the inner face 2px in. */
  background: linear-gradient(160deg, #ffab6b, #ff8b3d);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.fq-banner-html .fq-quant-banner__hex::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(160deg, #fffdfb, #fff0e3);
  clip-path: inherit;
}

.fq-banner-html .fq-quant-banner__hex > span {
  position: relative;
  z-index: 1;
}

.fq-banner-html .fq-quant-banner__hex-label {
  color: #9a5a22;
  font-size: 8px;
  line-height: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.fq-banner-html .fq-quant-banner__hex-score {
  color: #1b1d23;
  font-size: 11px;
  line-height: 13px;
  font-weight: 900;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.fq-banner-html .fq-quant-banner__hex-delta {
  padding: 1px 6px;
  border-radius: 999px;
  background: #d8f5e3;
  color: #0d7a38;
  font-size: 8px;
  line-height: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.fq-banner-html .fq-quant-banner__fqs-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fq-banner-html .fq-quant-banner__fqs-title {
  color: #202228;
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
}

.fq-banner-html .fq-quant-banner__fqs-note {
  color: #6b7280;
  font-size: 7px;
  line-height: 9.5px;
  font-weight: 600;
}

/* Cards creative: same shell and panel, yellow/red card distribution chart. */
.fq-banner-html .fq-corner-banner__chart--cards {
  gap: 5px;
}

.fq-banner-html .fq-corner-banner__chart--cards .fq-corner-banner__bar {
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #ffd24a, #efb200);
}

.fq-banner-html .fq-corner-banner__chart--cards .fq-corner-banner__bar--red {
  background: linear-gradient(180deg, #ff7a6b, #e23b2e);
}

.fq-banner-html .fq-corner-banner__chart--cards .fq-corner-banner__bar:nth-child(1) { height: 34%; }
.fq-banner-html .fq-corner-banner__chart--cards .fq-corner-banner__bar:nth-child(2) { height: 58%; }
.fq-banner-html .fq-corner-banner__chart--cards .fq-corner-banner__bar:nth-child(3) { height: 44%; }
.fq-banner-html .fq-corner-banner__chart--cards .fq-corner-banner__bar:nth-child(4) { height: 72%; }
.fq-banner-html .fq-corner-banner__chart--cards .fq-corner-banner__bar:nth-child(5) { height: 46%; }
.fq-banner-html .fq-corner-banner__chart--cards .fq-corner-banner__bar:nth-child(6) { height: 84%; }
.fq-banner-html .fq-corner-banner__chart--cards .fq-corner-banner__bar:nth-child(7) { height: 96%; }


.fq-signals-promo {
  position: relative;
  max-width: 260px;
  margin-inline: auto;
}

.fq-signals-promo > img {
  display: block;
  width: 100%;
  height: auto;
}

.fq-signals-promo__cta {
  position: absolute;
  inset: auto 5.77% 3.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 10.5%;
  padding-inline: 4.6% 3.5%;
  border-radius: 9px;
  background: linear-gradient(135deg, #c84906, #b83900);
  color: #fff;
  font: 850 13px/1.1 "Segoe UI", Arial, sans-serif;
  letter-spacing: .2px;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgb(255 106 0 / 28%);
}

.fq-signals-promo__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.fq-signals-promo__icon::before {
  content: "";
  border-block: 4px solid transparent;
  border-left: 5px solid #ff6a00;
  margin-left: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .fq-signals-promo__cta {
    animation: fq-signals-cta-press 4s ease-in-out 3;
    transition: transform .18s ease;
  }

  .fq-banner-link:is(:hover, :focus-visible) .fq-signals-promo__cta {
    animation: none;
    transform: scale(.97);
  }

  .fq-banner-link:active .fq-signals-promo__cta {
    animation: none;
    transform: scale(.94);
  }
}

@keyframes fq-signals-cta-press {
  0%, 27%, 47%, 100% { transform: scale(1); }
  36% { transform: scale(.96); }
}

