body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 14px/1 Manrope, Inter, sans-serif;
  transform: translateY(-180%);
}

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

.page-shell {
  overflow: hidden;
}

.interaction-hint {
  max-width: 620px;
  margin: -28px 0 28px 280px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .interaction-hint {
    margin: -12px 0 24px;
  }
}

/* Крупная графика приглушена так же, как иллюстрации на главной. */
.hero-visual > img,
.case-visual {
  opacity: .65;
}

.task-grid img,
.processing img,
.upload img,
.brand__mark {
  opacity: 1;
}

.hero-actions {
  align-items: flex-start;
}

.hero-actions .button {
  width: auto;
}

/* Первый экран: география — отдельная спокойная строка, графика не спорит с текстом. */
.hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(64px, 5vw, 96px);
  align-items: start;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 em {
  display: block;
  margin-top: 14px;
  font-size: clamp(40px, 3.6vw, 60px);
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.hero-visual {
  background: #ffe785;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(248, 246, 238, .24);
  pointer-events: none;
}

.hero-visual > img {
  opacity: .5;
}

.hero-visual .visual-stamp {
  opacity: .68;
}

.material button {
  cursor: pointer;
}

.material-poster {
  min-height: 540px;
  display: grid;
  grid-template-rows: auto 190px auto;
  align-content: start;
  opacity: 1;
  transition: background-color .22s ease, color .22s ease;
}

.poster-material-visual {
  min-height: 0;
  margin: 18px 0 8px;
  padding: 8px 0 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.poster-material-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .65;
  transform: translateZ(0);
}

.material-poster.is-changing .poster-material-image {
  animation: material-swap .24s ease;
}

.material-poster.is-mesh .poster-top b {
  align-self: end;
  font-size: clamp(54px, 5vw, 82px);
  line-height: .82;
  letter-spacing: -.06em;
}

.material-poster.is-mesh .poster-top small {
  max-width: 190px;
  text-align: right;
  line-height: 1.2;
}

@keyframes material-swap {
  from { opacity: .18; transform: translateY(8px); }
  to { opacity: .65; transform: translateY(0); }
}

.material button:focus-visible,
.price-table-wrap:focus-visible,
.calc-form input:focus-visible,
.calc-form select:focus-visible,
.calc-form button:focus-visible,
.upload:focus-within {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.price-table-wrap {
  scrollbar-color: var(--yellow) #24272d;
  scrollbar-width: thin;
}

.upload {
  position: relative;
  cursor: pointer;
}

.upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.form-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.form-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

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

.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: 767px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero h1 em {
    margin-top: 10px;
    font-size: clamp(29px, 8vw, 38px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual > img,
  .case-visual {
    opacity: .65;
  }

  .hero-visual > img {
    opacity: .5;
  }
}

@media (max-width: 650px) {
  .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;
  }
}
