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

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

html { scroll-behavior: smooth; }

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,
.size-stage img {
  opacity: .65;
  transition: opacity .18s ease, transform .24s ease, filter .24s ease;
}

.size-stage[data-variant="0"] img { transform: scale(1.02) translateX(-1.5%); }
.size-stage[data-variant="1"] img { transform: scale(1.08) translateX(2.5%); filter: saturate(.88); }
.size-stage[data-variant="2"] img { transform: scale(.94); filter: grayscale(.25) contrast(.92); }

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

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

.size-tab:focus-visible,
.cost-form input:focus-visible,
.cost-form select:focus-visible,
.btn:focus-visible,
.faq summary:focus-visible,
.order-form input:focus-visible,
.order-form select:focus-visible,
.upload:focus-within {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.cost-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #56595e;
}

.cost-breakdown article {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid #56595e;
}

.cost-breakdown article:last-child { border-right: 0; }

.cost-breakdown span {
  color: var(--coral);
  font-weight: 900;
}

.cost-breakdown h3 {
  margin: 54px 0 12px;
  font-size: 21px;
}

.cost-breakdown p,
.cost-action p {
  margin: 0;
  color: #b9bbb7;
  line-height: 1.5;
}

.cost-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 30px;
}

.cost-action p { max-width: 660px; }
.cost-action .btn { flex: 0 0 auto; }

.case-grid article {
  display: flex;
  flex-direction: column;
}

.case-grid h3 {
  min-height: 66px;
}

.case-grid p {
  margin: 0 0 22px;
}

.case-grid b {
  margin-top: auto;
}

.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) {
  .cost-breakdown { grid-template-columns: 1fr 1fr; }
  .cost-breakdown article:nth-child(2) { border-right: 0; }
  .cost-breakdown article:nth-child(-n + 2) { border-bottom: 1px solid #56595e; }
  .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; }
  .cost-breakdown { grid-template-columns: 1fr; }
  .cost-breakdown article,
  .cost-breakdown article:nth-child(2) {
    min-height: 175px;
    border-right: 0;
    border-bottom: 1px solid #56595e;
  }
  .cost-breakdown article:last-child { border-bottom: 0; }
  .cost-breakdown h3 { margin-top: 34px; }
  .cost-action { align-items: stretch; flex-direction: column; }
  .cost-action .btn { width: 100%; }
  .case-grid h3 { min-height: 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; }
}

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