@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap");

:root {
  --primary-color: #0053a4;
  --accent-color: #e95329;
  --text-color: #242104;
  --bg-gradient: linear-gradient(86deg, #0053a4, #56b5e6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #0053a4;
  background: var(--bg-gradient);
  background-position: center;
  opacity: 1;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background-color: #ffffff;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
  overflow-x: hidden;
  box-shadow: rgba(0, 83, 164, 0.4) 0px 0px 90px;
  line-height: 1.45;
}



.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.header {
  position: relative;
  padding-top: 30px;
  text-align: center;
  background: #fff;
  margin-bottom: 0px;
  width: 100%;
  height: 190px;
  background-image: url('../img/head.png');
  background-size: 65% auto;
  background-position: center;
  background-repeat: no-repeat;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.logo {
  height: 60px;
}

.company-name {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 36px;
  font-style: italic;
  font-weight: 500;
  color: white;
}


.heading-image {
  text-align: center;
  margin-bottom: 0px;
}

.heading-image img {
  max-width: 100%;
  height: auto;
}


.progress-container {
  position: relative;
  width: 80%;
  max-width: 800px;
  height: 30px;
  margin: 0 auto 60px;
  transform: rotate(-4deg);
  border-radius: 0;
}


.progress-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1;

  clip-path: polygon(0 0, 100% 0, calc(100% - 1.75px) 100%, 1.75px 100%);
}


.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: black;
  z-index: 2;
  transition: width 5s ease-in-out;

  clip-path: polygon(0 0, 100% 0, calc(100% - 1.75px) 100%, -7.75px 100%);
}


.progress-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(2deg);
  opacity: 0.7;
  height: 30px;
  z-index: 3;
}


.cars-image {
  text-align: center;
  margin-bottom: 50px;
}

.cars-image img {
  max-width: 100%;
  height: auto;
}


.prize-image {
  text-align: center;
  margin-bottom: 60px;
}

.prize-image img {
  max-width: 80%;
  height: auto;
}


.prize1-image {
  text-align: center;
  margin: 20px auto;
  max-width: 50%;
  height: auto;
}

.prize2-image {
  text-align: center;
  left: 20px;
  max-width: 100px;
  height: auto;
}


.carousel {
  text-align: center;
  margin-bottom: 70px;
}

.carousel-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 30px;
  color: #333;
}

.carousel-items {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.carousel-item {
  width: 200px;
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
}

.carousel-item img {
  max-width: 80%;
  height: auto;
}


footer {
  text-align: center;
  padding: 20px 0;
  background-color: #004aab;
  color: #adadad;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 200;
  font-size: 14px;
}


@media (max-width: 768px) {
  .company-name {
    font-size: 28px;
  }

  .logo {
    height: 50px;
  }

  .progress-container {
    width: 50%;
  }

  .carousel-item {
    width: 150px;
    height: 150px;
  }

  .header {
    height: 160px;
  }

}

@media (max-width: 480px) {
  .company-name {
    font-size: 24px;
  }

  .logo {
    height: 40px;
  }

  .header {
    padding-top: 20px;
    height: 160px;
  }

  .heading-image,
  .cars-image,
  .prize-image {
    margin-bottom: 10px;
  }

  .progress-container {
    margin-bottom: 10px;
  }

  .carousel-item {
    width: 120px;
    height: 120px;
  }
}

:root {
  --max-width: 860px;
  --bg: #4b2b4f;
  --panel: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
}

h1 {
  text-align: center;
  font-weight: 600;
  font-size: 20px;
}

.carousel-block {
  position: relative;
  background: var(--panel);
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.viewport {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 10px;
  background: #e9e9e9;
}

.track {
  display: flex;
  align-items: center;
  will-change: transform;
}


.card {
  flex: 0 0 auto;
  width: calc(50% - 20px);
  aspect-ratio: 4/5;
  margin: 0 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.focus-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: #e95329;
  pointer-events: none;
  z-index: 30;
}

.viewport::before,
.viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  pointer-events: none;
  z-index: 20;
}

.viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(233, 233, 233, 1) 0%, rgba(18, 10, 20, 0) 100%);
}

.viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(233, 233, 233, 1) 0%, rgba(18, 10, 20, 0) 100%);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

button {
  font-size: 1em;
  background: var(--primary-color);
  border: 0;
  color: #fff;
  padding: 12px 40px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.controls2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 1px;
}

button {
  font-size: 1em;
  background: var(--primary-color);
  border: 0;
  color: #fff;
  padding: 12px 40px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.win-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  min-width: 260px;
  width: 98%;
  max-width: 600px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(10px);
  transition: opacity 1s ease, visibility 1s ease;
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
}

.win-modal.show {
  display: block;
  opacity: 1;
  visibility: visible;
  text-align: center;
}


.loose {
  margin: 30px 0;
  width: 100%;
  background: #FFF;
  padding: 10px;
}

.h1mod h1 {
  margin: 0;
  font-size: 1.2em;
  text-align: center;
  color: #FFF;
  font-weight: 600;
}

.whitez h2 {
  font-size: 1.5em;
  text-align: center;
  color: #000;
  font-weight: 600;
}

.tiffany h2 {
  font-size: 1.4em;
  text-align: center;
  color: #e95329;
  font-weight: 600;
}


@media (max-width:520px) {

  .viewport::before,
  .viewport::after {
    width: 30%;
  }

  button {
    padding: 10px 40px;
  }

  .card {
    width: calc(43% - 20px);
  }
}

.snoska {
  font-size: 0.8em;
  font-weight: 200;
  margin-top: 20px;
  margin-bottom: 30px;
}

.snoskaz {
  text-align: center;
  font-size: 1em;
  font-weight: 400;
  margin: 10px;
  margin-top: 30px;
  line-height: 1.3em;
}

.snoskax {
  text-align: center;
  font-size: 0.8em;
  font-weight: 600;

}

.snoskax2 {
  text-align: left;
  font-size: 0.8em;
  font-weight: 600;
  color: #fff;


}

.snoskaxx {
  margin-top: 1.5em;
  font-family: "Montserrat", Arial, sans-serif;
  text-align: center;
  font-size: 1.2em;
  font-weight: 600;

}

.snoskay {
  text-align: center;
  font-size: 0.7em;
  font-weight: 500;
}

.snoskay2 {
  text-align: left;
  font-size: 0.8em;
  font-weight: 500;
  color: #fff;

}

.snoskay3 {
  text-align: left;
  font-size: 1em;
  font-weight: 400;
}

.abz-img {
  height: 50px;
  width: 50px;
  margin-right: 10px;
}

.abz-img-big {
  height: 80px;
  width: 80px;
}

.abz-img-big3 {
  height: 150px;
  width: 150px;
}

.flextext {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.snoskat {
  text-align: center;
  font-size: 0.8em;
  font-weight: 400;
  padding: 0 40px;
}

#blinked {
  animation-name: blink;
  animation-iteration-count: infinite;
  animation-timing-function:
    cubic-bezier(1.0, 0, 0, 1.0);
  animation-duration: 1s;
  -webkit-animation-name: blink;
  -webkit-animation-iteration-count: infinine;
  -webkit-animation-timing-function:
    cubic-bezier(1.0, 0, 0, 1.0);
  -webkit-animation-duration: 1s;
}

.blinker {
  animation-name: blink;
  animation-iteration-count: 3;
  animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
  animation-duration: 0.8s;
  -webkit-animation-name: blink;
  -webkit-animation-iteration-count: 3;
  -webkit-animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
  -webkit-animation-duration: 0.8s;
}

@keyframes blink {
  from {
    opacity: 1.0;
  }

  to {
    opacity: 0.0;
  }
}

