.poputki-page {
  background: #fff;
}

.pk-case {
  --pk-ink: #10192d;
  --pk-muted: #47546b;
  --pk-blue: #0758d5;
  --pk-border: #dce5f2;
  --pk-frame: #182238;
  --pk-radius: clamp(20px, 3vw, 36px);
  color: var(--pk-ink);
  padding: clamp(12px, 2vw, 24px) 0 clamp(56px, 8vw, 100px);
}

.pk-case *,
.pk-case *::before,
.pk-case *::after {
  box-sizing: border-box;
}

.pk-case :where(h1, h2, h3, p, figure) {
  margin: 0;
}

.pk-case img {
  display: block;
  width: 100%;
  height: auto;
}

.pk-case > .pk-shell {
  padding-inline: clamp(14px, 2.4vw, 28px);
}

.pk-case .breadcrumb {
  flex-wrap: wrap;
  row-gap: 5px;
  margin: 0 0 22px;
}

.pk-case .breadcrumb__link--current,
.pk-case .breadcrumb__link:hover {
  color: var(--pk-blue);
}

.pk-skip {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 14px 18px;
  color: #fff;
  background: #10192d;
  border-radius: 8px;
  clip-path: inset(50%);
  pointer-events: none;
}

.pk-skip:focus {
  clip-path: none;
  pointer-events: auto;
}

.pk-case :is(a, button):focus-visible,
.pk-skip:focus-visible {
  outline: 3px solid #0968fa;
  outline-offset: 4px;
}

.pk-case .pk-kicker {
  margin-bottom: 15px;
  color: var(--pk-blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .085em;
  line-height: 1.45;
  text-transform: uppercase;
}

.pk-case h2 {
  font-size: clamp(1.875rem, 3.8vw, 3.45rem);
  font-weight: 750;
  letter-spacing: -.05em;
  line-height: 1.08;
  text-wrap: balance;
}

.pk-case h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.14;
  text-wrap: balance;
}

.pk-case p {
  font-size: clamp(1rem, 1.42vw, 1.125rem);
  line-height: 1.65;
}

.pk-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  background: #f7faff;
  box-shadow: 0 12px 40px #1533640a;
}

.pk-hero-copy {
  align-self: center;
  padding: clamp(26px, 4.5vw, 66px);
}

.pk-hero h1 {
  margin-bottom: 12px;
  color: var(--pk-ink);
  font-size: clamp(3rem, 7.3vw, 6.65rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .96;
}

.pk-hero .pk-tagline {
  max-width: 20ch;
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 2.45vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.15;
  text-wrap: balance;
}

.pk-hero .pk-lead {
  max-width: 39ch;
  color: var(--pk-muted);
}

.pk-actions,
.pk-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 26px;
}

.pk-button,
.pk-text-link,
.pk-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
}

.pk-button {
  padding: 13px 20px;
  border: 1px solid transparent;
  color: #fff;
  background: var(--pk-blue);
  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.pk-button:hover {
  background: #0349b7;
  box-shadow: 0 6px 16px #0349b733;
}

.pk-text-link,
.pk-back {
  color: var(--pk-blue);
  text-decoration: underline;
  text-decoration-color: #9abced;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

.pk-text-link:hover,
.pk-back:hover {
  text-decoration-color: currentColor;
}

.pk-hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 4.25vw, 56px) clamp(18px, 3vw, 42px);
  background-color: #e5efff;
  background-image:
    linear-gradient(#1b5acc13 1px, transparent 1px),
    linear-gradient(90deg, #1b5acc13 1px, transparent 1px),
    radial-gradient(ellipse at 82% 72%, #93bcff, transparent 75%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
}

.pk-route {
  position: absolute;
  z-index: -1;
  top: 40%;
  left: -9%;
  width: 119%;
  height: 29%;
  transform: rotate(-15deg);
  border-block-end: 2px solid #2672e975;
  border-radius: 50%;
  box-shadow: 0 9px 0 #f7fbff8f;
  pointer-events: none;
}

.pk-route::before,
.pk-route::after {
  position: absolute;
  bottom: 12%;
  width: 12px;
  height: 12px;
  border: 3px solid #0968fa;
  border-radius: 50%;
  background: #f1f7ff;
  content: '';
}

.pk-route::before { left: 14%; }
.pk-route::after { right: 14%; }

.pk-device-pair,
.pk-theme-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 2.4vw, 28px);
}

.pk-device-pair {
  width: min(100%, 440px);
}

.pk-device {
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  gap: 13px;
  color: var(--pk-ink);
  text-align: center;
}

.pk-device > a,
.pk-flow-art > a {
  display: block;
  width: 100%;
  min-width: 0;
  padding: clamp(3px, .55vw, 7px);
  border: 1px solid #626f89;
  border-radius: clamp(15px, 2.5vw, 30px);
  background: var(--pk-frame);
  box-shadow: 0 12px 28px #142a5538, 0 2px 6px #10192d20;
}

.pk-device > a img,
.pk-flow-art > a img {
  border-radius: clamp(11px, 1.9vw, 23px);
}

.pk-device figcaption {
  font-size: clamp(.688rem, 1.25vw, .875rem);
  font-weight: 700;
  line-height: 1.45;
}

.pk-device-pair .pk-device--dark {
  margin-top: clamp(14px, 3.6vw, 44px);
}

.pk-section {
  margin-top: clamp(68px, 9.5vw, 135px);
  scroll-margin-top: 24px;
}

.pk-context {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 82px);
  padding: 0 clamp(2px, 3.1vw, 42px);
}

