body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  background: #19191a;
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: 
    linear-gradient(120deg, rgba(30,25,34,0.93) 0%, rgba(30,25,34,0.75) 100%),
    url("img/background.jpg") center center / cover no-repeat;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: rgba(30, 25, 34, 0.93);
  box-shadow: 0 6px 40px #000c;
  border-radius: 18px;
  max-width: 540px;
  width: 94vw;
  margin: 38px 0;
  padding: 38px 28px 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 0 0 22px 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: #e8d37e;
  text-shadow: 0 2px 20px #e8d37e44, 0 0 2px #fff7bb33;
  text-align: center;
}

.content {
  width: 100%;
  color: #fff8f2;
}

.content p {
  margin: 0 0 18px 0;
  font-size: 1.23rem;
  line-height: 1.57;
  letter-spacing: 0.1px;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn, .modal-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 15px 38px;
  font-size: 1.13rem;
  font-weight: 700;
  border-radius: 30px;
  outline: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #ff643b 0%, #e8d37e 100%);
  color: #231c0b;
  letter-spacing: 1.3px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 18px 0 #e8d37e22, 0 6px 24px #0005;
  /* Без transition: всё JS */
  z-index: 1;
}

.btn:focus, .modal-btn:focus {
  outline: 2px solid #e8d37e;
  outline-offset: 2px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,18,13,0.80);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #272026;
  border-radius: 14px;
  box-shadow: 0 4px 32px #e8d37e44;
  padding: 32px 22px 20px 22px;
  max-width: 340px;
  width: 92vw;
  color: #fff9e5;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  margin: 0 0 10px 0;
  font-size: 1.19rem;
  color: #e8d37e;
}

.modal-content p {
  font-size: 1.06rem;
  margin: 0 0 10px 0;
}

.modal-content ol {
  text-align: left;
  margin: 8px 0 20px 18px;
  padding: 0;
  font-size: 1.03rem;
  color: #fff9e5;
}

.close {
  position: absolute;
  right: 15px; top: 10px;
  font-size: 1.6rem;
  color: #e8d37e;
  cursor: pointer;
  transition: color 0.18s;
  font-weight: 500;
}

.close:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .container { padding: 18px 4vw 14px 4vw; }
  h1 { font-size: 1.17rem; }
  .content p { font-size: 0.97rem; }
  .btn, .modal-btn { font-size: 0.98rem; padding: 11px 7vw; }
  .modal-content { padding: 13px 4vw 10px 4vw; font-size: .97rem;}
}