.pere {
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 2px dashed #d1d1d1;
  margin: 30px 15px;

}

#tx02,
#goBtn,
#okBtn,
#mess01,
#mess02,
#mess03,
#mess04,
#v2,
#podtv {
  display: none;
}

.winners-containerx {
  border-radius: 12px;
  border: solid 10px #e9e9e9;
  width: 95%;
  background: #e9e9e9;
  max-width: 600px;
  height: 158px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  align-items: center;
  gap: 16px;
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.chatx {
  width: 100%;
  max-width: 600px;
  margin: 1px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.chat-containerx {
  border-radius: 12px 12px 0 0;
  border: solid 10px #0053a4;
  width: 95%;
  background: #0053a4;
  max-width: 600px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  align-items: center;
  gap: 16px;
  padding: 1px;
  max-width: 600px;
  margin: 0 auto;
}

.chat-containery {
  border-radius: 0 0 12px 12px;
  border: solid 10px #e9e9e9;
  width: 95%;
  background: #e9e9e9;
  min-height: 1px;
  max-width: 600px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  align-items: center;
  gap: 16px;
  padding: 1px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.prize2-image {
  height: auto;
  flex-shrink: 0;
}

.chat2-image {
  border-radius: 50%;
  text-align: center;
  left: 20px;
  max-width: 60px;
  height: auto;
  flex-shrink: 0;
  border: 2px solid #ffffff;
}

.snoski-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat2-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #FFF;
  border-radius: 0 12px 12px 12px;
  margin: 1px;
  padding: 20px;
}

.chat-oper {
  padding: 10px 5px;
}


.form-container {
  text-align: center;
  margin: 40px 0 20px;
}

.name-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

#nameInput {
  width: 100%;
  padding: 16px 20px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s ease;
  background-color: white;
}

#nameInput:focus {
  border-color: #00eadb;
}


.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background-color: #e95329;
  color: white;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.play-button:hover {
  background-color: #fd776f;
}

.play-button:active {
  transform: translateY(2px);
}

.fire-icon {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}


@media (max-width: 768px) {
  .form-container {
    margin: 30px 0 20px;
  }

  #nameInput {
    padding: 14px 16px;
    font-size: 16px;
  }

  .play-button {
    padding: 16px 30px;
    font-size: 18px;
    gap: 10px;
  }

  .fire-icon {
    height: 30px;
  }
}

@media (max-width: 480px) {
  .form-container {
    margin: 25px 0 20px;
  }

  .name-form {
    gap: 15px;
  }

  #nameInput {
    padding: 12px 14px;
    font-size: 15px;
  }

  .play-button {
    padding: 16px 30px;
    font-size: 18px;
    gap: 8px;
  }

  .fire-icon {
    height: 30px;
  }
}

.ticker {
  height: 40px;
  background-color: var(--primary-color);
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker2 {
  height: 40px;
  background-color: var(--accent-color);
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-wrapper {
  display: inline-block;
  animation: ticker-loop 20s linear infinite;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  height: 40px;
}

.ticker-item {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.ticker-item img {
  height: 24px;
  margin-right: 8px;
}

.ticker-item span {
  color: #fff;
  font-weight: 400;
  font-size: 15px;
}

.kartka {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kartka img {
  height: 200px;
}


.utp-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  margin: 0 auto;
  padding: 5px;
  gap: 5px;
  max-height: 160px;
}

.utp {
  background-color: rgba(233, 83, 41, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
}

.utp2 {
  background-color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px;
  padding-bottom: 0px;
}

.utp3 {

  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 0px;
  border-radius: 12px;
  padding: 10px;
}

.line22 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.2em;
  text-align: center;
  padding-left: 0;
}

.line16 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.2em;
  text-align: center;
  padding-left: 0;
}

.utp .utp-img-wrap {
  width: 100%;
}

.utp2 .utp-img-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.utp .utp-img {
  width: 100%;
  height: 100%;
  max-height: 75px;
  object-fit: cover;
  display: block;
}

.utp2 .utp-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}




#tickerTrack2 {
  animation: ticker-left 40s linear infinite;
}