.pk-context-copy {
  align-self: end;
  display: grid;
  gap: 15px;
  color: var(--pk-muted);
}

.pk-context-copy strong {
  color: var(--pk-ink);
}

.pk-source {
  color: var(--pk-blue);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.pk-section-heading {
  max-width: 760px;
  padding-inline: clamp(2px, 3.1vw, 42px);
  margin-bottom: clamp(25px, 3.7vw, 45px);
}

.pk-section-heading > h2 + p,
.pk-theme-copy > p:last-child,
.pk-flow-copy > p:last-child {
  margin-top: 16px;
  color: var(--pk-muted);
}

.pk-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.pk-flow {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  background: #f6f9ff;
}

.pk-flow-copy {
  padding: clamp(20px, 3.2vw, 44px);
}

.pk-flow-copy > p:last-child {
  margin-top: 12px;
  font-size: 1rem;
}

.pk-flow-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 200px));
  justify-content: center;
  align-items: start;
  gap: clamp(10px, 2vw, 24px);
  margin-top: auto;
  padding: clamp(18px, 3.2vw, 42px);
  background: radial-gradient(ellipse at 82% 5%, #cbdfff, transparent 75%), #e7effc;
}

.pk-flow--driver .pk-flow-art {
  background: radial-gradient(ellipse at 72% 5%, #315983, transparent 80%), #182638;
}

.pk-flow-art > a:nth-child(2) {
  margin-top: clamp(14px, 2.6vw, 34px);
}

.pk-case .pk-gallery-note {
  margin: 10px 0 0;
  color: var(--pk-muted);
  font-size: .8125rem;
}

.pk-themes {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  padding: clamp(20px, 3.8vw, 54px);
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  background: #f5f8fe;
}

.pk-theme-switch {
  overflow: hidden;
  align-self: center;
  gap: 0;
  border: 1px solid var(--pk-border);
  border-radius: clamp(17px, 2.1vw, 28px);
  background: linear-gradient(90deg, #e1edff 50%, #162237 50%);
}

.pk-theme-switch .pk-device {
  padding: clamp(13px, 2.9vw, 38px) clamp(9px, 2vw, 28px);
}

.pk-theme-switch .pk-device > a {
  max-width: 195px;
}

.pk-theme-switch .pk-device--dark {
  color: #f1f6ff;
}

.pk-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4.5vw, 62px);
  margin-top: clamp(68px, 9.5vw, 135px);
  padding: clamp(26px, 5vw, 70px);
  border: 1px solid #294469;
  border-radius: var(--pk-radius);
  color: #fff;
  background: radial-gradient(ellipse at 100% 65%, #1c3e70, transparent 80%), #10192d;
}

.pk-cta h2 {
  max-width: 19ch;
}

.pk-cta-copy p {
  max-width: 48ch;
  margin-top: 18px;
  color: #d0def5;
}

.pk-cta-actions {
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
}

.pk-cta .pk-button {
  color: #10192d;
  background: #e5efff;
}

.pk-cta .pk-button:hover {
  background: #fff;
}

.pk-cta .pk-text-link {
  color: #e0edff;
}

.pk-cta :is(a, button):focus-visible,
.pk-theme-switch .pk-device--dark a:focus-visible,
.pk-flow--driver .pk-flow-art a:focus-visible {
  outline-color: #acccff;
}

.pk-back {
  margin-top: 20px;
}

@media (max-width: 870px) {
  .pk-hero,
  .pk-context,
  .pk-themes {
    grid-template-columns: 1fr;
  }

  .pk-hero h1 { font-size: clamp(2.85rem, 11vw, 5.3rem); }
  .pk-hero-copy { padding: clamp(24px, 5vw, 54px); }
  .pk-hero-visual { padding-inline: clamp(22px, 6vw, 58px); }
  .pk-hero .pk-tagline { max-width: 23ch; }
  .pk-hero .pk-lead { max-width: 54ch; }
  .pk-context { gap: 18px; }
  .pk-context-heading,
  .pk-theme-copy { max-width: 650px; }
  .pk-theme-switch { width: min(100%, 670px); }
}

@media (max-width: 590px) {
  .pk-case .breadcrumb { font-size: .74rem; margin-bottom: 17px; }
  .pk-case h2 { font-size: clamp(1.7rem, 6.5vw, 2.65rem); }
  .pk-case .pk-kicker { margin-bottom: 12px; }
  .pk-hero .pk-tagline { margin-bottom: 12px; }
  .pk-actions { gap: 5px 16px; margin-top: 18px; }
  .pk-hero-visual { background-size: 23px 23px, 23px 23px, 100% 100%; }
  .pk-flow-grid, .pk-cta { grid-template-columns: 1fr; }
  .pk-cta-actions { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .pk-case *, .pk-case *::before, .pk-case *::after {
    scroll-behavior: auto;
    transition: none;
  }
}
