.page {
  background: var(--bg-main);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.card {
  width: 420px;
  border: 1px solid var(--border-main);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-main);
  margin: 0 auto;
}

.title {
  font-size: 18px;
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.label {
  font-size: 14px;
  font-weight: 600;
}

.input {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-main);
  padding: 0 16px;
  font-size: 14px;
}

.helper {
  font-size: 12px;
  color: var(--text-sub);
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.button-primary {
  background: var(--accent);
  color: white;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.link-button {
  font-size: 14px;
  color: var(--text-sub);
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.error {
  border: 1px solid #f47365;
  background: rgba(241, 80, 37, 0.1);
  color: #f47365;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-main);
  border-radius: 4px;
  background: var(--bg-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkbox-text {
  font-size: 14px;
}

.checkbox-input:checked + .checkbox-box {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.checkbox-input:checked + .checkbox-box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  margin-top: -2px;
}

@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 48px 32px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 32px 16px;
  }
  .card {
    width: 100%;
  }
  .name-fields {
    grid-template-columns: 1fr;
  }
}
