.shift-worker-content .p15-section {
  margin-block: 0 28px;
  padding-block: 0 22px;
  border-bottom: 1px solid var(--line);
}
.shift-worker-content .p15-actions,
.article-story .p15-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.shift-worker-content[data-catalog] {
  width: 100%;
}
.shift-worker-content .p15-filter {
  padding: 14px 0;
}
.shift-worker-content .p15-filter label {
  display: block;
  margin-block: 8px;
}
.shift-worker-content :is(input[type=search],select) {
  display: block;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #8293b3;
  border-radius: 9px;
  padding: 8px 12px;
  background: #fff;
  font: inherit;
}
.shift-worker-content .p15-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,240px),1fr));
  gap: 12px;
}
.shift-worker-content .p15-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.shift-worker-content .p15-item h3 {
  margin-block-start: 0;
}
.shift-worker-content .p15-category {
  color: var(--muted);
}
.shift-worker-content .p15-filter button,
.shift-worker-content .p15-pager button {
  margin: 6px 8px 6px 0;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--pale);
  color: var(--blue-dark);
  font: inherit;
}
.shift-worker-content .kazan-route-list li p {
  margin-block: 3px 10px;
}
.shift-worker-content [hidden] {
  display: none !important;
}
.shift-article-settings [id] {
  scroll-margin-top: 20px;
}
.shift-article-settings .article-worker-actions {
  display: none;
}

.service-app-image {
  display: grid;
  place-items: center;
  padding: 15px 18px;
  background: #e3ebff;
  border: 1px solid #dce4f3;
  border-radius: var(--radius);
}
.article-hero-figure .service-app-phone {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 325px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
@media (max-width: 650px) {
  .article-hero-figure .service-app-phone { max-height: 280px; }
}

.article-story .worker-example table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}
.article-story .worker-example :is(th,td) {
  border: 1px solid var(--line);
  padding: clamp(5px,1vw,12px);
  text-align: start;
  vertical-align: top;
}
@media (max-width: 480px) {
  .article-story .worker-example table { font-size: 0.83em; }
}

[data-historical-fragment] {
  scroll-margin-top: 7rem;
}
span[data-historical-fragment] {
  display: block;
}

.interior-page .content-hero-actions .content-hero-app.button {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  padding-inline: 24px;
  min-height: 48px;
}
.interior-page .content-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 44px;
  color: var(--blue-dark);
  text-underline-offset: .2em;
  text-decoration: underline;
  font-weight: 700;
}
.content-hero-secondary .icon, .p15-control .icon { width: 18px; height: 18px; flex: none; }
.interior-page .footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 24px;
  text-align: center;
}
.interior-page .footer-main .brand, .interior-page .footer-main p { margin: 0 auto; }
.interior-page .footer-main p { flex: 0 0 100%; }
.interior-page #smena-content-links { text-align: center; }
.interior-page #smena-content-links nav { justify-content: center; }

.catalog-hero .service-app-image {
  box-sizing: border-box;
  width: min(100%, 256px);
  margin-inline: auto;
  padding: 5px 0;
  background: #eaf0fd;
}

.catalog-hero .article-hero-figure .service-app-phone {
  aspect-ratio: 900 / 1289;
  width: auto;
  height: clamp(245px, 43vw, 350px);
  max-height: none;
  max-width: 100%;
  object-fit: contain;
}
.p15-search-section {
  margin-block: 0 28px;
  padding: clamp(12px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pale);
}
.p15-search-section h2 { margin: 0 0 8px; }
.p15-search-section .p15-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: end;
  gap: 9px 14px;
  padding: 0;
}
.p15-search-section .p15-filter label { margin: 0; min-width: 0; }
.p15-search-section .p15-filter :is(input, select) { width: 100%; margin-top: 6px; }
.p15-search-section .p15-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.p15-search-section .p15-filter [type=submit] { background: var(--blue-dark); color: #fff; }

@media (min-width: 901px) and (max-width: 1180px) {
  body.interior-page .header-inner { position: relative; gap: 16px; }
  body.interior-page .header-inner .header-offers { margin-inline-start: auto; }
  body.interior-page .header-inner .menu-button { display: block !important; flex: none; margin: 0; }
  body.interior-page .header-inner .main-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto auto;
    min-width: 205px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px #18233724;
    padding: 8px;
  }
  body.interior-page .header-inner .main-nav.is-open { display: flex !important; }
  body.interior-page .header-inner .main-nav a { padding: 11px 14px; }
  body.interior-page .header-inner .header-cta { flex: none; white-space: nowrap; }
}

