:root {
  --sam-story-mint: #9dff72;
  --sam-story-aqua: #43e7cd;
  --sam-story-ink: #06100e;
  --sam-story-glass: rgba(6, 17, 16, 0.72);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

[data-sam-chapter],
#ilwyn-2-2-2-2,
#ilwyn-2-2-4,
#ilwyn-2-2-3-2,
#ilwyn-2-2-2,
#pw-unlocking-block,
#injpw {
  scroll-margin-top: 96px;
}

#ihkww7 {
  background: linear-gradient(180deg, rgba(2, 8, 8, 0.9) 0%, rgba(2, 8, 8, 0.54) 58%, transparent 100%) !important;
  transition: background-color 240ms ease, backdrop-filter 240ms ease;
}

.sam-home-menu__link {
  position: relative;
}

.sam-home-menu__link::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--sam-story-mint), transparent);
  content: '';
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sam-home-menu__link:hover::after,
.sam-home-menu__link:focus-visible::after {
  opacity: 0.72;
  transform: scaleX(1);
}

#i1lwz-2,
#i1lwz-2-2 {
  position: relative !important;
  overflow: visible !important;
}

#ispyh-2-2 {
  max-width: 11.6ch !important;
  font-size: clamp(54px, 5.45vw, 78px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.057em !important;
  text-wrap: balance;
}

#izwg2d {
  display: flex;
  align-items: center;
  min-height: 42px !important;
  padding-left: 2px;
}

#izwg2d img {
  width: 40px !important;
  height: 40px !important;
  border: 2px solid rgba(228, 255, 246, 0.82) !important;
  background: rgba(8, 25, 24, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 255, 203, 0.08);
  object-fit: cover;
  object-position: top center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
}

#izwg2d img + img {
  margin-left: -9px;
}

#izwg2d img:nth-child(n) {
  left: auto !important;
}

@media (hover: hover) and (pointer: fine) {
  #izwg2d img:hover {
    z-index: 2;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), 0 0 0 4px rgba(100, 255, 204, 0.08);
    transform: translateY(-4px) scale(1.08);
  }
}

.sam-gradient-word {
  display: inline;
  background: linear-gradient(98deg, #fff 3%, #d9ffd0 42%, #76efce 74%, #9dc6ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sam-hero-eyebrow {
  position: absolute;
  top: -58px;
  left: 0;
  display: inline-flex;
  align-items: center;
  max-width: min(620px, 82vw);
  margin: 0;
  color: rgba(236, 255, 249, 0.78);
  font: 600 13px/1.3 "Manrope", Arial, sans-serif;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.sam-hero-eyebrow::before {
  width: 28px;
  height: 1px;
  margin-right: 12px;
  background: linear-gradient(90deg, var(--sam-story-mint), var(--sam-story-aqua));
  box-shadow: 0 0 14px rgba(110, 255, 174, 0.62);
  content: '';
}

#ispyh-2-3 {
  color: rgba(239, 250, 247, 0.76) !important;
  font-size: clamp(15px, 1.25vw, 17px) !important;
  line-height: 1.55 !important;
}

.sam-hero-price {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center;
  padding: 9px 14px !important;
  border: 1px solid rgba(156, 255, 114, 0.23);
  border-radius: 999px;
  background: rgba(7, 22, 18, 0.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 12px 42px rgba(0, 0, 0, 0.16);
  color: rgba(242, 255, 238, 0.94) !important;
  backdrop-filter: blur(14px);
}

.sam-hero-price::before {
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sam-story-mint);
  box-shadow: 0 0 0 5px rgba(157, 255, 114, 0.08), 0 0 16px rgba(157, 255, 114, 0.7);
  content: '';
}

.sam-live-work {
  position: absolute;
  top: -158px;
  right: 0;
  width: min(520px, calc(100vw - 80px));
  padding: 17px 18px 18px;
  border: 1px solid rgba(135, 245, 215, 0.16);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(4, 16, 14, 0.76), rgba(5, 12, 14, 0.56));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 24px 72px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: "Manrope", Arial, sans-serif;
  pointer-events: none;
  backdrop-filter: blur(18px) saturate(130%);
}

.sam-live-work__head {
  display: flex;
  align-items: center;
  color: rgba(227, 246, 240, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.sam-live-work__pulse {
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--sam-story-mint);
  box-shadow: 0 0 0 0 rgba(157, 255, 114, 0.35);
  animation: sam-story-pulse 2.2s ease-out infinite;
}

.sam-live-work__track {
  position: relative;
  height: 58px;
  margin-top: 12px;
  overflow: hidden;
}

.sam-live-work__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(249, 255, 253, 0.94);
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.985);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sam-live-work__item.is-active {
  opacity: 1;
  transform: none;
}

