@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
:focus { outline: 0; }
img { border: none; display: block; }
ol, ul { list-style: none; }
iframe { border: none !important; width: 0 !important; height: 0 !important; }
a { text-decoration: none; cursor: pointer !important; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.3;
  min-height: 100vh;
  width: 100%;
  color: #ffffff;
  
  background-color: #05020a !important;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.6) 0%, rgba(9, 3, 20, 0.9) 65%),
    linear-gradient(180deg, #05020a 0%, #2a0845 40%, #7e22ce 100%) !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

.wrapper { min-height: 400px; min-width: 760px; overflow: hidden; }
.center { position: relative; display: flex; align-items: center; min-height: 100vh; max-width: 1280px; margin: 0 auto; }
.toggleDirection .center { flex-direction: row-reverse; }
.content-block { position: relative; z-index: 2; flex-grow: 1; }
.shapes-block { position: absolute; z-index: 3; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); width: 30rem; height: 70rem; pointer-events: none; }
.wrapper:not(.toggleDirection) .shapes-block { left: 0; }
.toggleDirection .shapes-block { right: 6.5rem; }
.reverseAnim .shapes-block { -webkit-animation: fadeOut 1s both; animation: fadeOut 1s both; }

.shape-item { display: inline-block; position: absolute; top: 0%; width: 100%; height: 100%; }
.shape-item .shape { position: absolute; width: 8rem; height: 8rem; margin: -4rem 0 0 -4rem; background: url("../images/shapes.png") 0 0 no-repeat; background-size: 48rem 8rem; top: 50%; left: 50%; -webkit-transform: translateX(-15rem); transform: translateX(-15rem); will-change: transform; }
.shape-item-2 { height: 50%; -webkit-transform: rotateZ(-30deg); transform: rotateZ(-30deg); }
.shape-item-3 { -webkit-transform: rotateZ(30deg); transform: rotateZ(30deg); }
.shape-item-4 { height: 45%; -webkit-transform: rotateZ(-50deg); transform: rotateZ(-50deg); }
.shape-item-5 { -webkit-transform: rotateZ(50deg); transform: rotateZ(50deg); }
.shape-item-6 { height: 40%; -webkit-transform: rotateZ(60deg); transform: rotateZ(60deg); }
.shape-item-1 .shape { background-position: 0 0; -webkit-animation: movingShape 12s 0s linear infinite; animation: movingShape 12s linear 0s infinite; }
.shape-item-2 .shape { background-position: -8rem 0; -webkit-animation: movingShape 8s 0s linear infinite; animation: movingShape 8s 0s linear infinite; }
.shape-item-3 .shape { background-position: -16rem 0; -webkit-animation: movingShapeReverce 10s 0s linear infinite; animation: movingShapeReverce 10s 0s linear infinite; }
.shape-item-4 .shape { background-position: -24rem 0; -webkit-animation: movingShapeReverce 20s 0s linear infinite; animation: movingShapeReverce 20s 0s linear infinite; }
.shape-item-5 .shape { background-position: -32rem 0; -webkit-animation: movingShapeReverce 16s 0s linear infinite; animation: movingShapeReverce 16s 0s linear infinite; }
.shape-item-6 .shape { background-position: -40rem 0; -webkit-animation: movingShapeReverce 14s 0s linear infinite; animation: movingShapeReverce 14s 0s linear infinite; }

.step-block { position: relative; z-index: 4; padding: 2.5rem; padding-left: 15rem; }
.step-item { display: none; }
.step-item.visible { display: block; }
.step-header, .step-inner, .buttons-block { -webkit-animation: zoomIn 0.5s both; animation: zoomIn 0.5s both; }
.step-header { font-weight: 700; margin: 0 0 3rem; text-transform: uppercase; line-height: 1.2; font-size: 4.4rem; color: #f3f3f3; -webkit-animation-delay: 0s; animation-delay: 0s; }
.step-header span { display: block; }
.step-inner { margin: 0 0 3rem; color: #d1d5db; }
.step-inner, .buttons-block { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; }
.reverseAnim .step-header, .reverseAnim .step-inner, .reverseAnim .buttons-block { -webkit-animation-name: fadeOut; -webkit-animation-delay: 0s; animation-name: fadeOut; animation-delay: 0s; }
.question-notice { text-transform: uppercase; font-size: 1.8rem; color: #d1d5db; margin-bottom: 1.5rem; }
.checkbox-block { max-width: 450px; margin: 0 0 2rem; }
.checkbox-item { position: relative; padding: 1rem 1rem 1rem 5rem; text-align: left; line-height: 2.5rem; cursor: pointer; transition: all 0.3s linear; }
.checkbox-item-error { background-color: #ffccd6; }
.checkbox-item:before { content: ""; position: absolute; width: 2.5rem; height: 2.5rem; border-radius: 5px; border: 3px solid #3b78d2; color: #7b7b7e; top: .7rem; left: .5rem; z-index: 1; line-height: 2.2rem; font-weight: 700; font-size: 2rem; text-align: center; display: flex; flex-flow: row wrap; justify-content: center; align-items: center; background-color: #fff; }
.checkbox-item.checked:before { background-color: #3b78d2; }
.checkbox-block.two-cols { display: flex; flex-wrap: wrap; }
.two-cols .checkbox-item { width: 50%; }
.buttons-block { display: flex; }

/* --- ОСНОВНАЯ КНОПКА (b3.png на мягком зеленом фоне) --- */
.step-btn {
  display: block;
  min-width: 15.5rem;
  height: 5.2rem;
  padding: 0 2.5rem;
  cursor: pointer;
  border: none;
  border-radius: 2.6rem;
  background-image: url('../images/b3.png'), linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: btnPulseGreen 2s infinite ease-in-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-btn:hover {
  background-image: url('../images/b3.png'), linear-gradient(135deg, #4cd137 0%, #2ecc71 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 25px rgba(46, 204, 113, 0.9), 0 0 45px rgba(39, 174, 96, 0.6);
}

.step-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.yes-btn, .no-btn { width: 25%; }

.no-btn {
  margin-left: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  animation: none;
  box-shadow: none;
}

.no-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
  border-color: #a855f7;
}

.no-btn:active {
  background: rgba(147, 51, 234, 0.3);
}

.submit-btn { text-transform: uppercase; }

/* --- КНОПКИ B1, B2 И ПОДПИСИ --- */
.extra-buttons-block {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2.5rem;
  margin-top: 2.5rem;
  width: 100%;
  -webkit-animation: zoomIn 0.5s both;
  animation: zoomIn 0.5s both;
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}

.extra-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.extra-btn {
  display: block;
  min-width: 15.5rem;
  height: 5.2rem;
  padding: 0 2.5rem;
  border-radius: 2.6rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-caption {
  margin-top: 0.8rem;
  font-size: 1.3rem;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.btn-b1 {
  background-color: #229ed9;
  background-image: url('../images/b1.png');
  animation: btnPulseTelegram 2s infinite ease-in-out;
}

.btn-b1:hover {
  background-color: #26a5e4;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 25px rgba(34, 158, 217, 0.9), 0 0 45px rgba(42, 171, 238, 0.6);
}

.btn-b2 {
  background-color: #000000;
  background-image: url('../images/b2.png');
  animation: btnPulseWhite 2s infinite ease-in-out;
}

.btn-b2:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 0 0 45px rgba(255, 255, 255, 0.6);
}

.slider-block { position: relative; flex-shrink: 0; width: 40rem; height: 44rem; margin: 0 auto; }
.slider-item { width: 100%; height: 100%; position: absolute; top: 0; background-repeat: no-repeat; background-position: center center; background-size: contain; opacity: 0; will-change: transform; }
.slider-item.active { opacity: 1; }
.slider-item.item-1.preload { background-image: url("../images/photo13-min.png"); }
.slider-item.item-2.preload { background-image: url("../images/photo2.jpg"); }
.slider-item.item-3.preload { background-image: url("../images/photo3.jpg"); }
.slider-item.item-4.preload { background-image: url("../images/photo4.1.jpg"); }
.slider-item.item-5.preload { background-image: url("../images/photo5.jpg"); }
.slider-item.item-6.preload { background-image: url("../images/photo6.1.jpg"); }
.slider-item.item-7.preload { background-image: url("../images/photo7.1.jpg"); }

.wrapper:not(.toggleDirection) .slider-item { left: 0; -webkit-transform: translateX(200%); transform: translateX(200%); -webkit-animation: slide-inRightToLeft 0.5s forwards; animation: slide-inRightToLeft 0.5s forwards; }
.wrapper:not(.toggleDirection).reverseAnim .slider-item { -webkit-transform: translateX(-200%); transform: translateX(-200%); -webkit-animation: slide-outRightToLeft 0.5s forwards; animation: slide-outRightToLeft 0.5s forwards; }
.toggleDirection .slider-item { right: 0; -webkit-transform: translateX(-200%); transform: translateX(-200%); -webkit-animation: slide-inRightToLeft 0.5s forwards; animation: slide-inRightToLeft 0.5s forwards; }
.toggleDirection.reverseAnim .slider-item { -webkit-transform: translateX(200%); transform: translateX(200%); -webkit-animation: slide-outLeftToRight 0.5s forwards; animation: slide-outLeftToRight 0.5s forwards; }

@keyframes btnPulseGreen {
  0% { box-shadow: 0 0 10px rgba(46, 204, 113, 0.4), 0 0 20px rgba(39, 174, 96, 0.2); }
  50% { box-shadow: 0 0 20px rgba(46, 204, 113, 0.8), 0 0 35px rgba(39, 174, 96, 0.5); }
  100% { box-shadow: 0 0 10px rgba(46, 204, 113, 0.4), 0 0 20px rgba(39, 174, 96, 0.2); }
}

@keyframes btnPulseTelegram {
  0% { box-shadow: 0 0 10px rgba(34, 158, 217, 0.4), 0 0 20px rgba(42, 171, 238, 0.2); }
  50% { box-shadow: 0 0 20px rgba(34, 158, 217, 0.9), 0 0 35px rgba(42, 171, 238, 0.6); }
  100% { box-shadow: 0 0 10px rgba(34, 158, 217, 0.4), 0 0 20px rgba(42, 171, 238, 0.2); }
}

@keyframes btnPulseWhite {
  0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 35px rgba(255, 255, 255, 0.5); }
  100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.2); }
}

@-webkit-keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } }
@-webkit-keyframes movingShape { from { -webkit-transform: rotate(0deg) translate(-350%) rotate(0); } to { -webkit-transform: rotate(360deg) translate(-350%) rotate(-360deg); } }
@keyframes movingShape { from { transform: rotate(0deg) translate(-350%) rotate(0); } to { transform: rotate(360deg) translate(-350%) rotate(-360deg); } }
@-webkit-keyframes movingShapeReverce { from { -webkit-transform: rotate(0deg) translateX(-350%) rotate(0); } to { -webkit-transform: rotate(-360deg) translateX(-350%) rotate(360deg); } }
@keyframes movingShapeReverce { from { transform: rotate(0deg) translateX(-350%) rotate(0); } to { transform: rotate(-360deg) translateX(-350%) rotate(360deg); } }
@-webkit-keyframes zoomIn { 0% { opacity: 0; -webkit-transform: scale(.3); } 50% { opacity: 1; } }
@keyframes zoomIn { 0% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; } }
@-webkit-keyframes slide-inRightToLeft { 0% { -webkit-transform: translateX(200%); } 100% { -webkit-transform: translateX(0%); } }
@keyframes slide-inRightToLeft { 0% { transform: translateX(200%); } 100% { -webkit-transform: translateX(0%); } }
@-webkit-keyframes slide-outRightToLeft { 0% { -webkit-transform: translateX(0%); } 100% { -webkit-transform: translateX(200%); } }
@keyframes slide-outRightToLeft { 0% { transform: translateX(0%); } 100% { transform: translateX(200%); } }
@-webkit-keyframes slide-outLeftToRight { 0% { -webkit-transform: translateX(0%); } 100% { -webkit-transform: translateX(-200%); } }
@keyframes slide-outLeftToRight { 0% { transform: translateX(0%); } 100% { transform: translateX(-200%); } }

@media screen and (max-width: 1600px) {
  html { font-size: 55%; }
  .step-header { font-size: 4rem; }
  .step-block { min-width: 360px; padding: 2.5rem; }
}

@media screen and (max-width: 750px) {
  html { font-size: 48%; }
  .wrapper { min-width: 0; }
  .center { flex-direction: column-reverse !important; justify-content: flex-end; align-items: stretch; padding: 2rem 0 0; }
  .content-block { position: static; }
  .shapes-block { overflow: hidden; width: 100%; height: 100%; left: 0; right: 0; }
  .step-block { min-width: 0; padding: 2.5rem; }
  .step-header { margin: 0 0 2rem; font-size: 3rem; text-align: center; }
  .question-notice { text-align: center; }
  .slider-block { width: 70vw; height: 63vw; margin: 0 auto; }
  .slider-item { width: 100%; height: 100%; }
  .yes-btn, .no-btn, .step-btn, .extra-btn { width: 100%; }
  .checkbox-block { display: flex; flex-wrap: wrap; }
  .checkbox-item { flex: 0 1 50%; }
  .extra-buttons-block { flex-direction: column; align-items: center; gap: 2.5rem; }
  .extra-btn-container { width: 100%; }
}

@media only screen and (max-device-width: 850px) and (orientation: landscape) {
  .center { height: auto; }
}