:root {
  --pi-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --pi-chalk: #0a4c42;
  --pi-chalk-deep: #073d35;
  --pi-chalk-soft: #e4efeb;
  --pi-blue: #153d79;
  --pi-blue-strong: #0e3268;
  --pi-sand: #f5cc8d;
  --pi-sand-soft: #fff4df;
  --pi-paper: #ffffff;
  --pi-paper-soft: #f6f8f7;
  --pi-ink: #17221f;
  --pi-muted: #53635e;
  --pi-line: #d8dfdc;
  --pi-danger: #8a241c;
  --pi-focus: #f3a51f;
  --pi-shadow: 0 18px 48px rgba(2, 31, 27, 0.3);
  --pi-radius: 14px;
  --pi-edge: clamp(12px, 3vw, 32px);
  --pi-shell-max: 1120px;
}

body.pi-refresh-v1,
body.pi-refresh-v1 input,
body.pi-refresh-v1 button,
body.pi-refresh-v1 select,
body.pi-refresh-v1 textarea {
  font-family: var(--pi-font);
}

body.pi-refresh-v1 {
  min-width: 0;
  margin: 0;
  color: var(--pi-ink);
  background-color: var(--pi-chalk-deep);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body.pi-refresh-v1 *,
body.pi-refresh-v1 *::before,
body.pi-refresh-v1 *::after {
  box-sizing: border-box;
}

body.pi-refresh-v1 a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

body.pi-refresh-v1 a:hover {
  text-decoration-thickness: 2px;
}

body.pi-refresh-v1 :focus-visible {
  outline: 3px solid var(--pi-focus);
  outline-offset: 3px;
}

body.pi-refresh-v1 ::selection {
  color: #ffffff;
  background: var(--pi-blue);
}

body.pi-refresh-v1 input {
  caret-color: var(--pi-blue);
}

.pi-page {
  display: block;
  width: calc(100% - (2 * var(--pi-edge)));
  max-width: var(--pi-shell-max);
  margin: var(--pi-edge) auto;
  overflow: hidden;
  background: var(--pi-paper);
  border-radius: var(--pi-radius);
  box-shadow: var(--pi-shadow);
}

.pi-header-stage {
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
}

.pi-header-art {
  width: 100% !important;
  max-width: var(--pi-shell-max);
  height: 200px !important;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-color: var(--pi-chalk) !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  border-radius: 0;
  box-shadow: none;
}

.pi-header-content {
  width: 100%;
}

.pi-brand-nav {
  display: block;
  width: 100% !important;
  margin: 0 !important;
}

.pi-brand-nav > tbody,
.pi-brand-nav > tbody > tr {
  display: block;
  width: 100%;
}

.pi-brand-copy {
  position: absolute;
  top: 16px;
  left: 58%;
  display: block;
  width: 416px !important;
  height: auto !important;
  padding: 0;
  color: #ffffff;
  text-align: center;
  vertical-align: top;
  transform: translateX(-50%);
}

.pi-brand-copy .zagg1,
.pi-brand-copy .zagg {
  width: auto;
  margin: 0;
  padding: 0;
  font-family: var(--pi-font);
  text-align: center;
  text-shadow: 0 1px 4px rgba(2, 31, 27, 0.8);
}

.pi-brand-copy .zagg1 {
  color: #dbece7;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.pi-brand-copy .zagg {
  margin-top: 5px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.15;
}

.pi-utility-cell {
  position: absolute;
  right: 85px;
  bottom: 0;
  display: block;
  width: 560px !important;
  height: 77px !important;
}

.pi-utility-nav {
  width: 560px !important;
  table-layout: fixed;
}

.pi-utility-nav .pi-utility-item {
  width: 25% !important;
  min-width: 0;
  padding: 4px;
  overflow: hidden;
  vertical-align: top;
}

.pi-utility-nav .linkunder {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  padding: 5px 8px;
  color: #ffffff;
  border-radius: 10px;
  font-family: var(--pi-font);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.pi-utility-nav .linkunder:hover,
.pi-utility-nav .linkunder:focus-visible {
  color: #ffffff;
  background: rgba(5, 45, 91, 0.48);
}

.pi-utility-nav .linkunder img {
  display: block;
  width: auto !important;
  max-width: 32px;
  height: 32px !important;
  margin: 0 auto;
  object-fit: contain;
}

.pi-utility-nav .linkunder br,
.pi-category-nav .linkunder2 br {
  display: none;
}

.pi-age-mark {
  position: absolute;
  right: 28px;
  bottom: 17px;
  display: block;
  width: auto;
  padding: 0;
  text-align: right;
}

.pi-age-mark p {
  margin: 0 !important;
  font-family: var(--pi-font);
  font-size: 32px !important;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(2, 31, 27, 0.8);
}

.pi-mobile-brand-art {
  display: none;
}

.pi-category-stage {
  width: 100% !important;
  max-width: var(--pi-shell-max);
  height: auto !important;
  margin: 0 auto;
  background: var(--pi-sand) !important;
  border-top: 1px solid #e4b96f;
  border-bottom: 1px solid #e4b96f;
  box-shadow: none !important;
}

.pi-category-stage > tbody > tr > td {
  padding: 10px 12px;
}

.pi-category-nav {
  width: 100% !important;
  max-width: 759px;
  margin: 0 auto;
  table-layout: fixed;
}

.pi-category-item {
  min-width: 0;
  padding: 2px 4px;
  vertical-align: top;
}

.pi-category-nav .linkunder2 {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px;
  color: var(--pi-chalk-deep);
  border-radius: 10px;
  font-family: var(--pi-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
}

.pi-category-nav .linkunder2:hover,
.pi-category-nav .linkunder2:focus-visible {
  color: var(--pi-chalk-deep);
  background: rgba(255, 255, 255, 0.5);
}

.pi-category-nav .linkunder2 img {
  display: block;
  width: auto !important;
  max-width: 74px;
  height: 46px !important;
  margin: 0 auto;
  object-fit: contain;
}

.pi-main-shell,
.pi-footer {
  width: 100% !important;
  max-width: var(--pi-shell-max);
  margin-right: 0 !important;
  margin-left: 0 !important;
  overflow: hidden;
  box-shadow: none !important;
}

.pi-main-shell {
  margin-top: 0 !important;
  background: var(--pi-paper) !important;
  border-radius: 0;
  table-layout: fixed;
}

.pi-main-content {
  min-width: 0;
  text-align: left;
}

.pi-content {
  min-width: 0;
  margin: 28px !important;
  color: var(--pi-ink);
  font-family: var(--pi-font);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.pi-content h1,
.pi-content h2,
.pi-content h3 {
  color: var(--pi-ink);
  font-family: var(--pi-font);
  text-align: left;
}

.pi-content h1 {
  max-width: 30ch;
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.pi-content h2 {
  margin: 34px 0 12px;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.3;
}

.pi-content h3 {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.pi-content p,
.pi-content li {
  max-width: 72ch;
}

.pi-content p {
  margin-top: 0;
  text-align: left;
}

.pi-content img {
  max-width: 100%;
  height: auto;
}

.pi-content > table[width="745"]:not(.pi-event-meta):not(.pi-results-table) {
  width: 100% !important;
  max-width: 100%;
  border-spacing: 0;
}

.pi-event-list {
  table-layout: fixed;
}

.pi-event-list td {
  min-width: 0;
  vertical-align: middle;
}

.pi-event-list .pi-event-period {
  width: 210px !important;
  padding: 10px 12px;
  text-align: left !important;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pi-event-list .pi-event-name {
  width: auto !important;
  padding: 10px 12px;
  text-align: left !important;
  overflow-wrap: break-word;
}

.pi-event-list .pi-event-action {
  width: 44px !important;
  padding: 4px 6px;
  text-align: center !important;
}

.pi-event-list-head > td {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  line-height: 1.25;
}

.pi-event-separator > td {
  height: 1px !important;
  padding: 0 !important;
  background: none !important;
  border-top: 1px solid var(--pi-line);
}

.pi-event-archive {
  display: inline-block;
  width: auto !important;
  max-width: 100%;
  margin: 16px 0 !important;
  padding: 12px 14px !important;
  vertical-align: top;
}

.pi-event-archive a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  white-space: nowrap;
}

.pi-event-archive img {
  flex: 0 0 auto;
  margin: 0 8px 0 0 !important;
}

.pi-content td[background$="/pin.png"][height="1"] {
  height: 1px !important;
  padding: 0 !important;
  background: none !important;
  border-top: 1px solid var(--pi-line);
  font-size: 0;
  line-height: 0;
}

.pi-content img[src$="/spacer.gif"][height="0"] {
  display: block;
  width: 1px !important;
  height: 0 !important;
}

.pi-content .gallery {
  width: 100%;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.pi-content .gallery > table[width="700"] {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border-spacing: 0;
}

.pi-content .gallery > table[width="700"] > tbody {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 14px;
}

.pi-content .gallery > table[width="700"] > tbody > tr {
  display: contents;
}

.pi-content .gallery td[width="33%"] {
  display: flex;
  width: auto !important;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  text-align: center !important;
  vertical-align: bottom;
}

.pi-content .gallery td[width="33%"] > li {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  list-style: none;
  text-align: center;
}

.pi-content .gallery td[width="33%"] > li > a {
  display: inline-flex;
  max-width: 100%;
  justify-content: center;
}

.pi-content .gallery td[width="33%"] .borderred {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.pi-content .gallery td[width="33%"] > b {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

.pi-content .gallery td[width="33%"] > br {
  display: none;
}

.pi-content .gallery td[width="33%"] > .podpis {
  width: 100%;
  margin: 2px 0 0 !important;
  padding: 0;
  color: var(--pi-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center !important;
}

.pi-content .gallery td[width="33%"] form {
  margin: 8px auto 0;
  text-align: center;
}

.pi-content .gallery td[colspan="3"] {
  display: block;
  width: auto !important;
  grid-column: 1 / -1;
  padding-top: 4px;
  text-align: center !important;
}

.pi-feed-item {
  width: 100% !important;
  max-width: 44rem;
  table-layout: fixed;
  border-spacing: 0;
}

.pi-feed-item td {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pi-feed-item > tbody > tr:last-child > td {
  height: 1px !important;
  padding: 0 !important;
  background: none !important;
  border-top: 1px solid var(--pi-line);
}

.pi-content .podat {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 9px 14px;
  color: #ffffff;
  background: var(--pi-chalk);
  border-radius: 999px;
  font-family: var(--pi-font);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

.pi-content .podat a {
  color: #ffffff;
  text-decoration: none;
}

.pi-event-meta {
  width: 100% !important;
  margin: 0 0 24px;
  overflow: hidden;
  background: var(--pi-paper);
  border: 1px solid var(--pi-line);
  border-radius: 14px;
  border-spacing: 0;
}

.pi-event-media {
  width: 282px;
  padding: 16px;
  background: var(--pi-sand-soft);
  border-right: 1px solid #e7c788;
  text-align: center;
  vertical-align: middle !important;
}

.pi-event-photo {
  display: block;
  float: none !important;
  width: auto !important;
  max-width: 250px !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 10px;
}

.pi-event-details {
  min-width: 0;
  padding: 18px 20px;
  color: var(--pi-ink);
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}

.pi-event-details strong {
  color: var(--pi-chalk-deep);
  font-weight: 750;
}

.pi-section-rule {
  height: 1px;
  margin: 34px 0 0;
  background: var(--pi-line);
  border: 0;
}

.pi-table-hint {
  display: none;
  margin: 0 0 8px !important;
  color: var(--pi-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pi-results-table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 12px 0 22px;
  overflow-x: auto;
  border: 1px solid var(--pi-line);
  border-radius: 12px;
  border-spacing: 0 !important;
  font-family: var(--pi-font);
  font-size: 14px;
  line-height: 1.45;
  overscroll-behavior-inline: contain;
}

.pi-results-table tbody {
  display: table;
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.pi-results-table-compact tbody {
  min-width: 480px;
}

.pi-results-table td {
  padding: 10px 12px !important;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--pi-line);
}

.pi-results-table tr:first-child td {
  color: var(--pi-chalk-deep);
  background: var(--pi-chalk-soft) !important;
  font-size: 13px;
  font-weight: 750;
}

.pi-results-table tr:last-child td {
  border-bottom: 0;
}

.pi-pagination {
  margin: 18px 0 28px;
  text-align: center;
}

.pi-pagination a,
.pi-pagination .addinfo {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 3px;
  border-radius: 8px;
}

.pi-sidebar {
  width: 235px !important;
  padding: 20px 12px 24px 0;
  color: var(--pi-ink);
  font-family: var(--pi-font);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.pi-sidebar-module,
.pi-news-list {
  width: 100%;
  margin: 0 0 16px !important;
  padding: 14px !important;
  background: var(--pi-paper-soft) !important;
  border: 1px solid var(--pi-line) !important;
  border-radius: 12px;
}

.pi-sidebar .linkunder3 {
  margin: 0 0 12px;
  color: var(--pi-ink);
  font-family: var(--pi-font);
  font-size: 16px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
}

.pi-login-card,
.pi-login-card > tbody,
.pi-login-card > tbody > tr,
.pi-login-card > tbody > tr > td,
.pi-login-form-table,
.pi-cabinet-menu {
  width: 100% !important;
}

.pi-login-card {
  background: transparent !important;
  border: 0 !important;
  border-spacing: 0;
}

.pi-login-form-table td {
  display: block;
  width: 100%;
  padding: 0 0 5px;
}

.pi-login-form-table .logoinput {
  width: 100% !important;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--pi-ink);
  background: #ffffff;
  border: 1px solid #899a95;
  border-radius: 8px;
  font-size: 16px;
}

.pi-login-submit-cell {
  padding-top: 4px !important;
}

.pi-login-submit,
.pi-cabinet-logout {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 4px 0 2px;
  padding: 9px 14px;
  color: #ffffff;
  background: var(--pi-blue);
  border: 0;
  border-radius: 8px;
  font: 700 14px/1.2 var(--pi-font);
  text-decoration: none;
  cursor: pointer;
}

.pi-login-submit:hover,
.pi-login-submit:focus-visible,
.pi-cabinet-logout:hover,
.pi-cabinet-logout:focus-visible {
  color: #ffffff;
  background: #123f76;
  text-decoration: none;
}

.pi-login-form-table .reg,
.pi-cabinet-menu .linkspisok1 {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: var(--pi-blue);
  font-family: var(--pi-font);
  font-size: 13px;
  font-weight: 650;
}

.pi-login-form-table .pi-login-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 4px;
  padding: 4px 0 0;
  border-top: 1px solid var(--pi-line);
}

.pi-login-actions .reg {
  width: 100%;
  min-height: 38px;
  padding: 7px 0;
  border-bottom: 1px solid var(--pi-line);
  text-decoration: none;
}

.pi-login-actions .reg:last-child {
  border-bottom: 0;
}

.pi-login-actions .reg:hover,
.pi-login-actions .reg:focus-visible {
  color: #123f76;
  text-decoration: underline;
}

.pi-cabinet-menu td > div:first-child {
  margin: 0 0 4px;
  padding: 0 8px;
}

.pi-cabinet-menu br {
  display: none;
}

.pi-cabinet-menu .linkspisok1 {
  display: flex;
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--pi-line);
  border-radius: 6px;
  line-height: 1.25;
  text-decoration: none;
}

.pi-cabinet-menu .linkspisok1:hover,
.pi-cabinet-menu .linkspisok1:focus-visible {
  color: #123f76;
  background: #edf4fb;
  text-decoration: none;
}

.pi-cabinet-logout-cell {
  padding-top: 8px;
}

.pi-participant-module table,
.pi-participant-module tbody,
.pi-participant-module tr {
  display: block;
  width: 100%;
}

.pi-participant-module {
  container: pi-participant-module / inline-size;
}

.pi-participant-module td {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.pi-participant-module a {
  display: inline-flex;
  flex: 0 1 auto;
  max-width: calc(50% - 5px);
  padding: 0;
  background: transparent;
  border-radius: 4px;
}

.pi-participant-module br {
  display: none;
}

.pi-participant-module img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 82px;
  margin: 0 !important;
  object-fit: contain;
}

@container pi-participant-module (min-width: 320px) {
  .pi-participant-module a {
    max-width: calc(33.333% - 8px);
  }

  .pi-participant-module img {
    max-height: 110px;
  }
}

@container pi-participant-module (min-width: 560px) {
  .pi-participant-module td {
    gap: 14px;
  }

  .pi-participant-module img {
    max-height: 150px;
  }
}

.pi-news-heading {
  margin: 24px 0 10px !important;
}

.pi-news-list h2 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.pi-news-list .datess {
  margin: 0 0 4px;
  color: var(--pi-danger);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pi-news-list .newssleft {
  color: var(--pi-muted);
  font-size: 13px;
  line-height: 1.5;
}

.pi-news-list img {
  max-width: 100%;
  height: auto;
}

.pi-content a {
  overflow-wrap: anywhere;
}

.pi-content iframe,
.pi-content video {
  max-width: 100%;
}

.pi-vk-module {
  padding-right: 8px !important;
  padding-left: 8px !important;
  overflow: hidden;
}

.pi-vk-widget {
  width: 100% !important;
  max-width: 440px;
  margin: 0 auto;
  overflow: hidden;
}

.pi-vk-widget iframe {
  width: 100% !important;
  max-width: 100%;
}

.pi-vk-placeholder {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 18px;
  color: var(--pi-muted);
  background: #ffffff;
  border: 1px dashed #9aaba6;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.pi-footer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 20px;
  color: #342817;
  background: var(--pi-sand) !important;
  font-family: var(--pi-font);
  font-size: 13px;
  line-height: 1.55;
  border-radius: 0;
  box-shadow: none !important;
}

.pi-footer-copy {
  max-width: 78ch;
  margin: 0 auto 14px !important;
  color: #342817;
  font-family: var(--pi-font);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.pi-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto !important;
  padding: 0;
  text-align: center;
}

.pi-footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #293f5f;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 900px) {
  .pi-main-shell {
    display: block;
    width: 100% !important;
  }

  .pi-main-shell > tbody,
  .pi-main-shell > tbody > tr,
  .pi-main-content,
  .pi-sidebar {
    display: block;
    width: 100% !important;
  }

  .pi-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 20px 24px;
  }

  .pi-sidebar > * {
    min-width: 0;
  }

  .pi-sidebar-module,
  .pi-sidebar > script,
  .pi-vk-widget,
  .pi-vk-widget + script,
  .pi-vk-widget + script + br {
    grid-column: span 1;
  }

  .pi-news-heading,
  .pi-news-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .pi-header-stage {
    height: auto !important;
    background: var(--pi-chalk) !important;
  }

  .pi-header-stage,
  .pi-header-art,
  .pi-brand-nav,
  .pi-utility-nav {
    max-width: 100%;
    table-layout: fixed;
  }

  .pi-header-stage,
  .pi-header-stage > tbody,
  .pi-header-stage > tbody > tr,
  .pi-header-stage > tbody > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
  }

  .pi-header-art {
    width: 100% !important;
    height: auto !important;
    padding-top: 0;
    background-color: var(--pi-chalk) !important;
    background-image: none !important;
  }

  .pi-header-art,
  .pi-header-art > tbody,
  .pi-header-art > tbody > tr,
  .pi-header-content,
  .pi-brand-nav,
  .pi-brand-nav > tbody,
  .pi-brand-nav > tbody > tr,
  .pi-brand-copy,
  .pi-utility-cell {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
  }

  .pi-header-art {
    width: 100% !important;
  }

  .pi-brand-nav {
    margin: 0 !important;
  }

  .pi-mobile-brand-art {
    display: block;
    width: 100%;
    min-height: 68px;
    aspect-ratio: 1021 / 200;
    background-color: var(--pi-chalk);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .pi-brand-copy {
    position: static;
    padding: 12px 52px 16px 16px;
    background: var(--pi-chalk);
    transform: none;
  }

  .pi-brand-copy .zagg1 {
    font-size: clamp(14px, 3.6vw, 16px);
  }

  .pi-brand-copy .zagg {
    font-size: clamp(18px, 4.8vw, 22px);
  }

  .pi-utility-cell {
    position: relative;
    right: auto;
    bottom: auto;
    padding: 8px 12px 12px;
    background: #1f68bd;
  }

  .pi-brand-nav > tbody > tr:last-child {
    position: relative;
  }

  .pi-utility-nav,
  .pi-utility-nav > tbody {
    display: block;
    width: 100% !important;
  }

  .pi-utility-nav > tbody > tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pi-utility-nav .pi-utility-item {
    display: block;
    width: auto !important;
    padding: 0;
  }

  .pi-utility-nav .linkunder {
    display: grid;
    min-height: 44px;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 8px;
    padding: 4px 8px;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }

  .pi-utility-nav .linkunder img {
    width: auto !important;
    max-width: 44px;
    height: 38px !important;
    margin: 0 auto;
  }

  .pi-age-mark {
    position: absolute;
    z-index: 2;
    top: -55px;
    right: 10px;
    display: block;
    width: auto;
    padding: 0;
  }

  .pi-age-mark p {
    font-size: 18px !important;
  }

  .pi-category-nav,
  .pi-category-nav > tbody {
    display: block;
    width: 100% !important;
  }

  .pi-category-nav > tbody > tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .pi-category-item {
    display: block;
    width: auto !important;
    padding: 0;
  }

  .pi-category-nav .linkunder2 {
    min-height: 84px;
    font-size: 13px;
  }

  .pi-content {
    margin: 22px 20px !important;
  }

  .pi-content h1 {
    font-size: 23px;
  }

  .pi-content form[name="frm1"],
  .pi-content form[name="frm1"] > table {
    width: 100% !important;
    max-width: 100%;
  }

  .pi-content form[name="frm1"] > table {
    table-layout: fixed;
  }

  .pi-content form[name="frm1"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  .pi-content form[name="frm1"] select,
  .pi-content form[name="frm1"] textarea,
  .pi-content form[name="frmseach"] select,
  .pi-content form[name="frmseach"] input[type="submit"] {
    width: 100% !important;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 16px;
  }

  .pi-event-meta,
  .pi-event-meta > tbody,
  .pi-event-meta > tbody > tr,
  .pi-event-media,
  .pi-event-details {
    display: block;
    width: 100% !important;
  }

  .pi-event-media {
    border-right: 0;
    border-bottom: 1px solid #e7c788;
  }

  .pi-event-photo {
    max-width: min(100%, 250px) !important;
  }

  .pi-event-details {
    padding: 16px;
  }

  .pi-table-hint {
    display: block;
  }

  .pi-sidebar {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 20px 24px;
  }

  .pi-footer {
    padding: 18px;
  }

  .pi-footer-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 22rem;
    gap: 0;
    text-align: left;
  }

  .pi-footer-links a {
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid rgba(52, 40, 23, 0.18);
  }
}

@media (max-width: 640px) {
  .pi-help-detail,
  .pi-help-detail > tbody,
  .pi-help-detail > tbody > tr,
  .pi-help-detail > tbody > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }

  .pi-help-detail > tbody > tr > td[width="60"] {
    margin-top: 16px;
  }

  .pi-help-detail table[border="1"] {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .pi-help-detail table[border="1"] td {
    min-width: 96px;
    padding: 8px;
  }

  .pi-content img[align="left"] {
    float: none !important;
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 16px !important;
  }

  .pi-content table:has(form[action="/registration-form"]),
  .pi-content table:has(form[action="/registration-form"]) > tbody,
  .pi-content table:has(form[action="/registration-form"]) > tbody > tr {
    display: block;
    width: 100% !important;
    max-width: 100%;
  }

  .pi-content table:has(form[action="/registration-form"]) > tbody > tr > td {
    display: block;
    width: 100% !important;
    min-width: 0;
    padding: 18px 0 24px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--pi-line);
  }

  .pi-content table:has(form[action="/registration-form"]) > tbody > tr > td:first-child {
    padding-top: 0;
  }

  .pi-content table:has(form[action="/registration-form"]) > tbody > tr > td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .pi-content table:has(form[action="/registration-form"]) img {
    width: auto !important;
    max-width: min(100%, 240px);
    height: auto !important;
    margin: 0 auto;
  }

  .pi-content table:has(form[action="/registration-form"]) ul {
    padding-left: 20px;
  }

  .pi-content table:has(form[action="/registration-form"]) .buttonbig {
    width: 100%;
    max-width: 280px;
    min-height: 44px;
    white-space: normal;
  }

  .pi-content form[name="frm1"],
  .pi-content form[name="frm1"] > table,
  .pi-content form[name="frm1"] > table > tbody,
  .pi-content form[name="frm1"] > table > tbody > tr,
  .pi-content form[name="frm1"] > table > tbody > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }

  .pi-content form[name="frm1"] > table {
    border-spacing: 0;
  }

  .pi-content form[name="frm1"] > table > tbody > tr > td {
    height: auto !important;
    padding: 0 0 8px;
    text-align: left !important;
  }

  .pi-content form[name="frm1"] h2 {
    margin: 22px 0 12px;
    padding: 14px 12px;
    overflow-wrap: anywhere;
  }

  .pi-content form[name="frm1"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  .pi-content form[name="frm1"] select,
  .pi-content form[name="frm1"] textarea {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    color: var(--pi-ink);
    background: #ffffff;
    border: 1px solid #899a95;
    border-radius: 8px;
    font: 16px/1.35 var(--pi-font);
  }

  .pi-content form[name="frm1"] input[type="checkbox"],
  .pi-content form[name="frm1"] input[type="radio"] {
    width: 22px;
    height: 22px;
    margin: 0 8px 0 0;
    vertical-align: middle;
  }

  .pi-content form[name="frm1"] label,
  .pi-content form[name="frm1"] i,
  .pi-content form[name="frm1"] b {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .pi-content form[name="frm1"] .buttonbig {
    width: 100% !important;
    margin-top: 8px;
    white-space: normal;
  }

  .pi-content form[name="frmseach"] {
    display: flex;
    width: 100%;
    max-width: 28rem;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 24px;
  }

  .pi-content form[name="frmseach"] br {
    display: none;
  }

  .pi-content form[name="frmseach"] select,
  .pi-content form[name="frmseach"] input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    color: var(--pi-ink);
    background: #ffffff;
    border: 1px solid #899a95;
    border-radius: 8px;
    font: 16px/1.35 var(--pi-font);
  }

  .pi-content form[name="frmseach"] input[type="submit"] {
    color: #ffffff !important;
    background: var(--pi-blue) !important;
    border-color: var(--pi-blue);
    font-weight: 700;
    cursor: pointer;
  }

  .pi-content form[name="frmseach"] ~ table[width="100%"] {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .pi-event-list,
  .pi-event-list > tbody {
    display: block;
    width: 100% !important;
  }

  .pi-event-list-head {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .pi-event-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    padding: 12px 0;
    border-top: 1px solid var(--pi-line);
  }

  .pi-event-row > .pi-event-period,
  .pi-event-row > .pi-event-name,
  .pi-event-row > .pi-event-action {
    display: block;
    width: auto !important;
    height: auto !important;
  }

  .pi-event-row > .pi-event-period {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    padding: 0;
    color: var(--pi-muted);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
  }

  .pi-event-row > .pi-event-name {
    grid-column: 1;
    padding: 0 10px 0 0;
    line-height: 1.45;
  }

  .pi-event-row > .pi-event-action {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    padding: 0;
  }

  .pi-event-list-gallery .pi-event-name,
  .pi-event-list-archive .pi-event-name {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .pi-event-separator {
    display: none;
  }

  .pi-event-archive {
    margin-top: 14px !important;
  }
}

@media (max-width: 560px) {
  .pi-content .gallery > table[width="700"] > tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
}

@media (max-width: 420px) {
  .pi-brand-copy {
    padding-right: 44px;
  }

  .pi-sidebar {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 340px) {
  .pi-utility-nav > tbody > tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .pi-event-archive a {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .pi-content .gallery > table[width="700"] > tbody {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 367px) {
  .pi-category-nav > tbody > tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 300px) {
  .pi-utility-nav > tbody > tr,
  .pi-category-nav > tbody > tr {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (pointer: coarse) {
  .pi-utility-nav .linkunder,
  .pi-category-nav .linkunder2,
  .pi-footer-links a,
  .pi-login-form-table .reg,
  .pi-cabinet-menu .linkspisok1 {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pi-refresh-v1 * {
    scroll-behavior: auto !important;
  }
}

/* Apply after style-refresh-v1.css. Keep the legacy link and its image alt. */
.pi-event-list-with-action .pi-event-action {
  width: 68px !important;
  padding: 12px !important;
}

.pi-event-list-with-action .pi-event-list-head > td {
  background: var(--pi-paper-soft, #f6f8f7);
}

.pi-event-list-with-action .pi-event-row > td {
  border-bottom: 1px solid var(--pi-line, #d8dfdc);
}

.pi-event-list-with-action .pi-event-separator {
  display: none;
}

.pi-event-action a:has(> img[src$="/galka.jpg"]) {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--pi-chalk-soft, #e4efeb);
  vertical-align: middle;
  line-height: 0;
}

.pi-event-action a > img[src$="/galka.jpg"] {
  content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%230a4c42%22%3E%0A%20%20%3Cpath%20d%3D%22M20.56%205.44a1.5%201.5%200%200%201%200%202.12l-10%2010a1.5%201.5%200%200%201-2.12%200l-5-5a1.5%201.5%200%200%201%202.12-2.12l3.94%203.94%208.94-8.94a1.5%201.5%200%200%201%202.12%200Z%22%2F%3E%0A%3C%2Fsvg%3E%0A");
  width: 24px;
  height: 24px;
}

.pi-event-action a:has(> img[src$="/galka.jpg"]):hover {
  background: #cfdfd8;
}

.pi-event-action a:has(> img[src$="/galka.jpg"]):focus-visible {
  outline: 3px solid var(--pi-chalk, #0a4c42);
  outline-offset: 3px;
}

/* Closed applications: same footprint, neutral color, no interactive state. */
.pi-event-action > img[src$="/galka1.jpg"] {
  content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2044%2044%22%3E%0A%20%20%3Crect%20width%3D%2244%22%20height%3D%2244%22%20rx%3D%2210%22%20fill%3D%22%23f0f3f2%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%2022h12%22%20fill%3D%22none%22%20stroke%3D%22%23788781%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A");
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .pi-event-list-with-action .pi-event-action {
    width: auto !important;
    padding: 0 !important;
  }

  .pi-event-list-with-action .pi-event-row > td {
    border-bottom: 0;
  }
}

/* Schedule only: keep the legacy form, links and values intact. */
.pi-content form[name="frmseach"] ~ table[width="100%"] {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr > td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--pi-line);
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr > td:first-child { width: 46%; }
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr > td:nth-child(2) { width: 15%; }
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr > td:nth-child(3) { width: 23%; }
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr > td:nth-child(4) { width: 16%; }
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:first-child > td {
  background: var(--pi-paper-soft);
  font-weight: 700;
}
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr > td p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr > td a {
  font-size: 15px !important;
  line-height: 1.5;
}
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr > td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
.pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:has(> td[colspan="4"]) { display: none; }

@media (max-width: 1100px) {
  .pi-content form[name="frmseach"] ~ table[width="100%"], .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:not(:first-child):not(:has(> td[colspan="4"])) {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--pi-line);
  }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:not(:first-child) > td {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
  }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:not(:first-child) > td:first-child {
    margin-bottom: 12px;
  }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:not(:first-child) > td:first-child a {
    font-size: 16px !important;
  }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:not(:first-child) > td:nth-child(n+2) {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 12px;
    margin-top: 6px;
    font-size: 14px;
  }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:not(:first-child) > td:nth-child(n+2)::before {
    color: var(--pi-muted);
  }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:not(:first-child) > td:nth-child(2)::before { content: "\412 \43e \437 \440 \430 \441 \442 \43d \430 \44f  \43a \430 \442 \435 \433 \43e \440 \438 \44f "; }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:not(:first-child) > td:nth-child(3)::before { content: "\41f \440 \438 \435 \43c  \437 \430 \44f \432 \43e \43a  \438  \440 \430 \431 \43e \442 "; }
  .pi-content form[name="frmseach"] ~ table[width="100%"] > tbody > tr:not(:first-child) > td:nth-child(4)::before { content: "\41f \43e \434 \432 \435 \434 \435 \43d \438 \435  \438 \442 \43e \433 \43e \432 "; }
}