.sam-live-work__item img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(223, 255, 246, 0.25);
  border-radius: 15px;
  background: rgba(9, 28, 25, 0.76);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.26);
  object-fit: cover;
  object-position: top center;
}

.sam-live-work__item span {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
}

.sam-live-work__item small {
  overflow: hidden;
  color: rgba(205, 232, 225, 0.52);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sam-live-work__item strong {
  overflow: hidden;
  color: rgba(250, 255, 253, 0.96);
  font-size: 15px;
  font-style: normal;
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sam-live-work__item b {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(157, 255, 114, 0.1);
  color: #caffb4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sam-scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(229, 246, 241, 0.43);
  font: 600 10px/1 "Manrope", Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.sam-scroll-cue::before {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 255, 114, 0.7));
  content: '';
  transform-origin: right;
  animation: sam-story-line 2.4s ease-in-out infinite;
}

.sam-journey {
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 32;
  display: grid;
  gap: 7px;
  padding: 8px 7px;
  border: 1px solid rgba(146, 239, 214, 0.12);
  border-radius: 18px;
  background: rgba(3, 12, 11, 0.56);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
  backdrop-filter: blur(16px) saturate(125%);
}

.sam-journey__step {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: rgba(232, 248, 243, 0.36);
  font: 700 9px/1 "Manrope", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sam-journey__step:hover,
.sam-journey__step:focus-visible,
.sam-journey__step.is-active {
  background: rgba(157, 255, 114, 0.12);
  color: #d8ffc8;
  box-shadow: inset 0 0 0 1px rgba(157, 255, 114, 0.18), 0 0 20px rgba(83, 235, 187, 0.12);
  outline: none;
  transform: scale(1.06);
}

.sam-journey__label {
  position: absolute;
  top: 50%;
  right: 37px;
  width: max-content;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(3, 11, 10, 0.84);
  color: rgba(244, 255, 251, 0.78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(5px, -50%, 0);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(12px);
}

.sam-journey__step:hover .sam-journey__label,
.sam-journey__step:focus-visible .sam-journey__label,
.sam-journey__step.is-active .sam-journey__label {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

.sam-action {
  position: relative;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease !important;
}

.sam-action:hover,
.sam-action:focus-visible {
  filter: brightness(1.05);
  outline: none;
  transform: translateY(-2px);
}

.sam-action:focus-visible {
  box-shadow: 0 0 0 3px rgba(157, 255, 114, 0.24) !important;
}

.sam-action:active {
  transform: translateY(0) scale(0.985);
}

.sam-story-card > .pw-block-style {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, border-color 320ms ease;
}

.sam-story-card > .pw-block-style::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(320px circle at var(--sam-pointer-x, 50%) var(--sam-pointer-y, 50%), rgba(104, 255, 196, 0.13), transparent 54%);
  content: '';
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.sam-story-card.is-recommended {
  position: relative;
}

.sam-story-card.is-recommended::after {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 4;
  padding: 6px 9px;
  border: 1px solid rgba(157, 255, 114, 0.28);
  border-radius: 999px;
  background: rgba(10, 31, 24, 0.78);
  color: #cfffbb;
  content: 'Рекомендуем';
  font: 700 9px/1 "Manrope", Arial, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.sam-story-step {
  transition: opacity 420ms ease, filter 420ms ease !important;
}

.sam-story-step.is-story-active {
  opacity: 1;
  filter: none;
}

.sam-story-step.is-story-active h1,
h1.sam-story-step.is-story-active {
  color: rgba(244, 255, 251, 0.96) !important;
  text-shadow: 0 0 32px rgba(86, 239, 194, 0.08);
}

#iod904 {
  position: relative;
  overflow: hidden;
}

#iod904::after {
  position: absolute;
  z-index: 3;
  inset: -30% auto -30% -28%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(167, 255, 227, 0.12), transparent);
  content: '';
  pointer-events: none;
  transform: skewX(-14deg) translateX(0);
}

#ilwyn-2-2-2-2.sam-section-visible #iod904::after {
  animation: sam-story-signal 1050ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}

#ilwyn-2-2-3-2 h1,
#ilwyn-2-2-3-2 h2,
#ilwyn-2-2-3-2 h3,
#ilwyn-2-2-3-2 h4,
#ilwyn-2-2-3-2 p {
  color: rgba(247, 255, 252, 0.92) !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.32);
}