@media (max-width: 768px) {
  body.interior-page { padding-bottom: max(75px, calc(70px + env(safe-area-inset-bottom))); }
  body.interior-page:not([data-worker-dock-visible]) .sticky-cta:not(:focus-within) { display: none; }
  body.interior-page[data-worker-dock-visible] .sticky-cta,
  body.interior-page .sticky-cta:focus-within {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-block-start: 1px solid var(--line);
    box-shadow: 0 -3px 20px #1823371a;
    pointer-events: auto;
  }
  body.interior-page .sticky-cta :is([data-app-cta], .mobile-contact) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 48px;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 6px 7px;
    font-size: clamp(13px, 3.9vw, 16px);
    line-height: 1.12;
    white-space: normal;
    text-align: center;
  }
  body.interior-page .sticky-cta .mobile-contact .icon { flex: none; width: 15px; height: 15px; }
  body.interior-page .sticky-cta .mobile-contact span { display: inline; }
  .catalog-hero .article-hero-figure .service-app-phone { height: clamp(245px, 85vw, 350px); }
}

@media (max-width: 430px) {
  .interior-page .content-hero-actions .content-hero-app.button { width: 100%; }
}

body.interior-page { padding-block-start: var(--worker-header-height, 89px); }
body.interior-page > .site-header { position: fixed; inset: 0 0 auto; }
body.interior-page :is(main [id], footer [id]) {
  scroll-margin-block-start: calc(var(--worker-header-height, 89px) + 12px);
}
@media (max-width: 900px) {
  body.interior-page { padding-block-start: var(--worker-header-height, 75px); }
}

.places-section { margin-block: 0 clamp(32px, 5vw, 64px); }
.places-map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.places-map summary {
  padding: clamp(14px, 2.4vw, 22px);
  min-height: 48px;
  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 750;
  cursor: pointer;
}
.places-map summary::marker { color: var(--blue-dark); }
.places-map-body { padding: 0 clamp(14px, 2.4vw, 22px) 18px; }
.places-map-description, .places-map-precision, .places-map-pending, .places-map-network { color: var(--muted); }
.places-map-description { margin: 10px 0; }
.places-map-list {
  max-height: 15rem;
  overflow-y: auto;
  margin: 8px 0 0;
  padding: 0 6px 0 24px;
  overflow-wrap: anywhere;
}
.places-map-list li { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.places-map-list li[data-place-selected] { background: var(--pale); }
.places-map-list strong { display: block; }
.places-map-precision { display: block; font-size: 0.875rem; }
.places-map-focus {
  border: 0; padding: 0; min-height: 36px;
  color: var(--blue-dark); background: transparent;
  text-decoration: underline; font: inherit; cursor: pointer;
}
.places-map-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(220px,32vw,340px);
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.places-map-tiles, .places-map-markers { position: absolute; inset: 0; }
.places-map-tiles img { position: absolute; max-width: none; }
.places-map-tiles img[hidden] { display: none; }
.places-map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  min-width: 32px; min-height: 32px;
  border: 2px solid #fff; border-radius: 999px;
  background: var(--blue-dark); color: #fff;
  font: inherit; font-size: 0.82rem; font-weight: 750;
  cursor: pointer;
}
.places-map-marker[hidden] { display: none; }
.places-map-marker[aria-pressed="true"] { background: var(--ink); z-index: 1; }
.places-map-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 8px; }
.places-map-controls button {
  min-width: 44px; min-height: 44px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 9px;
  color: var(--blue-dark); background: var(--pale);
  font: inherit; font-weight: 650; cursor: pointer;
}
.places-map-selected { margin: 4px 0; }
.places-map-attribution {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  padding: 2px 6px; border-radius: 6px 0 0 0;
  background: rgb(255 255 255 / 95%); font-size: 0.75rem;
}
.places-map-network { margin: 7px 0; font-size: 0.8rem; }

