body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /*background-color: #141414;*/
  background-color: rgba(246, 242, 232, 1);
  color: #000;
}

.container {
  /*max-width: 390px;*/
  max-width: 580px;
  margin: auto;
  background-color: rgba(246, 242, 232, 1);
  padding: 20px 16px;
  border-radius: 16px;
  /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
}

h1 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;

  color: rgba(41, 39, 39, 1);
}
h3{
  font-size: 14px;
  font-weight: 500;
  margin-top: -12px;
  color: rgba(41, 39, 39, 1);
}
h1 span {
  color: rgba(205, 93, 40, 1);
  font-weight: bold;
}

h4 {
  font-size: 14px;
  font-weight: 400;
  color: rgba(205, 93, 40, 1);
  margin-top: -8px;
}

.wrapper{
    background-color: white;
    padding:12px;
    border-radius: 14px;
}
.section {
  margin-top: 28px;
}

.section-title {
  color: rgba(205, 93, 40, 1);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  /* margin: 12px 0 6px; */
}
label span {
  color: rgba(205, 93, 40, 1);
}
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(171, 77, 33, 0.2);
  font-size: 14px;
  background-color: white;
  box-sizing: border-box;
  margin-bottom: 12px;
  margin-top: 12px;
}

input::placeholder,
textarea::placeholder {
  color: #999;
  font-size: 14px;
}

textarea {
  
  height: 127px;
  resize: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.tag {
  background-color: rgba(246, 242, 232, 1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.tag.selected {
   background-color: rgba(205, 93, 40, 1);
  
   
  font-weight: 500;
}
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  user-select: none;
  margin-top: 12px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  background-color: transparent; /* <-- фон НЕактивного чекбокса */
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark {
  
  border-color: rgba(41, 39, 39, 1);
}

.custom-checkbox input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid rgba(41, 39, 39, 1);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.submit-btn {
  width: 100%;
  background-color: rgba(41, 39, 39, 1);
  color: #fff;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  margin-top: 24px;
  cursor: pointer;
  height: 50px;
  margin-bottom: 40px;
}

.submit-btn:hover {
  opacity: 0.9;
}

a.rules {
  color: #000;
}