/**
 * Pricing poster V2 — PDF-inspired tariff panel (mobile-first).
 * Scoped to .olimp-pricing-poster; does not alter global table/heading styles.
 */

.olimp-pricing-poster {
  --poster-bg: #0e2222;
  --poster-bg-lift: #143030;
  --poster-gold: #c9a96a;
  --poster-gold-soft: rgba(201, 169, 106, 0.58);
  --poster-gold-line: rgba(201, 169, 106, 0.45);
  --poster-heading: #e8d5a8;
  --poster-text: #f3efe6;
  --poster-muted: #d4cfc4;
  --poster-price: #fcff00;
  --poster-pad: clamp(1.15rem, 4vw, 1.65rem);
  --poster-frame-gap: 7px;
  --poster-corner-size: clamp(2.35rem, 11vw, 3.25rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.olimp-pricing-poster__shell {
  position: relative;
  background:
    linear-gradient(165deg, var(--poster-bg-lift) 0%, var(--poster-bg) 48%, #0b1c1c 100%);
  border: 1px solid var(--poster-gold-soft);
  border-radius: 2px;
  padding: var(--poster-pad);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 106, 0.14);
  overflow: hidden;
  isolation: isolate;
}

.olimp-pricing-poster__shell::before {
  content: "";
  position: absolute;
  inset: var(--poster-frame-gap);
  border: 1px solid var(--poster-gold-line);
  border-radius: 1px;
  pointer-events: none;
  z-index: 1;
}

.olimp-pricing-poster__corner {
  position: absolute;
  z-index: 2;
  width: var(--poster-corner-size);
  height: auto;
  max-width: 22%;
  pointer-events: none;
  user-select: none;
  opacity: 0.96;
}

.olimp-pricing-poster__corner--tl { top: 4px; left: 4px; }
.olimp-pricing-poster__corner--tr { top: 4px; right: 4px; }
.olimp-pricing-poster__corner--bl { bottom: 4px; left: 4px; }
.olimp-pricing-poster__corner--br { bottom: 4px; right: 4px; }

.olimp-pricing-poster__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  min-width: 0;
}

/* —— Mobile Zeus: centered, substantial —— */
.olimp-pricing-poster__art {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0.1rem auto 0.05rem;
  width: min(68vw, 15.5rem);
  max-width: 100%;
  pointer-events: none;
  user-select: none;
}

.olimp-pricing-poster__zeus {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vw, 15.25rem);
  object-fit: contain;
  object-position: center top;
  opacity: 0.95;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.olimp-pricing-poster__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.olimp-pricing-poster__section {
  min-width: 0;
  text-align: center;
}

.olimp-pricing-poster__heading {
  margin: 0 0 0.95rem;
  padding: 0;
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: clamp(1.05rem, 4.4vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  color: var(--poster-heading);
  line-height: 1.25;
  background: none;
  border: 0;
}

.olimp-pricing-poster__heading-link {
  color: inherit;
  text-decoration: none;
}

.olimp-pricing-poster__heading-link:hover,
.olimp-pricing-poster__heading-link:focus-visible {
  color: var(--poster-price);
}

.olimp-pricing-poster__heading-link:focus-visible {
  outline: 2px solid var(--poster-price);
  outline-offset: 4px;
}

.olimp-pricing-poster__divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0;
  margin: 1.15rem 8% 1.2rem;
  min-height: 1rem;
  line-height: 0;
}

.olimp-pricing-poster__divider-line {
  display: block;
  height: 1px;
  width: 100%;
  align-self: center;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--poster-gold-line) 22%,
    var(--poster-gold) 100%
  );
}

.olimp-pricing-poster__divider-line:last-child {
  background: linear-gradient(
    90deg,
    var(--poster-gold) 0%,
    var(--poster-gold-line) 78%,
    transparent 100%
  );
}

.olimp-pricing-poster__divider-ornament {
  display: block;
  width: 1.35rem;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  align-self: center;
  justify-self: center;
  vertical-align: middle;
}

/* —— Mobile table: centered slot + 2-col day/price —— */
.olimp-pricing-poster__table {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  border-collapse: collapse;
  border-spacing: 0;
  color: var(--poster-text);
  table-layout: fixed;
}

.olimp-pricing-poster__table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.olimp-pricing-poster__table,
.olimp-pricing-poster__table tbody {
  display: block;
  width: 100%;
}

.olimp-pricing-poster__table tr {
  display: grid;
  grid-template-columns: repeat(calc(var(--poster-cols, 3) - 1), minmax(0, 1fr));
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  align-items: start;
  justify-items: center;
}

.olimp-pricing-poster__table tr:last-child {
  margin-bottom: 0;
}

.olimp-pricing-poster__table th[scope="row"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 0 0 0.35rem;
  border: 0;
  background: none;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--poster-text);
  letter-spacing: 0.02em;
}

.olimp-pricing-poster__slot {
  display: inline-block;
}

.olimp-pricing-poster__table td {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: center;
  background: none;
  color: var(--poster-muted);
}

.olimp-pricing-poster__table td::before {
  content: attr(data-label);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--poster-muted);
}

