* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  color: #333;
}

.container {
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

h1 {
  color: white;
  margin-bottom: 40px;
  font-size: 2.8rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.buttons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.modal-btn {
  background: white;
  color: #1a2a6c;
  border: none;
  padding: 14px 22px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  justify-content: center;
}

.modal-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.modal-btn i {
  font-size: 1.5rem;
}

.banner-btn { background: linear-gradient(45deg, #ff9a9e, #fad0c4); }
.instruction-btn { background: linear-gradient(45deg, #a1c4fd, #c2e9fb); }
.rules-btn { background: linear-gradient(45deg, #d4fc79, #96e6a1); }
.disabled-btn {
  background: linear-gradient(45deg, #b5b4b4, #8f8e8e);
  color: #111010 !important;
  cursor: not-allowed !important;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 15px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  z-index: 1001;
  width: 90%;
  max-width: 600px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 25px;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f);
  border-radius: 15px 15px 0 0;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  transform: rotate(360deg);
}
.banners-section{
  color: white;
}
.message{
  display: block;
  padding: 10px;
}
.refLink{
  padding: 15px;
  color: cornflowerblue;
}
.modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a2a6c;
}

input, textarea, select {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1a2a6c;
  box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.2);
}

.submit-btn {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(26, 42, 108, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 42, 108, 0.4);
}

.rules-list, .instruction-steps {
  text-align: left;
  padding-left: 20px;
}

.rules-list li, .instruction-steps li {
  margin-bottom: 15px;
  line-height: 1.6;
}

.rules-list li:last-child, .instruction-steps li:last-child {
  margin-bottom: 0;
}

.info-section {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.info-section h3 {
  margin-bottom: 15px;
  color: #1a2a6c;
  font-size: 1.3rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.feature {
  background: rgba(255, 255, 255, 0.85);
  padding: 25px;
  border-radius: 15px;
  width: 280px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
}

.feature i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1a2a6c;
}

.feature h3 {
  margin-bottom: 15px;
  color: #1a2a6c;
}

footer {
  margin-top: 40px;
  color: white;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}
img {
  width: 468px;
  height: 60px;
  object-fit: cover; /* чтобы сохранить пропорции и избежать искажений */
}

@media (max-width: 470px) {
  img {
    width: 100%; /* по ширине контейнера на мобильных */
    height: auto; /* высота подстраивается пропорционально */
  }
}

@media (max-width: 600px) {
  .modal-btn {
      min-width: 200px;
      padding: 15px 25px;
      font-size: 1rem;
  }
  
  .modal-body {
      padding: 20px;
  }
}