/* The article opening uses the approved home hero grid and palette. */
.article-home-hero {
  background: linear-gradient(115deg, #f6f9ff 25%, #e9f0ff 100%);
  padding-block: clamp(32px, 5vw, 72px);
}
.interior-page .article-home-hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 50px);
  min-height: clamp(360px, 34vw, 470px);
}
.interior-page .article-home-hero .hero-copy { text-align: left; }
.interior-page .article-home-hero .hero-copy h1 {
  margin-block: 14px 18px;
  font-size: clamp(40px, 3.75vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.042em;
}
.article-home-hero .hero-copy .hero-lead {
  color: #43536a;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  max-width: 52ch;
}
.interior-page .article-home-hero .content-hero-actions .content-hero-app.button {
  min-height: 54px;
  font-size: 16px;
}
.article-home-hero .content-hero-actions { gap: 8px 18px; }
.article-home-hero .article-toc {
  margin-block-start: 10px;
  max-width: 52ch;
  color: var(--ink);
}
.article-home-hero .article-toc summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  font-weight: 700;
}
.article-home-hero .article-toc summary::marker { color: var(--blue-dark); }
.article-home-hero .article-toc ul {
  margin-block: 0 12px;
  padding-inline-start: 22px;
  list-style: disc;
}
.article-home-hero .article-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.article-home-hero .article-hero-figure {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}
.article-cover-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3.2vw, 48px) clamp(6px, 1.2vw, 16px);
}
.article-cover-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(74%, 410px);
  aspect-ratio: 1;
  transform: translateY(-5%);
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid #cddaff;
  background: #dce7ff;
}
.article-home-hero .article-cover-stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow: 0 18px 34px rgba(35, 57, 100, .15);
}
.article-home-hero .article-hero-figure figcaption {
  position: relative;
  margin: 8px auto 0;
  max-width: 55ch;
  text-align: center;
}

@media (max-width: 900px) {
  .interior-page .article-home-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
  }
  .interior-page .article-home-hero .hero-copy h1 {
    font-size: clamp(32px, 5.2vw, 48px);
  }
}

@media (max-width: 650px) {
  .article-home-hero { padding-block: 24px 29px; }
  .interior-page .article-home-hero .hero-copy h1 {
    margin-block: 12px 14px;
    font-size: clamp(29px, 8.5vw, 40px);
  }
  .article-home-hero .hero-copy .hero-lead { font-size: 17px; }
  .interior-page .article-home-hero .content-hero-actions .content-hero-app.button { min-height: 48px; }
  .article-home-hero .article-toc { margin-block-start: 4px; }
  .article-cover-stage { padding: clamp(16px, 4.8vw, 28px) 2px; }
}

/* Keep both article actions above the fold on a short, narrow screen. */
@media (scripting: none) and (max-width: 1180px) {
  body.interior-page > .site-header { position: static !important; }
  body.interior-page .header-inner { flex-wrap: wrap; }
  body.interior-page .header-inner .menu-button { display: none !important; }
  body.interior-page .header-inner .main-nav {
    display: flex !important;
    position: static !important;
    flex: 1 1 100%;
    flex-flow: row wrap;
    order: 10;
    gap: 4px 12px;
    min-width: 0;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  .interior-page .article-home-hero { padding-block-start: 10px; }
  .interior-page .article-home-hero .hero-copy h1 {
    margin-block: 6px 8px;
    font-size: 27px;
    line-height: 1.08;
  }
  .interior-page .article-home-hero .hero-lead {
    font-size: 16px;
    line-height: 1.35;
    margin-block: 6px 10px;
  }
  .interior-page .article-home-hero .content-hero-actions { margin-top: 6px; gap: 4px; }
}

.release-short-lead{display:none}.release-fragment{display:block;position:relative;scroll-margin-top:calc(var(--worker-header-height,76px) + 10px)}@media(max-width:360px) and (max-height:640px){.hero .hero-lead.release-full-lead{display:none}.hero .hero-lead.release-short-lead{display:block}}
