/* ===== HOW IT WORKS (screen 1) ===== */
.how {
      min-height: auto;
      padding: 40px 24px;
      background: #f5f9ff;
      display: flex; align-items: center; justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .how::before,
    .how::after {
      content: '';
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: .55;
      pointer-events: none;
    }
    .how::before {
      width: 55vw;
      height: 55vw;
      background: #cfe5ff;
      top: -15%;
      left: -10%;
    }
    .how::after {
      width: 50vw;
      height: 50vw;
      background: #ffe8c2;
      bottom: -15%;
      right: -10%;
    }
    .screen-card { position: relative; z-index: 1; }
    .how__title {
      font-size: 2.4rem;
      font-weight: 900;
      color: var(--brown);
      text-align: center;
      margin-bottom: 8px;
      line-height: 1.1;
    }
    .how__subtitle {
      font-size: 1.1rem;
      color: var(--brown);
      text-align: center;
      margin-bottom: 36px;
      opacity: .9;
      padding: 12px 12px 0;
    }
    .how__link {
      display: inline-block;
      font-weight: 700;
      font-size: 1rem;
      color: var(--brown);
      transition: transform .2s ease-out;
      will-change: transform;
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      padding: 12px 20px;
      border-radius: 50px;
      text-decoration: none;
      margin: 16px auto 0;
      align-self: center;
      background: transparent;
    }
    .how__link:hover {
      background: rgba(235,220,195,.95);
      transform: translateY(-2px) scale(1.05);
      -webkit-transform: translateY(-2px) scale(1.05) translateZ(0);
    }
    .how__grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      align-items: center;
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
    }
    .how__left {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-left: 20px;
    }
    .how__right {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 0;
    }
    .how__img {
      max-height: 520px;
      width: auto;
      max-width: 100%;
      filter: drop-shadow(0 20px 50px rgba(107, 66, 38, 0.25));
    }
    .screen-card__text {
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--brown);
      margin-bottom: 12px;
      line-height: 1.3;
    }

/* ===== STEPS WIDGET ===== */
    .steps {
      display: flex;
      flex-direction: column;
      gap: 0;
      width: 100%;
      max-width: 520px;
      text-align: left;
    }
    .step {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      position: relative;
    }
    .step__number {
      flex-shrink: 0;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      font-weight: 800;
      color: #6b8299;
      background: #eef6fc;
      border: 4px solid #dbeaf5;
      box-shadow: 0 4px 12px rgba(107, 130, 153, .15);
      z-index: 2;
    }
    .step__number--active {
      color: #5a4632;
      background: #ffe066;
      border-color: #fff;
      box-shadow: 0 0 20px rgba(255, 224, 102, .6), 0 4px 12px rgba(107, 66, 38, .2);
    }
    .step__line {
      position: absolute;
      left: 28px;
      top: 56px;
      width: 4px;
      height: calc(100% + 12px);
      background: #dbeaf5;
      z-index: 1;
    }
    .step:last-child .step__line {
      display: none;
    }
    .step__card {
      flex: 1;
      background: #eef6fc;
      border-radius: 20px;
      padding: 18px 22px;
      margin-bottom: 16px;
      box-shadow: 0 4px 14px rgba(107, 130, 153, .12);
      border: 2px solid #dbeaf5;
    }
    .step__card--active {
      background: #fffbed;
      border-color: #ffe066;
      box-shadow: 0 6px 18px rgba(255, 224, 102, .25);
    }
    .step__title {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--brown);
      margin: 0 0 6px;
      line-height: 1.3;
    }
    .step__desc {
      font-size: .95rem;
      color: #6b6b6b;
      margin: 0;
      line-height: 1.4;
    }
    .screen-card__img {
      width: 100%;
      height: auto;
      display: block;
    }

/* ===== FEATURES (screen 2) ===== */
.features {
      padding: 40px 24px;
      background: url('../img/scr2/scr2-2-bckgr.jpg') center/cover no-repeat;
      display: flex; align-items: center; justify-content: center;
      position: relative;
      overflow: hidden;
    }

/* ===== MODES (screen 3) ===== */
.modes {
      padding: 40px 24px;
      background: url('../img/scr2/scr2-3-bckgr.jpg') center/cover no-repeat;
      display: flex; align-items: center; justify-content: center;
      position: relative;
      overflow: hidden;
    }

/* ===== ALGORITHM (screen 3) ===== */
.algorithm {
      padding: 40px 24px;
      background: url('../img/scr3/scr3-bckgr.jpg') center/cover no-repeat;
      display: flex; align-items: center; justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .algorithm__caption {
      font-size: 1.05rem;
      line-height: 1.55;
      color: var(--brown);
      max-width: 520px;
      margin: 20px auto 0;
      text-align: left;
    }

/* ===== LUCK (screen 4) ===== */
.luck {
      padding: 40px 24px;
      background: url('../img/scr4/scr4-bckgr.jpg') center/cover no-repeat;
      display: flex; align-items: center; justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .luck__inner {
      width: 100%;
      max-width: 1200px;
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-areas: "left center right";
      align-items: center;
      gap: 24px;
      position: relative;
    }
    .luck__center-wrap {
      grid-area: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      max-width: 90%;
      margin: 0 auto;
    }
    .luck__side--left { grid-area: left; }
    .luck__side--right { grid-area: right; }
    .luck__text {
      z-index: 2;
      text-align: center;
    }
    .luck__text--desktop { display: none; }
    .luck__text--mobile { display: block; }
    .luck__text h2 {
      font-size: 3rem;
      font-weight: 800;
      color: var(--brown);
      line-height: 1.1;
      margin-bottom: 24px;
    }
    .luck__text p {
      font-size: 1.1rem;
      line-height: 1.55;
      color: var(--brown);
    }
    .luck__center {
      position: relative;
      z-index: 1;
    }
    .luck__center img {
      width: 100%;
      height: auto;
      display: block;
    }
    .luck__side {
      position: relative;
    }
    .luck__side img {
      width: 100%;
      height: auto;
      display: block;
    }
    .luck__side--left {
      justify-self: start;
    }
    .luck__side--right {
      justify-self: end;
    }

/* ===== FINAL ===== */
.final {
      min-height: 100vh;
      min-height: 100dvh;
      display: flex; align-items: center; justify-content: center;
      background: #f5f9ff;
      position: relative;
      overflow: hidden;
    }

    .screen-card_final-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
      min-height: 520px;
      background: url('../img/scr-fin/bckgrnd_fin.png') center/cover no-repeat;
      border-radius: 24px;
      overflow: hidden;
      position: relative;
      padding: 24px;
    }
    .final__left {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 1;
    }
    .final__right {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 1;
      transform: translateX(-10%);
    }
    .final__img-left {
      max-height: 420px;
      width: auto;
      max-width: 100%;
      filter: drop-shadow(0 20px 50px rgba(107, 66, 38, 0.25));
    }
    .final__text-img {
      max-height: 160px;
      width: auto;
      max-width: 100%;
    }
    .final__title {
      font-size: 2.4rem;
      font-weight: 900;
      color: var(--brown);
      text-align: center;
      margin-bottom: 16px;
      line-height: 1.1;
      padding-top: 24px;
    }
    .final__title--mobile { display: none; }
    .final__subtitle {
      font-size: 1.1rem;
      color: var(--brown);
      text-align: center;
      opacity: .9;
      max-width: 440px;
    }
    .final__img {
      max-height: 520px;
      width: auto;
      max-width: 100%;
      filter: drop-shadow(0 20px 50px rgba(107, 66, 38, 0.25));
    }