.living-header,
.living-stage {
  width: min(1320px, calc(100% - 8.5vw));
}

.living-header {
  min-height: 116px;
  gap: clamp(38px, 8.5vw, 118px);
  color: #171717;
  border: 0;
  z-index: 4;
}

.living-header .wordmark {
  font-size: clamp(23px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -.035em;
}

.living-header .header-link {
  margin-left: 0;
  font-size: clamp(17px, 2vw, 27px);
  letter-spacing: -.035em;
}

.living-hero {
  --hero-ink: #171717;
  color: var(--hero-ink);
  isolation: isolate;
  overflow: clip;
  background: #fff;
}

.living-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(365px, 35.5vw, 510px);
}

.living-copy {
  position: relative;
  z-index: 1;
  width: 58%;
  padding-block: clamp(23px, 3.25vw, 47px) clamp(20px, 2vw, 29px);
}

.living-question,
.living-offer {
  display: block;
  letter-spacing: -.035em;
}

.living-question {
  font-size: clamp(33px, 5.5vw, 79px);
  font-weight: 700;
  line-height: 1.04;
}

.living-offer {
  margin-top: .17em;
  font-size: clamp(27px, 4.25vw, 60px);
  font-weight: 400;
  line-height: 1.1;
}

.living-offer strong {
  color: var(--landing-green);
  font-weight: 700;
  white-space: nowrap;
}