#tickerTrack1 {
  animation: ticker-right 40s linear infinite;
}



@keyframes ticker-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


@keyframes ticker-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}


.prize-image {
  display: block;
  width: auto;
  max-width: 75%;
  margin: 10px auto;
  margin-bottom: 1px;
}


.prizes-carousel {
  width: 100%;
  height: 120px;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
  font-size: 14px;
  color: #666;
}


.attempts {
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 10px 0;
  position: relative;
  font-size: 19px;
  font-weight: normal;
  color: var(--text-color);
}

.attemptsx {
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  position: relative;
  font-weight: normal;
  color: #FFF;
}

.tryes {}

.attempts .number {
  font-size: 30px;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.attemptsx .numberx {
  font-size: 5em;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.attempts .number img {
  position: absolute;
  top: 50%;
  left: 58%;
  transform: translate(-50%, -50%);
  height: 58px;
  pointer-events: none;
}

.attemptsx .numberx img {
  position: absolute;
  top: 50%;
  left: 58%;
  transform: translate(-50%, -50%);
  height: 160px;
  pointer-events: none;
}


.spin-button {
  display: block;
  width: 80%;
  max-width: 300px;
  margin: 0 auto 24px;
  padding: 14px;
  background-color: #000;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.spin-button:hover {
  opacity: 0.9;
}


.winners-heading {
  display: block;
  height: 40px;
  width: auto;
  margin: 10px auto;
  z-index: 2;
  position: absolute;
}



.winz {
  width: 100%;
  max-width: 600px;
  height: 150px;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.winners-container {
  border-radius: 12px;
  background: rgba(0, 83, 164, 0.05);
  max-width: 600px;
  height: 158px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.winx {
  width: 100%;
  max-width: 600px;
  height: 150px;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.winner-card {
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  height: 100%;
  flex-shrink: 0;
  margin-left: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.2);
  animation: appear 0.8s forwards;
  padding: 5px;
}

.winner-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes appear {
  0% {
    transform: scale(0.2);
    filter: blur(10px);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
}


.blury {
  filter: blur(3px);
  opacity: 0.4;
}

/* Win-modal copy: match index.html inline heading rhythm */
.win-modal .h1mod h1 {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  padding: 0 30px;
  margin-top: 30px;
  line-height: 1.3;
  font-style: normal;
}

.win-modal .loose h2,
.win-modal .whitez h2,
.win-modal .tiffany h2 {
  font-size: 1.2em;
  line-height: 1.4;
  font-style: normal;
}

.win-modal .play-button,
.carousel-block .play-button {
  font-style: normal;
}

/* m022: редирект на выплату после «Далее» */
#successModal.modal {
  display: none;
  position: fixed;
  z-index: 111111;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

#successModal .modal-content {
  font-family: "Montserrat", Arial, sans-serif;
  background: #fff;
  padding: 10px 30px 40px 30px;
  text-align: center;
  border-radius: 14px;
  width: 84%;
  max-width: 540px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  overflow: auto;
  animation: payout-success-blur-in 0.8s ease;
  font-size: 17px;
  line-height: 1.4;
}

#successModal .modal-content img {
  width: 50px;
  height: 50px;
  margin: 10px auto;
  display: block;
}

#successModal .modal-content h1 {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 12px 0;
  font-weight: 600;
}

#successModal .modal-content h2 {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 8px 0;
  font-weight: 400;
}

#successModal .modal-content p {
  padding: 8px 0 0 0;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  font-weight: 400;
}

#successModal #countdown {
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
}

@keyframes payout-success-blur-in {
  from {
    filter: blur(20px);
  }

  to {
    filter: blur(0);
  }
}