/* ===== Rules page ===== id366.css */

.dm-rules{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  padding:32px 0 130px;
  box-sizing:border-box;
}

.dm-rules .dm-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  pointer-events:none;
}

.dm-rules::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.18);
  z-index:1;
  pointer-events:none;
}

.dm-rules__wrap{
  position:relative;
  z-index:2;
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
  box-sizing:border-box;
}

.dm-rules__card{
  background:#fff;
  color:#14213d;
  border:2px solid #1a3365;
  border-radius:14px;
  padding:24px;
  box-shadow:0 10px 26px rgba(26,51,101,.12);
  box-sizing:border-box;
}

.dm-rules__head{
  margin:0 0 26px;
  text-align:center;
}

.dm-rules__title{
  margin:0 0 12px;
  font-family:"Gunplay", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:400;
  letter-spacing:.02em;
  font-size:clamp(30px, 3vw, 48px);
  line-height:1.05;
  color:#1a3365;
}

.dm-rules__lead{
  max-width:760px;
  margin:0 auto;
  font-size:18px;
  line-height:1.55;
  color:#14213d;
  opacity:.9;
}

.dm-rules__block{
  margin:0 0 22px;
  padding:18px;
  border:2px solid rgba(17,17,17,.22);
  border-radius:14px;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 18px rgba(26,51,101,.04);
  font-size:16px;
  line-height:1.7;
}

.dm-rules__block h2,
.dm-rules__zone h3{
  margin:0 0 14px;
  font-family:"Gunplay", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:400;
  letter-spacing:.02em;
  color:#1a3365;
}

.dm-rules__block h2{
  font-size:26px;
  line-height:1.2;
}

.dm-rules__zone h3{
  font-size:21px;
  line-height:1.25;
}

.dm-rules__block p{
  margin:0 0 12px;
}

.dm-rules__block p:last-child{
  margin-bottom:0;
}

.dm-rules__zones{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  margin-top:18px;
}

.dm-rules__zone{
  padding:16px;
  border:2px solid rgba(17,17,17,.18);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 18px rgba(26,51,101,.035);
}

.dm-rules__zone b{
  color:#1a3365;
}

.dm-rules__final{
  margin-top:26px;
  padding:20px;
  border:2px solid #1a3365;
  border-radius:14px;
  background:#fff;
  font-family:"Gunplay", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:22px;
  line-height:1.45;
  text-align:center;
  color:#1a3365;
  box-shadow:0 8px 20px rgba(26,51,101,.06);
}

/* tablet */
@media (max-width:1024px){
  .dm-rules{
    padding-top:24px;
    padding-bottom:110px;
  }

  .dm-rules__zones{
    grid-template-columns:1fr;
  }
}

/* mobile */
@media (max-width:700px){
  .dm-rules{
    padding:18px 0 96px;
  }

  .dm-rules__wrap{
    padding:0 12px;
  }

  .dm-rules__card{
    padding:14px;
    border-radius:14px;
  }

  .dm-rules__head{
    margin-bottom:18px;
  }

  .dm-rules__lead{
    font-size:15px;
    text-align:left;
  }

  .dm-rules__block{
    padding:14px;
    font-size:15px;
    line-height:1.65;
  }

  .dm-rules__block h2{
    font-size:21px;
  }

  .dm-rules__zone{
    padding:14px;
  }

  .dm-rules__zone h3{
    font-size:18px;
  }

  .dm-rules__final{
    padding:14px;
    font-size:17px;
  }
}

/* landscape phones */
@media (max-width:1023px) and (orientation:landscape){
  .dm-rules{
    padding-top:14px;
    padding-bottom:80px;
  }

  .dm-rules__card{
    padding:14px;
  }

  .dm-rules__title{
    font-size:30px;
  }

  .dm-rules__lead{
    font-size:15px;
  }

  .dm-rules__block{
    padding:14px;
    font-size:14px;
  }

  .dm-rules__block h2{
    font-size:20px;
  }

  .dm-rules__zone h3{
    font-size:17px;
  }
}

/* ===== Rules page scroll fix ===== */

body.dm #page main.site-main:has(.dm-rules),
body.dm #page .site-main:has(.dm-rules){
  display:block !important;
  place-items:unset !important;
  overflow:visible !important;
  min-height:100dvh !important;
}

body.dm .dm-stage.dm-rules{
  width:100% !important;
  max-width:none !important;
  height:auto !important;
  min-height:100dvh !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  overflow:visible !important;
  margin:0 !important;
}

.dm-stage.dm-rules::after{
  display:none !important;
}

.dm-rules .dm-bg{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100dvh !important;
}

.dm-rules__wrap{
  padding:0 20px 140px;
}

@media (max-width:1024px){
  .dm-rules__wrap{
    padding:0 20px 110px;
  }
}

@media (max-width:700px){
  .dm-rules__wrap{
    padding:0 12px 96px;
  }
}

/* ===== Rules fixed footer ===== */

body.dm:has(.dm-rules) .dm-footer,
body.dm:has(.dm-rules) footer.site-footer{
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  z-index:9999 !important;
}

body.dm:has(.dm-rules) .dm-main{
  padding-bottom:140px !important;
}

@media (max-width:1400px){
  body.dm:has(.dm-rules) .dm-main{
    padding-bottom:110px !important;
  }
}

@media (max-width:1024px){
  body.dm:has(.dm-rules) .dm-main{
    padding-bottom:96px !important;
  }
}

/* ===== back button ===== */
.dm-rules__back{
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000000;

  height: 64px;
  min-width: 180px;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

/* mobile portrait/tablet */
@media (max-width: 1023px){
  .dm-rules__back{
    top: auto;
    right: auto;

    left: 14px;
    bottom: calc(30px + env(safe-area-inset-bottom));

    height: 69px;
    min-width: 180px;
    padding: 14px 20px;

    border-radius: 16px !important;
    border-width: 2px;

    font-size: 22px;
    line-height: 1;
  }
}

/* mobile landscape: над АККАУНТ */
@media (max-width: 1023px) and (orientation: landscape){
  .dm-rules__back{
    left: auto;
    right: calc(env(safe-area-inset-right) + 6px);
    bottom: calc(env(safe-area-inset-bottom) + 44px);

    width: 96px;
    height: 32px;
    min-width: 96px;

    padding: 6px 10px;

    font-size: 12px;
    border-radius: 10px !important;
  }
}