/* Production integration: common PECHAT61 shell and approved behavior. */

:root {
  --ink: var(--graphite);
  --yellow: #ffd400;
}

body {
  background: var(--paper);
  color: var(--graphite);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--lime);
  color: var(--graphite);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: block;
  height: auto;
  padding: 0;
}

.hero-art img,
.product-stage img {
  opacity: .65;
}

.hero-art img,
.product-stage img {
  transition: opacity .18s ease, transform .22s ease, filter .22s ease;
}

.product-stage[data-variant="0"] img { transform: scale(1); }
.product-stage[data-variant="1"] img { transform: scale(.93) rotate(-3deg); filter: saturate(.85); }
.product-stage[data-variant="2"] img { transform: scale(1.04) rotate(2deg); filter: hue-rotate(8deg); }
.product-stage[data-variant="3"] img { transform: scale(.96) translateY(7px); filter: contrast(1.08); }

#prices,
#steps,
#calc,
#contacts {
  scroll-margin-top: 104px;
}

.site-header .brand,
.site-header .brand:hover,
.site-header .brand:focus-visible {
  color: var(--ink);
}

.product-tab:focus-visible,
.main-tabs button:focus-visible,
.config-form select:focus-visible,
.booklet-mode button:focus-visible,
.price-cell:focus-visible,
.btn:focus-visible,
.faq summary:focus-visible,
.order-form input:focus-visible,
.order-form select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.price-cell[aria-pressed="true"] {
  background: var(--lime);
  color: var(--graphite);
}

#catalogTableWrap {
  max-height: 420px;
}

#catalogTableWrap thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

#catalogTableWrap th {
  padding: 10px 14px;
  font-size: 11px;
}

#catalogTableWrap tbody th,
#catalogTableWrap td,
#catalogTableWrap .price-cell {
  font-size: 13px;
}

#catalogTableWrap td {
  padding: 0 14px;
}

#catalogTableWrap .price-cell {
  height: 40px;
}

.selection-ticket[hidden],
[hidden] {
  display: none !important;
}

.selected-summary {
  min-height: 78px;
}

.selected-summary b,
.selected-summary span {
  display: block;
}

.order-form .consent {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  align-items: start !important;
  gap: 8px !important;
  margin: 16px 0 !important;
  color: #b9bbb7;
  font-weight: 400 !important;
  line-height: 1.4;
}

.order-form .consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--lime);
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--lime);
  font-size: 12px;
  line-height: 1.4;
}

.footer {
  display: block;
  padding: 58px 0 24px;
  background: var(--ink);
  color: var(--white);
}

.footer .wrap {
  display: block;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.footer .footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 35px;
  border-bottom: 1px solid #555;
}

.footer-logo {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.footer-logo span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font: 800 21px Manrope, Inter, sans-serif;
}

.footer-logo b {
  font: 800 22px Manrope, Inter, sans-serif;
}

.footer-logo small {
  color: #999;
  font: 400 11px Inter, sans-serif;
}

.footer .footer-top > p {
  margin: 0;
  color: #aaa;
  font: 400 14px/1.45 Inter, sans-serif;
}

.footer-cta {
  padding: 16px 22px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 14px Manrope, Inter, sans-serif;
  text-decoration: none;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  padding: 42px 0;
}

.footer .footer-grid h3 {
  margin: 0 0 17px;
  color: var(--white);
  font: 700 12px Manrope, Inter, sans-serif;
  text-transform: uppercase;
}

.footer .footer-grid a,
.footer .footer-grid span {
  display: block;
  margin: 9px 0;
  color: #aaa;
  font: 400 12px/1.4 Inter, sans-serif;
  text-decoration: none;
}

.footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid #555;
  color: #777;
  font: 600 9px Inter, sans-serif;
  letter-spacing: .05em;
}

@media (max-width: 1100px) {
  .footer .footer-top {
    grid-template-columns: 1fr auto;
  }

  .footer .footer-top > p {
    grid-column: 1 / -1;
  }

  .footer .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .site-header {
    display: block;
    padding: 0;
  }

  .footer .wrap {
    width: calc(100% - 32px);
  }

  .footer .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    justify-self: start;
  }

  .footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .footer-bottom {
    display: block;
  }

  .footer .footer-bottom span {
    display: block;
    margin: 7px 0;
  }

  #catalogTableWrap {
    max-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