.living-copy > p {
  max-width: 21em;
  margin-top: clamp(18px, 1.4vw, 20px);
  color: #4b4b4b;
  font-size: clamp(17px, 2.28vw, 32px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.living-action {
  width: 86%;
  max-width: 660px;
  min-height: clamp(57px, 5.4vw, 77px);
  margin-top: clamp(24px, 2.45vw, 35px);
  border-radius: clamp(12px, 1.2vw, 18px);
  padding: 10px 14px;
  background: var(--landing-green);
  font-size: clamp(16px, 2.25vw, 32px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.living-action:hover {
  background: var(--landing-green-hover);
}

.living-device {
  position: absolute;
  z-index: 0;
  right: 1%;
  bottom: 0;
  width: min(43%, 570px);
  aspect-ratio: 1.12;
  container-type: inline-size;
}

.living-device picture,
.living-device img {
  display: block;
  width: 100%;
  height: 100%;
}

.living-dialog {
  position: absolute;
  inset: 34% 15% 3% 14%;
  transform: skew(-3deg, -4deg);
  color: #171717;
  font-size: 5.45cqw;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.living-dialog-title {
  margin-inline-start: 4%;
  color: #525252;
  font-size: .86em;
}

.living-dialog-window {
  position: absolute;
  inset: 16% -2% 0 -2%;
  overflow: hidden;
  padding: .13em 4%;
}

.living-messages {
  display: grid;
  gap: .55em;
}

.living-messages p {
  position: relative;
  justify-self: start;
  width: max-content;
  max-width: 96%;
  border-radius: .82em;
  padding: .53em .7em;
  background: #dededf;
}

.living-messages p::after {
  content: "";
  position: absolute;
  bottom: .09em;
  left: -.25em;
  width: .53em;
  height: .61em;
  background: inherit;
  clip-path: polygon(55% 0, 100% 88%, 0 100%, 30% 65%);
}

.living-messages p + p {
  justify-self: end;
  background: #dcebd3;
}

.living-messages p + p::after {
  right: -.25em;
  left: auto;
  transform: scaleX(-1);
}

@media (prefers-reduced-motion: no-preference) {
  .living-messages { animation: living-dialog-scroll 4.8s infinite paused; }
  .living-device.is-playing .living-messages { animation-play-state: running; }
}

@keyframes living-dialog-scroll {
  0%, 28%, 100% { transform: translateY(0); }
  54%, 71% { transform: translateY(-15%); }
}

.bank-ribbon {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-block: 8px 5px;
}

.bank-heading {
  position: relative;
  width: min(1320px, calc(100% - 8.5vw));
  margin-inline: auto;
  text-align: center;
}

.bank-heading h2 {
  font-size: clamp(16px, 1.75vw, 25px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.035em;
}

.bank-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #515951;
  background: #f4f6f3;
  opacity: 0;
  pointer-events: none;
}

.bank-toggle:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.bank-toggle::after {
  content: "";
  width: 9px;
  height: 10px;
  border-inline: 2px solid currentColor;
}

.bank-toggle[data-paused]::after {
  width: 9px;
  height: 11px;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.bank-viewport {
  margin-top: 0;
  height: clamp(94px, 10.3vw, 148px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.bank-viewport::-webkit-scrollbar { display: none; }
.bank-viewport:focus-visible { outline: 2px solid var(--landing-green); outline-offset: -4px; }

.bank-track {
  --bank-gap: 6px;
  display: flex;
  position: relative;
  align-items: center;
  gap: var(--bank-gap);
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bank-track li {
  flex: 0 0 calc((100% - 5 * var(--bank-gap)) / 6);
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(42px, 5.3vw, 76px);
  border-radius: 9px;
  background: #f0f1f2;
}

.bank-track > li > img {
  display: block;
  width: min(79%, 155px);
  height: auto;
  max-height: 53%;
  object-fit: contain;
}

.bank-track > li > * { scale: 1 var(--mark-scale, 1); }

.bank-track img[src$="/tbank.svg"] { width: min(79%, 128px); }
.bank-track img[src$="/vtb.svg"] { width: min(70%, 103px); }
.bank-track img[src$="/sber-small.webp"],
.bank-track img[src$="/rshb.webp"] { mix-blend-mode: multiply; }

.bank-gazprom {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(82%, 158px);
}

.bank-gazprom img:first-child { width: 22%; height: auto; }
.bank-gazprom img:last-child { min-width: 0; flex: 1; height: auto; }

@media (min-width: 701px) and (max-width: 1050px) {
  .living-copy { width: 57%; }
  .living-offer { font-size: 3.95vw; }
  .living-action { width: 95%; }
}

@media (max-width: 700px) {
  .living-header,
  .living-stage {
    width: calc(100% - 44px);
  }

  .living-header {
    min-height: 86px;
    gap: 12px;
  }

  .living-header .wordmark {
    font-size: clamp(21px, 7.0vw, 28px);
  }

  .living-header .menu-toggle {
    margin-right: -5px;
  }

  .living-header .menu-toggle span {
    height: 3px;
    border-radius: 4px;
    background: #191919;
  }

  .living-header .menu-toggle span:first-child { top: 14px; }
  .living-header .menu-toggle span:nth-child(2) { top: 22px; }
  .living-header .menu-toggle span:last-child { top: 30px; }
  .living-header .menu-toggle[aria-expanded="true"] span:first-child,
  .living-header .menu-toggle[aria-expanded="true"] span:last-child { top: 22px; }
  .living-header .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

  .living-stage { min-height: 0; display: block; }
  .living-device { display: none; }

  .living-copy {
    width: 100%;
    padding-block: clamp(23px, 8vw, 34px) 0;
  }

  .living-question { font-size: clamp(31px, 10.25vw, 54px); }
  .living-offer { margin-top: .27em; font-size: clamp(23px, 7.25vw, 38px); line-height: 1.15; }
  .living-question, .living-offer { letter-spacing: -.05em; }
  .living-copy > p {
    max-width: 12.6em;
    margin-top: 19px;
    font-size: clamp(19px, 5.7vw, 28px);
  }

  .living-action {
    width: 100%;
    min-height: clamp(63px, 20vw, 86px);
    margin-top: 26px;
    border-radius: 14px;
    padding-inline: 22px;
    font-size: clamp(18px, 5.65vw, 26px);
  }

  .bank-ribbon { padding-block: clamp(24px, 7vw, 32px) 10px; }
  .bank-heading { width: calc(100% - 30px); }
  .bank-heading:has(.bank-toggle:focus-visible) { padding-right: 30px; }
  .bank-heading h2 { font-size: clamp(13px, 4.05vw, 20px); }
  .bank-toggle { width: 28px; height: 28px; }
  .bank-viewport { height: 96px; }
  .bank-track li { flex-basis: clamp(123px, 39vw, 190px); height: 53px; }
}

@media (max-width: 370px) {
  .living-header,
  .living-stage { width: calc(100% - 36px); }
}
