:root {
  --public-info-height: 44px;
  --public-radius: 16px;
}

.shtamp-public-enhanced .public-header { top: var(--public-info-height); }
.shtamp-public-enhanced .hero { padding-top: calc(150px + var(--public-info-height)); }
.shtamp-public-info { position: fixed; z-index: 51; inset: 0 0 auto; min-height: var(--public-info-height); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.shtamp-public-info__inner { width: min(1240px,100% - 48px); min-height: var(--public-info-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: auto; }
.shtamp-weather { min-width: 0; display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.shtamp-weather__icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; }
.shtamp-weather__icon svg { width: 32px; height: 32px; overflow: visible; }
.shtamp-weather__summary { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.shtamp-weather__summary strong { flex: none; font-size: 13px; letter-spacing: -.02em; }
.shtamp-weather__condition,.shtamp-weather__apparent,.shtamp-weather__location { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 660; text-overflow: ellipsis; white-space: nowrap; }
.shtamp-weather__location { max-width: 240px; }
.shtamp-weather__time { flex: none; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 680; font-variant-numeric: tabular-nums; }
.shtamp-weather__clock { min-width: 63px; color: var(--ink); font-size: 12px; letter-spacing: .02em; }
.shtamp-location-button { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 720; }
.shtamp-weather__attribution { color: var(--muted-2); font-size: 8px; }
.shtamp-weather__attribution:hover { color: var(--brand); }
.shtamp-weather__unavailable { color: var(--muted-2); font-size: 9px; }

.weather-sun { fill: #f6c84c; stroke: #d99b20; }
.weather-moon { fill: #d8ddff; stroke: #737bc2; }
.weather-cloud { fill: #dce5ee; stroke: #8292a3; }
:root[data-theme="dark"] .weather-cloud { fill: #4b5867; stroke: #9aaaba; }
.weather-drop { fill: #3da6e8; }
.weather-snow { fill: #c6edff; stroke: #69b9dc; }
.weather-fog { stroke: #8da1b2; }
.weather-bolt { fill: #f6ca4c; stroke: #9c7620; }
.weather-hail { fill: #c7d8ff; stroke: #6d83c7; }
.weather-drop.is-light { animation: shtamp-rain 1.15s linear infinite; }
.weather-drop.is-medium { animation: shtamp-rain .85s linear infinite; }
.weather-drop.is-heavy { animation: shtamp-rain .58s linear infinite; }
.weather-drop:nth-of-type(2n) { animation-delay: -.35s; }
.weather-flake { transform-origin: center; animation: shtamp-snow 1.8s ease-in-out infinite; }
.weather-flake:nth-of-type(2n) { animation-delay: -.7s; }
.weather-lightning { animation: shtamp-lightning 3.8s ease-in-out infinite; }
@keyframes shtamp-rain { from { opacity: .15; transform: translateY(-3px); } 45% { opacity: 1; } to { opacity: .1; transform: translateY(7px); } }
@keyframes shtamp-snow { 0% { opacity: .25; transform: translate(0,-2px) rotate(0); } 50% { opacity: 1; transform: translate(2px,3px) rotate(100deg); } 100% { opacity: .25; transform: translate(-1px,8px) rotate(210deg); } }
@keyframes shtamp-lightning { 0%,45%,48%,100% { opacity: .76; } 46%,47% { opacity: 1; filter: drop-shadow(0 0 5px #ffd95e); } }

.shtamp-partners { width: min(1180px,100% - 48px); margin: 0 auto 70px; }
.shtamp-partners__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.shtamp-partners__head span { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.shtamp-partners__head h2 { margin: 6px 0 0; font-size: clamp(24px,3vw,34px); font-weight: 730; letter-spacing: -.04em; }
.shtamp-partners__controls { display: flex; gap: 7px; }
.shtamp-partners__controls button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); cursor: pointer; }
.shtamp-partners__viewport { min-height: 126px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x mandatory; border-radius: var(--public-radius); }
.shtamp-partners__viewport::-webkit-scrollbar { display: none; }
.shtamp-partners__track { display: flex; gap: 12px; min-width: 100%; }
.shtamp-partner-card { flex: 0 0 calc((100% - 36px)/4); min-width: 0; min-height: 126px; scroll-snap-align: start; display: grid; place-items: center; align-content: center; gap: 9px; padding: 18px; border: 1px solid var(--line); border-radius: var(--public-radius); background: var(--surface); box-shadow: var(--shadow-soft); transition: transform .18s,border-color .18s; }
.shtamp-partner-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.shtamp-partner-card img { width: 100%; height: 62px; object-fit: contain; }
.shtamp-partner-card span { overflow: hidden; max-width: 100%; color: var(--muted); font-size: 9px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }

footer.shtamp-smart-footer { width: min(1180px,100% - 48px); display: grid; grid-template-columns: minmax(190px,1fr) auto auto; align-items: center; gap: 28px; padding: 30px 0 42px; color: var(--muted); }
footer.shtamp-smart-footer--compact { padding-top: 22px; }
footer.shtamp-smart-footer--standard { gap: 38px; padding-top: 42px; padding-bottom: 54px; }
.shtamp-footer__brand { display: grid; gap: 7px; }
.shtamp-footer__brand p { margin: 0; font-size: 9px; }
.shtamp-footer__icons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.shtamp-icon-link { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); transition: color .18s,border-color .18s,transform .18s; }
.shtamp-icon-link:hover,.shtamp-icon-link:focus-visible { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.shtamp-icon-link svg { width: 18px; height: 18px; }
.shtamp-footer__meta { display: grid; justify-items: end; gap: 8px; text-align: right; }
.shtamp-digicore { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 750; }
.shtamp-digicore svg { width: 17px; height: 17px; color: var(--brand); }
.shtamp-footer__legal { max-width: 260px; font-size: 8px; line-height: 1.5; }

@media (max-width: 980px) {
  .shtamp-weather__condition,.shtamp-weather__apparent { display: none; }
  .shtamp-weather__location { max-width: 170px; }
  .shtamp-partner-card { flex-basis: calc((100% - 24px)/3); }
}

@media (max-width: 780px) {
  :root { --public-info-height: 62px; }
  .shtamp-public-enhanced .hero { padding-top: calc(118px + var(--public-info-height)); }
  .shtamp-public-info__inner { width: calc(100% - 32px); gap: 8px; }
  .shtamp-weather { flex: 1; gap: 7px; }
  .shtamp-weather__summary { flex-wrap: wrap; gap: 1px 6px; }
  .shtamp-weather__location { flex-basis: 100%; max-width: min(54vw,230px); font-size: 9px; }
  .shtamp-weather__time { display: grid; justify-items: end; gap: 1px; }
  .shtamp-weather__clock { min-width: 52px; font-size: 11px; }
  .shtamp-weather__attribution,.shtamp-location-button span { display: none; }
  .shtamp-location-button { width: 32px; padding: 0; justify-content: center; }
  .shtamp-partners { width: calc(100% - 32px); margin-bottom: 52px; }
  .shtamp-partner-card { flex-basis: calc((100% - 12px)/2); }
  footer.shtamp-smart-footer { width: calc(100% - 32px); grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .shtamp-footer__brand { justify-items: center; }
  .shtamp-footer__meta { justify-items: center; text-align: center; }
}

@media (max-width: 430px) {
  .shtamp-public-info__inner { width: calc(100% - 24px); }
  .shtamp-weather__icon,.shtamp-weather__icon svg { width: 29px; height: 29px; }
  .shtamp-weather__summary strong { font-size: 12px; }
  .shtamp-weather__condition,.shtamp-weather__apparent { display: none; }
  .shtamp-weather__date { font-size: 8px; }
  .shtamp-weather__location { max-width: 43vw; }
  .shtamp-partners { width: calc(100% - 24px); }
  .shtamp-partners__head h2 { font-size: 25px; }
  .shtamp-partner-card { flex-basis: 100%; }
  footer.shtamp-smart-footer { width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .weather-drop,.weather-flake,.weather-lightning { animation: none !important; }
  .shtamp-partners__viewport { scroll-behavior: auto !important; }
  .shtamp-partner-card,.shtamp-icon-link { transition: none !important; }
}