.olimp-pricing-poster__price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  color: var(--poster-price);
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.15;
  text-align: center;
}

.olimp-pricing-poster__amount {
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}

.olimp-pricing-poster__unit {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.olimp-pricing-poster__na {
  color: var(--poster-muted);
}

.olimp-pricing-poster__section--vip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.olimp-pricing-poster__section--vip .olimp-pricing-poster__heading {
  margin-bottom: 0.15rem;
}

.olimp-pricing-poster__vip-price {
  margin: 0;
}

.olimp-pricing-poster__vip-price .olimp-pricing-poster__amount {
  font-size: clamp(1.4rem, 5.2vw, 1.75rem);
}

.olimp-pricing-poster__vip-cap {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--poster-muted);
  letter-spacing: 0.02em;
}

.olimp-pricing-poster .pricing-note {
  margin-top: var(--space-4, 1.25rem);
  max-width: var(--measure-lead, 42rem);
  color: var(--text-secondary-on-dark, #c2cdc6);
  text-align: left;
}

/* —— Wider phones / small tablets —— */
@media (min-width: 430px) {
  .olimp-pricing-poster__art {
    width: min(52vw, 14.5rem);
  }

  .olimp-pricing-poster__zeus {
    max-height: min(40vw, 14.5rem);
  }

  .olimp-pricing-poster__table {
    max-width: 24rem;
  }
}

@media (min-width: 600px) {
  .olimp-pricing-poster {
    --poster-corner-size: 3.5rem;
    --poster-frame-gap: 9px;
  }

  .olimp-pricing-poster__art {
    width: min(42vw, 15rem);
  }

  .olimp-pricing-poster__zeus {
    max-height: 15rem;
  }

  .olimp-pricing-poster__heading {
    font-size: 1.3rem;
  }
}

/* —— Desktop: Zeus left, centered tariff column —— */
@media (min-width: 900px) {
  .olimp-pricing-poster {
    --poster-pad: clamp(1.6rem, 2.5vw, 2.35rem);
    --poster-frame-gap: 11px;
    --poster-corner-size: clamp(4.6rem, 7vw, 6.4rem);
  }

  .olimp-pricing-poster__corner--tl { top: 6px; left: 6px; }
  .olimp-pricing-poster__corner--tr { top: 6px; right: 6px; }
  .olimp-pricing-poster__corner--bl { bottom: 6px; left: 6px; }
  .olimp-pricing-poster__corner--br { bottom: 6px; right: 6px; }

  .olimp-pricing-poster__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
    gap: clamp(1.25rem, 2.6vw, 2.6rem);
    align-items: center;
  }

  .olimp-pricing-poster__art {
    width: auto;
    max-width: none;
    height: 100%;
    margin: 0;
    justify-content: center;
    align-items: center;
  }

  .olimp-pricing-poster__zeus {
    width: auto;
    max-width: 100%;
    max-height: min(32rem, 68vh);
    object-position: center center;
  }

  .olimp-pricing-poster__content {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
  }

  .olimp-pricing-poster__heading {
    font-size: clamp(1.2rem, 1.55vw, 1.45rem);
    margin-bottom: 1.05rem;
    letter-spacing: 0.08em;
  }

  .olimp-pricing-poster__divider {
    margin: 1.3rem 8% 1.4rem;
  }

  .olimp-pricing-poster__table {
    display: table;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .olimp-pricing-poster__table thead {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: table-header-group;
  }

  .olimp-pricing-poster__table tbody {
    display: table-row-group;
  }

  .olimp-pricing-poster__table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .olimp-pricing-poster__table th,
  .olimp-pricing-poster__table td {
    display: table-cell;
    width: auto;
    padding: 0.58rem 0.5rem;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid rgba(201, 169, 106, 0.14);
    background: none;
    text-align: center;
  }

  .olimp-pricing-poster__table tr:last-child th,
  .olimp-pricing-poster__table tr:last-child td {
    border-bottom: 0;
  }

  .olimp-pricing-poster__table thead th {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--poster-muted);
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(201, 169, 106, 0.3);
  }

  .olimp-pricing-poster__table .olimp-pricing-poster__col-hours,
  .olimp-pricing-poster__table th[scope="row"],
  .olimp-pricing-poster__table td {
    width: calc(100% / var(--poster-cols, 3));
  }

  .olimp-pricing-poster__table th[scope="row"] {
    white-space: nowrap;
    font-size: 0.98rem;
  }

  .olimp-pricing-poster__table td::before {
    content: none;
  }

  .olimp-pricing-poster__price {
    justify-content: center;
  }

  .olimp-pricing-poster__amount {
    font-size: 1.22rem;
  }

  .olimp-pricing-poster__section--vip {
    gap: 0.4rem;
  }

  .olimp-pricing-poster__vip-price .olimp-pricing-poster__amount {
    font-size: 1.65rem;
  }
}

@media (min-width: 1200px) {
  .olimp-pricing-poster__inner {
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  }

  .olimp-pricing-poster__content {
    max-width: 36rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .olimp-pricing-poster__heading-link {
    transition: none;
  }
}