#ilwyn-2-2-3-2 #ispyh-2-2-2-2-2-2-3-4-2-3 {
  font-size: clamp(34px, 4.3vw, 62px) !important;
  letter-spacing: -0.055em !important;
}

#ilwyn-2-2-2-3 .sam-price-period,
#ilwyn-2-2-2-3 .sam-price-from {
  display: inline-block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: -0.02em;
  vertical-align: 0.3em;
}

#ilwyn-2-2-2-3 .sam-price-from {
  margin-right: 0.16em;
  color: rgba(204, 255, 183, 0.76);
}

#ilwyn-2-2-2-3 .sam-price-custom {
  font-size: clamp(29px, 3.2vw, 47px) !important;
  letter-spacing: -0.045em !important;
}

#pw-unlocking-block .pw-unlock-copy {
  padding: clamp(18px, 2.3vw, 30px);
  border: 1px solid rgba(181, 255, 225, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(2, 9, 9, 0.78), rgba(4, 13, 13, 0.58));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(120%);
}

#pw-unlocking-block .pw-unlock-title {
  max-width: 22ch !important;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.86);
  text-wrap: balance;
}

.sam-reveal {
  transform: translate3d(0, 22px, 0);
  transition-duration: 580ms;
}

.sam-from-left {
  transform: translate3d(-24px, 8px, 0);
}

.sam-from-right {
  transform: translate3d(24px, 8px, 0);
}

.sam-from-scale {
  transform: translate3d(0, 16px, 0) scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .sam-story-card:hover > .pw-block-style,
  .sam-story-card:focus-within > .pw-block-style {
    border-color: rgba(156, 255, 213, 0.24) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
  }

  .sam-story-card:hover > .pw-block-style::before,
  .sam-story-card:focus-within > .pw-block-style::before {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .sam-journey {
    display: none;
  }

  #ispyh-2-2 {
    font-size: clamp(50px, 6.4vw, 68px) !important;
  }
}

@media (max-width: 1360px) and (min-width: 1101px) {
  .sam-header-logo-link,
  .sam-header-logo {
    width: 118px;
    height: 36px;
  }

  .sam-home-menu {
    gap: 2px !important;
  }

  .sam-home-menu__link {
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .sam-live-work {
    display: none;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 80px;
  }

  [data-sam-chapter],
  #ilwyn-2-2-2-2,
  #ilwyn-2-2-4,
  #ilwyn-2-2-3-2,
  #ilwyn-2-2-2,
  #pw-unlocking-block,
  #injpw {
    scroll-margin-top: 80px;
  }

  #ispyh-2-2 {
    max-width: 11ch !important;
    font-size: clamp(38px, 11vw, 48px) !important;
    line-height: 1 !important;
    letter-spacing: -0.052em !important;
  }

  .sam-hero-eyebrow {
    position: static;
    max-width: 32ch;
    margin: 0 0 14px;
    font-size: 10px;
    line-height: 1.35;
  }

  .sam-hero-eyebrow::before {
    width: 20px;
    margin-right: 9px;
  }

  #ispyh-2-3 {
    font-size: 14px !important;
    line-height: 1.48 !important;
  }

  .sam-hero-price {
    padding: 8px 11px !important;
    font-size: 11px !important;
  }

  .sam-scroll-cue {
    display: none;
  }

  .sam-story-card.is-recommended::after {
    top: 10px;
    right: 10px;
    padding: 5px 7px;
    font-size: 8px;
  }

  #pw-unlocking-block .pw-unlock-copy {
    width: min(92vw, 430px);
    border-radius: 19px;
  }
}

@keyframes sam-story-pulse {
  0% { box-shadow: 0 0 0 0 rgba(157, 255, 114, 0.34); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(157, 255, 114, 0); }
}

@keyframes sam-story-line {
  0%, 100% { opacity: 0.34; transform: scaleX(0.45); }
  50% { opacity: 0.9; transform: scaleX(1); }
}

@keyframes sam-story-signal {
  from { transform: skewX(-14deg) translateX(0); }
  to { transform: skewX(-14deg) translateX(780%); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .sam-live-work__item {
    display: none;
    opacity: 1;
    transform: none;
  }

  .sam-live-work__item.is-active {
    display: flex;
  }

  .sam-story-card:hover > .pw-block-style,
  .sam-action:hover,
  .sam-action:focus-visible {
    transform: none !important;
  }
}
